/* ==========================================================================
   Ilion public UI: components (GH #266)
   Buttons, labels, hero, cards, forms, alerts, panels and status screens,
   shared by every public page. Use these before writing page CSS.
   ========================================================================== */

/* ---------------------------------------------------------------- Buttons */
.ps-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .6rem 1.1rem; border-radius: 999px; border: 1px solid transparent;
    font-weight: 500; font-size: .95rem; line-height: 1.2; text-decoration: none; cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    white-space: nowrap;
}
.ps-btn--gold { background: var(--ps-gold); color: var(--ps-on-gold); }
.ps-btn--gold:hover { background: var(--ps-gold-strong); color: var(--ps-on-gold); transform: translateY(-1px); box-shadow: var(--ps-shadow); }
.ps-btn--dark { background: var(--ps-ink); color: var(--ps-bg); }
.ps-btn--dark:hover { color: var(--ps-bg); opacity: .9; }
.ps-btn--ghost { border-color: var(--ps-line); color: var(--ps-ink); background: var(--ps-bg-card); }
.ps-btn--ghost:hover { border-color: var(--ps-ink-soft); color: var(--ps-ink); }
.ps-btn--lg { padding: .85rem 1.5rem; font-size: 1.05rem; }
.ps-btn--sm { padding: .4rem .85rem; font-size: .85rem; }
.ps-btn:disabled, .ps-btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

/* -------------------------------------------------------- Labels and links */
.ps-eyebrow {
    display: inline-block; margin: 0 0 .5rem; font-size: .75rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase; color: var(--ps-muted); text-decoration: none;
}
a.ps-eyebrow:hover { color: var(--ps-ink); }
.ps-eyebrow--gold { color: var(--ps-gold-text); }
.ps-cta .ps-eyebrow--gold { color: var(--ps-gold); }

.ps-meta { margin: 0; font-size: .875rem; color: var(--ps-muted); }

.ps-crumbs { font-size: .875rem; color: var(--ps-muted); margin-bottom: 1rem; }
.ps-crumbs a { color: var(--ps-muted); text-decoration: none; }
.ps-crumbs a:hover { color: var(--ps-ink); text-decoration: underline; }
.ps-crumbs span[aria-hidden] { margin: 0 .35rem; }

.ps-chips, .ps-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.ps-chip {
    display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .85rem; border-radius: 999px;
    border: 1px solid var(--ps-line); background: var(--ps-bg-card); color: var(--ps-ink-soft);
    font-size: .9rem; text-decoration: none; transition: border-color .15s, background .15s;
}
a.ps-chip:hover { border-color: var(--ps-ink-soft); color: var(--ps-ink); }
.ps-chip.is-active { background: var(--ps-ink); border-color: var(--ps-ink); color: var(--ps-bg); }
.ps-chip__count { font-size: .75rem; opacity: .65; }
.ps-chip--sm { padding: .2rem .65rem; font-size: .8rem; }
.ps-chip--gold { background: color-mix(in srgb, var(--ps-gold) 22%, transparent); border-color: transparent; color: var(--ps-ink); }

.ps-link-arrow { color: var(--ps-link); font-weight: 500; text-decoration: none; }
.ps-link-arrow:hover { text-decoration: underline; }
.ps-link-arrow i { transition: transform .15s ease; }
.ps-link-arrow:hover i { transform: translateX(3px); }

/* ------------------------------------------------------------------- Hero */
.ps-hero {
    background:
        radial-gradient(60rem 22rem at 85% -10%, color-mix(in srgb, var(--ps-gold) 22%, transparent), transparent 70%),
        var(--ps-bg-soft);
    border-bottom: 1px solid var(--ps-line);
}
.ps-hero__inner { max-width: var(--ps-wide); margin: 0 auto; padding: 3.5rem 1rem 2.5rem; }
.ps-hero__inner--form { max-width: var(--ps-form); }
.ps-hero__title {
    font-family: var(--ps-serif); font-weight: 600; letter-spacing: -.02em;
    font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.08; margin: 0 0 .75rem; color: var(--ps-ink);
}
.ps-hero__lead { font-size: 1.2rem; line-height: 1.55; color: var(--ps-ink-soft); max-width: 40rem; margin: 0 0 1.75rem; }
.ps-hero__lead:last-child { margin-bottom: 0; }

.ps-hero__search {
    display: flex; align-items: center; gap: .5rem; max-width: 40rem; margin-bottom: 1.5rem;
    background: var(--ps-bg-card); border: 1px solid var(--ps-line); border-radius: 999px;
    padding: .35rem .35rem .35rem 1.1rem; box-shadow: var(--ps-shadow);
}
.ps-hero__search i { color: var(--ps-muted); }
.ps-hero__search input {
    flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--ps-ink);
    font-size: 1rem; padding: .5rem 0;
}
.ps-hero__search:focus-within { border-color: var(--ps-gold); }

/* Facts under a hero title (department, location, type ...) */
.ps-facts { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; color: var(--ps-ink-soft); }
.ps-facts li { display: inline-flex; align-items: center; gap: .5rem; }
.ps-facts i { color: var(--ps-gold-strong); }

/* ------------------------------------------------------------------ Cards */
.ps-results { margin: 2rem 0 0; color: var(--ps-ink-soft); }
.ps-results a { color: var(--ps-link); }

