/* app/css/match-diary.css — the Hair Diary matched to the AppPassport board (rebuild stream w6). Linked once by w2 (index.html); w6 fills it. */
/* The board (AppPassport, 390): the toile ground; a dark card ("Hair Diary" in the italic serif, her name in the serif, the
   "N of 42 days" ring, the wearing line, "My care plan" gold and "Book a refresh" outlined); then sections with sans titles
   (800, -.03em) and underlined gold-deep links on the right: Next look (two 3:4 cards), the routine ring, Your routine
   (italic labels), the reminder offer, Book the touch-up, Your dates (a dotted timeline), the diary stamps (paper cards with a
   gold seal and a dark tag), My looks and the Profile box. Square corners throughout (.ap button/a radius 0). On the desk
   the same column sits centred, 720 px wide. */
.dy { --dy-ink: #121317; --dy-ink2: #1d1e24; --dy-toile: #f1f0ee; --dy-paper: #fafaf8; --dy-veil: #e7d3a6; --dy-gold: #c99a42; --dy-gdeep: #8a6020; --dy-ash: #67635d; --dy-ashd: #a9a59d;
  --dy-line: rgba(18,19,23,.14); --dy-serif: "Bodoni Moda", "Didot", Georgia, serif;
  max-width: 720px; margin: 0 auto; padding: 4px 0 24px; color: var(--dy-ink); font-family: var(--ny-sans, "Plus Jakarta Sans"), system-ui, sans-serif; }
