/* ==========================================================================
   Cupertino News: editorial theme. Loaded after the base stylesheets; it
   re-skins them (paper background, serif headlines, hard rules, red accent).
   ========================================================================== */
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-latin-wght-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Chomsky"; src: url("../fonts/chomsky.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --paper: #fbf8f3;
  --paper-2: #f2ece1;
  --ink: #18140f;
  --bg: var(--paper);
  --bg-alt: var(--paper-2);
  --soft: var(--paper-2);
  --text: var(--ink);
  --text-2: #5c5448;
  --text-3: #877e70;
  --line: #d7cebd;
  --line-soft: rgba(24, 20, 15, .16);
  --accent: #c2381f;
  --accent-d: #a02c16;
  --link: var(--accent);
  --link-dark: #ff9d86;
  --btn: var(--accent);
  --btn-h: var(--accent-d);
  --green: #1f7a46;
  --red: #c2381f;
  --radius: 3px;
  --radius-lg: 4px;
  --max: 1080px;
  --nav-h: 50px;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --font: var(--sans);
  --font-display: var(--serif);
  --shadow: 5px 5px 0 var(--ink);
  --hard: 4px 4px 0 var(--ink);
}

html { scroll-padding-top: 80px; }
body { font-family: var(--sans); font-size: 16px; line-height: 1.55; letter-spacing: 0; padding-top: 0; background: var(--paper); color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: -.012em; line-height: 1.12; }
a { color: var(--accent); }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 0; }

/* ------------------------------------------------------------- masthead */
.globalnav { display: contents; }
.masthead { background: var(--paper); text-align: center; padding: 0 24px; }
.masthead__bar {
  width: min(var(--wide, 1280px), 100%); margin: 0 auto; display: flex; align-items: center; gap: 22px; min-height: 40px;
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); border-bottom: 1px solid var(--line-soft);
}
.masthead__date { flex: 1; text-align: left; font-weight: 500; }
.masthead__tick { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.masthead__tick:hover { text-decoration: none; color: var(--accent); }
.masthead__tick b { font-weight: 700; margin-right: 4px; }
.masthead__tick .up { color: var(--green); } .masthead__tick .down { color: var(--accent); }
.masthead__tools { display: flex; align-items: center; gap: 0; }
.masthead .iconbtn { color: var(--ink); width: 34px; height: 34px; border-radius: 0; }
.masthead .iconbtn:hover { background: var(--ink); color: var(--paper); }
.masthead__brand {
  display: block; margin: 20px auto 0; font-family: "Chomsky", "Newsreader", serif; font-weight: 400; font-size: clamp(38px, 6.5vw, 72px); line-height: 1.1;
  letter-spacing: 0; color: var(--ink); width: fit-content; padding: 0 .08em;
}
.masthead__brand em { font-style: normal; font-weight: 400; color: var(--ink); letter-spacing: 0; }
.masthead__brand:hover { text-decoration: none; }
.masthead__tag { margin: -6px 0 18px; font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--text-2); }

