/* =====================================================================
   Tech Cheat Codes: PRO LOOK (Nov 15, 2026; Madison / Sparkle)
   Source: /workspace/reviews/site/top-sites-study-2026-11-15.md Part 3 (global rules, A Homepage, C News article, F Deals) + item 3 (dek).
   Spec: /workspace/tcc/design/pro-look-2026-11-15/SPEC.md. Loaded LAST in base.njk (after page CSS), reads tokens.css.
   Rules kept on purpose:
   - The header nav is untouched: same items, same order, one style for every link (For Business included; no .nav__biz rule anywhere).
   - No menu button: the text nav wraps (Jason: nothing hidden, no hamburger).
   - No fake image boxes: only real <img> wrappers get a frame; a card without a picture is text only.
   - Ad slots (.ad-slot) and their reserved heights are not touched.
   - At most one filled Signal Blue button per view: every deal button here is outline.
   ===================================================================== */

/* ---------- 1. Tokens: grid 1200 / text 720, gutters 24 / 16, type ---------- */
:root{
  --container-max:75rem;          /* 1200px page */
  --container-pad:24px;           /* gutter desktop */
  --content-max:45rem;            /* 720px article text column */
  --header-height:4rem;           /* 64px desktop header */
  --pl-muted:#475569;             /* meta, dek, credits (7.58:1 on white) */
  --pl-line:#E2E8F0;
  --pl-radius-img:8px;
  --pl-gap:24px;
  --pl-body:1.125rem;             /* 18px article body desktop */
  --pl-h1:2.5rem;                 /* 40px article H1 desktop */
  --pl-dek:1.25rem;               /* 20px dek desktop */
  --pl-h2:1.625rem;               /* 26px article H2 desktop */
  --pl-card-lead:1.75rem;         /* 28px lead card headline desktop */
  --pl-card:1.125rem;             /* 18px standard card headline */
  --pl-card-list:1rem;            /* 16px list card headline */
  --pl-section:1.375rem;          /* 22px section heads */
}
@media (max-width:760px){
  :root{--container-pad:16px;--pl-gap:16px;--pl-body:1.0625rem;--pl-h1:1.875rem;--pl-dek:1.125rem;--pl-h2:1.375rem;--pl-card-lead:1.5rem;--pl-section:1.25rem}
}

/* ---------- 2. Shared card parts: kicker, meta, dek, credit ---------- */
.kicker,.card-kicker{font-family:var(--font-body);font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--color-primary);margin:0}
.card-meta{font-family:var(--font-body);font-size:.8125rem;line-height:1.4;color:var(--pl-muted);margin:0}
.card-dek{font-size:1.0625rem;line-height:1.5;color:var(--pl-muted);margin:0}
.img-credit{font-family:var(--font-body);font-size:.75rem;line-height:1.4;color:var(--pl-muted);letter-spacing:0}
figure .img-credit,.lead-img>.img-credit{display:block;margin-top:6px}

/* ---------- 3. Header: compact, sticky on desktop; same link style for all nav items ---------- */
.site-header .wrap{min-height:var(--header-height)}
.logo{padding-block:8px}
.logo svg{height:36px}
@media (max-width:700px){
  /* Phone: the header scrolls away with the page (not sticky); the logo row is tight. Desktop stays sticky at 64px.
     site-fix-1116 nav addendum (Madison): the nav wraps so every link is visible; no sideways scroller. */
  .site-header{position:static}
  .site-header .wrap{min-height:0;padding-top:4px;padding-bottom:2px}
  .logo{padding-block:6px}
  .site-header .logo svg{height:26px}
  /* Mark FIX aa294c07 (Nov 15, 2026): 390px nav tap targets at least 44px tall.
     Madison 2026-11-16: wrap instead of the fix4-1115 horizontal scroller. */
  .site-header .nav{flex-wrap:wrap;overflow-x:visible;row-gap:8px;column-gap:.95rem}
  .site-header .nav a{min-height:44px;display:inline-flex;align-items:center;flex:0 0 auto}
}

