/* The public job page (template/job-detail.php) and an employer's careers
   page (careers.php, with assets/css/careers.css on top) share these styles. */

:root {
    color-scheme: dark;
    --void: #07101d;
    --ink: #0a1423;
    --surface: #0d192a;
    --surface-raised: #132239;
    --surface-soft: #101f33;
    --line: rgba(187, 201, 224, 0.13);
    --line-strong: rgba(187, 201, 224, 0.24);
    --cyan: var(--rn-accent, #72dfcd);
    --cyan-deep: var(--rn-accent-deep, #39bba6);
    --blue: var(--rn-secondary, #7892ff);
    --ice: #f5f7fb;
    --muted: #93a2ba;
    --muted-strong: #c5cedc;
    --display: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    --body: "Inter", "Segoe UI", sans-serif;
    --mono: "IBM Plex Mono", monospace;
    --container: min(1220px, calc(100% - 48px));
    --header-height: 82px;
    --radius: 20px;
    --shadow: 0 28px 74px rgba(0, 0, 0, 0.28);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Display headings: negative tracking squeezes inter-word gaps —
   restore breathing room between words. */
h1, h2, h3 {
    word-spacing: 0.1em;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
    background: var(--void);
}

body {
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 82% 8%, color-mix(in srgb, var(--rn-secondary, #7892ff) 9%, transparent), transparent 30rem),
        var(--void);
    color: var(--ice);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

body.hn-detail-page {
    min-height: 100vh;
}

button {
    color: inherit;
    cursor: pointer;
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg {
    display: block;
}

:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
}

.hn-container {
    width: var(--container);
    margin-inline: auto;
}

.hn-skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 300;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--cyan);
    color: var(--void);
    font-weight: 800;
    transform: translateY(-160%);
    transition: transform 160ms ease;
}

.hn-skip-link:focus {
    transform: translateY(0);
}

.hn-site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    border-bottom: 1px solid var(--line);
    background: rgba(7, 16, 29, 0.9);
    backdrop-filter: blur(18px);
}

.hn-nav {
    position: relative;
    display: flex;
    width: var(--container);
    height: 100%;
    margin-inline: auto;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.hn-brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 11px;
    color: var(--ice);
    font-family: var(--display);
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.hn-brand__mark {
    position: relative;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--rn-accent, #72dfcd) 42%, transparent);
    border-radius: 50%;
    background: color-mix(in srgb, var(--rn-accent, #72dfcd) 7%, transparent);
    box-shadow: inset 0 0 18px color-mix(in srgb, var(--rn-accent, #72dfcd) 12%, transparent);
}

.hn-brand__mark::before,
.hn-brand__mark::after {
    position: absolute;
    width: 3px;
    border-radius: 99px;
    background: var(--cyan);
    box-shadow:
        7px 0 0 color-mix(in srgb, var(--rn-accent, #72dfcd) 60%, transparent),
        -7px 0 0 color-mix(in srgb, var(--rn-accent, #72dfcd) 34%, transparent);
    content: "";
}

.hn-brand__mark::before {
    height: 17px;
}

.hn-brand__mark::after {
    height: 9px;
    transform: rotate(90deg);
}

.hn-brand em {
    color: var(--cyan);
    font-style: normal;
}

.hn-nav__links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hn-nav__links > a:not(.hn-button) {
    min-height: 44px;
    padding: 10px 13px;
    border-radius: 10px;
    color: var(--muted-strong);
    font-size: 14px;
    font-weight: 700;
}

.hn-nav__links > a:not(.hn-button):hover,
.hn-nav__links > a[aria-current="page"] {
    color: var(--cyan);
    background: color-mix(in srgb, var(--rn-accent, #72dfcd) 7%, transparent);
}

.hn-nav__current {
    font-family: var(--mono);
    font-size: 12px !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hn-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    border: 1px solid var(--line-strong);
    border-radius: 13px;
    background: transparent;
    color: var(--ice);
    font-weight: 800;
    transition:
        border-color 160ms ease,
        background-color 160ms ease,
        transform 160ms ease;
}

.hn-button:hover {
    border-color: color-mix(in srgb, var(--rn-accent, #72dfcd) 42%, transparent);
}

.hn-button--primary {
    border-color: transparent;
    background: var(--cyan);
    color: var(--void);
}

.hn-save-role {
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

.hn-save-role.is-saved {
    border-color: color-mix(in srgb, var(--rn-accent, #72dfcd) 50%, transparent);
    background: color-mix(in srgb, var(--rn-accent, #72dfcd) 12%, transparent);
}

.hn-save-role[disabled] {
    opacity: 0.6;
    cursor: progress;
}

.hn-button--primary:hover {
    border-color: transparent;
    background: color-mix(in srgb, var(--rn-primary-tint, #7fe6d7) 91%, #fff);
    transform: translateY(-1px);
}

.hn-menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: rgba(13, 25, 42, 0.86);
    place-items: center;
}

.hn-menu-toggle span,
.hn-menu-toggle::before,
.hn-menu-toggle::after {
    display: block;
    width: 20px;
    height: 1px;
    background: var(--muted-strong);
    content: "";
    transition: transform 160ms ease;
}

.hn-menu-toggle span {
    margin-block: 5px;
}

.hn-menu-toggle[aria-expanded="true"] span {
    opacity: 0;
}

.hn-menu-toggle[aria-expanded="true"]::before {
    transform: translateY(6px) rotate(45deg);
}

.hn-menu-toggle[aria-expanded="true"]::after {
    transform: translateY(-6px) rotate(-45deg);
}

.hn-mobile-panel {
    position: absolute;
    top: calc(100% - 1px);
    right: 24px;
    left: 24px;
    display: none;
    padding: 12px;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: rgba(7, 16, 29, 0.98);
    box-shadow: var(--shadow);
    visibility: hidden;
    pointer-events: none;
}

.hn-mobile-panel.is-open {
    visibility: visible;
    pointer-events: auto;
}

html.no-js .hn-menu-toggle {
    display: none;
}

html.no-js .hn-mobile-panel {
    visibility: visible;
    pointer-events: auto;
}

.hn-mobile-panel a {
    display: flex;
    min-height: 48px;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    color: var(--muted-strong);
    font-weight: 700;
}

.hn-mobile-panel a:last-child {
    justify-content: center;
    margin-top: 8px;
    border: 0;
    border-radius: 10px;
    background: var(--cyan);
    color: var(--void);
}

.hn-detail-main {
    min-height: calc(100vh - var(--header-height));
}

.hn-role-hero {
    position: relative;
    overflow: hidden;
    padding: 28px 0 42px;
    border-bottom: 1px solid var(--line);
}

.hn-role-hero::before {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 82% 24%, color-mix(in srgb, var(--rn-accent, #72dfcd) 11%, transparent), transparent 24rem),
        linear-gradient(118deg, color-mix(in srgb, var(--rn-secondary, #7892ff) 8%, transparent), transparent 48%);
    content: "";
    pointer-events: none;
}

.hn-role-hero__inner {
    position: relative;
    z-index: 1;
}

.hn-back-link {
    display: inline-flex;
    min-height: 44px;
    margin-bottom: 22px;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    transition:
        color 160ms ease,
        transform 160ms ease;
}

.hn-back-link svg {
    width: 17px;
    height: 17px;
}

.hn-back-link:hover {
    color: var(--cyan);
    transform: translateX(-2px);
}

.hn-eyebrow {
    margin: 0 0 14px;
    color: var(--cyan);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hn-role-hero__grid {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr) minmax(176px, auto);
    align-items: center;
    gap: 22px 30px;
}

.hn-company-logo {
    display: grid;
    width: 86px;
    height: 86px;
    overflow: hidden;
    place-items: center;
    /* Top-aligned with the role title's first line rather than floating
       beside the block: the eyebrow above the H1 is 12px mono plus its
       8px margin, which this offset skips. */
    align-self: start;
    margin-top: 24px;
    border: 1px solid var(--line-strong);
    border-radius: 18px;
    /* A light tile whatever the theme, so a dark employer mark (or a
       light one) always reads - same treatment as the board cards. */
    background: var(--ice);
    color: var(--ink);
    font-family: var(--display);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.04em;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
}

.hn-company-logo img {
    width: 100%;
    height: 100%;
    padding: 12px;
    object-fit: contain;
}

.hn-role-hero__content {
    min-width: 0;
}

.hn-role-hero__content .hn-eyebrow {
    margin-bottom: 8px;
}

.hn-role-hero__content .hn-eyebrow span {
    color: var(--blue);
}

.hn-role-title,
.hn-unavailable h1 {
    max-width: 900px;
    margin: 0;
    color: var(--ice);
    font-family: var(--display);
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.06;
    letter-spacing: -0.05em;
    overflow-wrap: anywhere;
}

.hn-role-company {
    display: flex;
    margin: 11px 0 0;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    color: var(--muted-strong);
    font-size: 16px;
    font-weight: 700;
}

.hn-role-company__industry {
    color: var(--muted);
    font-weight: 500;
}

.hn-role-company > span,
.hn-metadata-tile > span:last-child,
.hn-next-step > span:last-child,
.hn-related-card__identity > span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.hn-role-summary-text {
    max-width: 74ch;
    margin: 13px 0 0;
    color: var(--muted-strong);
    font-size: 15px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.hn-role-hero__actions {
    display: flex;
    min-width: 176px;
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
}

.hn-role-hero__actions .hn-button {
    width: 100%;
}

.hn-role-metadata {
    position: relative;
    display: grid;
    margin-top: 30px;
    /* Not a fixed column count. Five tiles against four columns left one
       stranded on a row of its own, which is what made this strip look
       broken. auto-fit puts them all on one line when there is room and
       fills each row evenly when there is not, whatever the count. */
    grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
    gap: 12px;
    isolation: isolate;
}

/* .hn-role-signal used to be drawn behind these tiles. Being behind
   opaque cards, the only part of it anyone ever saw was the segment
   crossing the gap between two rows, which read as a rendering fault
   rather than as decoration. */
.hn-metadata-tile {
    position: relative;
    z-index: 1;
    display: grid;
    min-width: 0;
    min-height: 82px;
    padding: 15px 16px;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    border: 1px solid var(--line-strong);
    border-radius: 15px;
    background: linear-gradient(145deg, #132239, #0d192a);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}

.hn-metadata-tile__icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--rn-accent, #72dfcd) 28%, transparent);
    border-radius: 11px;
    background: color-mix(in srgb, var(--rn-accent, #72dfcd) 7%, transparent);
    color: var(--cyan);
}

.hn-metadata-tile__icon svg {
    width: 19px;
    height: 19px;
}

.hn-metadata-tile__label,
.hn-metadata-tile__value {
    display: block;
}

/* A deadline inside a fortnight is worth noticing before a candidate
   starts an application; a distant one stays quiet and shows the date. */
.hn-metadata-tile__value.is-closing-soon { color: #ffb45b; }
.hn-metadata-tile__value small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
}

.hn-metadata-tile__label {
    margin-bottom: 3px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hn-metadata-tile__value {
    color: var(--ice);
    font-size: 13px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.hn-role-summary {
    padding: 54px 0 68px;
}

.hn-role-layout {
    display: grid;
    width: var(--container);
    margin-inline: auto;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "panel"
        "article";
    align-items: start;
    gap: 30px;
}

.hn-role-article {
    grid-area: article;
    min-width: 0;
    padding: clamp(28px, 5vw, 48px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(13, 25, 42, 0.62);
}

.hn-role-article__header {
    max-width: 72ch;
    margin-bottom: 30px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.hn-role-article__header .hn-eyebrow {
    margin-bottom: 8px;
}

.hn-role-article h2 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.hn-role-copy h4,
.hn-role-copy h5 {
    margin: 36px 0 13px;
    color: var(--ice);
    font-family: var(--display);
    font-size: clamp(20px, 2.5vw, 24px);
    line-height: 1.3;
    letter-spacing: -0.025em;
}

.hn-role-copy,
.hn-role-article > p,
.hn-company-intro {
    max-width: 72ch;
}

.hn-role-copy p,
.hn-role-copy li,
.hn-role-article > p,
.hn-company-intro p {
    color: var(--muted-strong);
    font-size: 17px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.hn-role-copy p {
    margin: 0 0 20px;
}

/* A sub-heading (### in the description) sits under its section. */
.hn-role-copy h6 {
    margin: 26px 0 10px;
    color: var(--ice);
    font-family: var(--display);
    font-size: clamp(17px, 2vw, 19px);
    line-height: 1.35;
}

.hn-role-copy ul,
.hn-role-copy ol {
    margin: 0 0 24px;
    padding-left: 24px;
}

.hn-role-copy li {
    padding-left: 5px;
}

.hn-role-copy li + li {
    margin-top: 8px;
}

.hn-role-copy li::marker {
    color: var(--cyan);
}

.hn-company-intro {
    margin-top: 46px;
    padding-top: 34px;
    border-top: 1px solid var(--line);
}

.hn-company-intro h2 {
    margin-bottom: 15px;
    font-size: clamp(25px, 3vw, 32px);
    overflow-wrap: anywhere;
}

.hn-company-intro p {
    margin: 0;
}

.hn-application-panel {
    grid-area: panel;
    min-width: 0;
    padding: 26px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background:
        linear-gradient(145deg, rgba(19, 34, 57, 0.98), rgba(13, 25, 42, 0.98));
    box-shadow: var(--shadow);
}

.hn-application-panel__primary .hn-eyebrow {
    margin-bottom: 7px;
}

.hn-application-panel h2 {
    margin: 0;
    font-family: var(--display);
    font-size: 25px;
    line-height: 1.2;
    letter-spacing: -0.035em;
}

.hn-application-panel__intro {
    margin: 10px 0 18px;
    color: var(--muted-strong);
    font-size: 14px;
    line-height: 1.65;
}

.hn-application-facts {
    margin: 0 0 20px;
}

.hn-application-facts div {
    display: flex;
    min-width: 0;
    padding: 8px 0;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--line);
}

.hn-application-facts dt {
    flex: 0 0 auto;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.hn-application-facts dd {
    min-width: 0;
    margin: 0;
    color: var(--ice);
    font-size: 13px;
    font-weight: 700;
    text-align: right;
    overflow-wrap: anywhere;
}

.hn-application-panel .hn-button {
    width: 100%;
}

.hn-next {
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid var(--line-strong);
}

.hn-next h3 {
    margin: 0 0 18px;
    font-family: var(--display);
    font-size: 18px;
    letter-spacing: -0.02em;
}

.hn-next-steps {
    display: grid;
    margin: 0;
    padding: 0;
    gap: 17px;
    list-style: none;
}

.hn-next-step {
    position: relative;
    display: grid;
    min-width: 0;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
}

.hn-next-step:not(:last-child)::after {
    position: absolute;
    top: 47px;
    bottom: -15px;
    left: 21px;
    width: 1px;
    background: linear-gradient(var(--cyan), color-mix(in srgb, var(--rn-secondary, #7892ff) 42%, transparent));
    content: "";
}

.hn-next-step__icon {
    position: relative;
    z-index: 1;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--rn-accent, #72dfcd) 31%, transparent);
    border-radius: 13px;
    background: var(--surface-raised);
    color: var(--cyan);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

.hn-next-step__icon svg {
    width: 21px;
    height: 21px;
}

.hn-next-step strong {
    display: block;
    margin-top: 1px;
    color: var(--ice);
    font-size: 13px;
    line-height: 1.4;
}

.hn-next-step p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.hn-related {
    padding: 0 0 84px;
}

.hn-related__header {
    display: flex;
    margin-bottom: 24px;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.hn-related__header .hn-eyebrow {
    margin-bottom: 7px;
}

.hn-related__header h2 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(28px, 4vw, 38px);
    letter-spacing: -0.04em;
}

.hn-related__header > a {
    min-height: 44px;
    padding: 10px 0;
    color: var(--cyan);
    font-weight: 800;
}

.hn-related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.hn-related-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 18px;
    background: linear-gradient(145deg, var(--surface-raised), var(--surface));
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.hn-related-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    content: "";
}

.hn-related-card__link {
    display: flex;
    min-width: 0;
    min-height: 230px;
    padding: 24px;
    flex-direction: column;
    transition:
        border-color 180ms ease,
        background-color 180ms ease,
        transform 180ms ease;
}

.hn-related-card__link:hover {
    background: color-mix(in srgb, var(--rn-accent, #72dfcd) 3.5%, transparent);
    transform: translateY(-3px);
}

.hn-related-card__identity {
    display: flex;
    min-width: 0;
    margin-bottom: 18px;
    align-items: center;
    gap: 13px;
}

.hn-related-logo {
    display: grid;
    width: 52px;
    height: 52px;
    overflow: hidden;
    flex: 0 0 52px;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 13px;
    background: rgba(245, 247, 251, 0.06);
    color: var(--cyan);
    font-family: var(--display);
    font-size: 17px;
    font-weight: 800;
}

.hn-related-logo img {
    width: 100%;
    height: 100%;
    padding: 8px;
    object-fit: contain;
}

.hn-related-card__company,
.hn-related-card__location {
    display: block;
    overflow-wrap: anywhere;
}

.hn-related-card__company {
    color: var(--muted-strong);
    font-size: 13px;
    font-weight: 800;
}

.hn-related-card__location {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.hn-related-card h3 {
    margin: 0;
    color: var(--ice);
    font-family: var(--display);
    font-size: clamp(20px, 2.4vw, 25px);
    line-height: 1.3;
    letter-spacing: -0.035em;
    overflow-wrap: anywhere;
}

.hn-related-card__meta {
    display: flex;
    margin: 12px 0 22px;
    flex-wrap: wrap;
    gap: 6px 12px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.hn-related-card__action {
    display: inline-flex;
    margin-top: auto;
    align-items: center;
    gap: 8px;
    color: var(--cyan);
    font-size: 13px;
    font-weight: 800;
}

.hn-related-card__action svg {
    width: 16px;
    height: 16px;
    transition: transform 180ms ease;
}

.hn-related-card__link:hover .hn-related-card__action svg {
    transform: translateX(3px);
}

.hn-unavailable {
    display: grid;
    width: var(--container);
    min-height: min(680px, calc(100vh - var(--header-height)));
    margin-inline: auto;
    place-content: center;
    justify-items: start;
    padding: 80px 0;
}

.hn-unavailable p:not(.hn-eyebrow) {
    max-width: 620px;
    margin: 24px 0 32px;
    color: var(--muted-strong);
    font-size: 18px;
}

.hn-site-footer {
    border-top: 1px solid var(--line);
    background: var(--ink);
}

.hn-site-footer__inner {
    display: grid;
    width: var(--container);
    min-height: 172px;
    margin-inline: auto;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 48px;
    padding: 36px 0;
}

.hn-site-footer__brand p {
    max-width: 560px;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.hn-site-footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 24px;
}

.hn-site-footer__links a {
    min-height: 44px;
    padding: 10px 0;
    color: var(--muted-strong);
    font-size: 13px;
    font-weight: 700;
}

.hn-site-footer__links a:hover {
    color: var(--cyan);
}

.hn-site-footer__meta {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
}

@media (min-width: 1100px) {
    .hn-role-layout {
        grid-template-columns: minmax(0, 1fr) 340px;
        grid-template-areas: "article panel";
        gap: clamp(40px, 5vw, 68px);
    }

    .hn-application-panel {
        position: sticky;
        top: calc(var(--header-height) + 24px);
    }
}

@media (min-width: 768px) and (max-width: 1099px) {
    .hn-role-hero__grid {
        grid-template-columns: 76px minmax(0, 1fr);
    }

    .hn-company-logo {
        width: 76px;
        height: 76px;
    }

    .hn-role-hero__actions {
        grid-column: 2;
        min-width: 0;
        align-items: center;
        flex-direction: row;
        justify-content: flex-start;
    }

    .hn-role-hero__actions .hn-button {
        width: auto;
        min-width: 158px;
    }

    .hn-role-metadata {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hn-application-panel {
        display: grid;
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        gap: 30px;
    }

    .hn-next {
        margin-top: 0;
        padding-top: 0;
        padding-left: 30px;
        border-top: 0;
        border-left: 1px solid var(--line-strong);
    }
}

@media (max-width: 767px) {
    :root {
        --container: min(100% - 32px, 1220px);
        --header-height: 72px;
    }

    .hn-nav__links {
        display: none;
    }

    .hn-menu-toggle {
        display: grid;
    }

    .hn-mobile-panel {
        display: block;
    }

    .hn-role-hero {
        padding: 20px 0 34px;
    }

    .hn-back-link {
        margin-bottom: 16px;
    }

    .hn-role-hero__grid {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 18px;
    }

    .hn-company-logo {
        width: 64px;
        height: 64px;
        border-radius: 15px;
        font-size: 22px;
    }

    .hn-company-logo img {
        padding: 9px;
    }

    .hn-role-title {
        font-size: clamp(32px, 10vw, 44px);
    }

    .hn-role-summary-text {
        font-size: 14px;
    }

    .hn-role-hero__actions {
        grid-column: 1 / -1;
        min-width: 0;
        flex-direction: column;
    }

    .hn-role-hero__actions .hn-button {
        width: 100%;
    }

    .hn-unavailable__action {
        width: 100%;
    }

    .hn-role-metadata {
        margin-top: 24px;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .hn-metadata-tile {
        min-height: 74px;
    }

    .hn-role-summary {
        padding: 38px 0 52px;
    }

    .hn-role-article {
        padding: 25px 22px;
    }

    .hn-role-copy p,
    .hn-role-copy li,
    .hn-role-article > p,
    .hn-company-intro p {
        font-size: 16px;
    }

    .hn-application-panel {
        padding: 22px;
    }

    .hn-related {
        padding-bottom: 60px;
    }

    .hn-related__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .hn-related-grid,
    .hn-site-footer__inner {
        grid-template-columns: 1fr;
    }

    .hn-related-card__link {
        min-height: 0;
    }

    .hn-site-footer__inner {
        gap: 24px;
    }

    .hn-site-footer__links {
        justify-content: flex-start;
    }

    .hn-site-footer__meta {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 519px) {
    :root {
        --container: calc(100% - 48px);
    }

    .hn-role-hero__grid {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 14px;
    }

    .hn-company-logo {
        width: 56px;
        height: 56px;
        border-radius: 13px;
        font-size: 19px;
    }

    .hn-role-company {
        font-size: 14px;
    }

    .hn-metadata-tile {
        padding: 13px;
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 10px;
    }

    .hn-metadata-tile__icon {
        width: 38px;
        height: 38px;
    }

    .hn-application-panel,
    .hn-related-card__link {
        padding: 20px;
    }

    .hn-role-article {
        padding: 24px 20px;
    }
}

/* Scraped-role disclosure block, rendered inside the application
   panel by scrapedApplyBlock(). Same tokens as the rest of the page. */
.hn-scraped-disclosure {
    border: 1px solid color-mix(in srgb, color-mix(in srgb, var(--rn-primary, #00c3ab) 96%, #000) 35%, transparent);
    background: color-mix(in srgb, color-mix(in srgb, var(--rn-primary, #00c3ab) 96%, #000) 6%, transparent);
    border-radius: 14px;
    padding: 16px 18px;
    margin: 0 0 16px;
}

.hn-scraped-disclosure h2 {
    margin: 0 0 8px;
    font-size: 15px;
}

.hn-scraped-disclosure p {
    margin: 0;
    line-height: 1.6;
    font-size: 13.5px;
}

.hn-scraped-disclosure a {
    text-decoration: underline;
    color: inherit;
}

.hn-scraped-apply .hn-button {
    width: 100%;
    cursor: pointer;
    border: 0;
    font-family: inherit;
    font-size: 15px;
}

.hn-scraped-apply-unavailable {
    font-size: 13.5px;
    opacity: 0.8;
    margin: 0;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