.ps-grid {
    display: grid; gap: 1.5rem; margin: 2rem 0;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
}
.ps-grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: 1rem; }
.ps-card {
    display: flex; flex-direction: column; background: var(--ps-bg-card);
    border: 1px solid var(--ps-line); border-radius: var(--ps-radius); overflow: hidden;
    box-shadow: var(--ps-shadow); transition: transform .2s ease, box-shadow .2s ease; position: relative;
}
.ps-card:hover { transform: translateY(-3px); box-shadow: var(--ps-shadow-hover); }
.ps-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ps-bg-soft); position: relative; }
.ps-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.ps-card:hover .ps-card__media img { transform: scale(1.03); }
.ps-card__media--placeholder {
    display: flex; align-items: flex-end; padding: 1.25rem; text-decoration: none;
    background:
        radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--ps-gold) 55%, transparent), transparent 55%),
        linear-gradient(135deg, #24292F 0%, #1C3D5A 100%);
}
.ps-card__monogram {
    font-family: var(--ps-serif); font-size: 1.5rem; font-weight: 600; color: #F3F1EC; line-height: 1.1;
    border-left: 3px solid var(--ps-gold); padding-left: .75rem;
}
.ps-card__body { display: flex; flex-direction: column; gap: .35rem; padding: 1.25rem 1.35rem 1.4rem; flex: 1; }
.ps-card__title { font-family: var(--ps-serif); font-weight: 600; font-size: 1.3rem; line-height: 1.25; margin: 0; }
.ps-card__title a { color: var(--ps-ink); text-decoration: none; }
.ps-card__title a::after { content: ''; position: absolute; inset: 0; }  /* whole card clickable */
.ps-card__title a:focus-visible { outline: none; }
.ps-card:focus-within { outline: 3px solid var(--ps-gold); outline-offset: 2px; }
.ps-card .ps-eyebrow, .ps-card .ps-chip { position: relative; z-index: 1; align-self: flex-start; }
.ps-card__summary {
    margin: .15rem 0 .5rem; color: var(--ps-ink-soft); line-height: 1.55; font-size: .9375rem;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ps-card .ps-meta { margin-top: auto; }
.ps-card__footer { margin-top: auto; padding-top: .75rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.ps-card__footer .ps-link-arrow::after { content: ''; position: absolute; inset: 0; }   /* whole card clickable */

.ps-card--feature { margin-top: 2rem; display: grid; grid-template-columns: 1.25fr 1fr; }
.ps-card--feature .ps-card__media { aspect-ratio: auto; min-height: 20rem; }
.ps-card--feature .ps-card__body { padding: 2rem 2.25rem; justify-content: center; }
.ps-card--feature .ps-card__title { font-size: clamp(1.6rem, 3vw, 2.25rem); }
.ps-card--feature .ps-card__summary { font-size: 1.1rem; -webkit-line-clamp: 4; }
.ps-card--feature .ps-card__monogram { font-size: 2.25rem; }

.ps-card--text { border-top: 4px solid var(--ps-gold); }
.ps-card--text .ps-card__body { padding-top: 1.6rem; }
.ps-card--feature.ps-card--text { grid-template-columns: 1fr; }
.ps-card--feature.ps-card--text .ps-card__body { padding: 2.5rem; }
.ps-card__credit {
    position: absolute; right: .5rem; bottom: .5rem; max-width: calc(100% - 1rem);
    padding: .15rem .5rem; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff;
    font-size: .7rem; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* A small static card: icon, title, text (links, next steps) */
.ps-tile {
    display: flex; flex-direction: column; gap: .35rem; padding: 1.25rem; border: 1px solid var(--ps-line);
    border-radius: var(--ps-radius-sm); background: var(--ps-bg-card); color: var(--ps-ink-soft); text-decoration: none;
    transition: border-color .15s, box-shadow .15s;
}
a.ps-tile:hover { border-color: var(--ps-gold); box-shadow: var(--ps-shadow); color: var(--ps-ink-soft); }
.ps-tile > i { font-size: 1.25rem; color: var(--ps-gold-strong); margin-bottom: .25rem; }
.ps-tile strong { color: var(--ps-ink); font-size: 1rem; }
.ps-tile span { font-size: .9rem; line-height: 1.45; }

.ps-empty { text-align: center; padding: 4rem 1rem; color: var(--ps-ink-soft); }
.ps-empty > i { font-size: 2rem; color: var(--ps-muted); }
.ps-empty h2 { font-family: var(--ps-serif); margin: 1rem 0 .5rem; }
.ps-empty a { color: var(--ps-link); }

.ps-pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 1rem 0 3rem; color: var(--ps-muted); }

/* ------------------------------------------------------- Panels and status */
.ps-panel {
    background: var(--ps-bg-card); border: 1px solid var(--ps-line); border-radius: var(--ps-radius);
    box-shadow: var(--ps-shadow); padding: 2rem;
}
.ps-panel + .ps-panel { margin-top: 1.5rem; }
.ps-panel--overlap { margin-top: -1.5rem; position: relative; }   /* rises into the hero above */
.ps-panel__title { font-family: var(--ps-serif); font-weight: 600; font-size: 1.35rem; margin: 0 0 1rem; }

/* Success / expired / invalid screens: big icon, title, text, actions */
.ps-status { text-align: center; padding: 1rem 0; }
.ps-status__icon {
    width: 4rem; height: 4rem; margin: 0 auto 1.25rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 1.75rem;
    background: var(--ps-info-bg); color: var(--ps-info);
}
.ps-status--success .ps-status__icon { background: var(--ps-success-bg); color: var(--ps-success); }
.ps-status--danger .ps-status__icon { background: var(--ps-danger-bg); color: var(--ps-danger); }
.ps-status--warning .ps-status__icon { background: var(--ps-warning-bg); color: var(--ps-warning); }
.ps-status__title { font-family: var(--ps-serif); font-weight: 600; font-size: clamp(1.6rem, 3.5vw, 2.1rem); margin: 0 0 .5rem; }
.ps-status__text { color: var(--ps-ink-soft); max-width: 34rem; margin: 0 auto 1.5rem; font-size: 1.05rem; }
.ps-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.5rem; }
.ps-actions--start { justify-content: flex-start; }

/* Ticked list (what happens next) */
.ps-steps { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .75rem; text-align: left; }
.ps-steps li { display: flex; gap: .75rem; align-items: flex-start; color: var(--ps-ink-soft); }
.ps-steps li::before {
    content: '\2713'; flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; font-size: .8rem; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--ps-gold) 30%, transparent); color: var(--ps-ink);
}

/* A reference number or code the visitor should keep */
.ps-reference {
    display: inline-flex; align-items: center; gap: .75rem; padding: .6rem 1rem; border-radius: var(--ps-radius-sm);
    background: var(--ps-bg-soft); border: 1px dashed var(--ps-line); font-size: .95rem;
}
.ps-reference strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ps-ink); letter-spacing: .04em; }

/* ----------------------------------------------------------------- Alerts */
.ps-alert {
    display: flex; gap: .75rem; align-items: flex-start; padding: 1rem 1.15rem; margin: 0 0 1.5rem;
    border-radius: var(--ps-radius-sm); border: 1px solid transparent; font-size: .95rem;
    background: var(--ps-info-bg); color: var(--ps-info);
}
.ps-alert > i { margin-top: .15rem; }
.ps-alert ul { margin: .35rem 0 0; padding-left: 1.1rem; }
.ps-alert p { margin: 0; }
.ps-alert--danger { background: var(--ps-danger-bg); color: var(--ps-danger); border-color: color-mix(in srgb, var(--ps-danger) 25%, transparent); }
.ps-alert--success { background: var(--ps-success-bg); color: var(--ps-success); }
.ps-alert--warning { background: var(--ps-warning-bg); color: var(--ps-warning); }