/* the toile ground is the phone board's; on the desk the column sits on the page's own ground (one colour, no grey strip) */
@media (max-width: 600px) { main#main:has(> .dy), main#main:has(> * > .dy) { background: var(--dy-toile, #f1f0ee); } }
.dy * { box-sizing: border-box; }
.dy a, .dy button { border-radius: 0; }
.dy :is(h1, h2, h3) { margin: 0; }
:root:root:root:root .dy :is(h1, h2, h3, p, span).a-h { font-style: normal; }
:root:root:root:root .dy :is(h2, h3).a-lbl { font: 500 13px/1.3 var(--ny-sans, "Plus Jakarta Sans"), system-ui, sans-serif; font-style: normal; letter-spacing: 0; color: var(--dy-ash); }
:root:root:root:root .dy h1.dy-it { font: italic 500 15px/1.3 var(--dy-serif); letter-spacing: 0; color: var(--dy-veil); }
:root:root:root:root .dy .a-h { font: 800 24px/1.15 var(--ny-sans, "Plus Jakarta Sans"), system-ui, sans-serif; letter-spacing: -.03em; color: var(--dy-ink); }
.dy .a-it, .dy .dy-it { font-family: var(--dy-serif); font-style: italic; font-weight: 500; letter-spacing: 0; }
.dy .a-sub { margin: 0; font-size: 14px; line-height: 1.45; color: var(--dy-ash); }
.dy .a-lbl { margin: 0 0 8px; font-size: 13px; font-weight: 500; color: var(--dy-ash); letter-spacing: 0; }
.dy .dy-small { margin: 0; font-size: 13px; line-height: 1.45; color: var(--dy-ash); }

/* the dark card */
.dy-card { margin: 0; padding: 22px 20px 20px; background: var(--dy-ink); color: #f1f0ee; }
.dy-card .dy-it { font-size: 15px; line-height: 1.3; color: var(--dy-veil); }
.dy-card .dy-name { margin: 4px 0 2px; font-family: var(--dy-serif); font-style: italic; font-weight: 500; font-size: 32px; line-height: 1.05; color: #f1f0ee; overflow-wrap: anywhere; }
.dy-card .dy-member { margin: 0; font-size: 13px; color: var(--dy-ashd); }
.dy-ringrow { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; margin-top: 18px; }
.dy-ringrow.light { margin-top: 0; margin-bottom: 24px; }
.dy-wear { margin: 0; font-size: 15px; line-height: 1.35; }
.dy-due { margin: 4px 0 0; font-size: 13px; line-height: 1.4; color: var(--dy-ashd); }
.dy-ring { position: relative; width: 96px; height: 96px; }
.dy-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); display: block; }
.dy-ring .trk { stroke: rgba(18,19,23,.14); }
.dy-ring .trk.dark { stroke: rgba(241,240,238,.16); }
.dy-ring .c { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; line-height: 1.1; }
.dy-ring .c b { display: block; font: 800 26px/1.1 var(--ny-sans, "Plus Jakarta Sans"), system-ui, sans-serif; letter-spacing: -.03em; color: var(--dy-ink); }
.dy-ring .c span { font-size: 11px; color: var(--dy-ash); }
.dy-card .dy-ring .c b { color: #f1f0ee; }
.dy-card .dy-ring .c span { color: var(--dy-ashd); }
.dy-btns { display: flex; gap: 10px; margin-top: 18px; }
.dy-btns > * { flex: 1; }
.dy .a-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 18px; width: 100%; border: 0; background: var(--dy-ink); color: #f1f0ee;
  font: 500 15px/1.2 var(--ny-sans, "Plus Jakarta Sans"), system-ui, sans-serif; letter-spacing: .01em; text-decoration: none; cursor: pointer; text-align: center; }
.dy .a-btn.gold { background: var(--dy-gold); color: var(--dy-ink); }
.dy .a-btn.line-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.7); }
.dy .a-btn.ghost { background: transparent; color: var(--dy-ink); box-shadow: inset 0 0 0 1px var(--dy-ink); }
.dy .a-btn.dy-sm { width: auto; min-height: 44px; padding: 0 14px; font-size: 13.5px; white-space: nowrap; }
.dy .a-btn:focus-visible, .dy .dy-link:focus-visible, .dy .dy-chip:focus-visible, .dy .dy-rows > *:focus-visible { outline: 2px solid var(--dy-gold); outline-offset: 2px; }
.dy .dy-link { display: inline-flex; align-items: center; min-height: 44px; border: 0; background: transparent; padding: 0; font-family: inherit; font-weight: 400; font-size: 14px; line-height: 1.2;
  color: var(--dy-gdeep); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.dy .dy-link.light { color: var(--dy-veil); }

/* the upcoming booking and the reminder offer */
.dy .a-offer { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 14px; background: var(--dy-paper); border-left: 2px solid var(--dy-gold); }
.dy .a-offer b { display: block; font-weight: 500; font-size: 14.5px; line-height: 1.3; }
.dy .a-offer span { font-size: 12.5px; color: var(--dy-ash); }
.dy .dy-next { margin: 14px 0 0; }
.dy .dy-remind { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; background: var(--dy-ink); color: var(--dy-gold); font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap; }

/* sections */
.dy-sec { padding: 28px 0 6px; }
.dy-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.dy-head .dy-link { min-height: 32px; }
.dy-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 12px; }
.dy-grid2.tight { gap: 8px; }
.dy .a-card { display: flex; flex-direction: column; color: var(--dy-ink); text-decoration: none; text-align: left; min-width: 0; }
.dy .a-card .ph { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: #ddd; }
.dy-grid2.tight .a-card .ph { aspect-ratio: 4 / 5; }
.dy .a-card .ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block; }
.dy .a-card .nm { margin-top: 8px; font: 700 15px/1.2 var(--ny-sans, "Plus Jakarta Sans"), system-ui, sans-serif; letter-spacing: -.02em; }
.dy .a-card .mt { margin-top: 2px; font-size: 12.5px; color: var(--dy-ash); }
.dy-grid2.tight .a-card .mt { font-size: 11.5px; color: var(--dy-ink); margin-top: 6px; }
.dy .dy-big { margin: 0; font-size: 26px; line-height: 1.1; color: var(--dy-ink); }
.dy .dy-empty { margin: 4px 0 12px; }
.dy .a-routine { list-style: none; margin: 0; padding: 0; }
.dy .a-routine li { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--dy-line); font-size: 14px; line-height: 1.4; }
.dy .a-routine li { font-family: var(--dy-serif); font-style: italic; font-size: 15px; color: rgba(138,96,32,.62); }
.dy .a-routine li span { font-family: var(--dy-serif); font-style: italic; color: rgba(138,96,32,.78); font-size: 15px; }
.dy .a-routine li.done { opacity: .55; }
.dy #routine .a-offer { margin-top: 16px; }
:root:root:root:root .dy .dy-dates-h { margin: 26px 0 8px; }
.dy-tl { display: flex; flex-direction: column; }
.dy-tr { display: grid; grid-template-columns: 76px 14px 1fr; gap: 8px; align-items: start; padding: 9px 0; border-bottom: 1px solid rgba(18,19,23,.1); }
.dy-tr.done { opacity: .55; }
.dy-tdate { font-size: 13px; color: var(--dy-gdeep); padding-top: 1px; }
.dy-dot { display: block; width: 10px; height: 10px; border-radius: 5px !important; margin-top: 4px; background: rgba(18,19,23,.22); }
.dy-tr.done .dy-dot, .dy-tr.now .dy-dot { background: var(--dy-gold); }
.dy-tr.now .dy-dot { box-shadow: 0 0 0 3px rgba(201,154,66,.25); }
.dy-tt { margin: 0; font-size: 13.5px; font-weight: 500; }
.dy-tb { margin: 2px 0 0; font-size: 12.5px; color: var(--dy-ash); line-height: 1.4; }

