/* ==========================================================================
   PODRONES /careers/index.php — CAREERS PAGE, SCOPED STYLES
   --------------------------------------------------------------------------
   The only stylesheet for the careers page, plus the screen half of the
   printable job description (careers-pdf.php has its own @page block).

   SOURCE OF TRUTH
     • /docs/jobs/Careers.dc.html            — the Claude Design artifact
     • /docs/jobs/podrones-jobs-coding-brief.md — build rules and acceptance
     • /docs/jobs/podrones-jobs-design-brief.md — creative intent

   WHY THIS FILE EXISTS
     The artifact ships as a Claude Design component (<x-dc>, a DCLogic
     class, <sc-for>/<sc-if> directives, {{ }} bindings) whose runtime is not
     part of this site, and every rule in it is an inline style attribute.
     That is not production markup. It has been re-expressed here as plain
     CSS, exactly the way podeliver/podeliver.css and nanohub-home.css
     re-express their own artifacts, so the page renders inside the STANDARD
     Podrones chrome (headerphp / headermain / headerbody + podronesfooter).
     The artifact's own sticky <header> and <footer> are deliberately DROPPED:
     the shared chrome supplies both (Coding Brief §2).

   RULES THIS FILE OBEYS
     1. No Bootstrap, no framework, no build step. Hand-written CSS only.
     2. Everything is scoped under `.cr-page`. The careers look never leaks
        into the shared header/footer, and the shared site CSS
        (css/style.css, css/responsive.css, css/podrones.css) cannot clobber
        it. There is no global rule anywhere in this file.
     3. Colour, type, spacing and radii come from css/podrones-tokens.css.
        No new hex literal appears below except the two that only exist on
        the dark band (a lightened accent that has no token, and the white
        alphas). Per-department colour arrives as --cr-hue / --cr-hue-soft,
        set inline on the role element from the token NAME held in
        careers/careersdata.php — the one place inline style is correct, since
        the value is data.
     4. Mobile-first. One layout breakpoint at 720px (matching the
        artifact's own), one type/padding breakpoint at 560px.
     5. Motion is optional: every transition is disabled under
        prefers-reduced-motion.
   ========================================================================== */


/* ==========================================================================
   1. PAGE SHELL
   ========================================================================== */

.cr-page {
    font-family: var(--font-text);
    color: var(--ink-2);
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* The shared site CSS sets margins and colours on bare elements. Neutralise
   that inside the page band only, so the artifact's rhythm survives. */
.cr-page h1,
.cr-page h2,
.cr-page h3,
.cr-page h4 {
    font-family: var(--font-display);
    color: var(--ink);
    margin: 0;
    font-weight: var(--fw-semibold);
    text-transform: none;
}

.cr-page p,
.cr-page ul,
.cr-page li {
    margin: 0;
}

.cr-page a {
    color: var(--color-accent);
    text-decoration: none;
}

.cr-page a:hover,
.cr-page a:focus-visible {
    color: var(--color-accent-d);
    text-decoration: underline;
}

/* [hidden] must beat the display:grid / display:flex further down this file,
   because the language swap relies on it (see §6). */
.cr-page [hidden] {
    display: none !important;
}

/* One visible focus treatment for every interactive thing on the page. */
.cr-page :focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* Content column — the artifact's 1100px max with 24px gutters. */
.cr-wrap {
    max-width: var(--content-max);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

/* The small uppercase line that introduces a section. */
.cr-eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
}


/* ==========================================================================
   2. HERO — "We welcome diversity."
   ========================================================================== */

.cr-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: center;
    padding-top: 48px;
    padding-bottom: 40px;
}