/* ------------------------------------------------------------------ Forms */
.ps-form { display: grid; gap: 1.35rem; }
.ps-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.35rem; }
.ps-form__section { border: 0; margin: 0; padding: 0; display: grid; gap: 1.35rem; }
.ps-form__section > legend { font-family: var(--ps-serif); font-weight: 600; font-size: 1.2rem; color: var(--ps-ink); margin-bottom: .5rem; padding: 0; }
.ps-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: .5rem; }

.ps-field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.ps-label { font-weight: 500; font-size: .95rem; color: var(--ps-ink); }
.ps-required { color: var(--ps-danger); margin-left: .15rem; }
.ps-optional { color: var(--ps-muted); font-weight: 400; font-size: .85rem; margin-left: .25rem; }
.ps-help { font-size: .85rem; color: var(--ps-muted); margin: 0; }
.ps-error { font-size: .85rem; color: var(--ps-danger); margin: 0; display: flex; gap: .4rem; align-items: baseline; }

.ps-field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
.ps-field select,
.ps-field textarea {
    width: 100%; padding: .7rem .9rem; border: 1px solid var(--ps-line); border-radius: var(--ps-radius-sm);
    background: var(--ps-bg-card); color: var(--ps-ink); font-size: 1rem; line-height: 1.4;
    transition: border-color .15s, box-shadow .15s;
}
.ps-field select { appearance: auto; }
.ps-field textarea { min-height: 9rem; resize: vertical; }
.ps-field input::placeholder, .ps-field textarea::placeholder { color: var(--ps-muted); opacity: .85; }
.ps-field input:focus, .ps-field select:focus, .ps-field textarea:focus {
    outline: none; border-color: var(--ps-gold); box-shadow: var(--ps-focus);
}
.ps-field.has-error input, .ps-field.has-error select, .ps-field.has-error textarea { border-color: var(--ps-danger); }
html[data-theme="dark"] .ps-field input, html[data-theme="dark"] .ps-field select { color-scheme: dark; }

/* Checkbox and radio rows, consent boxes */
.ps-check { display: flex; gap: .65rem; align-items: flex-start; font-size: .95rem; color: var(--ps-ink-soft); }
.ps-check input { width: 1.15rem; height: 1.15rem; margin: .15rem 0 0; accent-color: var(--ps-gold-strong); flex: none; }
.ps-field ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }   /* Django radio/checkbox lists */
fieldset.ps-field { border: 0; margin: 0; padding: 0; }
fieldset.ps-field > legend { padding: 0; margin-bottom: .4rem; }
.ps-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .5rem 1rem; }
/* Rows the visitor adds and removes (a team: role, seniority, time), each a line of fields */
.ps-repeat { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.ps-repeat:empty { display: none; }
.ps-repeat > li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 7rem) auto; gap: .75rem; align-items: end; }
@media (max-width: 640px) { .ps-repeat > li { grid-template-columns: 1fr 1fr; } .ps-repeat > li > .ps-field:first-child { grid-column: 1 / -1; } .ps-repeat > li > .ps-btn { justify-self: start; } }
.ps-field ul label { display: flex; gap: .6rem; align-items: center; color: var(--ps-ink-soft); }
.ps-field ul input { accent-color: var(--ps-gold-strong); width: 1.1rem; height: 1.1rem; }
.ps-consent {
    display: grid; gap: .85rem; padding: 1.15rem 1.25rem; border-radius: var(--ps-radius-sm);
    background: var(--ps-bg-soft); border: 1px solid var(--ps-line);
}
.ps-consent .ps-help a { color: var(--ps-link); }

/* File upload drop zone: a label wrapping the file input */
.ps-dropzone {
    display: flex; flex-direction: column; align-items: center; gap: .35rem; text-align: center; cursor: pointer;
    padding: 1.75rem 1rem; border: 2px dashed var(--ps-line); border-radius: var(--ps-radius-sm);
    background: var(--ps-bg-soft); color: var(--ps-ink-soft); transition: border-color .15s, background .15s;
}
.ps-dropzone:hover, .ps-dropzone.is-dragover { border-color: var(--ps-gold); background: color-mix(in srgb, var(--ps-gold) 8%, var(--ps-bg-soft)); }
.ps-dropzone > i { font-size: 1.75rem; color: var(--ps-gold-strong); }
.ps-dropzone small { color: var(--ps-muted); }
.ps-dropzone input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ps-dropzone__file { font-weight: 500; color: var(--ps-ink); }

/* Bots fill it, people never see it */
.ps-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------- Responsive */
@media (max-width: 900px) {
    .ps-card--feature { grid-template-columns: 1fr; }
    .ps-card--feature .ps-card__media { min-height: 0; aspect-ratio: 16 / 9; }
    .ps-card--feature .ps-card__body { padding: 1.5rem; }
}

@media (max-width: 640px) {
    .ps-hero__inner { padding: 2.25rem 1rem 1.75rem; }
    .ps-hero__search { padding-left: .9rem; }
    .ps-hero__search .ps-btn { padding: .55rem .9rem; }
    .ps-form__row { grid-template-columns: 1fr; }
    .ps-panel { padding: 1.35rem; }
    .ps-btn--lg { width: 100%; }
}

/* Facts inside a card: smaller, tighter */
.ps-facts--compact { margin: .25rem 0 0; gap: .25rem 1rem; font-size: .875rem; color: var(--ps-muted); }

/* Formatted text outside the CMS (job descriptions and the like) */
.ps-prose { color: var(--ps-ink-soft); font-size: 1.05rem; line-height: 1.7; }
.ps-prose > *:first-child { margin-top: 0; }
.ps-prose h1, .ps-prose h2, .ps-prose h3, .ps-prose h4 { font-family: var(--ps-serif); font-weight: 600; color: var(--ps-ink); margin: 2rem 0 .75rem; }
.ps-prose h1 { font-size: 1.6rem; }
.ps-prose h2 { font-size: 1.4rem; }
.ps-prose h3, .ps-prose h4 { font-size: 1.15rem; }
.ps-prose p, .ps-prose ul, .ps-prose ol { margin: 0 0 1.1rem; }
.ps-prose li { margin-bottom: .35rem; }
.ps-prose strong { color: var(--ps-ink); }
.ps-prose a { color: var(--ps-link); }

/* ===================================================== Personal-link pages
   (GH #266 phase 2: offers, surveys, interview and meeting booking, uploads)
   Designed on the "Public pages phase 2" canvas. */

/* A short line under the hero title: dates, who it is for */
.ps-hero__meta { margin: .75rem 0 0; color: var(--ps-ink-soft); font-size: .95rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; }