.navbar { position: sticky; top: 0; z-index: 900; background: var(--paper); border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink); }
.navbar__inner { width: min(var(--wide, 1280px), calc(100% - 48px)); margin: 0 auto; height: calc(var(--nav-h) - 4px); display: flex; align-items: center; justify-content: center; }
.globalnav__links { display: flex; align-items: center; justify-content: center; gap: 4px; flex: 0 1 auto; max-width: none; list-style: none; margin: 0; padding: 0; }
.globalnav__links > li > a, .globalnav__links .subtoggle {
  display: flex; align-items: center; gap: 6px; height: calc(var(--nav-h) - 4px); padding: 0 16px; line-height: 1; font: 600 12.5px/1 var(--sans);
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink); background: none; border: 0; cursor: pointer; transition: none; position: relative;
}
.globalnav__links > li > a:hover, .globalnav__links .subtoggle:hover, .globalnav__links .has-sub:hover .subtoggle, .globalnav__links .has-sub:focus-within .subtoggle { color: var(--accent); text-decoration: none; background: none; }
.globalnav__links > li > a.is-active, .globalnav__links .subtoggle.is-active { color: var(--accent); }
.globalnav__links > li > a.is-active::after, .globalnav__links .subtoggle.is-active::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 3px; background: var(--accent); }
.globalnav__links .subtoggle svg { opacity: 1; }
.globalnav__links .subnav {
  position: absolute; top: calc(100% + 1px); left: 0; min-width: 210px; margin: 0; padding: 6px; list-style: none; background: var(--paper);
  border: 1px solid var(--ink); border-radius: 0; box-shadow: var(--hard); -webkit-backdrop-filter: none; backdrop-filter: none;
}
.globalnav__links .subnav a { display: block; padding: 10px 12px; font: 500 15px/1.2 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); border-radius: 0; line-height: 1.2; height: auto; }
.globalnav__links .subnav a:hover, .globalnav__links .subnav a.is-active { background: var(--ink); color: var(--paper); text-decoration: none; }
.navbar__menu { display: none; }

@media (max-width: 900px) {
  .masthead { padding: 0 16px; }
  .masthead__tag { display: none; }
  .masthead__brand { margin: 14px auto 14px; }
  .masthead__tick { display: none; }
  .navbar__inner { width: calc(100% - 32px); justify-content: space-between; flex-wrap: wrap; height: auto; min-height: calc(var(--nav-h) - 4px); }
  .globalnav__links { display: none; }
  .navbar__menu { display: flex; align-items: center; gap: 10px; margin-left: auto; height: calc(var(--nav-h) - 4px); background: none; border: 0; cursor: pointer; font: 600 12.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); padding: 0; width: 100%; justify-content: space-between; }
  .navbar__menu svg { width: 18px; height: 18px; }
  body.nav-open { overflow: auto; }
  body.nav-open .globalnav__links { display: flex; flex-direction: column; align-items: stretch; width: 100%; padding: 4px 0 14px; gap: 0; max-height: calc(100vh - 140px); overflow-y: auto; }
  body.nav-open .globalnav__links > li > a { height: auto; padding: 13px 0; font-size: 15px; border-top: 1px solid var(--line-soft); }
  body.nav-open .globalnav__links > li > a.is-active::after { display: none; }
  body.nav-open .globalnav__links .has-sub, body.nav-open .globalnav__links .subnav { display: contents; position: static; box-shadow: none; border: 0; padding: 0; }
  body.nav-open .globalnav__links .subtoggle { display: none; }
  body.nav-open .globalnav__links .subnav a { padding: 13px 0; font: 600 12.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; border-top: 1px solid var(--line-soft); background: none; color: var(--ink); }
}

/* search + menus */
.searchbox { top: var(--nav-h); background: var(--paper); border-bottom: 1px solid var(--ink); }
.user-menu, .notif-panel { border: 1px solid var(--ink); border-radius: 0; box-shadow: var(--hard); background: var(--paper); }