.cr-hero__h {
    font-size: clamp(2.4rem, 6vw, 3.75rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
    margin-top: 18px !important;
    max-width: 15ch;
}

.cr-hero__p {
    font-size: var(--text-lg);
    line-height: 1.6;
    color: var(--ink-mute);
    max-width: 46ch;
    margin-top: 16px !important;
}

.cr-hero__p--lead {
    max-width: 44ch;
    margin-top: 20px !important;
}

.cr-hero__cta {
    margin-top: 28px;
}

/* The illustration, with the artifact's tilted accent plate behind it. */
.cr-hero__art {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    order: -1;                      /* image first on mobile */
}

.cr-hero__plate {
    position: absolute;
    width: 92%;
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    background: var(--color-accent);
    transform: rotate(-3deg);
    opacity: 0.12;
}

.cr-hero__img {
    position: relative;
    width: 100%;
    max-width: 220px;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* ---- Buttons ---------------------------------------------------------- */

.cr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 14px 26px;
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: var(--fw-semibold);
    line-height: 1.2;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    text-align: center;
    transition: background var(--dur-fast) var(--ease-out),
                color var(--dur-fast) var(--ease-out),
                border-color var(--dur-fast) var(--ease-out);
}

.cr-btn--ink {
    background: var(--ink);
    color: var(--text-inverse);
}

.cr-btn--ink:hover,
.cr-btn--ink:focus-visible {
    background: var(--n-800);
    color: var(--text-inverse);
    text-decoration: none;
}

.cr-btn--primary {
    background: var(--color-accent);
    color: var(--on-primary);
}

.cr-btn--primary:hover,
.cr-btn--primary:focus-visible {
    background: var(--color-accent-d);
    color: var(--on-primary);
    text-decoration: none;
}

.cr-btn--ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--border-2);
}

.cr-btn--ghost:hover,
.cr-btn--ghost:focus-visible {
    background: var(--bg-cream-1);
    color: var(--ink);
    text-decoration: none;
}


/* ==========================================================================
   3. CULTURE BAND — WFH / everything you need / fresh ideas
   ========================================================================== */

.cr-culture {
    background: var(--bg-cream-1);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.cr-culture__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    padding-top: 56px;
    padding-bottom: 56px;
}

.cr-culture__h {
    font-size: var(--text-xl);
    letter-spacing: -0.01em;
}

.cr-culture__p {
    margin-top: 12px !important;
    line-height: 1.6;
    color: var(--ink-mute);
}


/* ==========================================================================
   4. OPEN POSITIONS — section head + department filter
   ========================================================================== */

.cr-positions {
    padding-top: 72px;
    padding-bottom: 40px;
}

.cr-positions__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.cr-positions__h {
    font-size: clamp(2rem, 4.5vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin-top: 14px !important;
}

.cr-positions__count {
    font-size: var(--text-base);
    color: var(--ink-mute);
    max-width: 34ch;
}

/* ---- Filter chips ----------------------------------------------------- */

.cr-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
}

.cr-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: var(--fw-semibold);
    font-size: 0.9rem;
    padding: 9px 16px;
    border-radius: var(--radius-pill);
    background: var(--bg-white);
    color: var(--ink-2);
    border: 1px solid var(--border-2);
    transition: background var(--dur-fast) var(--ease-out),
                color var(--dur-fast) var(--ease-out),
                border-color var(--dur-fast) var(--ease-out);
}

.cr-chip:hover {
    border-color: var(--ink-faint);
}

.cr-chip[aria-pressed="true"] {
    background: var(--ink);
    color: var(--text-inverse);
    border-color: var(--ink);
}

.cr-chip__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cr-dot, var(--ink-faint));
    display: inline-block;
    flex-shrink: 0;
}

.cr-chip__n {
    opacity: 0.55;
    font-variant-numeric: tabular-nums;
}

/* ---- Empty state ------------------------------------------------------ */

.cr-empty {
    margin-top: 40px;
    padding: 56px var(--gutter);
    text-align: center;
    background: var(--bg-cream-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.cr-empty__h {
    font-size: var(--text-xl);
}

.cr-empty__p {
    margin-top: 12px !important;
    color: var(--ink-mute);
    line-height: 1.6;
}


/* ==========================================================================
   5. THE ACCORDION
   --------------------------------------------------------------------------
   Each role sets --cr-hue and --cr-hue-soft inline (from a token name in
   careers/careersdata.php), and everything below reads them.
   ========================================================================== */

.cr-list {
    margin-top: 28px;
    border-top: 1px solid var(--border);
}

.cr-role {
    border-bottom: 1px solid var(--border);
}

/* A role hidden by the department filter. */
.cr-role[hidden] {
    display: none !important;
}

/* The <h3> exists purely to keep the outline correct under the section <h2>;
   the <button> inside it is what the user actually operates. */
.cr-role__h {
    margin: 0 !important;
    font-size: inherit;
    line-height: inherit;
}

.cr-role__btn {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    padding: 24px 4px;
    display: grid;
    grid-template-columns: 3px 1fr auto;
    gap: 16px;
    align-items: start;
    font-family: inherit;
    color: inherit;
}

.cr-role__stripe {
    align-self: stretch;
    border-radius: 3px;
    background: var(--cr-hue);
    min-height: 44px;
}

.cr-role__title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cr-role__title {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.6vw, 1.75rem);
    font-weight: var(--fw-semibold);
    color: var(--ink);
    letter-spacing: -0.015em;
}

.cr-role__dept {
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--cr-hue);
    background: var(--cr-hue-soft);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
}