/* Panel heading with a note on the right */
.ps-panel__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .25rem 1rem; margin-bottom: 1rem; }
.ps-panel__head .ps-panel__title { margin: 0; }
.ps-panel__subtitle { font-family: var(--ps-serif); font-weight: 600; font-size: 1.1rem; margin: 1.75rem 0 .75rem; }
.ps-divider { border: 0; border-top: 1px solid var(--ps-line); margin: 1.75rem 0; }
.ps-note { text-align: center; margin: 1.25rem 0 0; font-size: .875rem; color: var(--ps-muted); }
.ps-note a { color: var(--ps-link); }

/* Label / value pairs: offer terms, booking details, receipts */
.ps-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; margin: 0; }
.ps-details > div { min-width: 0; }
.ps-details dt { font-size: .8rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--ps-muted); margin: 0 0 .2rem; }
.ps-details dd { margin: 0; color: var(--ps-ink); font-weight: 500; overflow-wrap: anywhere; }
.ps-details__wide { grid-column: 1 / -1; }
.ps-details__wide dd { font-weight: 400; color: var(--ps-ink-soft); }
.ps-details--boxed { padding: 1.15rem 1.25rem; border-radius: var(--ps-radius-sm); background: var(--ps-bg-soft); border: 1px solid var(--ps-line); text-align: left; }

/* The figure that matters most (salary) */
.ps-highlight {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem; margin: 1.5rem 0 0;
    padding: 1rem 1.25rem; border-radius: var(--ps-radius-sm);
    background: color-mix(in srgb, var(--ps-gold) 14%, var(--ps-bg-card)); border: 1px solid color-mix(in srgb, var(--ps-gold) 45%, transparent);
}
.ps-highlight strong { font-family: var(--ps-serif); font-size: 1.6rem; font-weight: 600; color: var(--ps-ink); }
.ps-highlight span { color: var(--ps-ink-soft); }

/* Two big choices (accept / decline): radio inputs inside labels */
.ps-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; border: 0; margin: 0; padding: 0; }
.ps-choice { position: relative; display: block; cursor: pointer; }
.ps-choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ps-choice__body {
    display: flex; gap: .85rem; align-items: flex-start; height: 100%; padding: 1.1rem 1.15rem;
    border: 1px solid var(--ps-line); border-radius: var(--ps-radius-sm); background: var(--ps-bg-card);
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.ps-choice__body > i { font-size: 1.35rem; margin-top: .1rem; color: var(--ps-muted); }
.ps-choice__body strong { display: block; color: var(--ps-ink); }
.ps-choice__body small { display: block; margin-top: .15rem; color: var(--ps-muted); font-size: .875rem; }
.ps-choice:hover .ps-choice__body { border-color: var(--ps-gold); }
.ps-choice input:focus-visible + .ps-choice__body { box-shadow: var(--ps-focus); }
.ps-choice input:checked + .ps-choice__body { border: 2px solid var(--ps-gold-strong); padding: calc(1.1rem - 1px) calc(1.15rem - 1px); background: color-mix(in srgb, var(--ps-gold) 10%, var(--ps-bg-card)); }
.ps-choice input:checked + .ps-choice__body > i { color: var(--ps-gold-text); }
.ps-choice--danger input:checked + .ps-choice__body { border-color: var(--ps-danger); background: var(--ps-danger-bg); }
.ps-choice--danger input:checked + .ps-choice__body > i { color: var(--ps-danger); }

/* A file the visitor has picked, shown in place of the drop zone */
.ps-file {
    display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; border-radius: var(--ps-radius-sm);
    border: 1px solid var(--ps-line); background: var(--ps-bg-soft); color: var(--ps-ink);
}
.ps-file > i { color: var(--ps-success); }
.ps-file span { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 500; }
.ps-file button { border: 0; background: none; color: var(--ps-muted); font-size: 1.25rem; line-height: 1; cursor: pointer; padding: .25rem .4rem; border-radius: 6px; }
.ps-file button:hover { color: var(--ps-danger); }
.ps-dropzone.has-file { border-style: solid; border-color: var(--ps-gold-strong); }

/* Step progress: one bar per step, the label under it */
.ps-stepbar { list-style: none; margin: 0 0 1.75rem; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: .5rem; }
.ps-stepbar__step { display: flex; flex-direction: column; gap: .5rem; min-width: 0; font-size: .875rem; color: var(--ps-muted); }
.ps-stepbar__bar { display: block; height: 4px; border-radius: 999px; background: var(--ps-line); border: 0; padding: 0; cursor: pointer; }
.ps-stepbar__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-stepbar__step.active, .ps-stepbar__step.completed { color: var(--ps-ink); }
.ps-stepbar__step.active .ps-stepbar__label { font-weight: 500; }
.ps-stepbar__step.active .ps-stepbar__bar, .ps-stepbar__step.completed .ps-stepbar__bar { background: var(--ps-gold); }
.ps-stepbar__count { display: none; }

/* A question with a 1-5 (or similar) scale of buttons */
.ps-question { border: 0; margin: 0; padding: 0; display: grid; gap: .6rem; min-width: 0; }
.ps-question + .ps-question { margin-top: 1.75rem; }
.ps-question textarea { min-height: 4.5rem; }
.ps-question__text { font-weight: 500; color: var(--ps-ink); padding: 0; margin-bottom: .1rem; }
.ps-rating { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: .5rem; }
.ps-rating label { position: relative; display: block; cursor: pointer; }
.ps-rating label > span { height: 100%; }
.ps-rating input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ps-rating label > span {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; min-height: 3rem; padding: .4rem .25rem;
    border: 1px solid var(--ps-line); border-radius: var(--ps-radius-sm); background: var(--ps-bg-card); color: var(--ps-ink-soft);
    font-weight: 500; text-align: center; transition: border-color .15s, background .15s;
}
.ps-rating label > span small { font-weight: 400; font-size: .75rem; color: var(--ps-muted); line-height: 1.2; }
.ps-rating label:hover > span { border-color: var(--ps-gold); }
.ps-rating input:focus-visible + span { box-shadow: var(--ps-focus); }
.ps-rating input:checked + span { border: 2px solid var(--ps-gold-strong); background: var(--ps-gold); color: var(--ps-on-gold); }
.ps-rating input:checked + span small { color: var(--ps-on-gold); }
.ps-rating__ends { display: flex; justify-content: space-between; font-size: .8rem; color: var(--ps-muted); }
/* A list of answers (one or many) */
.ps-rating--list { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); }
.ps-rating--list label > span { align-items: flex-start; text-align: left; padding: .7rem .9rem; min-height: 0; }