/* ---------- 4. Section heads (one size site-wide on the homepage) ---------- */
.top-stories__h,.dfeat-sec .sh h2,.newsstrip__h,.adl__h{font-size:var(--pl-section);line-height:1.2;letter-spacing:-.01em;font-weight:800}
.dfeat-sec .sh{margin-bottom:16px;align-items:baseline}
/* dfeat-heading-1115 (Jason 4:08 PM ET): Daily Feature heading reads as the section title, larger than its card titles. Scoped to this heading only. */
.dfeat-sec .sh h2{font-size:2rem;line-height:1.15;font-weight:800;letter-spacing:-.015em;margin:0 0 4px}
.dfeat-sec .sh{align-items:flex-end;gap:16px 24px}
.dfeat-sec .sh>div{min-width:0}
.dfeat-sec .sh .dfeat__sub{margin:0}
@media (max-width:760px){.dfeat-sec .sh h2{font-size:1.625rem}.dfeat-sec .sh{align-items:flex-start;gap:8px}.dfeat-sec .sh>a{white-space:normal}}
.dfeat__sub{font-size:.9375rem;color:var(--pl-muted)}

/* ---------- 5. Homepage (study A) ---------- */
/* 5a. The slogan strip is visually hidden: the H1 stays in the page for search and screen readers, the first screen goes to news. */
.hero.hero--strip .tagline-daily{display:none}
.hero.hero--strip{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* 5b. Top Stories: 8/4 on desktop (lead card + up to 4 list cards); stacked on phones */
.top-stories{padding-top:20px}
.top-stories__h{border-top:3px solid var(--ink);padding-top:10px;margin-bottom:16px}
.top-stories__grid{display:grid;grid-template-columns:minmax(0,8fr) minmax(0,4fr);gap:var(--pl-gap);align-items:start}
.top-stories__grid--solo{grid-template-columns:minmax(0,1fr)}
.ts-lead{display:grid;gap:8px;align-content:start;min-width:0}
.ts-lead__art{border-radius:var(--pl-radius-img);background:var(--color-surface)}
.ts-lead__art.art--contain img{object-fit:cover}           /* the lead fills the 16:9 frame: no letterbox */
.ts-lead .img-credit{margin-top:-2px}
.ts-lead__h{font-size:var(--pl-card-lead);line-height:1.15;font-weight:800;letter-spacing:-.02em;margin:2px 0 0}
.ts-lead__h a,.ts-item__h a{color:var(--ink);text-decoration:none}
.ts-lead__h a:hover,.ts-item__h a:hover{text-decoration:underline;text-decoration-thickness:2px}
.ts-list{list-style:none;margin:0;padding:0;display:grid;min-width:0}
.ts-item{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;padding:0 0 14px;margin-bottom:14px;border-bottom:1px solid var(--pl-line)}
.ts-item:last-child{border-bottom:0;margin-bottom:0;padding-bottom:0}
.ts-item:has(.ts-item__art){grid-template-columns:120px minmax(0,1fr)}  /* only a real picture gets a column */
.ts-item__art{border-radius:6px;background:var(--color-surface)}
.ts-item__txt{display:grid;gap:4px;align-content:start;min-width:0}
.ts-item__h{font-size:var(--pl-card-list);line-height:1.3;font-weight:700;letter-spacing:0;margin:0;overflow-wrap:break-word}
@media (max-width:1000px){.top-stories__grid{grid-template-columns:minmax(0,1fr)}}
@media (max-width:760px){
  .top-stories{padding-top:12px}
  .ts-item:has(.ts-item__art){grid-template-columns:minmax(0,1fr) 112px}
  .ts-item__art{grid-column:2;grid-row:1}
  .ts-item__txt{grid-column:1;grid-row:1}
}

/* 5c. Daily Features: 2 equal 16:9 photo cards right under Top Stories (stacked on phones) */
.dfeat-sec.section--tight{padding-block:28px 8px}
.dfeat{gap:var(--pl-gap)}
.dfeat__card.sec-card{border:0;padding:0;background:none;box-shadow:none;border-radius:0;gap:6px}
.dfeat__card.sec-card:hover{box-shadow:none}
.dfeat__art{border-radius:var(--pl-radius-img)}
.dfeat__card>.lc__m:first-of-type{font-family:var(--font-body);font-size:.75rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--color-primary);margin-top:6px}
.dfeat__card>.lc__m:last-of-type{font-family:var(--font-body);font-size:.8125rem;letter-spacing:0;text-transform:none;color:var(--pl-muted)}
.dfeat__card h3{font-size:clamp(1.25rem,2vw,1.5rem);line-height:1.2;font-weight:800}
.dfeat__card:hover h3{text-decoration:underline;text-decoration-thickness:2px}
.dfeat__teaser{font-size:1.0625rem;color:var(--pl-muted)}