.cr-role__hook {
    display: block;
    margin-top: 10px;
    font-size: var(--text-lg);
    line-height: 1.5;
    color: var(--ink-mute);
    max-width: 52ch;
}

.cr-role__chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.cr-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-sm);
    color: var(--ink-mute);
    background: var(--bg-cream-1);
    padding: 5px 12px;
    border-radius: var(--radius-pill);
}

/* The "also in हिन्दी · मराठी" chip, tinted with the department colour. */
.cr-tag--lang {
    color: var(--cr-hue);
    background: var(--cr-hue-soft);
}

.cr-tag--lang svg {
    flex-shrink: 0;
}

/* ---- The +/− plate ---------------------------------------------------- */

.cr-role__toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: transparent;
    transition: background var(--dur-base) var(--ease-out),
                border-color var(--dur-base) var(--ease-out);
}

.cr-role__btn[aria-expanded="true"] .cr-role__toggle {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.cr-role__plus {
    position: relative;
    width: 16px;
    height: 16px;
    display: block;
}

.cr-role__plus::before,
.cr-role__plus::after {
    content: "";
    position: absolute;
    background: var(--ink);
    border-radius: 2px;
    transition: transform var(--dur-slow) var(--ease-out),
                background var(--dur-base) var(--ease-out);
}

/* horizontal bar — always visible, so the control reads as − when open */
.cr-role__plus::before {
    top: 7px;
    left: 0;
    width: 16px;
    height: 2px;
}

/* vertical bar — rotates away to turn + into − */
.cr-role__plus::after {
    top: 0;
    left: 7px;
    width: 2px;
    height: 16px;
}

.cr-role__btn[aria-expanded="true"] .cr-role__plus::before,
.cr-role__btn[aria-expanded="true"] .cr-role__plus::after {
    background: var(--text-inverse);
}

.cr-role__btn[aria-expanded="true"] .cr-role__plus::after {
    transform: rotate(90deg);
}

.cr-role__btn:hover .cr-role__toggle {
    border-color: var(--ink-faint);
}

/* ---- The expanding panel ---------------------------------------------
   grid-template-rows 0fr → 1fr is the artifact's own technique and is what
   gives a jank-free height animation without measuring anything in JS.
   `visibility` is what actually removes the collapsed content from the tab
   order; it is delayed on close so it does not blink away mid-animation. */

.cr-role__wrap {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows var(--dur-slow) var(--ease-out);
}

.cr-role__wrap.is-open {
    grid-template-rows: 1fr;
}

.cr-role__clip {
    overflow: hidden;
    min-height: 0;
    visibility: hidden;
    opacity: 0;
    transition: opacity 260ms var(--ease-out),
                visibility 0s linear var(--dur-slow);
}

.cr-role__wrap.is-open .cr-role__clip {
    visibility: visible;
    opacity: 1;
    transition: opacity 260ms var(--ease-out),
                visibility 0s linear 0s;
}

/* The panel body holds the language button row plus ONE container per
   language. The two-column detail grid lives on the container, not here, so
   that every language version lays out identically and switching language is
   nothing more than moving the [hidden] attribute between siblings. */
.cr-role__body {
    padding: 4px 4px 34px 22px;
    max-width: 900px;
}

.cr-role__body .cr-langs {
    margin-bottom: 26px;
}

.cr-role__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 28px 40px;
}

.cr-role__full {
    grid-column: 1 / -1;
}