/* Day and time slot picker (components/slot_calendar.html) */
.slot-calendar__nav { display: flex; align-items: stretch; gap: .5rem; margin-bottom: 1.5rem; }
.slot-calendar__nav-btn {
    flex: none; width: 2.25rem; border: 1px solid var(--ps-line); border-radius: var(--ps-radius-sm);
    background: var(--ps-bg-card); color: var(--ps-ink-soft); cursor: pointer;
}
.slot-calendar__nav-btn:hover:not(:disabled) { border-color: var(--ps-gold); }
.slot-calendar__nav-btn:disabled { opacity: .4; cursor: default; }
.slot-calendar__days { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(4.5rem, 1fr); gap: .5rem; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; }
.slot-calendar__days::-webkit-scrollbar { display: none; }
.slot-calendar__day {
    display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .6rem .4rem; font: inherit;
    border: 1px solid var(--ps-line); border-radius: var(--ps-radius-sm); background: var(--ps-bg-card); color: var(--ps-ink-soft); cursor: pointer;
}
.slot-calendar__day:hover { border-color: var(--ps-gold); }
.slot-calendar__day-name { font-size: .8rem; }
.slot-calendar__day-num { font-size: 1.15rem; font-weight: 600; color: var(--ps-ink); }
.slot-calendar__day-badge { font-size: .75rem; color: var(--ps-muted); }
.slot-calendar__day-badge::after { content: ' free'; }
.slot-calendar__day--active { border: 2px solid var(--ps-gold-strong); background: var(--ps-gold); color: var(--ps-on-gold); padding: calc(.6rem - 1px) calc(.4rem - 1px); }
.slot-calendar__day--active .slot-calendar__day-num, .slot-calendar__day--active .slot-calendar__day-badge { color: var(--ps-on-gold); }
.slot-calendar__day--no-slots { opacity: .5; }
.slot-calendar__panel-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .25rem 1rem; margin-bottom: .85rem; }
.slot-calendar__selected-date { font-family: var(--ps-serif); font-weight: 600; font-size: 1.1rem; margin: 0; }
.slot-calendar__selected-date i { display: none; }
.slot-calendar__panel-count { font-size: .875rem; color: var(--ps-muted); }
.slot-calendar__slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .5rem; }
.slot-calendar__slot { position: relative; display: block; cursor: pointer; }
.slot-calendar__slot input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.slot-calendar__slot-content {
    display: flex; align-items: center; justify-content: center; min-height: 3rem; padding: .5rem;
    border: 1px solid var(--ps-line); border-radius: var(--ps-radius-sm); background: var(--ps-bg-card);
    color: var(--ps-ink-soft); font-weight: 500; font-variant-numeric: tabular-nums;
}
.slot-calendar__slot-indicator { display: none; }
.slot-calendar__slot:hover .slot-calendar__slot-content { border-color: var(--ps-gold); }
.slot-calendar__slot input:focus-visible + .slot-calendar__slot-content { box-shadow: var(--ps-focus); }
.slot-calendar__slot input:checked + .slot-calendar__slot-content { border: 2px solid var(--ps-gold-strong); background: var(--ps-gold); color: var(--ps-on-gold); }
.slot-calendar__slot--disabled { cursor: not-allowed; }
.slot-calendar__slot--disabled .slot-calendar__slot-content { background: var(--ps-bg-soft); color: var(--ps-muted); text-decoration: line-through; border-style: dashed; }
.slot-calendar__no-slots { text-align: center; padding: 2rem 1rem; color: var(--ps-muted); }
.slot-calendar__no-slots i { font-size: 1.5rem; }

/* Where things stand: done, current and upcoming steps */
.ps-timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.ps-timeline__item { display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); gap: 1rem; padding-bottom: 1.4rem; position: relative; }
.ps-timeline__item:last-child { padding-bottom: 0; }
.ps-timeline__item:not(:last-child)::before { content: ''; position: absolute; left: calc(.875rem - 1px); top: 2rem; bottom: .25rem; width: 2px; background: var(--ps-line); }
.ps-timeline__item.is-done:not(:last-child)::before { background: color-mix(in srgb, var(--ps-success) 45%, var(--ps-line)); }
.ps-timeline__dot {
    width: 1.75rem; height: 1.75rem; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: .8rem; font-weight: 700; border: 1px solid var(--ps-line); color: var(--ps-muted); background: var(--ps-bg-card);
}
.ps-timeline__item.is-done .ps-timeline__dot { border-color: transparent; background: var(--ps-success-bg); color: var(--ps-success); }
.ps-timeline__item.is-current .ps-timeline__dot { border-color: transparent; background: var(--ps-gold); color: var(--ps-on-gold); }
.ps-timeline__item.is-stopped .ps-timeline__dot { border-color: transparent; background: var(--ps-bg-soft); color: var(--ps-ink-soft); }
.ps-timeline__title { display: block; font-weight: 500; color: var(--ps-ink); }
.ps-timeline__item.is-upcoming .ps-timeline__title { color: var(--ps-ink-soft); font-weight: 400; }
.ps-timeline__text { font-size: .875rem; color: var(--ps-muted); }

/* Outcome screens: body text with paragraphs, and details under it */
.ps-status__text p { margin: 0 0 .75rem; }
.ps-status__text p:last-child { margin-bottom: 0; }
.ps-status .ps-eyebrow { margin-bottom: .5rem; }
.ps-status .ps-details--boxed, .ps-status .ps-steps { max-width: 30rem; margin-left: auto; margin-right: auto; }
.ps-status .ps-details--boxed { margin-bottom: 1.5rem; }

@media (max-width: 640px) {
    .ps-details, .ps-choices { grid-template-columns: 1fr; }
    .ps-stepbar__label { display: none; }
    .ps-stepbar__count { display: block; font-size: .875rem; color: var(--ps-muted); margin: -1.25rem 0 1.25rem; }
    .ps-rating { gap: .35rem; }
    .ps-rating label > span small { display: none; }
    .slot-calendar__nav-btn { display: none; }
    .slot-calendar__slot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.ps-actions:empty { display: none; }
.ps-highlight + .ps-help { margin-top: .85rem; }

/* A form in steps (the survey): one [data-step-panel] shows at a time */
.ps-stepper [data-step-panel]:not(.active) { display: none; }
.ps-stepper__nav { justify-content: space-between; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--ps-line); }
.ps-stepper__nav .ps-btn--ghost:disabled { visibility: hidden; }
.ps-question .error-message { font-size: .85rem; color: var(--ps-danger); margin: 0; }
.ps-note:empty { display: none; }
.ps-actions > .ps-actions { margin-top: 0; }

/* ======================================================= Assessments, client
   status (GH #266 phase 3) */