/* 5d. Homepage story strips (New Fixes, Latest news, Guides): flat cards, picture radius only, body-font meta */
.home-flow .newsstrip .ni--art{border:0;box-shadow:none;background:none;padding:0;gap:6px}
.home-flow .newsstrip .ni--art:hover{transform:none;box-shadow:none}
.home-flow .newsstrip .ni--art>:not(.ni__art){padding-inline:0}
.home-flow .newsstrip .ni__art{border-radius:var(--pl-radius-img)}
.home-flow .newsstrip .ni--art .ni__top{position:static}
.home-flow .newsstrip .ni__h{font-size:1.0625rem;line-height:1.3}
.home-flow .newsstrip .ni--art:hover .ni__h a{color:var(--ink);text-decoration:underline}
.home-flow .newsstrip .ni__meta{font-family:var(--font-body);font-size:.8125rem}
.home-flow .newsstrip__row{gap:var(--pl-gap)}

/* ---------- 6. News article (study C) ---------- */
.crumb{font-family:var(--font-body);font-size:.8125rem}
.article .intro{padding-top:24px}
.article .intro>*{max-width:52.5rem}                         /* H1 and dek line length: ~840px */
.article .intro h1{font-size:var(--pl-h1);line-height:1.15;font-weight:800;letter-spacing:-.02em;margin:.5rem 0 0}
.article-dek{font-size:var(--pl-dek);line-height:1.45;color:var(--pl-muted);margin:12px 0 0;max-width:var(--content-max)}
.article .byline{margin-top:16px;padding-block:12px;border-block:1px solid var(--pl-line);max-width:var(--content-max);gap:4px 12px}
.article .byline__who{font-size:.9375rem}
.article .byline__dates{font-family:var(--font-body);font-size:.8125rem;color:var(--pl-muted)}
@media (min-width:761px){.article .byline__dates{flex-basis:auto}}
.article .lead-img{margin-top:20px;max-width:calc(var(--content-max) + 2 * var(--container-pad))}
.article .lead-img img{max-width:100%;border:0;border-radius:var(--pl-radius-img)}
.article .lead-img:not(.lead-img--contain) img{aspect-ratio:16/9;object-fit:cover;object-position:center center}
.article__layout{padding-block:24px}
.article__layout--single{grid-template-columns:minmax(0,var(--content-max))}
.article .prose{font-size:var(--pl-body);line-height:1.6}
.article__body p{max-width:none}
.article .prose h2{font-size:var(--pl-h2);line-height:1.25;margin-top:2rem}
.article .prose figure img{border-radius:var(--pl-radius-img)}