/* the diary */
.dy .dy-note { margin: 6px 0 14px; font-size: 12.5px; color: var(--dy-ash); }
.dy .pass-stamps { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dy .pass-stamp { display: flex; flex-direction: column; gap: 6px; border: 1px solid rgba(18,19,23,.14); padding: 12px; text-align: left; background: var(--dy-paper); color: var(--dy-ink); min-width: 0; }
.dy .pass-stamp b { display: block; font-weight: 500; font-size: 13.5px; line-height: 1.25; }
.dy .pass-stamp > span { font-size: 12px; color: var(--dy-ash); }
.dy .dy-sph { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #ddd; }
.dy .dy-sph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; display: block; }
.dy .dy-mono { display: grid; place-items: center; width: 100%; height: 100%; font: italic 500 40px/1 var(--dy-serif); color: var(--dy-gdeep); }
.dy .seal { position: absolute; left: 8px; top: 8px; width: 44px; height: 44px; border-radius: 50% !important; border: 1.5px solid var(--dy-gold); display: grid; place-items: center;
  font-family: var(--dy-serif); font-style: italic; color: #6e4c17; font-size: 13px; background: rgba(250,250,248,.94); transform: rotate(-8deg); } /* a shade deeper than the board's #8a6020: AA over a photo */
.dy .dy-who, .dy .dy-nowtag { position: absolute; right: 6px; bottom: 6px; padding: 3px 7px; font-size: 9px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; background: rgba(18,19,23,.8); color: var(--dy-veil); }
.dy .dy-nowtag { right: auto; left: 6px; background: var(--dy-gold); color: var(--dy-ink); }
.dy .dy-acts { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 2px; flex-wrap: wrap; }
.dy .dy-rep { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; font-weight: 500; color: var(--dy-gdeep); text-decoration: none; }
.dy .dy-addph { display: inline-flex; align-items: center; min-height: 44px; border: 0; background: transparent; padding: 0; font-family: inherit; font-weight: 500; font-size: 12px; line-height: 1.2; color: var(--dy-ink); text-decoration: underline; cursor: pointer; }
.dy-pick { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.dy .dy-acts { flex-wrap: nowrap; }
.dy .dy-acts .dy-pick { align-items: flex-end; }
.dy-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dy-msg { font-size: 12px; color: #9a3412; }

/* profile and the rows */
.dy-prof { margin: 28px 0 0; padding: 14px; box-shadow: inset 0 0 0 1px rgba(18,19,23,.14); }
.dy-kv { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.dy-kv > div { display: flex; justify-content: space-between; gap: 12px; }
.dy-kv > div > span:first-child { color: var(--dy-ash); }
.dy-kv > div > span:last-child { text-align: right; overflow-wrap: anywhere; min-width: 0; }
.dy-prof .dy-btns { margin-top: 12px; }
.dy-rows { display: flex; flex-direction: column; margin-top: 14px; border-top: 1px solid var(--dy-line); }
.dy-rows > a, .dy-rows > button { display: flex; justify-content: space-between; align-items: center; min-height: 52px; padding: 0 2px; border: 0; border-bottom: 1px solid var(--dy-line);
  background: transparent; color: var(--dy-ink); font: 500 15px/1.2 var(--ny-sans, "Plus Jakarta Sans"), system-ui, sans-serif; text-decoration: none; cursor: pointer; text-align: left; width: 100%; }
.dy-rows > * > span:last-child { color: var(--dy-gdeep); font-size: 20px; }
.dy-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px !important; background: var(--dy-gold); color: var(--dy-ink); font-size: 11px; font-weight: 700; }
.dy .dy-acctlink { margin-top: 14px; }
.dy .dy-acctlink a { color: var(--dy-gdeep); }

/* the sheets ("What's on your head right now?", "Add a look to your diary") */
.dy-sheet { display: flex; flex-direction: column; gap: 14px; color: #121317; }
.dy-sheet .dy-lead { margin: 0; font-size: 13px; color: rgba(18,19,23,.7); }
.dy-box { display: flex; flex-direction: column; gap: 8px; padding: 12px; background: #fff; border: 1px solid rgba(201,154,66,.45); }
.dy-boxrow { flex-direction: row; gap: 12px; align-items: center; }
.dy-boxrow > div:last-child { flex: 1; min-width: 0; }
.dy-thumb { width: 64px; height: 80px; border-radius: 12px; overflow: hidden; background: #1d1e24; flex-shrink: 0; }
.dy-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; display: block; }
.dy-lab { margin: 0; font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: #8a6020; }
.dy-sheet .dy-small { margin: 2px 0 8px; font-size: 12px; color: rgba(18,19,23,.65); }
.dy-up { min-height: 44px; padding: 0 14px; border: 0; border-radius: 0; background: #121317; color: #c99a42; font-family: inherit; font-weight: 500; font-size: 12px; line-height: 1; cursor: pointer; }
.dy-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dy-chip { min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: 0; border: 1px solid rgba(18,19,23,.25); background: transparent; color: #121317; font-family: inherit; font-weight: 400; font-size: 14px; line-height: 1; cursor: pointer; }
.dy-chip[aria-pressed="true"] { border-color: #121317; background: #121317; color: #c99a42; }
.dy-go { min-height: 50px; border: 0; border-radius: 0; background: #c99a42; color: #121317; font-family: inherit; font-weight: 500; font-size: 15px; line-height: 1; cursor: pointer; }
.dy-go:disabled { opacity: .5; cursor: not-allowed; }

@media (max-width: 600px) {
  .dy { padding-top: 0; }
  .dy-card, .dy .dy-next { margin-inline: 0; }
}
@media (min-width: 900px) {
  .dy { padding-top: 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  .dy .pass-stamp { animation: dyStamp 700ms cubic-bezier(.34,1.56,.64,1) both; }
  @keyframes dyStamp { from { transform: rotate(-4deg) scale(1.08); opacity: 0; } }
}

/* the rings' numbers as the board renders them: small and quiet under the gold arc */
:root:root:root:root .dy .dy-ring .c b { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--dy-ash); }
:root:root:root:root .dy .dy-card .dy-ring .c b { color: var(--dy-ashd); }
