/* Site-wide finish, loaded on every page after the page's own stylesheet
   (app/routes/_renderer.tsx). The page stylesheets come from separate design
   handovers; this file makes their shared elements behave the same way.
   Values: the Lucie UI kit tokens (one accent, surface cards, no glow) and
   the usual iOS control behaviour (flat fills, press feedback, hover only
   with a pointer). Off-scale sizes, corners and colours inside the page
   stylesheets are snapped by scripts/polish-css.py, not here.

   Hand-written. Keep it to elements that appear on more than one page. */

:root{
  --ease-out:cubic-bezier(.23,1,.32,1);
  --ease-in-out:cubic-bezier(.77,0,.175,1);
  --press:160ms;
  --hairline:rgba(0,0,0,.08);
  --shadow-card:0 2px 8px rgba(0,0,0,.08);
  --focus:#0066eb;
}

/* ---------- page ---------- */
html{background:#fff;-webkit-text-size-adjust:100%}
body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
a,button,summary,label,[role="button"]{-webkit-tap-highlight-color:transparent}
::selection{background:#dce9ff;color:#1d1d1f}
p,li,dd,figcaption,blockquote{text-wrap:pretty}
time,.num,[class*="price"],[class*="count"],[class*="stat"] b{font-variant-numeric:tabular-nums}

/* ---------- buttons ----------
   Primary: flat blue fill, no coloured glow. Secondary on a white page: a
   hairline pill; over the hero sky it keeps the design's glass fill. */
.btn-glass,.snav-cta,.andw-btn,.andw-get,.dd-btn,.btn-blue,.btn-grey,.b,.home,
.pill,.bchip,.ucp-pill,.share-btn,.sharebtn,.tag,.ask-ai-btn,.nlp-pill,.ask-chip,.arrow,.scene{
  transition:transform var(--press) var(--ease-out),background-color 160ms ease,box-shadow 160ms ease,color 160ms ease,border-color 160ms ease;
  touch-action:manipulation;
}
.btn-glass:not(.btn-glass-light),.snav-cta,.andw-btn,.dd-btn,.notfound a.home{box-shadow:none}
.btn-glass-light{box-shadow:0 0 0 1px var(--hairline),0 1px 2px rgba(0,0,0,.04),inset 0 1px 1px rgba(255,255,255,.9)}
.btn-glass:hover,.snav-cta:hover,.andw-btn:hover,.dd-btn:hover,.notfound a.home:hover{transform:none}
.btn-glass:not(.btn-glass-light):hover,.snav-cta:hover,.andw-btn:hover,.dd-btn:hover,.notfound a.home:hover{box-shadow:none}
.btn-glass-light:hover{box-shadow:0 0 0 1px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.04),inset 0 1px 1px rgba(255,255,255,.95)}
.btn-glass:active,.snav-cta:active,.andw-btn:active,.andw-get:active,.dd-btn:active,.btn-blue:active,.btn-grey:active,
.b:active,.pill:active,.bchip:active,.ucp-pill:active,.share-btn:active,.sharebtn:active,.tag:active,.ask-ai-btn:active,
.nlp-pill:active,.ask-chip:active,.arrow:active,.notfound a.home:active{transform:scale(.97)}
/* A finger has no hover: the design's lifts and colour changes only apply with a pointer. */
@media (hover:none){
  .ap-card:hover,.bc:hover,.hub-card:hover,.ch-card:hover,.wy-card:hover,.ucc:hover,.cv-more:hover,.ch-read:hover{transform:none;box-shadow:none}
}

/* ---------- focus ---------- */
:where(a,button,summary,input,select,textarea,[tabindex]):focus-visible{outline:2px solid var(--focus);outline-offset:3px}

/* ---------- cards ----------
   A card that links somewhere lifts 2px, no more, and settles on the same curve. */
@media (hover:hover) and (pointer:fine){
  .ap-card:hover,.bc:hover,.hub-card:hover,.ch-card:hover,.wy-card:hover,.cv-more:hover,.ch-read:hover{transform:translateY(-2px);box-shadow:0 8px 24px -12px rgba(20,40,80,.18)}
}
.ap-card,.bc,.hub-card,.ch-card,.wy-card,.cv-more,.ch-read{transition:transform 200ms var(--ease-out),box-shadow 200ms ease}

/* ---------- long-form text (blog posts) ----------
   Sans at 20px reads larger than the serif it replaced. */
.art{font-size:18px;line-height:1.65}
.art p,.art li{max-width:68ch}
.art-dek,.feat-dek{line-height:1.45;letter-spacing:-.01em}
@media(max-width:760px){.art{font-size:17px;line-height:1.6}}

/* ---------- footer ---------- */
.ask-ai-btn{border-radius:10px}

/* ---------- phones: touch targets ----------
   Controls a finger has to hit are at least 44px tall (40px for the footer
   link rows, which sit edge to edge with no gap between them). */
.nav-logo,.snav-logo{position:relative}
.nav-logo::after,.snav-logo::after{content:"";position:absolute;inset:-11px 0}
@media(max-width:760px){
  .site-footer .foot-cols.foot-cols-5 a,.sfoot-cols.sfoot-cols-5 a{padding:10px 0;margin-bottom:0;font-size:15px;line-height:20px}
  .site-footer .foot-cols.foot-cols-5 h3,.sfoot-cols.sfoot-cols-5 h3{margin-bottom:6px}
  .ask-ai a.ask-ai-btn{width:44px;height:44px;border-radius:12px}
  .ask-ai a.ask-ai-btn img{width:20px;height:20px}
  .site-footer .foot-meta,.sfoot .sfoot-meta{font-size:12px}
  button.pill,.bchip,.scene,.andw-get,.shares button.sharebtn,.cj-in a{min-height:44px}
  .shares button.sharebtn,.cj-in a{display:inline-flex;align-items:center}
  .int-guide{padding-block:11px}
  button.nlp-x{width:44px;height:44px;top:6px;right:6px}
  .ucp-pill{height:44px}
  .share-btn{height:40px}
  .q summary,.install-help summary{min-height:44px}
  .install-help summary{display:inline-flex;align-items:center}
  /* /community: member-card labels were 9.5 and 10px */
  .ep-tag,.ep-chip,.ep time{font-size:11px}
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion:reduce){
  .btn-glass,.snav-cta,.andw-btn,.andw-get,.dd-btn,.btn-blue,.btn-grey,.b,.pill,.bchip,.ucp-pill,.share-btn,.sharebtn,.tag,
  .ask-ai-btn,.nlp-pill,.ask-chip,.arrow,.ap-card,.bc,.hub-card,.ch-card,.wy-card,.cv-more,.ch-read{transition:background-color 160ms ease,color 160ms ease,opacity 160ms ease}
  .btn-glass:active,.snav-cta:active,.andw-btn:active,.andw-get:active,.dd-btn:active,.btn-blue:active,.btn-grey:active,.b:active,
  .pill:active,.bchip:active,.ucp-pill:active,.share-btn:active,.sharebtn:active,.tag:active,.ask-ai-btn:active,.nlp-pill:active,
  .ask-chip:active,.arrow:active,.ap-card:hover,.bc:hover,.hub-card:hover,.ch-card:hover,.wy-card:hover,.cv-more:hover,.ch-read:hover{transform:none}
}