.cr-role__label {
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.cr-role__about {
    margin-top: 10px !important;
    line-height: 1.65;
    color: var(--ink-2);
    max-width: 62ch;
}

.cr-role__ul {
    margin: 12px 0 0 !important;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cr-role__li {
    display: grid;
    grid-template-columns: 16px 1fr;
    gap: 10px;
    line-height: 1.55;
    color: var(--ink-2);
}

.cr-role__li::before {
    content: "·";
    color: var(--ink-faint);
    font-weight: var(--fw-bold);
    margin-top: 1px;
}

/* "What you'll do" gets the department-coloured arrow. */
.cr-role__ul--do .cr-role__li::before {
    content: "\2192";               /* → */
    color: var(--cr-hue);
}

/* ---- Apply row -------------------------------------------------------- */

.cr-role__apply {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 4px;
    padding-top: 22px;
    border-top: 1px dashed var(--border);
}

.cr-role__nice {
    font-size: var(--text-sm);
    color: var(--ink-faint);
}


/* ==========================================================================
   6. LANGUAGE SWITCHING
   --------------------------------------------------------------------------
   Every language version of a role or a section is rendered into the page at
   build time, in its own container; switching language just moves the
   [hidden] attribute. Nothing is fetched, nothing is generated. Because the
   containers are siblings inside the panel, switching a role's language can
   not collapse it and can not touch any other role.
   ========================================================================== */

.cr-langs {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cr-langs__label {
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.cr-lang {
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: var(--fw-semibold);
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: var(--bg-white);
    color: var(--ink-mute);
    border: 1px solid var(--border-2);
    transition: background var(--dur-fast) var(--ease-out),
                color var(--dur-fast) var(--ease-out),
                border-color var(--dur-fast) var(--ease-out);
}

.cr-lang:hover {
    border-color: var(--ink-faint);
    color: var(--ink);
}

/* Active pill takes the department colour on a role, the accent elsewhere. */
.cr-lang[aria-pressed="true"] {
    background: var(--cr-hue, var(--color-accent));
    color: var(--text-inverse);
    border-color: var(--cr-hue, var(--color-accent));
}

/* A reserved-but-empty slot is marked so it is obvious in the button row
   too, not only after you click it. */
.cr-lang--unfilled {
    border-style: dashed;
    color: var(--ink-faint);
}

/* ---- The PASTE TRANSLATION HERE notice -------------------------------- */

.cr-paste {
    grid-column: 1 / -1;
    border: 2px dashed var(--color-gold);
    background: var(--gold-50);
    border-radius: var(--radius);
    padding: 20px 22px;
    color: var(--gold-800);
}

.cr-paste__tag {
    display: block;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: var(--fw-bold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cr-paste__msg {
    margin-top: 8px !important;
    font-size: var(--text-sm);
    line-height: 1.55;
    color: var(--gold-800);
}

/* ---- Script-specific faces --------------------------------------------
   Poppins and Nunito have no Devanagari, Tamil, Kannada, Telugu or Bengali
   coverage: without these rules the browser falls back per-glyph and the
   copy renders in a mismatched system face (or as tofu on Windows). The
   fonts themselves are requested by careers/index.php ONLY for the scripts a copy
   block actually uses, so an all-English page loads none of them.
   The [lang] attribute is written on every language container, so this is
   driven by the same data that drives the buttons. */

.cr-page [lang="hi"],
.cr-page [lang="mr"] {
    font-family: 'Noto Sans Devanagari', var(--font-text);
    line-height: 1.7;               /* Devanagari needs the extra leading */
}

.cr-page [lang="ta"] { font-family: 'Noto Sans Tamil',   var(--font-text); line-height: 1.7; }
.cr-page [lang="kn"] { font-family: 'Noto Sans Kannada', var(--font-text); line-height: 1.7; }
.cr-page [lang="te"] { font-family: 'Noto Sans Telugu',  var(--font-text); line-height: 1.7; }
.cr-page [lang="bn"] { font-family: 'Noto Sans Bengali', var(--font-text); line-height: 1.7; }

/* Headings inside a non-Latin block must not fall back to Poppins. */
.cr-page [lang="hi"] :is(h1, h2, h3, h4),
.cr-page [lang="mr"] :is(h1, h2, h3, h4) { font-family: 'Noto Sans Devanagari', var(--font-display); }
.cr-page [lang="ta"] :is(h1, h2, h3, h4) { font-family: 'Noto Sans Tamil',   var(--font-display); }
.cr-page [lang="kn"] :is(h1, h2, h3, h4) { font-family: 'Noto Sans Kannada', var(--font-display); }
.cr-page [lang="te"] :is(h1, h2, h3, h4) { font-family: 'Noto Sans Telugu',  var(--font-display); }
.cr-page [lang="bn"] :is(h1, h2, h3, h4) { font-family: 'Noto Sans Bengali', var(--font-display); }


/* ==========================================================================
   7. DOWNLOAD ROW — one PDF per role, per language
   ========================================================================== */

.cr-dl {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 8px 14px;
    flex-wrap: wrap;
    font-size: var(--text-sm);
    color: var(--ink-mute);
}

.cr-dl__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: var(--fw-semibold);
    font-size: var(--text-sm);
    color: var(--ink);
    background: var(--bg-white);
    border: 1px solid var(--border-2);
    border-radius: var(--radius);
    padding: 9px 16px;
    transition: background var(--dur-fast) var(--ease-out),
                border-color var(--dur-fast) var(--ease-out);
}

.cr-dl__btn:hover,
.cr-dl__btn:focus-visible {
    background: var(--bg-cream-1);
    border-color: var(--ink-faint);
    color: var(--ink);
    text-decoration: none;
}

.cr-dl__btn svg {
    flex-shrink: 0;
}

.cr-dl__also {
    color: var(--ink-faint);
}

.cr-dl__also a {
    color: var(--ink-mute);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cr-dl__also a:hover {
    color: var(--color-accent);
}


/* ==========================================================================
   8. HIRING PHILOSOPHY — the dark band
   ========================================================================== */

.cr-philosophy {
    background: var(--ink);
    color: var(--text-inverse);
    margin-top: 40px;
}

.cr-philosophy__inner {
    padding-top: 72px;
    padding-bottom: 72px;
}

/* The one colour on this page with no token: a lightened accent that only
   clears contrast against --ink. It exists solely on this band. */
.cr-philosophy .cr-eyebrow,
.cr-trait__num {
    color: #7d93ff;
}

.cr-philosophy__h {
    font-size: clamp(2rem, 4.5vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
    margin-top: 16px !important;
    color: var(--text-inverse) !important;
    max-width: 20ch;
}

.cr-philosophy__lead {
    font-size: var(--text-lg);
    line-height: 1.6;
    color: var(--text-inverse-muted);
    max-width: 52ch;
    margin-top: 20px !important;
}

/* The section's own language buttons, restyled for the dark ground. */
.cr-philosophy__langs {
    margin-top: 28px;
}

.cr-philosophy__langs .cr-langs__label {
    color: rgba(255, 255, 255, 0.55);
}

.cr-philosophy__langs .cr-lang {
    background: transparent;
    color: var(--text-inverse-muted);
    border-color: var(--border-inverse);
}

.cr-philosophy__langs .cr-lang:hover {
    color: var(--text-inverse);
    border-color: rgba(255, 255, 255, 0.4);
}

.cr-philosophy__langs .cr-lang[aria-pressed="true"] {
    background: var(--text-inverse);
    color: var(--ink);
    border-color: var(--text-inverse);
}

.cr-philosophy__langs .cr-lang--unfilled {
    border-style: dashed;
}

.cr-traits {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
}

.cr-trait {
    display: grid;
    grid-template-columns: 3rem 1fr;
    gap: 16px;
    padding: 26px 0;
    border-top: 1px solid var(--border-inverse);
    align-items: baseline;
}

.cr-trait__num {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: var(--fw-semibold);
    font-variant-numeric: tabular-nums;
}

.cr-trait__h {
    font-size: clamp(1.5rem, 3.4vw, 2.25rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-inverse) !important;
}

.cr-trait__p {
    margin-top: 12px !important;
    font-size: var(--text-lg);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.72);
    max-width: 60ch;
}

/* The paste notice needs to invert on the dark band to stay legible. */
.cr-philosophy .cr-paste {
    background: rgba(217, 171, 17, 0.12);
    color: var(--gold-200);
    margin-top: 48px;
}

.cr-philosophy .cr-paste__msg {
    color: var(--gold-100);
}


/* ==========================================================================
   9. CLOSING CTA — "We like people who hustle."
   ========================================================================== */

.cr-closing {
    padding-top: 76px;
    padding-bottom: 76px;
    text-align: center;
}

.cr-closing__h {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.04;
    letter-spacing: -0.03em;
    max-width: 18ch;
    margin: 0 auto !important;
}

.cr-closing__p {
    font-size: var(--text-lg);
    color: var(--ink-mute);
    margin-top: 20px !important;
}

.cr-closing__actions {
    margin-top: 30px;
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}


/* ==========================================================================
   10. TRANSLATION AUDIT REPORT  (/careers/?Translations=audit)
   --------------------------------------------------------------------------
   An internal sign-off view, not part of the public design. Deliberately
   plain: it is a checklist, not a page.
   ========================================================================== */

.cr-audit {
    max-width: 820px;
    margin: 0 auto;
    padding: 56px var(--gutter) 72px;
    font-family: var(--font-text);
}

.cr-audit h1 {
    font-size: var(--text-3xl);
    letter-spacing: -0.02em;
}

.cr-audit h2 {
    font-size: var(--text-xl);
    margin-top: 40px !important;
}

.cr-audit p {
    margin-top: 12px !important;
    color: var(--ink-mute);
    line-height: 1.6;
}

.cr-audit table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    font-size: var(--text-sm);
}

.cr-audit th,
.cr-audit td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.cr-audit th {
    font-family: var(--font-display);
    font-size: var(--text-xs);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.cr-audit__state {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: var(--fw-bold);
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}

.cr-audit__state--filled   { background: var(--green-50); color: var(--green-800); }
.cr-audit__state--reserved { background: var(--gold-50);  color: var(--gold-800); }


/* ==========================================================================
   11. RESPONSIVE
   ========================================================================== */

@media (min-width: 721px) {

    .cr-hero {
        grid-template-columns: 1.15fr 0.85fr;
        gap: 48px;
        padding-top: 68px;
    }

    .cr-hero__art {
        order: 0;                   /* back to the right-hand column */
    }

    .cr-hero__img {
        max-width: 420px;
    }

    .cr-culture__grid {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .cr-positions {
        padding-top: 84px;
    }

    .cr-role__btn {
        padding: 26px 4px;
        gap: 22px;
    }

    .cr-role__body {
        padding-left: 25px;
    }

    .cr-philosophy__inner {
        padding-top: 92px;
        padding-bottom: 92px;
    }

    .cr-trait {
        grid-template-columns: 4rem 1fr;
        gap: 24px;
        padding: 30px 0;
    }

    .cr-closing {
        padding-top: 96px;
        padding-bottom: 96px;
    }
}

/* ---- Narrow phones (~375px) -------------------------------------------
   At this width the toggle plate and the 3px stripe together eat too much
   of the row, so the stripe goes and the plate shrinks. Everything stays
   operable; nothing wraps to a second line that shouldn't. */

@media (max-width: 560px) {

    .cr-role__btn {
        grid-template-columns: 3px 1fr auto;
        gap: 12px;
        padding: 20px 2px;
    }

    .cr-role__toggle {
        width: 34px;
        height: 34px;
    }

    .cr-role__hook {
        font-size: var(--text-base);
    }

    .cr-role__body {
        padding-left: 15px;
        gap: 24px;
    }

    .cr-positions__head {
        align-items: flex-start;
    }

    /* Full-width CTAs read better than centred pills on a phone. */
    .cr-closing__actions .cr-btn,
    .cr-hero__cta .cr-btn {
        width: 100%;
    }

    .cr-dl__btn {
        width: 100%;
        justify-content: center;
    }
}


/* ==========================================================================
   12. MOTION AND PRINT
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .cr-page *,
    .cr-page *::before,
    .cr-page *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Printing the careers page itself (not the per-role PDF, which is
   careers-pdf.php): open every panel so nothing is silently omitted, and drop
   the controls, which mean nothing on paper. */
@media print {

    .cr-role__wrap {
        grid-template-rows: 1fr !important;
    }

    .cr-role__clip {
        visibility: visible !important;
        opacity: 1 !important;
        overflow: visible !important;
    }

    .cr-filters,
    .cr-role__toggle,
    .cr-langs,
    .cr-dl,
    .cr-closing__actions,
    .cr-hero__cta {
        display: none !important;
    }

    .cr-role {
        break-inside: avoid;
    }

    .cr-philosophy {
        background: var(--bg-white) !important;
        color: var(--ink) !important;
    }

    .cr-philosophy__h,
    .cr-trait__h {
        color: var(--ink) !important;
    }

    .cr-philosophy__lead,
    .cr-trait__p {
        color: var(--ink-mute) !important;
    }

    .cr-trait {
        border-top-color: var(--border) !important;
    }
}
