/* ==========================================================================
   Praxis Far East: one site-wide type scale (typography-unify, 2026-10-06)
   Loaded LAST on the 36 content pages. site.css is not edited.
   Scope: text inside <main>. Header, drawer, footer, logos and buttons keep
   their own styles. The prefix ":root main:not(#ts)" gives these rules ID-level
   specificity so they win over page rules without !important.
   ========================================================================== */
:root {
  --t-hero: clamp(38px, 5vw, 56px);
  --t-h2: clamp(32px, 4vw, 48px);
  --t-title: clamp(21px, 2vw, 28px);
  --t-title-sm: clamp(19px, 1.5vw, 21px);
  --t-lead: clamp(17px, 1.5vw, 21px);
  --t-body: clamp(16px, 1.2vw, 17px);
  --t-link: clamp(16px, 1.2vw, 17px);
  --t-small: 14px;
  --t-fine: 12px;
  --t-stat: clamp(32px, 4vw, 48px);
  --t-quote: clamp(21px, 2vw, 28px);
}
/* fixed mobile steps (390 px): 38 / 32 / 21 / 19 / 17 / 16 */
@media (max-width: 734px) {
  :root {
    --t-hero: 38px; --t-h2: 32px; --t-title: 21px; --t-title-sm: 19px;
    --t-lead: 17px; --t-body: 16px; --t-link: 16px; --t-stat: 32px; --t-quote: 21px;
  }
}

