@import url("design-tokens.css");

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; line-height: 1.65; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--ot-deep-navy); font-weight: var(--ot-font-bold); line-height: 1.08; letter-spacing: -.035em; }
.shell { width: min(calc(100% - 3rem), var(--ot-content-width)); margin-inline: auto; }
.section { padding: 6rem 0; }
.skip-link { position: fixed; z-index: 10; top: .75rem; left: .75rem; padding: .75rem 1rem; color: var(--ot-white); background: var(--ot-deep-navy); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.preview-bar { padding: .45rem 1rem; color: var(--ot-deep-navy); background: var(--ot-light-blue); border-bottom: 1px solid var(--ot-divider); font-size: .72rem; font-weight: var(--ot-font-semibold); overflow-wrap: anywhere; text-align: center; }
.site-header { background: var(--ot-white); border-bottom: 1px solid var(--ot-divider); }
.nav-wrap { min-height: 7rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: flex; width: 16rem; align-items: center; }
.brand img { width: 100%; height: auto; }
.nav-wrap nav, .footer-grid nav { display: flex; align-items: center; gap: 1.7rem; color: var(--ot-oceans-navy); font-size: .78rem; font-weight: var(--ot-font-semibold); }
.nav-wrap nav a:hover, .footer-grid nav a:hover { color: var(--ot-transit-blue); }
.masthead { padding: 5.5rem 0; color: var(--ot-white); background: var(--ot-deep-navy); }
.masthead-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 4rem; align-items: end; }
.masthead-grid > * { min-width: 0; }
.masthead h1 { margin-top: .9rem; color: var(--ot-white); font-size: clamp(4rem, 9vw, 7.6rem); }
.masthead-grid > p { max-width: 100%; color: var(--ot-divider); font-size: clamp(1.1rem, 2vw, 1.45rem); overflow-wrap: anywhere; }
.eyebrow { color: var(--ot-transit-blue); font-size: .72rem; font-weight: var(--ot-font-bold); letter-spacing: .14em; text-transform: uppercase; }
.eyebrow.light { color: var(--ot-ocean-cyan); }
.eyebrow span { display: inline-block; width: 1.9rem; height: .15rem; margin-right: .65rem; vertical-align: middle; background: currentColor; }
.topic-bar { overflow-x: auto; border-bottom: 1px solid var(--ot-divider); background: var(--ot-white); }
.topic-bar .shell { min-height: 3.75rem; display: flex; align-items: center; gap: 2rem; color: var(--ot-secondary-text); font-size: .68rem; font-weight: var(--ot-font-semibold); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.topic-bar strong { color: var(--ot-transit-blue); }
.lead { background: linear-gradient(135deg, var(--ot-white), var(--ot-light-blue)); }
.lead-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 4rem; align-items: center; }
.lead-image { overflow: hidden; border-radius: var(--ot-radius-large); box-shadow: var(--ot-shadow-soft); }
.lead-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.story-meta { display: flex; flex-wrap: wrap; gap: .6rem 1rem; color: var(--ot-secondary-text); font-size: .67rem; font-weight: var(--ot-font-semibold); letter-spacing: .06em; text-transform: uppercase; }
.story-meta span { color: var(--ot-transit-blue); }
.lead h2 { margin-top: 1.1rem; font-size: clamp(2.5rem, 4.7vw, 4.7rem); }
.lead article > p { margin: 1.4rem 0 2rem; color: var(--ot-secondary-text); font-size: 1rem; }
.lead-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.button { display: inline-flex; min-height: 3.1rem; align-items: center; gap: .6rem; padding: .75rem 1.2rem; color: var(--ot-white); background: var(--ot-transit-blue); border-radius: var(--ot-radius-small); font-size: .78rem; font-weight: var(--ot-font-bold); }
.status { display: inline-flex; align-items: center; min-height: 2rem; padding: .35rem .6rem; color: var(--ot-secondary-text); border: 1px solid var(--ot-divider); border-radius: 999px; font-size: .6rem; font-weight: var(--ot-font-semibold); letter-spacing: .07em; text-transform: uppercase; }
.section-heading { display: grid; grid-template-columns: 1.2fr .8fr; gap: 4rem; align-items: end; margin-bottom: 3rem; }
.section-heading h2 { max-width: 12ch; margin-top: .8rem; font-size: clamp(2.7rem, 5vw, 4.7rem); }
.section-heading > p { color: var(--ot-secondary-text); }
.story-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.story-card { display: grid; grid-template-columns: 13rem 1fr; overflow: hidden; border: 1px solid var(--ot-divider); border-radius: var(--ot-radius-medium); background: var(--ot-white); }
.story-card img { width: 100%; height: 100%; min-height: 16rem; object-fit: cover; }
.story-card > div { display: flex; flex-direction: column; padding: 1.35rem; }
.story-card h3 { margin-top: .9rem; font-size: 1.45rem; }
.story-card p { margin: .75rem 0 1.2rem; color: var(--ot-secondary-text); font-size: .84rem; }
.story-card .status { align-self: flex-start; margin-top: auto; }
.editorial-standard { padding: 5rem 0; color: var(--ot-white); background: var(--ot-oceans-navy); }
.standard-grid { display: grid; grid-template-columns: .55fr 1.1fr .85fr; gap: 3rem; align-items: start; }
.standard-grid h2 { color: var(--ot-white); font-size: clamp(2.2rem, 4vw, 3.8rem); }
.standard-grid > p:last-child { color: var(--ot-divider); }
footer { background: var(--ot-white); }
.footer-grid { display: grid; grid-template-columns: .8fr 1fr .8fr; align-items: center; gap: 3rem; padding: 3.5rem 0; }
.footer-grid > p { color: var(--ot-secondary-text); font-size: .82rem; }
.footer-grid nav { justify-content: flex-end; }
.footer-bottom { display: flex; justify-content: space-between; padding: 1.2rem 0; border-top: 1px solid var(--ot-divider); color: var(--ot-secondary-text); font-size: .68rem; }

