/* Apple-style theme: the look and feel of apple.com/iphone.
   Light gray page, big borderless white cards with large rounded corners,
   SF Pro type, near-black text, Apple blue links, round gray arrow buttons.
   Loaded after each page's own styles, so this one file restyles the whole
   site. Pages set data-theme="light" on <html>, which turns off the old
   dark-mode rules. */
:root:root:root{
  color-scheme:light;
  --bg:#f5f5f7; --surface:#ffffff; --fg:#1d1d1f; --muted:#6e6e73; --line:#d2d2d7;
  --accent:#0066cc; --accent-soft:#ffffff; --olive:#6e6e73; --bar-bg:#e8e8ed; --grid:#d2d2d7;
  --ink:#1d1d1f; --hov:#1d1d1f; --new:#b64400; --red:#e30000; --btn:#e8e8ed; --btn-h:#dcdce1;
  --display:-apple-system,BlinkMacSystemFont,"SF Pro Display","Helvetica Neue",Inter,"Segoe UI",Roboto,Arial,sans-serif;
  --body:-apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue",Inter,"Segoe UI",Roboto,Arial,sans-serif;
}
body{background:var(--bg);color:var(--fg);font-size:17px;line-height:1.47;letter-spacing:-.022em;-webkit-font-smoothing:antialiased}
a{color:var(--accent)}
.wrap{padding-top:56px}

/* Type: big, tight, semibold, no all-caps anywhere */
h1,h2,h3,.nm,.cart,.sec,.dia .in,.hero .hl2,.eyebrow,.cnt,.cat,.flag,.badge,th,.tag,.hsg span{
  text-transform:none!important;font-family:var(--display)}
h1{font-weight:600;font-size:clamp(40px,6vw,64px);line-height:1.06;letter-spacing:-.015em;margin-top:4px}
h2,h3{letter-spacing:-.01em}
.eyebrow{color:var(--muted);font-size:17px;font-weight:600;letter-spacing:-.01em}
.lede{color:var(--muted);font-size:21px;line-height:1.38;letter-spacing:.011em;font-weight:400;max-width:58ch}
.grp{margin-top:56px}
.grp h2{font-weight:600;font-size:clamp(26px,3.4vw,32px);letter-spacing:-.005em;border:0;padding:0;margin:0 0 22px}

/* Cards: white, borderless, very rounded, lift on hover like apple.com */
.grid{gap:22px}
.card,.tip{position:relative;border:0!important;border-radius:28px;background:var(--surface);
  box-shadow:none!important;transition:transform .3s cubic-bezier(0,0,.5,1),box-shadow .3s cubic-bezier(0,0,.5,1)}
.card{padding:30px 30px 26px;gap:8px}
.tip{padding:30px 30px 28px}
a.card:hover,a.tip:hover{transform:scale(1.015);box-shadow:2px 4px 16px rgba(0,0,0,.10)!important}
.cnt{color:var(--fg);font-size:14px;font-weight:600;letter-spacing:-.01em}
.nm{font-weight:600;font-size:28px;line-height:1.14;letter-spacing:.004em}
.ds{color:var(--fg);font-size:16px;line-height:1.5}

/* "Open chart" becomes the round gray arrow button in the card's corner */
.card .go,.card.feature .go{font-size:0!important;align-self:flex-end;margin-top:18px;width:36px;height:36px;border-radius:50%;
  background:var(--btn);font-size:0;color:transparent;display:grid;place-items:center;transition:background .2s}
.card .go::after{content:"\203A";font:500 27px/1 var(--body);color:var(--fg);margin:-4px 0 0 2px}
.card:hover .go{background:var(--btn-h)}

/* "Start here" labels: Apple's small orange "New"-style text, no pill */
.card.feature{border:0;background:var(--surface)}
.card.feature .cnt{color:var(--fg)}
.badge{background:none;color:var(--new);padding:0;border-radius:0;font-size:14px;font-weight:600;letter-spacing:-.01em;margin:0}

/* Filter chips */
.chip{border:0;border-radius:999px;background:var(--btn);color:var(--fg);font:500 14px var(--body);padding:9px 16px;letter-spacing:-.01em}
.chip:hover{background:var(--btn-h)}
.chip[aria-pressed="true"]{background:var(--ink);color:#fff}
.count{color:var(--muted);font-size:14px}

/* Tables: white rounded panel, hairline rows, quiet headers */
.table-box{border:0;border-radius:28px;background:var(--surface);box-shadow:none}
th{background:var(--surface)!important;color:var(--muted);font-size:13px;font-weight:600;letter-spacing:-.01em;border-bottom:1px solid var(--line)}
th,td{border-color:#e8e8ed}
.cart{font-weight:600;letter-spacing:-.01em}
.num{font-weight:600}
.tag{border-radius:999px;background:var(--bg);color:var(--muted)}
.bar{border-radius:999px;background:var(--bar-bg)}
.bar span{border-radius:999px;background:var(--fg)}

/* Tips: no colored outlines; tiers shown with Apple-style labels */
.tip.must,.tip.should{border:0}
.cat{color:var(--muted);font-size:14px;font-weight:600;letter-spacing:-.01em}
.flag{background:none!important;padding:0;border-radius:0;font-size:14px;font-weight:600;letter-spacing:-.01em}
.tip.must .flag{color:var(--red)}
.tip.should .flag{color:var(--new)}
.tip h2{font-weight:600;font-size:24px;line-height:1.17;letter-spacing:.009em}
.more{color:var(--accent);font-weight:400;font-size:17px}
a.tip:hover .more{color:var(--accent);text-decoration:underline}

/* Scroll hint, MPBR warning and danger boxes (body prefix beats scroll-hint.js's own styles) */
body .sh-hint{border:0;border-radius:18px;background:var(--surface)}
body .sh-btn{border:0;border-radius:50%;width:36px;height:36px;background:var(--btn);color:var(--fg)}
body .sh-btn:hover:not(:disabled){background:var(--btn-h);color:var(--fg)}
body .sh-arrow{color:var(--accent)}
body .sh-warn{border:0;border-radius:18px;background:var(--surface);max-width:none}
body .sh-warn-icon,body .sh-warn strong,body .sh-thwarn{color:var(--new)}
body .sh-rail{border:0;background:transparent}
.danger{--danger:var(--red);border:0!important;border-radius:28px;background:var(--surface)!important}

/* Other content boxes on the tip pages get the same borderless rounded look */
.grp-card,.gm,.hs,.pair,.rv,.story,.pro,.hero{border:0!important;border-radius:28px!important;background:var(--surface);box-shadow:none!important}
.grp-card,.gm,.hs,.pair,.rv{padding:26px 28px}
.dia .in{color:var(--fg);font-weight:600}
.why>div{border:0!important;border-radius:22px!important;background:var(--surface);padding:22px 24px!important}
.gm h2,.hs h2,.rv h2{color:var(--fg);font-weight:600}
body *{text-transform:none!important}

/* Drawings: neutral steel gray */
.hero .st,.dg .st,.viz .st{fill:#8e8e93}
.hero .bf,.dg .bf,.viz .bf{fill:#48484a}

/* Ko-fi tip line at the bottom of every page */
.kofi{max-width:1200px;margin:48px auto 36px;padding:0 24px;text-align:center;color:var(--muted);font-size:14px}
.kofi a{color:var(--accent);text-decoration:none}
.kofi a:hover{text-decoration:underline}