/* ---------- 7. Deal cards (study F + item 5): homepage rail + /deals/ ---------- */
.adl{border:0;padding:0;border-radius:0;background:none;margin:32px 0}
.adl__sub,.adl__note{font-size:.9375rem;color:var(--pl-muted)}
.adl__grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--pl-gap)}
.deals-page .adl__grid{grid-template-columns:repeat(2,minmax(0,1fr))}       /* /deals/: 2 columns desktop */
@media (max-width:1000px){.adl__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:600px){.adl__grid,.deals-page .adl__grid{grid-template-columns:minmax(0,1fr)}.adl{padding:0;margin:24px 0}}
.adl__card{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto auto auto 1fr auto;grid-template-areas:"img img" "off off" "name name" "price reg" "text text" "cta cta";column-gap:10px;row-gap:0;padding:16px;border:1px solid var(--pl-line);border-radius:var(--pl-radius-img);background:#fff;min-width:0}
.adl__card>*{min-width:0;margin:0}
/* real product photo only (no box without one): 1:1 on white, padded contain for cutouts, max 240px, credit under the box */
.adl__img{grid-area:img;margin:0 0 10px;display:flex;flex-direction:column;align-items:center;background:#fff}
/* Associates: the product photo must not be a link to Amazon (no API images yet). pointer-events:none on the img keeps a future stretched CTA from making the thumb clickable; the credit link stays clickable. */
.adl__img img{display:block;width:100%;max-width:240px;aspect-ratio:1/1;height:auto;object-fit:contain;object-position:center;padding:16px;box-sizing:border-box;background:#fff;pointer-events:none}
.adl__img .img-credit{align-self:stretch;margin:6px 0 0;font-size:.75rem;line-height:1.35;color:var(--pl-muted);pointer-events:auto}
/* amber % badge: top-left over the photo (offsets from the shrink-wrap wrapper); in the flow when there is no photo */
.adl__photo{position:relative;display:inline-block;width:fit-content;max-width:100%}
.adl__off{grid-area:off;justify-self:start;margin-bottom:8px;background:var(--amber);color:var(--ink);font-size:.8125rem;font-weight:800;line-height:1;padding:6px 8px;border-radius:4px}
.adl__card:has(.adl__img) .adl__off{position:absolute;top:12px;left:12px;z-index:1;margin:0}
.adl__name{grid-area:name;font-size:var(--pl-card);line-height:1.3;font-weight:700;letter-spacing:-.01em}
/* sale price big, struck regular price beside it; the words "Sale price"/"Regular price" stay for screen readers */
.adl__price{grid-area:price;align-self:baseline;margin-top:6px;font-size:1.5rem;font-weight:800;line-height:1.1;letter-spacing:-.02em;color:var(--ink)}
.adl__reg{grid-area:reg;align-self:baseline;font-size:1rem;color:var(--pl-muted)}
.adl__price .adl__label,.adl__reg .adl__label{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.adl__text{grid-area:text;font-size:.9375rem;line-height:1.5;color:#334155;margin-top:8px}
.adl__cta{grid-area:cta;margin:0;padding-top:14px}
/* outline button (the page keeps at most one filled Signal Blue button per view) */
.adl__cta a{position:relative;display:flex;align-items:center;justify-content:center;width:100%;min-height:44px;line-height:1.2;padding:10px 16px;border-radius:var(--radius-sm);background:#fff;color:var(--color-primary-strong);border:2px solid var(--color-primary-strong);font-family:var(--font-heading);font-weight:700;text-decoration:none}
.adl__cta a:hover{background:var(--color-primary-soft);color:var(--color-primary-strong)}
/* Keep any ::after hit area inside the button, not stretched over the photo (the card is position:relative). */
.adl__cta a::after{content:none}

/* /deals/ top: plain light header like a publication (was a dark full-bleed hero) */
.deals-page .dh{background:#fff;color:var(--ink);padding:24px 0 8px}
.deals-page .dh::before,.deals-page .dh::after{display:none}
.deals-page .dh__crumb,.deals-page .dh__crumb a{color:var(--pl-muted)}
.deals-page .dh__title{font-size:var(--pl-h1);line-height:1.15;letter-spacing:-.02em;color:var(--ink);margin:.5rem 0 0;max-width:none}
.deals-page .dh__title em{display:inline;color:var(--ink)}
.deals-page .dh__lead{font-size:var(--pl-dek);line-height:1.45;color:var(--pl-muted);margin-top:12px;max-width:var(--content-max)}
.deals-page .dh__disc{color:var(--pl-muted);max-width:var(--content-max)}
.deals-page .dh__status{margin-top:14px;background:var(--mist);border-color:var(--pl-line);color:var(--ink);font-family:var(--font-body)}

/* ---------- 8. Tap targets: share buttons under articles were 37px tall ---------- */
.share button{min-height:44px}

/* ---------- fix4-1115 (Marc noon sweep, Nov 15, 2026) ---------- */
/* /news/ compact card times stay on one line at 1280px (no lone "AM ET"). */
.news-list .ni__meta time{white-space:nowrap}

/* Article breadcrumbs: trailing slash stays with the preceding item so a wrap never starts with a lone '/'. */
.crumb li+li::before{content:none}
.crumb li:not(:last-child)::after{content:"/";margin-left:.4rem;color:var(--color-border-strong)}

/* /news/ cards without a passed photo keep the same frame as photo cards so the grid does not break.
   No <img> (Jordan is sourcing a real photo for google-links-phone-number-all-android-accounts). */
.news-grid .ni--pending{padding:10px 10px 14px;background:var(--white);border:1px solid var(--line);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);display:grid;gap:8px;align-content:start}
.news-grid .ni__art--pending{aspect-ratio:16/9;border-radius:var(--radius-md);background:var(--color-surface,#F3F6FB)}

/* fix4-1115: Apple press photos on a white studio (e.g. the New Fixes Apple TV 4K lead-v2) fill a 16:9 contain box, so a
   background behind the image would not show. A light gray hairline keeps the thumb from disappearing into the white card. */
.ni__art.art--contain,.dfeat__art.art--contain,.ts-item__art.art--contain{
  background:var(--line,#E2E8F0);
  box-shadow:inset 0 0 0 1px var(--line,#E2E8F0);
}