/* Article */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 3rem; color: var(--ot-divider); font-size: .72rem; }
.article-header { padding: 4rem 0 5rem; color: var(--ot-white); background: var(--ot-deep-navy); }
.article-header h1 { max-width: 14ch; margin-top: 1.2rem; color: var(--ot-white); font-size: clamp(3.1rem, 6.5vw, 6.2rem); }
.article-deck { max-width: 52rem; margin-top: 1.5rem; color: var(--ot-divider); font-size: 1.15rem; }
.article-byline { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; margin-top: 2rem; color: var(--ot-divider); font-size: .72rem; }
.article-byline strong { color: var(--ot-white); }
.article-shell { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: 5rem; padding-top: 4rem; padding-bottom: 6rem; }
.article-feature { padding: clamp(1rem, 4vw, 3rem); border-radius: var(--ot-radius-large); background: var(--ot-light-blue); }
.article-feature img { width: min(100%, 45rem); margin-inline: auto; box-shadow: var(--ot-shadow-soft); }
.article-feature figcaption { max-width: 45rem; margin: .8rem auto 0; color: var(--ot-secondary-text); font-size: .7rem; }
.article-body { max-width: var(--ot-reading-width); margin: 3rem auto 0; }
.article-body p, .article-body li { font-size: 1rem; line-height: 1.85; }
.article-body p + p { margin-top: 1.2rem; }
.article-body .article-intro { color: var(--ot-deep-navy); font-size: 1.22rem; font-weight: var(--ot-font-medium); }
.article-body h2 { margin: 3rem 0 1rem; font-size: 2rem; }
.article-body li + li { margin-top: .65rem; }
.fact-label { margin-bottom: 1.5rem; padding: 1rem; border-left: .25rem solid var(--ot-ocean-cyan); background: var(--ot-light-blue); font-size: .75rem; }
.sources { margin-top: 3.5rem; border-top: 1px solid var(--ot-divider); }
.sources ul { padding: 0; list-style: none; }
.sources li { padding: .8rem 0; border-bottom: 1px solid var(--ot-divider); color: var(--ot-oceans-navy); font-weight: var(--ot-font-semibold); }
.article-rail { align-self: start; position: sticky; top: 2rem; border-top: .2rem solid var(--ot-ocean-cyan); }
.article-rail div { padding: 1rem 0; border-bottom: 1px solid var(--ot-divider); }
.article-rail span { display: block; color: var(--ot-secondary-text); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }
.article-rail strong { display: block; margin-top: .3rem; color: var(--ot-deep-navy); font-size: .84rem; }
.article-rail p { margin-top: .4rem; color: var(--ot-secondary-text); font-size: .7rem; }
.article-rail > a { display: inline-block; margin-top: 1.5rem; color: var(--ot-oceans-navy); font-size: .76rem; font-weight: var(--ot-font-bold); }

@media (max-width: 900px) {
  .nav-wrap nav { display: none; }
  .masthead-grid, .lead-grid, .section-heading, .standard-grid, .article-shell { grid-template-columns: 1fr; }
  .story-grid { grid-template-columns: 1fr; }
  .article-rail { position: static; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-grid nav { justify-content: flex-start; flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .shell { width: min(calc(100% - 2rem), var(--ot-content-width)); }
  .section { padding: 4.5rem 0; }
  .brand { width: 13rem; }
  .masthead { padding: 4rem 0; }
  .masthead h1 { font-size: 3.7rem; }
  .story-card { grid-template-columns: 1fr; }
  .story-card img { min-height: 13rem; max-height: 16rem; }
  .article-header h1 { font-size: 3rem; }
  .footer-bottom { flex-direction: column; gap: .4rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Oceans Transit portrait Daily Briefing override */
.lead-image.portrait-image { display: grid; place-items: center; padding: clamp(1rem, 3vw, 2rem); background: var(--ot-light-blue); }
.lead-image.portrait-image img { width: min(100%, 34rem); height: auto; aspect-ratio: 4 / 5; object-fit: contain; }
.story-card.portrait-card > a { display: grid; place-items: center; padding: 1rem; background: var(--ot-light-blue); }
.story-card.portrait-card img { width: min(100%, 25rem); height: auto; min-height: 0; max-height: none; aspect-ratio: 4 / 5; object-fit: contain; }
.article-feature img { width: min(100%, 34rem); height: auto; aspect-ratio: 4 / 5; object-fit: contain; }

/* Oceans Transit portrait Daily Briefing override v2 */
.lead-image.portrait-image { display: grid; place-items: center; padding: clamp(1rem, 3vw, 2rem); background: var(--ot-light-blue); }
.lead-image.portrait-image img { width: min(100%, 34rem); height: auto; aspect-ratio: 4 / 5; object-fit: contain; }
.story-card.portrait-card > a { display: grid; place-items: center; padding: 1rem; background: var(--ot-light-blue); }
.story-card.portrait-card img { width: min(100%, 25rem); height: auto; min-height: 0; max-height: none; aspect-ratio: 4 / 5; object-fit: contain; }
.article-feature.portrait-feature img { width: min(100%, 34rem); height: auto; aspect-ratio: 4 / 5; object-fit: contain; }
.article-feature:not(.portrait-feature) img { height: auto; aspect-ratio: auto; object-fit: contain; }