/* Hero with an illustration on the right */
.ps-hero__split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); gap: 3rem; align-items: center; }
.ps-hero__split > :only-child { grid-column: 1 / -1; }
.ps-hero__media img { display: block; width: 100%; height: auto; border-radius: var(--ps-radius); }
.ps-hero .ps-alert { margin: 1.25rem 0 0; }
.ps-hero__inner--compact { padding-top: 2rem; padding-bottom: 3rem; }

/* Two-column ticked list */
.ps-steps--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 2rem; margin: 0; }
.ps-steps strong { color: var(--ps-ink); font-weight: 500; }

/* Progress through a question flow */
.ps-progress-line { display: flex; align-items: center; gap: 1rem; margin-top: .75rem; }
.ps-progress-line__bar { flex: 1; height: 6px; border: 0; border-radius: 999px; background: var(--ps-line); overflow: hidden; appearance: none; }
.ps-progress-line__bar::-webkit-progress-bar { background: var(--ps-line); border-radius: 999px; }
.ps-progress-line__bar::-webkit-progress-value { background: var(--ps-gold); border-radius: 999px; }
.ps-progress-line__bar::-moz-progress-bar { background: var(--ps-gold); border-radius: 999px; }

/* A question as the panel's heading, with its area as a chip */
.ps-question-title { display: grid; gap: .75rem; justify-items: start; padding: 0; margin-bottom: 1.25rem;
    font-family: var(--ps-serif); font-weight: 600; font-size: clamp(1.3rem, 2.6vw, 1.6rem); line-height: 1.3; color: var(--ps-ink); }
.ps-question-title .ps-chip { font-family: var(--ps-sans); font-weight: 500; }
.ps-choices--stack { grid-template-columns: 1fr; gap: .6rem; }

/* People: the project contact and team */
.ps-person { display: flex; align-items: center; gap: .85rem; min-width: 0; }
.ps-person > div { display: grid; min-width: 0; }
.ps-person strong { color: var(--ps-ink); font-weight: 500; }
.ps-person span, .ps-person a { font-size: .875rem; color: var(--ps-muted); overflow-wrap: anywhere; }
.ps-person a { color: var(--ps-link); }
.ps-person__photo {
    flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%; object-fit: cover;
    display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: .9rem;
    background: color-mix(in srgb, var(--ps-gold) 25%, var(--ps-bg-card)); color: var(--ps-ink);
}
.ps-person--lead { padding-bottom: 1.25rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--ps-line); }
.ps-person--lead .ps-person__photo { width: 3.5rem; height: 3.5rem; font-size: 1.05rem; }
.ps-people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 1rem; }

@media (max-width: 760px) {
    .ps-hero__split, .ps-steps--grid { grid-template-columns: 1fr; }
    .ps-hero__media { display: none; }
}
.ps-grid--cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1.25rem; }
.ps-grid--fit { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1rem; }

/* -------------------------------------------- Assessment results (phase 3) */
.ps-result-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 25rem); gap: 3.5rem; align-items: center; padding-bottom: 4.5rem; }
.ps-result-hero__level { color: var(--ps-gold-text); }

/* The overall score: a ring, the level, and the scale of levels */
.ps-scorecard { padding: 1.75rem; }
.ps-scorecard__top { display: flex; align-items: center; gap: 1.35rem; }
.ps-scorecard__label { margin: 0 0 .25rem; font-size: .75rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ps-muted); }
.ps-scorecard__level { margin: 0; font-family: var(--ps-serif); font-weight: 600; font-size: 1.4rem; color: var(--ps-ink); }
.ps-scorecard .ps-small { margin: .1rem 0 0; }
.ps-ring {
    --value: 0; flex: none; width: 7.25rem; height: 7.25rem; border-radius: 50%; display: grid; place-items: center;
    background: conic-gradient(var(--ps-gold) calc(var(--value) * 1%), var(--ps-line) 0);
}
.ps-ring::before { content: ''; grid-area: 1 / 1; width: 5.75rem; height: 5.75rem; border-radius: 50%; background: var(--ps-bg-card); }
.ps-ring__value { grid-area: 1 / 1; position: relative; font-family: var(--ps-serif); font-weight: 600; font-size: 2rem; color: var(--ps-ink); }
.ps-ring__value small { font-size: 1rem; color: var(--ps-muted); }
.ps-scale { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; font-size: .75rem; color: var(--ps-muted); }
.ps-scale__step { display: grid; gap: .45rem; min-width: 0; }
.ps-scale__bar { height: 8px; background: var(--ps-line); }
.ps-scale__step:first-child .ps-scale__bar { border-radius: 999px 0 0 999px; }
.ps-scale__step:last-child .ps-scale__bar { border-radius: 0 999px 999px 0; }
.ps-scale__step.is-below .ps-scale__bar { background: color-mix(in srgb, var(--ps-gold) 45%, var(--ps-line)); }
.ps-scale__step.is-current { color: var(--ps-ink); font-weight: 500; }
.ps-scale__step.is-current .ps-scale__bar { background: var(--ps-gold); }

/* Scores by area: cards that rise into the hero */
.ps-areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1rem; margin-top: -2rem; position: relative; }
.ps-area { padding: 1.35rem; display: grid; gap: .75rem; align-content: start; }
.ps-area__head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.ps-area__head h3 { margin: 0; font-family: var(--ps-serif); font-weight: 600; font-size: 1.05rem; line-height: 1.3; }
.ps-area__pct { font-family: var(--ps-serif); font-weight: 600; font-size: 1.5rem; color: var(--ps-ink); }
.ps-area__pct small { font-size: .8rem; color: var(--ps-muted); }
.ps-area .ps-progress-line__bar { width: 100%; height: 8px; }
.ps-area__foot { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.ps-tag { font-size: .75rem; font-weight: 500; padding: .2rem .65rem; border-radius: 999px; white-space: nowrap; }
.ps-tag--success { background: var(--ps-success-bg); color: var(--ps-success); }
.ps-tag--gold { background: color-mix(in srgb, var(--ps-gold) 22%, var(--ps-bg-card)); color: var(--ps-gold-text); }

/* Page sections below the hero */
.ps-section { margin-top: 4rem; }
.ps-section:last-child { margin-bottom: 1rem; }
.ps-section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 2rem; margin-bottom: 1.25rem; }
.ps-section__head .ps-h2 { margin: 0; }