/* Colour roles. Light by default; dark/photo contexts switch them. */
:root main:not(#ts) {
  --c-title: #1d1d1f;
  --c-body: #424245;
  --c-muted: #6e6e73;
  --c-link: #0066cc;
}
:root main:not(#ts) :is(.lp-care, .pt-hero, .panel:not(.on-light):not(.close), .sol-hero, .news-featured, .panel-cyber),
:root main.news-hub:not(#ts) > .page-hero {
  --c-title: #fff;
  --c-body: rgba(255, 255, 255, 0.8);
  --c-muted: rgba(255, 255, 255, 0.8);
  --c-link: #fff;
}

/* ---------- Headings ---------- */
:root main:not(#ts) h1 {
  font-size: var(--t-hero); font-weight: 600; line-height: 1.05; letter-spacing: -0.03em;
  color: var(--c-title); text-transform: none;
}
:root main:not(#ts) h2 {
  font-size: var(--t-h2); font-weight: 600; line-height: 1.08; letter-spacing: -0.03em;
  color: var(--c-title); text-transform: none;
}
:root main:not(#ts) h3,
:root main:not(#ts) h4 {
  font-size: var(--t-title-sm); font-weight: 600; line-height: 1.24; letter-spacing: 0;
  color: var(--c-title); text-transform: none;
}

/* Card titles: Apple cards, bento tiles, pain cards, featured news */
:root main:not(#ts) :is(.card-carousel .block-card, .card-track .block-card, .vessel-grid .block-card, .module-copy, .st-tile-copy, .st-pain-card, .news-featured .text) :is(h2, h3),
:root main:not(#ts) .news-featured .strip-title,
:root main:not(#ts) .cert-feature h2 {
  font-size: var(--t-title); font-weight: 600; line-height: 1.14; letter-spacing: 0.007em; color: var(--c-title);
}
/* Compact titles: grid cards without background, news rows, hub cards, FAQ, boxes */
:root main:not(#ts) :is(.card-grid .block-card, .nm-body, .pf-body, .news-compact, .pf-more, .callout, .na-facts, .na-system) :is(h2, h3),
:root main:not(#ts) :is(.nm-title, .news-compact-title, .callout-h),
:root main:not(#ts) .faq-item > button,
:root main:not(#ts) .legal-doc h2,
:root main:not(#ts) #privacy > h2 {
  font-size: var(--t-title-sm); font-weight: 600; line-height: 1.24; letter-spacing: 0; color: var(--c-title); text-transform: none;
}
:root main:not(#ts) .legal-doc h3 {
  font-size: var(--t-body); font-weight: 600; line-height: 1.4; color: var(--c-title);
}

/* ---------- Text ---------- */
:root main:not(#ts) :is(p, li, dd, blockquote, figcaption, td, legend, label) {
  letter-spacing: 0; text-transform: none;
}
:root main:not(#ts) :is(p, li, dd) {
  font-size: var(--t-body); font-weight: 400; line-height: 1.5; color: var(--c-body);
}
/* inline text takes its paragraph's size and colour */
:root main:not(#ts) :is(p, li, dd, td, figcaption, blockquote, h1, h2, h3, h4) :is(a, span, em, i, b, strong, small, cite):not(.btn):not([class*="link"]):not(.card-cue):not(.pf-arrow):not(.nm-arrow):not(.arrow):not(.k):not(.dl-meta):not(.dl-pending):not(.dl-title):not(.cert-note):not(.cert-exp):not(.stat-note):not(.label):not(.txt):not(.kpi-num):not(.dot):not(.st-number):not(.ph-label):not(.ph-kind):not(.accent) {
  font-size: inherit; line-height: inherit; letter-spacing: inherit; color: inherit; text-transform: none;
}
:root main:not(#ts) :is(p, li, dd, td) :is(strong, b) { font-weight: 600; }

/* Lead: hero sentence, section intro, standfirst, close-band sentence, band below hero */
:root main:not(#ts) :is(.lede, .lead, .sub, .close-sub, .ps-lede, .na-standfirst, .sol-hero__lead, .hero-after__text, .cta-band > p, .na-close-inner > p, .next-steps > p, .pf-cta > p) {
  font-size: var(--t-lead); font-weight: 400; line-height: 1.43; letter-spacing: 0; color: var(--c-body); opacity: 1;
}
:root main:not(#ts) .dl-links > p.close-sub { font-size: var(--t-body); line-height: 1.5; }

/* Body copy inside cards and lists stays at --t-body (set above) */
:root main:not(#ts) :is(td) { font-size: var(--t-small); line-height: 1.43; color: var(--c-body); }
:root main:not(#ts) :is(.spec-table, .glance, .na-facts) td { font-size: var(--t-body); line-height: 1.5; }
:root main:not(#ts) :is(th, dt) { font-size: var(--t-small); font-weight: 600; line-height: 1.43; letter-spacing: 0; text-transform: none; color: var(--c-title); }
:root main:not(#ts) dd { color: var(--c-title); }

/* Quotes */
:root main:not(#ts) :is(.na-quote, .cs-quote) blockquote p,
:root main:not(#ts) blockquote > p {
  font-size: var(--t-quote); font-weight: 400; line-height: 1.3; letter-spacing: -0.01em; color: var(--c-title);
}

/* Small: meta, captions, labels, chips, stat labels, form labels */
:root main:not(#ts) :is(time, .k, .label, .dl-meta, .pf-meta, .pf-year, .na-eyebrow, figcaption, .hint, .tag, .cert-exp, .iep-type-subline, .home-logos__eyebrow, .hero-after__meta, .news-featured-date, .pt-stat > span, .care-stat > span, .kpi > span, .na-back, .na-share a, .na-share button, .filter-chip, .pf-filter-field label, .form label, .form legend, .check, .consent, .pf-market-contact a, .dl-row .dl-title) {
  font-size: var(--t-small); line-height: 1.43; letter-spacing: 0; text-transform: none;
}
:root main:not(#ts) :is(time, .k, .label, .dl-meta, .pf-meta, .pf-year, .na-eyebrow, figcaption, .hint, .tag, .home-logos__eyebrow, .hero-after__meta, .pt-stat > span, .care-stat > span, .kpi > span, .iep-type-subline) {
  font-weight: 400; color: var(--c-muted);
}
:root main:not(#ts) :is(.na-eyebrow, .news-featured-date) time { font-size: inherit; color: inherit; }
:root main:not(#ts) .news-featured-date { color: var(--c-body); margin: 0; }
:root main:not(#ts) .news-featured-text { margin: 8px 0 0; }
:root main:not(#ts) :is(.form label, .form legend, .pf-filter-field label, .na-back, .dl-row .dl-title, .na-share a, .na-share button) { font-weight: 500; color: var(--c-title); }
:root main:not(#ts) :is(.check, .consent) { font-weight: 400; color: var(--c-body); }
:root main:not(#ts) .form legend { margin-bottom: 8px; }
:root main:not(#ts) figcaption strong { font-weight: 600; color: var(--c-title); }
:root main:not(#ts) .pf-meta strong { font-weight: 600; }
:root main:not(#ts) .dl-row .dl-title { font-size: var(--t-body); line-height: 1.4; }
:root main:not(#ts) .hint { margin-top: 10px; }

/* Fine print: footnotes, certificate notes and visible placeholder notes */
:root main:not(#ts) :is(.stat-note, .cert-note, .scope-note, .ph-note, .dl-pending, .glance-source, .form-note, .form-privacy, .pf-onrequest, #care-panel em),
:root main:not(#ts) :is(.stat-note, .scope-note, .ph-note, .form-note, .pf-onrequest) :is(a, strong, em, span) {
  font-size: var(--t-fine); font-weight: 400; line-height: 1.33; letter-spacing: 0; text-transform: none; color: var(--c-muted);
}
:root main:not(#ts) sup { font-size: 0.7em; font-weight: 400; line-height: 0; color: inherit; }
:root main:not(#ts) .glance-note { font-size: var(--t-body); line-height: 1.5; color: var(--c-body); margin: 0; }
:root main:not(#ts) .na-note { font-size: var(--t-body); color: var(--c-body); }

/* Notes and the FAQ topic list: small, not fine print */
:root main:not(#ts) .note-box,
:root main:not(#ts) .note-box :is(a, strong, span) { font-size: var(--t-small); line-height: 1.43; letter-spacing: 0; color: var(--c-muted); }
:root main:not(#ts) .note-box strong { font-weight: 600; color: var(--c-title); }
:root main:not(#ts) nav.note-box a { color: var(--c-link); }

/* Stats */
:root main:not(#ts) :is(.pt-stat strong, .care-stat strong, .kpi strong, .stat-strip .kpi strong),
:root main:not(#ts) :is(.pt-stat, .care-stat, .kpi) strong .kpi-num {
  font-size: var(--t-stat); font-weight: 600; line-height: 1.05; letter-spacing: -0.03em; color: var(--c-title);
}
:root main:not(#ts) :is(.pt-stat, .care-stat, .kpi) strong .kpi-num { font-size: inherit; }

/* One link cue: "Learn more ›" */
:root main:not(#ts) :is(span.link, a.link, .link-arrow, .pf-arrow, .card-cue, .cta-text-link, .market-vessel-link a, .na-system a, .tel-alt) {
  font-size: var(--t-link); font-weight: 400; line-height: 1.5; letter-spacing: 0; text-transform: none; color: var(--c-link);
  text-decoration: none;
}
:root main:not(#ts) .tel-alt { font-size: inherit; color: inherit; text-decoration: underline; }
:root main:not(#ts) :is(span.link, a.link, .link-arrow, .pf-arrow, .card-cue, .cta-text-link):hover { text-decoration: underline; }
:root main:not(#ts) :is(.nm-arrow, .arrow) { color: var(--c-link); font-weight: 400; }
:root main:not(#ts) .na-system a::after { content: "›"; }
:root main:not(#ts) ul.toc a { font-size: var(--t-body); color: var(--c-title); }
:root main:not(#ts) ul.toc a span { font-size: inherit; color: var(--c-link); }
:root main:not(#ts) ul.e27-list :is(a, span) { font-size: inherit; }
:root main:not(#ts) ul.e27-list a { color: var(--c-link); }

/* Remaining eyebrow-like labels (no hero eyebrows remain) */
:root main:not(#ts) .eyebrow {
  font-size: var(--t-fine); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #E31E24;
}

/* ---------- Heroes ---------- */
/* Photo heroes: full-bleed, H1 one line, one sentence, buttons pinned at the bottom */
:root main:not(#ts) .pt-hero,
:root main:not(#ts) .pt-hero--short {
  height: 100vh; height: 100dvh; min-height: 560px; max-height: 1000px;
}
:root main:not(#ts) .pt-hero > .bg img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}
:root main:not(#ts) :is(.pt-hero, #top.panel) > .head { max-width: 1240px; }
:root main:not(#ts) :is(.pt-hero, #top.panel, .sol-hero, .news-hub > .page-hero) h1 { color: #fff; }
:root main:not(#ts) :is(.pt-hero .sub, #top.panel .sub, .sol-hero__lead, .news-hub > .page-hero .lead) {
  color: #fff; max-width: 44em; margin: 14px auto 0;
}
:root main:not(#ts) #top.panel .head h1 { text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35); }

/* Solutions hub hero: same height and layout as the standard photo hero */
:root main:not(#ts) .sol-hero { min-height: 0; height: 100vh; height: 100dvh; max-height: 1000px; }
@media (min-width: 0px) { :root main:not(#ts) .sol-hero { min-height: 560px; } }
:root main:not(#ts) .sol-hero__content {
  max-width: 1240px; height: 100%; display: flex; flex-direction: column; align-items: center;
  padding: calc(var(--nav-h) + 88px) 24px 64px;
}
:root main:not(#ts) .sol-hero__actions { margin-top: auto; gap: 16px; }
:root main:not(#ts) .sol-hero h1 { margin: 0; }

/* News hub hero: standard photo hero */
:root main.news-hub:not(#ts) > .page-hero {
  height: 100vh; height: 100dvh; min-height: 560px; max-height: 1000px;
  justify-content: flex-start; padding: calc(var(--nav-h) + 88px) 24px 64px;
}

/* Plain title band (resource, legal and pages without a suitable photo) */
:root main:not(#ts) > div.page-hero {
  max-width: 1376px; padding: calc(var(--nav-h) + 72px) 32px 56px; text-align: center; background: #fff;
}
:root main.news-hub:not(#ts) > .page-hero { max-width: none; background: #142432; }
:root main:not(#ts) > .page-hero .lead { max-width: 40em; margin: 16px auto 0; }
:root main:not(#ts) > .page-hero .ctas { margin-top: 24px; justify-content: center; }
:root main:not(#ts) > .page-hero > .cta-text-link { display: block; text-align: center; margin-top: 16px; }

/* Band directly below the hero: moved hero sentences and stats */
:root main:not(#ts) section.hero-after:not(.pt-stats) { background: #fff; padding: 56px 24px; text-align: center; }
:root main:not(#ts) .page-hero + section.hero-after { padding-top: 0; }
:root main:not(#ts) .hero-after__inner { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
:root main:not(#ts) .hero-after__text { margin: 0 auto; max-width: 820px; text-align: center; }
:root main:not(#ts) .pt-stats > .hero-after__text { padding: 0 0 40px; }
:root main:not(#ts) .hero-after__meta { margin: 4px 0 0; }
:root main:not(#ts) .hero-after--home { scroll-snap-align: start; padding: calc(var(--nav-h) + 56px) 24px 72px; }

/* News article header: photo first, then meta line, headline and standfirst */
:root main:not(#ts) .na-title { font-size: var(--t-h2); font-weight: 600; line-height: 1.08; letter-spacing: -0.03em; color: var(--c-title); }
:root main:not(#ts) .na-head > .na-hero { max-width: none; padding: 0; margin: 20px 0 28px; }
:root main:not(#ts) .na-head > .na-hero figcaption { text-align: left; }
:root main:not(#ts) .na-eyebrow .dot { color: var(--c-muted); }

/* Filter chips and contact links */
:root main:not(#ts) .filter-chip { font-weight: 500; color: var(--c-muted); }
:root main:not(#ts) .filter-chip:is(.is-on, :hover) { color: var(--c-title); }
:root main:not(#ts) .pf-market-contact a { font-size: var(--t-link); color: var(--c-link); text-decoration: none; }

/* ---------- Hover colours kept from the page styles ----------
   The colour rules above are stronger than the old hover rules, so the
   existing hover colours are restated here unchanged. Hover lift (transform)
   is not touched: it stays on clickable cards only. */
:root main:not(#ts) a.block-card:hover h3,
:root main:not(#ts) .block-card .link:hover,
:root main:not(#ts) .news-compact:hover :is(.news-compact-title, .arrow),
:root main:not(#ts) a.news-media-row:hover :is(.nm-title, .nm-arrow),
:root main:not(#ts) .pf-card:hover :is(h3, .pf-arrow),
:root main:not(#ts) .pf-more:hover h3,
:root main:not(#ts) :is(.cert-table, .cyber-line, .pf-seg-links, .care-systems, .na-system, .e27-list, .legal-doc .toc) a:hover,
:root main:not(#ts) .pf-cta .pf-onrequest a:hover,
:root main:not(#ts) .link-arrow:hover,
:root main:not(#ts) :is(.na-back, .na-share a, .na-share button):hover,
:root main:not(#ts) .na-body > p a:hover,
:root main:not(#ts) .pt-outcome-list a:hover strong { color: #E31E24; }
:root main:not(#ts) #vessel-type .block-card:hover h3 { color: #1d1d1f; }
:root main:not(#ts) :is(.lp-care, .pt-panel-dark) .link-arrow:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 734px) {
  :root main:not(#ts) > div.page-hero { padding: 72px 24px 32px; }
  :root main:not(#ts) section.hero-after:not(.pt-stats) { padding: 40px 24px; }
  :root main:not(#ts) .page-hero + section.hero-after { padding-top: 0; }
}

/* Photo title bands keep the same type scale. The picture fills a 21:9 band
   so the desktop crop is shown whole, with white text on the existing scrim.
   The careers hero is the same proportion, so the group photo is not sliced. */
@media (min-width: 735px) {
  :root main.page-calm:not(#ts) .pt-hero.pt-hero--short {
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 21 / 9;
  }
}
:root main:not(#ts) > div.page-hero.page-hero--photo {
  --c-title: #fff;
  --c-body: rgba(255, 255, 255, 0.88);
  --c-muted: rgba(255, 255, 255, 0.88);
  --c-link: #fff;
  max-width: none;
  width: 100%;
  background: #142432;
  display: flex;
  flex-direction: column;
  justify-content: center;
  aspect-ratio: 21 / 9;
  min-height: 420px;
  padding: calc(var(--nav-h) + 40px) 32px 48px;
  color: #fff;
}
@media (max-width: 734px) {
  :root main:not(#ts) > div.page-hero.page-hero--photo {
    --c-title: #1d1d1f;
    --c-body: #424245;
    --c-muted: #6e6e73;
    --c-link: #0066cc;
    aspect-ratio: auto;
    min-height: 0;
    display: block;
    background: #fff;
    color: #1d1d1f;
    padding: calc(var(--nav-h) + 8px) 24px 32px;
  }
  :root main.page-calm:not(#ts) .pt-hero.pt-hero--short {
    --c-title: #1d1d1f;
    --c-body: #424245;
    --c-muted: #6e6e73;
    height: auto;
    min-height: 0;
    max-height: none;
    background: #fff;
    color: #1d1d1f;
    overflow: visible;
    padding: calc(var(--nav-h) + 8px) 24px 32px;
  }
  :root main.page-calm:not(#ts) .pt-hero.pt-hero--short :is(h1, .sub) { color: #1d1d1f; }
}
