/* Nect Me: the new look. Playfair Display, a hint of gold, calmer labels and small movements. Loaded after app.css while the switch dv_look is on (Look lane). Playfair Display: SIL Open Font Licence 1.1, fonts/playfair-display-LICENSE.txt. */
@font-face{font-family:"Playfair Display";font-style:normal;font-weight:400 900;font-display:swap;src:url(fonts/playfair-display-latin-wght-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Playfair Display";font-style:normal;font-weight:400 900;font-display:swap;src:url(fonts/playfair-display-latin-ext-wght-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
/* The page headline (h1) face since November 2026: Cormorant Garamond, SIL Open Font Licence 1.1, fonts/cormorant-garamond-LICENSE.txt. Its small letters are short, so it is drawn 15 per cent larger (size-adjust),
   which keeps every h1 size, and every 320 px fit, the same width as before. "Cormorant Fallback" is Georgia scaled to the same width, so nothing moves when the real face arrives. */
@font-face{font-family:"Cormorant Garamond";font-style:normal;font-weight:300 700;font-display:swap;size-adjust:115%;src:url(fonts/cormorant-garamond-latin-wght-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Cormorant Garamond";font-style:normal;font-weight:300 700;font-display:swap;size-adjust:115%;src:url(fonts/cormorant-garamond-latin-ext-wght-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Cormorant Fallback";src:local("Georgia"),local("Times New Roman");size-adjust:103%;ascent-override:92%;descent-override:29%;line-gap-override:0%}

/* ======================================================================
   Nect Me: the new look (Look lane, lane word craft, class prefix cf-). Loaded after app.css (and after site.css on the website) only while the switch
   "dv_look" is on, so with it off nothing here exists. Master plan Part 6 and docs/master-plan/EXPERIENCE-STANDARD.md decide it:
     1. Playfair Display for names and headlines. Never for small text, never for buttons, tabs, chips, labels, rows or figures in tables. Weights 500 and 600 only.
     2. A hint of gold (we call the colour brass): a thin ring round a photo and one hairline. Never on a button, never on words, never on anything bought.
     3. Green is the only accent. The rust (--clay) comes off labels and numbers. The token itself stays, because avatars use it.
     4. Small movement only: the three speeds that exist (--t-micro, --t-std, --t-cer), all of it stopped by prefers-reduced-motion.
   Font licence: fonts/playfair-display-LICENSE.txt (SIL Open Font Licence 1.1). Fonts are served from this site; no outside font service.
   Use the tokens in app.css; never type a colour or a corner size by hand.
   ====================================================================== */
:root{
  --f-d:"Playfair Display",Georgia,"Times New Roman",serif;
  --f-h1:"Cormorant Garamond","Cormorant Fallback",Georgia,"Times New Roman",serif; /* the page headline (h1) only; h2, h3, names and body keep their faces */
  /* Brass: flat colour, never a metal effect, never text. --brass is a hairline on paper or white; --brass-on-dark is the ring on a dark card or the pass.
     Worked out against the card colours in docs/master-plan/working/map-look-frontend-website.md 12.5. The owner sees both in the practice copy. */
  --brass:#B08D57; --brass-on-dark:#C9A86A;
  font-variant-numeric:lining-nums; /* Playfair's figures are old-style by default (uneven heights): dates and counts must stand level */
}
/* the website sets the token on its own wrapper (site.css .nm), which beats :root, so it needs the same line to get the Playfair headlines the plan chose */
.nm{--f-d:"Playfair Display",Georgia,"Times New Roman",serif;--f-h1:"Cormorant Garamond","Cormorant Fallback",Georgia,"Times New Roman",serif}
/* the support chat button and panel set the token on themselves, so they need the same line */
body .nm--chat{--f-d:"Playfair Display",Georgia,"Times New Roman",serif}

/* ---------- 1. Playfair: the small uses go to the plain face (under about 20 px its thin strokes vanish) ---------- */
:is(.h2,.h3,.h4,.topbar__brand,.topbar__t,.empty h1,.empty h3,.steps3 .n,.how__n,.idc__brand,.badge__t b,.ring b,.numbers b,.erow__d b,.edphoto__ini,.hcard__d b,.kpi b,
  .score b,.scorebar b,.esum__c b,.evmap__load b,.inv__count b,.run__t b,.welcome h2,.agecard h2,.scoreone__q,.ekind,.kit-ring b,.kit-goal__t b,.kit-demo h2,.kit-demo h3,
  .kit-frames figcaption,.pickbar2__t b,.nectedwow__in strong,.nm--chat .nmc__head b,.hint__pair b,.hc-num b,.hh-ev__t b,.sw2__who b,.jn-why h2,.l3-card__t,.l3-help__box h3,
  .l3-av i,.monthcard__t,.qscard__n,.sc-card__av--i,.nectchip--l,.plancard2 h2,.pr-num,.pr-bar__t b,.rtab__n b,.fynow__head b,.fyc__t b,.fypeople__t b,.hx-nums__big,
  .md__t,.md__h,.md .dr-av i,.mo-sum b,.pp-trust__n b,.pp-group,.hpg__logo i,.hpg__stats b,.tdy__n b,.scp__l b,.hh__h,.hh__t,.dr-pass__evt,.dr-still__q,.dr-av i,.dr-count,
  .dr-door__t,.dr-res__p b,.dr-door__n b){font-family:var(--f-b);font-weight:600;letter-spacing:0}
body.has-tab .tabbar__name b{font-family:var(--f-b);font-weight:600;letter-spacing:0}
@media(min-width:720px){:is(.pr-th__name,.pr-hp b){font-family:var(--f-b);font-weight:600;letter-spacing:0}}
/* the door's results are read across a room and at a glance: the plain face, not the heavy headline (it was weight 800) */
.dr-res__w{font-family:var(--f-b);font-weight:700;letter-spacing:0}
/* the website's small headline uses */
:is(.cam__poster b,.idwrap__h,.ct__av,.pf__av,.tl li b,.mini-ct__av,.mini-ct b,.s-bridge,.s-list b,.kpis b,.s-tr--h>span,.nm details.faq summary,.lst b,.lst__av,
  .s-etypes b,.s-badge b,.s-tline b,.s-also h3,.s-gcard b,.s-prose h3,.nmc__head b,.s-pass__who b,.s-aud h3,.s-photo figcaption b,.nm h3){font-family:var(--f-b);font-weight:650;letter-spacing:0}
@media(max-width:959px){.s-head.is-open .s-nav>a{font-family:var(--f-b);font-weight:600;letter-spacing:0}}

/* ---------- 1b. Playfair where it stays: wider than the old face, so the tightening that suited Newsreader is loosened and the weight is 500 or 600 ---------- */
:is(.display,.sheet h2,.idc__name,.idc__scan,.pitch__h,.q,.apphead__t,.poster__brand,.poster__t,.poster__cta,.saved h2,.hai__ph,.hc-head__t,.hc-vh,.hc-ready__t,.hh-next__t,.hq-h,
  .jn__h,.jn-pass__h,.mb-pick__h,.plan .plannow__t,.pr-card__name,.pr-big,.pr-tile h3,.pr-grouphead h3,.pr-free h3,.pr-pack__n,.pr-reason h3,.dr-pass__name,.hh__word,.bd__name,
  .pp-head__t,.pp__name,.hpg__name,.nm--chat .s-done h3){font-weight:500;letter-spacing:-.005em}
:is(.s-h1,.s-h2,.s-h3,.wz h4,.wz .wz__h,.pf h4,.s-num,.s-tile h3,.s-quote blockquote,.s-prose h2,.s-done h3,.s-who h3,.s-callout h3,.s-hat h3,.s-fcard h2,.s-fcard h3,.s-pass__t,
  .s-step h3,.s-live__n,.dr-in__t,.en-hunt-big,.cap__card h2,.bs__wait h1,.hp-card h1,.hp-card__how,.scw__n,.s-scorecard b){font-weight:600;letter-spacing:-.005em}
:is(.s-h1,.s-h2,.display,.poster__t,.hp-card h1,.bs__wait h1){letter-spacing:-.012em}
/* Playfair sets wider than Newsreader did: the two biggest headline sizes come down a little so a long word still fits a 320 px screen */
.display{font-size:clamp(1.6rem,7vw,1.9rem);line-height:1.12}
.s-h1{font-size:clamp(2.2rem,6.6vw,4.2rem);line-height:1.08}
.s-h2{font-size:clamp(1.7rem,4.2vw,2.8rem);line-height:1.12}
.apphead__t{line-height:1.2}
.pitch__h{line-height:1.15}
.q{font-size:clamp(1.45rem,6.4vw,1.7rem);line-height:1.15}
.poster__t{line-height:1.06}
:is(.s-num,.s-live__n,.s-scorecard b,.pr-big){font-variant-numeric:lining-nums}
/* ---------- 1c. The page headline (h1): Cormorant Garamond 600, on the website, the 404 page and the app's screen headlines. Names stay in Playfair ---------- */
:is(.s-h1,.nmt-404 h1,h1.display,h1.q,h1.jn__h,h1.jn-pass__h,h1.apphead__t,h1.hq-h,h1.hc-head__t,h1.pp-head__t,h1.poster__t,.bs__wait h1,.hp-card h1){font-family:var(--f-h1);font-weight:600;letter-spacing:-.008em;font-kerning:normal}
/* long words must never push the screen wider (320 px): Playfair breaks them instead */
:is(.display,.apphead__t,.idc__name,.pitch__h,.q,.s-h1,.s-h2,.s-h3,.hc-head__t,.hq-h,.jn__h,.dr-pass__name,.hh__word,.bd__name,.hpg__name){overflow-wrap:anywhere;hyphens:manual}

/* ---------- 2. Brass: the ring round a photo on the ID card (set per card colour inline by olAccentStyle: Clay and Stone keep today's ink ring), the pass photo, one hairline ---------- */
.idc__face::before{content:"";position:absolute;inset:7px;border:1px solid var(--frame,transparent);border-radius:calc(var(--r) - 5px);pointer-events:none}
body .dr-pass__photo{box-shadow:0 0 0 2px var(--brass-on-dark)} /* body in front: door.css is loaded after this file, on the page itself */
/* On the website: one thin brass line under the page headline, drawn once */
.s-h1::after{content:"";display:block;width:72px;height:1px;margin-top:18px;background:var(--brass);transform-origin:left center}

/* ---------- 3. Green is the only accent: the rust comes off labels and numbers (the token stays for avatars) ---------- */
:is(.mb-quiet__k,.mb-founding,.mb-sec__h,.hh-next--draft .hh-next__k){color:var(--mute)}
.mb-sec__h{font-size:var(--fs-cap);letter-spacing:.06em;text-transform:uppercase}
:is(.hc-three dd,.hh-next__n,.s-num,.s-live__r em){color:var(--ink)}
.mb-people .plist .prow__i.prow__due{color:var(--ink)}
.mb-dot{background:var(--green)}
:is(.hc-note>.ic,.ekind,.hc-pill--draft,.evv__state){color:var(--ink2)}
:is(.fyc--both,.pp__bigb--hello,.pp__news,.idnews){border-color:var(--line2)}
.s-final__box{background:var(--green)}

/* ---------- 4. Small movement (docs/master-plan/working/ux-craft-and-words.md section 6). Only the three speeds. Everything here stops for people who ask for less motion ---------- */
@media(prefers-reduced-motion:no-preference){
  /* ID card: the flip takes 600 ms (it was 800), the QR code fades up in the last 200 ms */
  .idc__flip{transition-duration:.6s}
  .idc.is-flipped .idc__back>*{animation:cf-fade var(--t-micro) var(--ease-in) .4s both}
  /* Joining: the card rises 24 px and settles, once, with its pass of light */
  .wiz__done .idc{animation:cf-rise var(--t-cer) var(--ease) both}
  /* People: a newly added person slides in from 12 px above */
  .plist li.is-new{animation:cf-drop var(--t-std) var(--ease-in) both}
  /* a chip answers the finger */
  .chip:active,.ichip:active,.kit-chip:active{transform:scale(.97);transition:transform var(--t-micro) var(--ease-in)}
  /* Scan: the frame corners breathe 2 px every 2 seconds, and are still while the camera is not in use */
  .sc-frame{animation:cf-breathe 4s ease-in-out infinite}
  /* Website: the brass line under the headline draws once over 900 ms */
  .s-h1::after{animation:cf-draw var(--t-cer) var(--ease) .2s both}
}
@keyframes cf-fade{from{opacity:0}to{opacity:1}}
@keyframes cf-rise{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}
@keyframes cf-drop{from{opacity:0;transform:translateY(-12px)}to{opacity:1;transform:none}}
@keyframes cf-breathe{0%,100%{inset:18%}50%{inset:calc(18% - 2px)}}
@keyframes cf-draw{from{transform:scaleX(0)}to{transform:scaleX(1)}}
.s-timeline li::before{font-family:var(--f-b);font-weight:650;letter-spacing:0}