/* Where to focus first */
.ps-focus { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1rem; }
.ps-focus__item { padding: 1.5rem; display: flex; flex-direction: column; gap: .85rem; }
.ps-focus__meta { display: flex; align-items: center; gap: .6rem; }
.ps-focus__n { width: 1.75rem; height: 1.75rem; border-radius: 50%; display: grid; place-items: center; background: var(--ps-gold); color: var(--ps-on-gold); font-weight: 700; font-size: .875rem; }
.ps-focus__meta .ps-small { font-weight: 500; }
.ps-focus__q { margin: 0; font-weight: 500; line-height: 1.45; color: var(--ps-ink); }
.ps-focus__item > .ps-small { margin: 0; color: var(--ps-ink-soft); }
.ps-focus__item > .ps-small span { color: var(--ps-muted); }
.ps-next {
    margin-top: auto; padding: .75rem .9rem; border-radius: var(--ps-radius-sm); font-size: .9rem; color: var(--ps-ink);
    background: color-mix(in srgb, var(--ps-gold) 12%, var(--ps-bg-card)); border-left: 3px solid var(--ps-gold-strong);
}
.ps-next strong { display: block; margin-bottom: .1rem; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ps-gold-text); }

/* Every answer: one collapsible card per area */
.ps-accordion { display: grid; gap: .75rem; }
.ps-accordion__item { padding: 0; overflow: hidden; }
.ps-accordion__item > summary { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.35rem; cursor: pointer; list-style: none; }
.ps-accordion__item > summary::-webkit-details-marker { display: none; }
.ps-accordion__item > summary:focus-visible { outline-offset: -3px; }
.ps-accordion__title { flex: 1; min-width: 0; font-family: var(--ps-serif); font-weight: 600; font-size: 1.1rem; color: var(--ps-ink); }
.ps-accordion__pct { min-width: 2.75rem; text-align: right; font-weight: 600; color: var(--ps-ink); }
.ps-accordion__item > summary i { color: var(--ps-muted); transition: transform .15s; }
.ps-accordion__item[open] > summary i { transform: rotate(180deg); }
.ps-answers { width: 100%; border-collapse: collapse; font-size: .9rem; border-top: 1px solid var(--ps-line); }
.ps-answers th { padding: .75rem 1rem; text-align: left; font-weight: 500; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ps-muted); }
.ps-answers td { padding: .9rem 1rem; vertical-align: top; color: var(--ps-ink-soft); border-top: 1px solid var(--ps-line); }
.ps-answers th:first-child, .ps-answers td:first-child { padding-left: 1.35rem; width: 36%; color: var(--ps-ink); }
.ps-answers th:last-child, .ps-answers td:last-child { padding-right: 1.35rem; }
.ps-answers__score { text-align: right; width: 6rem; }
.ps-dots { display: inline-flex; gap: 3px; }
.ps-dots span { width: .6rem; height: .6rem; border-radius: 3px; background: var(--ps-line); }
.ps-dots span.is-on { background: var(--ps-gold); }

/* Keep your results: report and share link */
.ps-keep { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; padding: 2.25rem; }
.ps-keep .ps-h2 { margin-bottom: .5rem; }
.ps-keep__text { margin: 0; color: var(--ps-ink-soft); max-width: 32rem; }
.ps-keep .ps-actions { margin-top: 1.25rem; }
.ps-share { padding: 1.35rem; border-radius: var(--ps-radius-sm); background: var(--ps-bg-soft); border: 1px solid var(--ps-line); }
.ps-share p { margin: 0 0 .25rem; }
.ps-share .ps-small { display: block; margin-bottom: .75rem; }
.ps-share__row { display: flex; gap: .5rem; }
.ps-share__row input {
    flex: 1; min-width: 0; padding: .6rem .75rem; border: 1px solid var(--ps-line); border-radius: var(--ps-radius-sm);
    background: var(--ps-bg-card); color: var(--ps-ink-soft); font: inherit; font-size: .875rem;
}
.ps-disclaimer { margin: 1.25rem 0 .5rem; max-width: 60rem; }

@media (max-width: 900px) {
    .ps-result-hero, .ps-keep { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 640px) {
    .ps-ring { width: 5.5rem; height: 5.5rem; }
    .ps-ring::before { width: 4.25rem; height: 4.25rem; }
    .ps-ring__value { font-size: 1.5rem; }
    .ps-section { margin-top: 2.75rem; }
    /* The answer table becomes stacked rows */
    .ps-answers thead { display: none; }
    .ps-answers, .ps-answers tbody, .ps-answers tr, .ps-answers td { display: block; width: auto; }
    .ps-answers tr { padding: .85rem 1.1rem; border-top: 1px solid var(--ps-line); }
    .ps-answers td, .ps-answers td:first-child, .ps-answers td:last-child { padding: .15rem 0; border: 0; text-align: left; width: auto; }
    .ps-answers td:first-child { font-weight: 500; margin-bottom: .25rem; }
    .ps-answers td[data-label="You said"]::before, .ps-answers td[data-label="Next step"]::before { content: attr(data-label) ": "; color: var(--ps-muted); }
    .ps-answers__score { display: none !important; }
    .ps-accordion__item > summary .ps-small { display: none; }
}

/* ===================================== Search and case studies (GH #274) */
/* Placeholder tones, so neighbouring cards without images differ */
.ps-card__media--tone1 { background: linear-gradient(135deg, #2b2a26, #4a3b12); }
.ps-card__media--tone2 { background: linear-gradient(135deg, #1d2a24, #23463a); }
.ps-card__media--tone3 { background: linear-gradient(135deg, #2a2230, #3d2b4a); }
.ps-card--result .ps-card__monogram { font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; }
.ps-card__highlight { display: flex; gap: .5rem; align-items: baseline; margin: 0; font-weight: 500; color: var(--ps-ink); }
.ps-card__highlight i { color: var(--ps-gold-strong); }
.ps-card--result .ps-card__body { display: flex; flex-direction: column; gap: .6rem; }
.ps-card--result .ps-meta { margin-top: auto; }
.ps-chips--secondary { margin-top: -.5rem; }
.ps-chips--secondary .ps-chip { font-size: .85rem; padding: .3rem .75rem; }
.ps-search-results { padding-top: 2.25rem; padding-bottom: 3.5rem; }

/* Case study page */
.ps-cs-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 21rem); gap: 3.5rem; align-items: end; padding-bottom: 4rem; }
.ps-cs-hero .ps-eyebrow { margin-top: 1rem; }
.ps-cs-facts { margin: 0; padding: 1.5rem; display: grid; gap: .9rem; }
.ps-cs-facts dt { font-size: .75rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ps-muted); }
.ps-cs-facts dd { margin: .15rem 0 0; font-weight: 500; color: var(--ps-ink); }
.ps-cs-facts dd.ps-chips { margin-top: .4rem; gap: .35rem; }
.ps-cs-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; margin-top: -1.75rem; position: relative; }
.ps-cs-result { margin: 0; padding: 1.5rem; border-top: 3px solid var(--ps-gold); font-family: var(--ps-serif); font-weight: 600; font-size: 1.3rem; line-height: 1.3; color: var(--ps-ink); }
.ps-cs-story { max-width: 60rem; margin: 4rem auto 0; display: grid; gap: 2.75rem; }
.ps-cs-section { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 2.5rem; }
.ps-cs-section .ps-h2 { margin: 0; font-size: 1.5rem; }
.ps-cs-section--inline { align-items: center; }
.ps-cs-section--inline .ps-h3 { margin: 0; }
.ps-cs-section--inline .ps-chips { margin: 0; }
.ps-cs-section .ps-prose { font-size: 1.0625rem; }
.ps-quote { margin: .5rem 0 0; padding: 2rem 2.25rem; border-radius: var(--ps-radius); background: var(--ps-bg-soft); border: 1px solid var(--ps-line); }
.ps-quote blockquote { margin: 0; font-family: var(--ps-serif); font-size: 1.45rem; line-height: 1.45; color: var(--ps-ink); }
.ps-quote blockquote::before { content: '\201C'; }
.ps-quote blockquote::after { content: '\201D'; }
.ps-quote figcaption { margin-top: .9rem; color: var(--ps-muted); }
.ps-cs-related { margin-bottom: 4rem; }

@media (max-width: 900px) {
    .ps-cs-hero { grid-template-columns: 1fr; gap: 2rem; align-items: start; }
}
@media (max-width: 640px) {
    .ps-cs-section { grid-template-columns: 1fr; gap: .75rem; }
    .ps-cs-story { margin-top: 2.5rem; }
    .ps-quote { padding: 1.35rem; }
    .ps-quote blockquote { font-size: 1.2rem; }
}

/* ========================================================= Home page (GH #279) */
.ps-home-hero { border-bottom: 0; }
.ps-home-hero__inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 4rem; align-items: center; padding-top: 4.5rem; padding-bottom: 5rem; }
.ps-home-hero__title { font-size: clamp(2.4rem, 5vw, 3.75rem); line-height: 1.05; }
.ps-home-hero__lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); max-width: 34rem; }
.ps-home-hero .ps-actions { margin-top: 1.75rem; }

