/* cr8veworks.com — CW-1444: the record, privacy and Dosefolder policy pages in Working drawing.
   Loaded after drawing.css, which supplies the page, the bar, the drawn page head, the title
   block, the bands, the status chips and the footer. Only these pages' own parts live here: the
   sign-in button and dialog, policy clauses, the record's memos and retired rows, and the privacy
   page's measurement settings. They use drawing.css's tokens, so html.dk's dark variant applies. */

/* A section heading's trailing span ("/ 01–04", "/ on this site") is its quieter half. */
.sec > .shell > h2 > span { color: var(--ink-3); }
/* A tag that holds an address keeps the address's own case. */
.tag a { text-transform: none; text-decoration-color: var(--red); }

/* ---------- sign-in (record and privacy) ----------
   Drawn like the Menu button, beside it on a phone and before the links on a wider screen. */
/* .acts holds Sign in and Menu, so when enlarged text wraps the bar they move under the wordmark
   together and share their row instead of taking one row each. */
.top .acts { margin-left: auto; display: flex; align-items: center; gap: 10px; min-width: 0; }
.top .acts .menu-b { margin-left: 0; }
.auth-b { background: none; border: 1.5px solid var(--ink); font: 600 12px var(--mono); letter-spacing: .07em; text-transform: uppercase; padding: 10px 12px; min-height: 44px; min-width: 44px; color: inherit; cursor: pointer; border-radius: 2px; overflow-wrap: anywhere; }
.auth-b:hover, body.is-authed .auth-b { background: var(--ink); color: var(--paper); }
.top:has(.auth-b) nav { margin-left: 0; }
@media (max-width: 900px) {
  .top:has(.auth-b) .shell { column-gap: 10px; }
  .js .top:has(.auth-b) .menu-b { margin-left: 0; }
  .auth-b { padding: 10px 9px; }
}
/* Signed in and Close (the open menu) still share the wordmark's row at 320px. */
@media (max-width: 360px) {
  .top:has(.auth-b) .logo { width: 100px; }
  .top .acts :is(.auth-b, .menu-b) { padding-inline: 7px; letter-spacing: .04em; }
}
.is-authed .gate-cta { display: none; }

/* The sign-in dialog (markup from auth.js): a drawn sheet with the red offset shadow. */
.modal-backdrop { display: none; position: fixed; inset: 0; background: rgba(21, 23, 28, .6); z-index: 999; align-items: center; justify-content: center; padding: 20px; }
.modal-backdrop.open { display: flex; }
.modal { background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 2px; box-shadow: 8px 8px 0 var(--red); max-width: 440px; width: calc(100% - 8px); max-height: calc(100dvh - 48px); display: flex; flex-direction: column; overflow: hidden; }
/* Close sits in its own row above the scrolling body, so no focused control can scroll under it. */
.modal-head { flex: none; display: flex; justify-content: flex-end; padding: 10px 10px 0; }
.modal-body { min-height: 0; overflow-y: auto; padding: 0 clamp(16px, 5vw, 30px) 26px; }
/* Focus scrolls a control in clear of the scroll area's edges by its 3px ring and 3px offset, so the
   ring is never clipped (CW-1444 site-privacy web QA). */
.modal-body { scroll-padding: 6px; }
.modal-close { width: max(44px, 1.4em); height: max(44px, 1.4em); background: none; border: 1.5px solid var(--ink); border-radius: 2px; color: var(--ink); font: inherit; font-size: 20px; line-height: 1; cursor: pointer; }
.modal-close:hover { background: var(--ink); color: var(--paper); }
.modal h3 { font-size: clamp(26px, 6vw, 32px); margin-bottom: 10px; }
.modal .sub { font-size: 15px; line-height: 1.5; color: var(--ink-3); margin: 0 0 20px; max-width: none; }
.modal .btn-google, .modal .btn-link { width: 100%; min-height: 44px; padding: 10px 16px; border-radius: 2px; border: 1.5px solid var(--red); font: 750 15px/1.2 var(--font); cursor: pointer; overflow-wrap: anywhere; }
.modal .btn-google { background: var(--red); color: #fff; margin-bottom: 12px; transition: background .15s, transform .15s; }
.modal .btn-google:hover { background: var(--red-d); border-color: var(--red-d); transform: translateY(-1px); }
.modal .btn-link { background: transparent; color: var(--ink); border-color: var(--ink); }
.modal .btn-link:hover { background: var(--ink); color: var(--paper); }
.modal .divider { text-align: center; font: 600 12px var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); margin: 4px 0 12px; }
/* The example address is visible help text, not a placeholder: a placeholder cannot wrap and was
   cut off at 160 and 195 px wide and at 200% text (CW-1629). The visible label is the field's
   accessible name (WCAG 2.5.3). */