/* ------------------------------------------------------------- controls */
.btn { border-radius: 0; font-family: var(--sans); font-weight: 600; letter-spacing: .02em; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); box-shadow: none; transition: transform .12s, box-shadow .12s, background .12s; }
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; text-decoration: none; transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); }
.btn--gray, .btn--light, .btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--gray:hover, .btn--light:hover, .btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--danger { background: var(--accent); border-color: var(--accent); }
.input, .select, .textarea, input[type=text], input[type=email], input[type=password], input[type=search], textarea, select { border-radius: 0; border: 1px solid var(--ink); background: #fff; }
.input:focus, .select:focus, .textarea:focus, textarea:focus, input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--ink); box-shadow: none; }
.card, .tile, .pcard, .hubcard, .catcard, .personcard, .railcard, .sidebox, .composer, .authcard, .authbox, .post__card, .factbox, .source-box { border-radius: 0; }
.badge, .chip, .tagrow a, .tagcloud a, .role-badge { border-radius: 0; }
.eyebrow, .acard__section, .newsitem__section { font-family: var(--sans); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 11.5px; }
.crumbs { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.flash { border-radius: 0; border: 1px solid var(--ink); }
hr { border: 0; border-top: 1px solid var(--line-soft); }

/* ------------------------------------------------------------- footer */
.sitefooter { background: var(--ink); color: #d9d1c3; margin-top: 80px; border-top: 6px solid var(--accent); }
.sitefooter a { color: #efe8da; }
.sitefooter h5 { font: 700 11.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.sitefooter__note, .sitefooter__legal { color: #a39a8a; }

/* ------------------------------------------------------------- surfaces */
.hero { background: var(--paper); }
.hero--dark, .section--dark, .band--dark, .tile--dark { background: var(--ink); color: #f2ecdf; }
.hero--dark .eyebrow, .section--dark .eyebrow { color: #ff9d86; }
.section--alt, .band { background: var(--paper-2); }
.localnav { background: rgba(251, 248, 243, .94); border-bottom: 1px solid var(--ink); top: var(--nav-h); -webkit-backdrop-filter: none; backdrop-filter: none; }
.localnav__title { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.localnav__links a { color: var(--ink); font: 600 11.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.localnav__links a:hover, .localnav__links a.is-active { color: var(--accent); }
.localnav__links .btn { color: var(--paper); padding: 10px 14px; }
.localnav__links .btn:hover { color: #fff; }
.headline, .headline--xl, .headline--md { font-family: var(--serif); letter-spacing: -.02em; font-weight: 600; }

/* ------------------------------------------------------------- news feed */
.news-layout { gap: 56px; }
.sectiontabs { gap: 0; margin-bottom: 34px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.sectiontabs a { border-radius: 0; background: transparent; padding: 12px 18px; font: 600 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); border-right: 1px solid var(--line-soft); }
.sectiontabs a:hover { background: var(--paper-2); }
.sectiontabs a.is-active { background: var(--ink); color: var(--paper); }
.newsitem { grid-template-columns: 230px 1fr; gap: 30px; padding: 34px 0; border-bottom: 1px solid var(--ink); }
.newsitem:first-child { padding-top: 6px; }
.newsitem__cover { border-radius: 0; border: 1px solid var(--ink); aspect-ratio: 1 / 1; }
.newsitem__cover img { filter: none; }
.newsitem h2 { font-size: clamp(26px, 2.8vw, 36px); font-weight: 600; letter-spacing: -.02em; line-height: 1.08; }
.newsitem h2 a { color: var(--ink); }
.newsitem h2 a:hover { color: var(--accent); }
.newsitem__text p { font-family: var(--serif); font-size: 19px; line-height: 1.5; color: #3c352b; }
.newsitem__foot { font-size: 12px; letter-spacing: .02em; }
.newsitem__foot a.newsitem__more { font: 700 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.newsitem__foot a.chip { background: transparent; border: 1px solid var(--line); color: var(--text-2); padding: 3px 8px; font-size: 12px; }
.newsitem .acard__meta { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; }
.acard, .acard--row .acard__cover { border-radius: 0; }
.acard--row { border-radius: 0; }
.acard { border: 1px solid var(--ink); background: #fff; }
.acard:hover { transform: translate(-3px, -3px); box-shadow: var(--hard); }
.acard h3 { font-family: var(--serif); font-weight: 600; }
.sidebox { background: transparent; border-radius: 0; border-top: 3px solid var(--ink); padding: 18px 0 8px; margin-bottom: 30px; }
.sidebox > h3 { font: 700 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.sidebox .acard--row { border: 0; background: transparent; padding: 12px 0; margin: 0; border-bottom: 1px solid var(--line-soft); }
.sidebox .acard--row h3 { text-transform: none; letter-spacing: -.01em; font: 600 17px/1.2 var(--serif); }
.sidebox .acard--row .acard__meta { font-size: 11px; }
.sidebox .acard--row:hover { background: transparent; transform: none; box-shadow: none; }
.sidebox .acard--row .acard__cover { width: 78px; border-radius: 0; }
.sidelist li { border-color: var(--line-soft); }
.sidelist a { font-size: 15px; }
.sidelist a:hover { color: var(--accent); text-decoration: none; }

/* ------------------------------------------------------------- article */
.article-head { padding: 40px 0 26px; }
.article-head h1 { font-size: clamp(36px, 5.6vw, 68px); font-weight: 600; line-height: 1.02; letter-spacing: -.025em; max-width: 960px; }
.article-head .deck { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.3vw, 26px); line-height: 1.35; color: var(--text-2); }
.article-head .acard__section { font-size: 12px; }
.byline { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 12px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line-soft); max-width: 640px; margin: 0 auto; }
.byline img { border-radius: 50%; border: 1px solid var(--ink); }
.article-cover { border-radius: 0; border: 1px solid var(--ink); }
.article-body .prose { font-family: var(--serif); font-size: 21px; line-height: 1.62; letter-spacing: 0; color: #231d15; }
.article-body .prose > p:first-of-type::first-letter { float: left; font-family: var(--serif); font-weight: 700; font-size: 4.3em; line-height: .82; padding: .06em .1em 0 0; color: var(--accent); }
.prose h2, .prose h3, .prose h4 { font-family: var(--serif); }
.prose a { color: var(--accent); }
.prose blockquote { border-left: 4px solid var(--accent); font-family: var(--serif); font-style: italic; font-size: 1.15em; color: var(--ink); }
.prose img, .prose pre, .prose code { border-radius: 0; }
.rumor-note { border-radius: 0; background: var(--paper-2); color: var(--ink); border-left: 4px solid var(--accent); font-size: 14.5px; }
.source-box { border-radius: 0; border: 1px solid var(--ink); background: #fff; min-height: 90px; }
.tagrow a { background: transparent; border: 1px solid var(--line); color: var(--text-2); }
.related-products a { border-radius: 0; border: 1px solid var(--line); background: #fff; }
.comments h2 { font-size: 30px; }
.comment img { border: 1px solid var(--ink); }
.comment__body { font-family: var(--serif); font-size: 18px; }

/* ------------------------------------------------- square everything */
*, *::before, *::after { border-radius: 0 !important; }
.swatch, .swatch::after, .rail__dot, .highlights li::before, .pperson img, .person-hero img, .threadrow__avatar, .post__avatar img,
.profile-head img, .byline img, .comment img, .catdot, img[src*="/avatar/u/"], .iconbtn img, .masthead .iconbtn img, .composer img { border-radius: 50% !important; }
.ap .dot, .iconbtn .dot { border-radius: 8px !important; }

/* ------------------------------------------------------------- $AAPL */
.ap .panel { border: 1px solid var(--line); border-top: 3px solid var(--ink); background: #fff; box-shadow: none; }
.ap .panel h2 { font-family: var(--serif); font-size: 24px; letter-spacing: -.015em; }
.ap .stat { background: #fff; border: 1px solid var(--line); box-shadow: none; }
.ap .stat .v { font-family: var(--serif); font-weight: 600; }
.ap-top .tick { background: var(--ink); color: var(--paper); letter-spacing: .12em; text-transform: uppercase; font-size: 11.5px; }
.ap-id h1 { font-family: var(--serif); letter-spacing: -.025em; }
.ap-quote .px { font-family: var(--serif); }
.ap-tabs { background: var(--paper); border-bottom: 1px solid var(--ink); top: var(--nav-h); -webkit-backdrop-filter: none; backdrop-filter: none; }
.ap-tabs a { text-transform: uppercase; letter-spacing: .1em; font-size: 12px; font-weight: 600; }
.ap-lede, .callout { font-family: var(--serif); }
.callout { background: var(--paper-2); border-left: 4px solid var(--accent); color: var(--ink); }

/* ------------------------------------------------------------- mobile fixes */
.railcard > * { min-width: 0; }
.railcard__facts { flex-wrap: wrap; }
@media (max-width: 640px) {
  .newsitem { grid-template-columns: 1fr; gap: 14px; padding: 24px 0; }
  .newsitem__cover { aspect-ratio: 16 / 9; }
  .sectiontabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .sectiontabs a { flex: none; }
  .article-body .prose { font-size: 19px; }
  .news-layout { gap: 24px; }
}
.railcard__facts .chip { max-width: 100%; flex-wrap: wrap; white-space: normal; }
.railcard__facts { max-width: 100%; }

/* search overlay (script toggles body.search-open) */
.searchbox { inset: 0 0 auto 0; z-index: 1000; background: var(--paper); border-bottom: 3px solid var(--ink); box-shadow: 0 18px 40px rgba(24, 20, 15, .18); -webkit-backdrop-filter: none; backdrop-filter: none; }
body.search-open .searchbox { display: block; animation: drop .22s var(--ease); }
.searchbox input { font-family: var(--serif); font-size: 32px; font-weight: 500; letter-spacing: -.01em; }
.searchbox form { border-bottom: 1px solid var(--ink); }
.searchbox__results a { border-radius: 0; }
.searchbox__results a:hover { background: var(--paper-2); text-decoration: none; }
.searchbox input, .searchbox input:focus { border: 0; outline: none; background: transparent; box-shadow: none; }

/* Story photos fill the whole frame (cropped, never shrunk) */
.newsitem__cover img.art,
.article-cover img.art { width: 100%; height: 100%; max-width: none; object-fit: cover; filter: none; }

/* ---------------------------------------------------------------- rumors */
.rumors { padding-top: 34px; padding-bottom: 60px; }
.rumors__head { border-bottom: 3px solid var(--ink); padding-bottom: 22px; margin-bottom: 8px; }
.rumors__head h1 { font-family: var(--serif); font-size: clamp(40px, 6vw, 68px); font-weight: 600; letter-spacing: -.03em; line-height: 1; margin: 0 0 12px; }
.rumors__head p { font-family: var(--serif); font-size: 19px; color: #3c352b; max-width: 640px; margin: 0; line-height: 1.45; }
.rumors__label { font: 700 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; margin: 38px 0 18px; color: var(--accent); }
.rumors__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 26px; }
.rumor { border: 1px solid var(--ink); background: #fff; display: flex; flex-direction: column; min-width: 0; }
.rumor__img { aspect-ratio: 4 / 3; background: var(--paper-2); border-bottom: 1px solid var(--ink); overflow: hidden; }
.rumor__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rumor__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.rumor__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; font: 700 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.rumor__cat { color: var(--text-2); }
.rumor__badge { padding: 5px 8px; border: 1px solid var(--ink); }
.rumor__badge--likely { background: var(--ink); color: var(--paper); }
.rumor__badge--possible { background: transparent; color: var(--ink); }
.rumor__badge--early { background: transparent; color: var(--text-2); border-style: dashed; border-color: var(--text-2); }
.rumor__badge--ok { background: var(--accent); color: #fff; border-color: var(--accent); }
.rumor h3 { font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; margin: 4px 0 0; }
.rumor__when { font: 600 14px/1.3 var(--sans); color: var(--accent); margin: 0; }
.rumor__sum { font-family: var(--serif); font-size: 17px; line-height: 1.45; color: #3c352b; margin: 0; }
.rumor__specs { margin: 2px 0 0; padding-left: 18px; font: 14px/1.5 var(--sans); color: var(--ink); }
.rumor__src { margin: auto 0 0; padding-top: 10px; font: 12px/1.4 var(--sans); color: var(--text-2); border-top: 1px solid var(--line-soft); }
.rumor__src a { color: var(--ink); text-decoration: underline; }
.rumors__more { margin-top: 40px; font: 700 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.rumors__more a { color: var(--accent); }