/* Headline results beside the promise */
.ps-proof { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.ps-proof li:nth-child(2) { margin-left: 2rem; }
.ps-proof__item { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: 1rem; align-items: center; padding: 1.25rem 1.4rem; text-decoration: none; color: inherit; transition: box-shadow .15s, border-color .15s; }
.ps-proof__item:hover { border-color: var(--ps-gold); box-shadow: var(--ps-shadow-hover); }
.ps-proof__item strong { display: block; font-family: var(--ps-serif); font-weight: 600; font-size: 1.2rem; line-height: 1.25; color: var(--ps-ink); }
.ps-proof__icon { width: 2.75rem; height: 2.75rem; border-radius: .75rem; display: grid; place-items: center; font-size: 1.1rem;
    background: color-mix(in srgb, var(--ps-gold) 22%, var(--ps-bg-card)); color: var(--ps-gold-text); }

/* Who we work with */
.ps-strip { border-top: 1px solid var(--ps-line); border-bottom: 1px solid var(--ps-line); background: var(--ps-bg-card); }
.ps-strip__inner { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.75rem; padding-top: 1.25rem; padding-bottom: 1.25rem; }
.ps-strip__label { font-size: .75rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ps-muted); }
.ps-strip__item { font-family: var(--ps-serif); font-weight: 600; font-size: 1.2rem; color: var(--ps-ink-soft); }

.ps-home-section { margin-top: 5.5rem; }
.ps-home-section:last-child { margin-bottom: 5.5rem; }
.ps-home-h2 { font-family: var(--ps-serif); font-weight: 600; font-size: clamp(1.7rem, 3vw, 2.1rem); line-height: 1.2; margin: 0; letter-spacing: -.01em; }
.ps-home-section .ps-section__head { margin-bottom: 1.5rem; align-items: end; }
.ps-home-section .ps-section__head .ps-eyebrow { margin-bottom: .35rem; }

/* Services */
.ps-service { padding: 1.5rem; gap: .6rem; }
.ps-service > i { font-size: 1.5rem; }
.ps-service strong { font-size: 1.1rem; }
.ps-service span { font-size: .95rem; line-height: 1.5; }

/* How we work */
.ps-home-band { margin-top: 5.5rem; }
.ps-how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 3.5rem; align-items: start; }
.ps-how__items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; }
.ps-how__item { display: grid; gap: .4rem; }
.ps-how__item::before { content: ''; width: 2rem; height: 3px; background: var(--ps-gold); margin-bottom: .5rem; }
.ps-how__item strong { font-size: 1.05rem; color: var(--ps-ink); }
.ps-how__item span { color: var(--ps-ink-soft); font-size: .95rem; line-height: 1.55; }

/* Assessments and careers teasers */
.ps-teasers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.ps-teaser { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; padding: 2.25rem; border-radius: var(--ps-radius); text-decoration: none; color: inherit; }
.ps-teaser .ps-eyebrow { margin: 0; }
.ps-teaser__title { font-family: var(--ps-serif); font-weight: 600; font-size: 1.75rem; line-height: 1.2; color: var(--ps-ink); }
.ps-teaser__text { color: var(--ps-ink-soft); margin-bottom: .5rem; }
.ps-teaser--dark { background: var(--ps-navy); border: 1px solid transparent; }
.ps-teaser--dark .ps-teaser__title { color: #fff; }
.ps-teaser--dark .ps-teaser__text { color: rgba(255, 255, 255, .8); }
.ps-teaser:hover .ps-btn { transform: translateY(-1px); }

@media (max-width: 960px) {
    .ps-home-hero__inner, .ps-how { grid-template-columns: 1fr; gap: 2.5rem; }
    .ps-proof li:nth-child(2) { margin-left: 0; }
}
@media (max-width: 640px) {
    .ps-home-hero__inner { padding-top: 2.5rem; padding-bottom: 3rem; }
    .ps-how__items, .ps-teasers { grid-template-columns: 1fr; }
    .ps-home-section, .ps-home-band { margin-top: 3.5rem; }
    .ps-teaser { padding: 1.5rem; }
    .ps-services { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
    .ps-services .ps-service { padding: 1rem; }
    .ps-services .ps-service span { display: none; }
    .ps-services .ps-service strong { font-size: .95rem; }
}