.modal .auth-label { display: block; font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--ink); margin: 0 0 2px; overflow-wrap: anywhere; }
.modal .auth-hint { font-size: 14px; line-height: 1.5; color: var(--ink-3); margin: 0 0 6px; max-width: none; overflow-wrap: anywhere; }
.modal input[type="email"] { width: 100%; min-height: 48px; padding: 10px 14px; background: var(--card); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 2px; font: inherit; font-size: 16px; margin-bottom: 10px; -webkit-appearance: none; }
.modal input[type="email"]:focus { outline: 3px solid var(--red); outline-offset: 1px; }
.modal .auth-feedback { font-size: 14px; line-height: 1.5; padding: 10px 14px; border: 1px solid var(--line); border-left: 4px solid var(--red); margin-top: 14px; }
.modal .fine-print { font-size: 13.5px; line-height: 1.6; color: var(--ink-3); margin-top: 16px; }
.modal .fine-print a { color: var(--ink); text-decoration-color: var(--red); }
@media (prefers-color-scheme: dark) {
  html.dk .modal input[type="email"]:focus { outline-color: var(--red-lit); }
  html.dk .modal-backdrop { background: rgba(0, 0, 0, .7); }
  /* auth.js colours an error var(--red); the base red is 3.4:1 on the dark sheet, the lighter red
     5:1 or more (CW-1444 site-auth web QA round 1). */
  html.dk .modal .auth-feedback { --red: var(--red-lit); }
  /* The dark --red-d is the light red, under white text 3.2:1; hover keeps the deep red, as
     drawing.css's dark .btn:hover does. */
  html.dk .modal .btn-google:hover { background: #a3241e; border-color: #a3241e; }
}

/* ---------- policy clauses (privacy and the Dosefolder pages) ----------
   Each clause is ruled off like a case study's body: its number and subject on the left, the
   clause on the right; stacked on a phone. */
.clauses { margin-top: clamp(22px, 3vw, 40px); border-bottom: 1.5px solid var(--ink); }
.clause { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: 10px clamp(20px, 4vw, 64px); padding: 22px 0 30px; border-top: 1.5px solid var(--ink); }
.clause h3 { font-size: clamp(20px, 0.486rem + 1.26vw, 26px); letter-spacing: -0.02em; }
.clause h3 .mono { display: block; color: var(--red-d); margin-bottom: 6px; letter-spacing: .07em; }
.cl-b { max-width: 44em; min-width: 0; }
.cl-b > * + * { margin-top: 12px; }
.cl-b .cl-h { font-size: clamp(18px, 0.419rem + 1.085vw, 22px); font-weight: 750; line-height: 1.35; letter-spacing: -0.01em; }
.cl-b ul { padding-left: 1.2em; }
.cl-b li + li { margin-top: 6px; }
.cl-b code { font: 600 .88em var(--mono); overflow-wrap: anywhere; }
.cl-b a { text-decoration-color: var(--red); }
@media (max-width: 820px) { .clause { grid-template-columns: minmax(0, 1fr); } }

/* The privacy page's measurement settings (markup from measurement.js), drawn like a title block. */
body .mz-settings { background: var(--card); border: 1.5px solid var(--ink); border-left: 6px solid var(--red); border-radius: 0; }

/* ---------- the record ---------- */
/* The record at a glance: the title block's values are its counts. */
.tb.stats dd { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tb.stats dt { display: flex; align-items: center; }

/* Memos: one row each, opening in place into a drawn sheet. */
.memos { margin-top: clamp(22px, 3vw, 40px); border-top: 1.5px solid var(--ink); }
.memo-card { border-bottom: 1px solid var(--line); }
.memo-card[open] { background: var(--card); border: 1.5px solid var(--ink); box-shadow: 8px 8px 0 var(--red); margin: 14px 8px 26px 0; }
.memo-top { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 3.6fr) minmax(0, auto) minmax(0, 2.6fr) 36px; gap: 10px clamp(12px, 2vw, 28px); align-items: center; padding: 18px 0; }
.memo-top::-webkit-details-marker { display: none; }
.memo-card[open] .memo-top { padding: 18px clamp(14px, 2vw, 24px); border-bottom: 1px solid var(--line); }
.memo-top:focus-visible { outline-offset: -3px; }
.memo-domain { color: var(--ink-3); }
.memo-name { font-size: clamp(26px, 0.81rem + 2.1vw, 44px); letter-spacing: -0.04em; }
.memo-name [lang="te"] { font-family: var(--te); letter-spacing: 0; line-height: 1.25; }
/* The no-break spans keep "Hands-On" and "AI Labs" whole only while they fit: a name too wide
   for its column at enlarged text breaks inside them (h3's overflow-wrap), as on Open Shelf.
   With nowrap, "Hands-On" ran 195-201px wide in 160px and 195px windows with doubled text
   (CW-1444 site-record web QA round 1). */
.memo-name .nb { white-space: normal; }
.memo-top:hover .memo-name { color: var(--red-d); }
.memo-top .st { justify-self: start; }
.memo-cd { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.memo-cd .days { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.memo-cd .mono { color: var(--ink-3); margin-top: 4px; }
.plus { width: 36px; height: 36px; border: 1.5px solid currentColor; position: relative; justify-self: end; }
.plus::before, .plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.memo-card[open] .plus::after { display: none; }
/* The sheet line and countdown repeat under an open memo's row only where the row drops them. */
.memo-sub { display: none; }
.memo-score { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 14px clamp(14px, 2vw, 24px); border-bottom: 1px solid var(--line); color: var(--ink-3); }
.memo-score .k { color: var(--red-d); }
.memo-score .v { color: var(--ink); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { padding: 16px clamp(14px, 2vw, 24px); border-bottom: 1px solid var(--line); min-width: 0; }
.field:nth-child(odd) { border-right: 1px solid var(--line); }
.field dt { font: 600 12px/1.4 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.field dd { font-size: 17px; line-height: 1.5; }
.memo-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding: 14px clamp(14px, 2vw, 24px); font: 600 12px/1.5 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.memo-foot span { overflow-wrap: anywhere; }
.memo-foot a { text-transform: none; color: var(--ink); text-decoration-color: var(--red); }
@media (max-width: 900px) {
  .memo-top { grid-template-columns: minmax(0, 1fr) 36px; }
  .memo-top .memo-domain { grid-column: 1; grid-row: 1; }
  .memo-top .plus { grid-column: 2; grid-row: 1; }
  .memo-top .memo-id, .memo-top .st, .memo-top .memo-cd { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .fields { grid-template-columns: minmax(0, 1fr); }
  .field:nth-child(odd) { border-right: 0; }
  .memo-card[open] { margin-right: 6px; box-shadow: 6px 6px 0 var(--red); }
}

/* Retired work: the drawing's rows, dated on the left. */
.kill-row .when, .kill-row .why { color: var(--ink-3); }
.kill-row .what { font-size: 17.5px; line-height: 1.45; }

/* Below 300px wide (a phone at 200% zoom) a memo's row, its one focus target, keeps a smaller
   name and drops its sheet line and countdown (and, while open, its status chip; the "current"
   line and .memo-sub repeat them just under the open row), so with doubled text the row fits a
   160x450 or 195x422 window, ring included: with them a closed row stood 750-920px. The
   measurement settings' buttons tighten the same way. */
@media (max-width: 300px) {
  .memo-top, .memo-card[open] .memo-top { gap: 6px; padding: 10px 8px; }
  .memo-top :is(.memo-domain, .memo-cd), .memo-card[open] .memo-top .st { display: none; }
  .memo-top .plus { width: 30px; height: 30px; }
  .memo-name { font-size: 18px; hyphens: auto; }
  .memo-card[open] .memo-name { font-size: 22px; line-height: 1; }
  .memo-top .st { letter-spacing: 0; padding: 4px 6px; }
  .memo-card[open] .memo-sub { display: block; padding: 8px; border-bottom: 1px solid var(--line); }
  .memo-sub .memo-domain { display: block; margin-bottom: 6px; }
  .memo-cd .days { font-size: 22px; }
  .memo-card[open] { margin-right: 4px; box-shadow: 4px 4px 0 var(--red); }
  .memo-score, .field, .memo-foot { padding-inline: 8px; }
  body .mz-settings { padding: 8px; }
  body .mz-settings .mz-btn { padding: 6px 10px; font-size: 12px; hyphens: auto; }
  /* The sign-in dialog fills the narrow window, so with doubled text "Continue with Google" breaks
     between words rather than inside them: it stood 346px tall in a 334px scroll area and its focus
     slid under the Close row (CW-1444 site-auth web QA round 1). */
  .modal-backdrop { padding: 4px; }
  .modal { width: 100%; max-height: calc(100dvh - 12px); box-shadow: 4px 4px 0 var(--red); }
  /* Close's ring stands 6px out (3px outline, 3px offset) and the sheet clips it, so the Close row
     keeps 10px, as wider windows do: 4px clear (CW-1444 site-privacy web QA at 6c79a5a1). */
  .modal-head { padding: 10px 10px 0; }
  .modal-close { font-size: 14px; }
  .modal-body { padding: 0 8px 14px; }
  .modal h3 { font-size: 20px; }
  .modal .sub { font-size: 13px; margin-bottom: 14px; }
  .modal .btn-google, .modal .btn-link { padding: 6px 8px; font-size: 13px; hyphens: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .modal .btn-google { transition: none; }
  .modal .btn-google:hover { transform: none; }
}

@media print {
  .top, .pill, .skip, .gate-cta, .auth-b, .mz-consent { display: none !important; }
  html, body { background: #fff; color: #000; }
  .memo-card, .kill-row, .clause { break-inside: avoid; box-shadow: none; }
}
