/* ── YieldRite – Apple-inspired design system ─────────────────────────── */

:root {
    --bg: #f5f5f7;
    --surface: #ffffff;
    --border: rgba(0, 0, 0, 0.06);
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --accent: #0071e3;
    --accent-hover: #0077ed;
    --brand-navy: #1a2d5c;
    --brand-navy-mid: #243a6e;
    --brand-navy-light: #3d5282;
    --header-bg: #b2e4ed;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08);
    --transition: 0.2s ease;
    --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

/* iOS Safari zooms the whole page when a focused field is under 16px. Keep the
   larger of 16px and whatever the element would otherwise inherit. */
input, select, textarea, button { font-size: max(16px, 1em); }

/* Anything too wide to reflow (wide tables, charts) scrolls inside its own box
   rather than pushing the page sideways. Same pattern as .mt-scroll below. */
.yr-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: var(--font);
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Header ───────────────────────────────────────────────────────────── */

header,
.site-header {
    background: var(--header-bg);
    padding: 0 clamp(20px, 4vw, 48px);
    min-height: 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(26, 45, 92, 0.12);
}

.logo-link { display: flex; align-items: center; text-decoration: none; }

.logo { height: 50px; transition: opacity var(--transition); }
.logo:hover { opacity: 0.75; }

/* Official YieldRite wordmark – readable on bright cloud / sky background */
.logo-official {
    height: auto;
    max-height: 52px;
    width: auto;
    max-width: min(280px, 42vw);
    object-fit: contain;
}

nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 12px;
}

nav ul li a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 20px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 0;
    transition: opacity var(--transition);
    letter-spacing: -0.01em;
}

nav ul li a:hover {
    opacity: 0.7;
    text-decoration: none;
}

/* ── Content ──────────────────────────────────────────────────────────── */

.content {
    flex: 1;
    width: 100%;
    padding: 24px clamp(16px, 4vw, 48px);
    position: relative;
    z-index: 1;
}

/* ── Footer ───────────────────────────────────────────────────────────── */

footer {
    background: transparent;
    text-align: center;
    padding: 16px;
    border-top: 1px solid var(--border);
}

footer p {
    margin: 0;
    font-size: 16px;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
}

/* ── Phone shell ──────────────────────────────────────────────────────── */

@media (max-width: 700px) {
    header,
    .site-header {
        min-height: 60px;
        padding: 8px 16px;
        flex-wrap: wrap;
        gap: 4px 12px;
    }

    .logo-official { max-height: 38px; }

    nav ul { gap: 4px 8px; }

    nav ul li a {
        font-size: 15px;
        padding: 8px 10px;
    }

    .content { padding: 16px 12px; }

    .container {
        margin: 24px auto;
        padding: 24px 20px;
    }

    footer p { font-size: 14px; }
}

/* ── Cards ────────────────────────────────────────────────────────────── */

.card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    padding: 24px;
    transition: box-shadow var(--transition);
}

.card:hover { box-shadow: var(--shadow); }

/* ── Forms ────────────────────────────────────────────────────────────── */

.container {
    max-width: 480px;
    width: 100%;
    margin: 60px auto;
    padding: 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.container h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 28px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    font-size: 20px;
    font-family: var(--font);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: var(--radius-sm);
    background: var(--bg);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.container button {
    width: 100%;
    padding: 16px;
    font-size: 20px;
    font-weight: 500;
    font-family: var(--font);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition), transform 0.1s ease;
    letter-spacing: -0.01em;
}

.container button:active { transform: scale(0.98); }

button.login-button {
    background: var(--accent);
    color: white;
}

button.login-button:hover { background: var(--accent-hover); }

button.register-button {
    background: #30d158;
    color: white;
}

button.register-button:hover { background: #28c04e; }

/* ── Plant dashboard: sidebar tabs + content ─────────────────────────── */

.yr-plant-layout {
    display: flex;
    align-items: flex-start;
    width: 100%;
}

/* Phone site picker: hidden on desktop, where the tab rail is used instead. */
.yr-plant-select {
    display: none;
}

@media (max-width: 700px) {
    .yr-plant-select {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
    }
}

.yr-plant-tabs {
    width: 200px;
    flex-shrink: 0;
}

.yr-tab-content {
    flex: 1;
    min-width: 0;
    padding: 0 0 0 24px;
}

@media (max-width: 700px) {
    .yr-plant-layout {
        flex-direction: column;
    }

    /* A long vertical rail pushes the charts off a phone screen; the dropdown
       in the controls bar takes over (see .yr-plant-select). Two classes, not
       one: Dash injects .tab-parent--vert {display:flex} after this stylesheet,
       so a single-class rule would tie on specificity and lose on order. */
    .yr-plant-layout .yr-plant-rail {
        display: none;
    }

    .yr-tab-content {
        padding: 20px 0 0 0;
    }
}

/* Gauge/speedometer + chart or table pairs used throughout the dashboard */

.yr-chart-row {
    display: flex;
    gap: 16px;
}

.yr-chart-row-fixed {
    width: 300px;
    flex-shrink: 0;
}

@media (max-width: 700px) {
    .yr-chart-row {
        flex-direction: column;
    }

    .yr-chart-row-fixed {
        width: 100%;
    }
}

/* ── Tables (summary / maintenance) ──────────────────────────────────── */

table.yr-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 18px;
}

table.yr-table th,
table.yr-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

table.yr-table th {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

table.yr-table tr:last-child td { border-bottom: none; }

/* ── Utility ──────────────────────────────────────────────────────────── */

.section-title {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 0 0 16px 0;
}

/* ── Maintenance timeline (GitHub-style) ─────────────────────────────── */

.maintenance-page {
    --mt-cell: 13px;
    --mt-gap: 3px;
    --mt-week-width: calc(7 * var(--mt-cell) + 6 * var(--mt-gap));
    width: 100%;
    padding: clamp(20px, 3vw, 32px);
}

.maintenance-page .section-title {
    margin-bottom: 0;
}

.maintenance-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.maintenance-subtitle {
    margin: 4px 0 0;
    font-size: 17px;
    color: var(--text-secondary);
}

.maintenance-stats {
    display: flex;
    gap: 20px;
    font-size: 17px;
    color: var(--text-secondary);
}

.maintenance-stat strong {
    color: var(--brand-navy);
    font-weight: 600;
}

.maintenance-empty {
    margin: 24px 0 0;
    color: var(--text-secondary);
    font-size: 18px;
}

.mt-legend {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--mt-gap);
    margin-top: 16px;
    font-size: 12px;
    color: var(--text-secondary);
}

.mt-legend-label {
    margin: 0 4px;
}

.mt-scroll {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

.mt-graph {
    display: inline-block;
    min-width: 100%;
}

.mt-graph-header,
.mt-graph-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: var(--mt-gap);
}

.mt-graph-header {
    margin-bottom: 6px;
    padding-left: 0;
}

.mt-plant-gutter,
.mt-plant-label {
    flex: 0 0 168px;
    min-width: 168px;
    max-width: 168px;
}

.mt-plant-gutter {
    height: 18px;
}

.mt-plant-label {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--surface);
    padding-right: 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mt-plant-name {
    font-weight: 500;
    font-size: 14px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mt-plant-count {
    align-self: flex-start;
    font-size: 11px;
    font-weight: 600;
    color: var(--brand-navy);
    background: rgba(26, 45, 92, 0.1);
    padding: 1px 7px;
    border-radius: 980px;
}

.mt-graph-row {
    margin-bottom: var(--mt-gap);
}

.mt-week-header {
    flex: 0 0 var(--mt-week-width);
    width: var(--mt-week-width);
    height: 16px;
    position: relative;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
}

.mt-week-header span {
    position: absolute;
    left: 0;
    top: 0;
    white-space: nowrap;
}

.mt-week {
    flex: 0 0 var(--mt-week-width);
    display: flex;
    gap: var(--mt-gap);
}

.mt-day {
    flex: 0 0 var(--mt-cell);
    width: var(--mt-cell);
    height: var(--mt-cell);
    border-radius: 2px;
    border: none;
    padding: 0;
    display: block;
    box-sizing: border-box;
}

.mt-day.mt-empty {
    background: rgba(26, 45, 92, 0.08);
}

.mt-day.level-1 { background: var(--brand-navy-light); }
.mt-day.level-2 { background: var(--brand-navy-mid); }
.mt-day.level-3 { background: var(--brand-navy); }
.mt-day.level-4 { background: #122648; }

.mt-day.has-event {
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.mt-day.has-event:hover,
.mt-day.has-event:focus {
    transform: scale(1.2);
    box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--brand-navy);
    outline: none;
    position: relative;
    z-index: 1;
}

.mt-tooltip-floating[hidden] {
    display: none !important;
}

.mt-tooltip-floating {
    position: fixed;
    z-index: 2000;
    max-width: min(360px, calc(100vw - 24px));
    padding: 14px 16px;
    background: var(--brand-navy);
    color: #f5f5f7;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    font-size: 14px;
    line-height: 1.45;
    pointer-events: none;
}

.mt-tip-record + .mt-tip-record {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.mt-tip-date {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 8px;
}

.mt-tip-fields {
    margin: 0;
}

.mt-tip-fields > div {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 4px 10px;
    margin-bottom: 6px;
}

.mt-tip-fields dt {
    margin: 0;
    color: rgba(245, 245, 247, 0.65);
    font-weight: 500;
}

.mt-tip-fields dd {
    margin: 0;
}

/* ── Site onboarding wizard ───────────────────────────────────────────── */

.ob-shell {
    max-width: 780px;
    margin: 32px auto 64px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ob-header h1 {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 10px;
}

.ob-eyebrow {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
}

.ob-lede {
    margin: 0 0 10px;
    font-size: 17px;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* Step rail */

.ob-progress {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ob-progress-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-secondary);
}

.ob-progress-item a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}

.ob-progress-item.is-visited { color: var(--text-primary); }

.ob-progress-item.is-current {
    background: var(--brand-navy);
    border-color: var(--brand-navy);
    color: #fff;
}

.ob-progress-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    font-size: 12px;
    font-weight: 600;
}

.ob-progress-item.is-current .ob-progress-num {
    background: rgba(255, 255, 255, 0.22);
}

/* Cards and fields */

.ob-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 28px;
}

.ob-card-title {
    margin: 0 0 18px;
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.ob-field { margin-bottom: 20px; }

.ob-field > label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.ob-optional {
    margin-left: 8px;
    font-weight: 400;
    font-size: 13px;
    color: var(--text-secondary);
}

.ob-field input:not([type="checkbox"]),
.ob-field select,
.ob-field textarea {
    width: 100%;
    padding: 11px 14px;
    font-size: 16px;
    font-family: var(--font);
    color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: var(--radius-sm);
    background: var(--bg);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.ob-field input:focus,
.ob-field select:focus,
.ob-field textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.ob-field.has-error input,
.ob-field.has-error select,
.ob-field.has-error textarea { border-color: #c8372d; }

.ob-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
}

.ob-check input { width: 18px; height: 18px; }

.ob-help {
    margin: 6px 0 0;
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--text-secondary);
}

.ob-error {
    margin: 6px 0 0;
    font-size: 13.5px;
    font-weight: 500;
    color: #c8372d;
}

/* Notes */

.ob-note {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 15px;
    line-height: 1.5;
}

.ob-note p { margin: 6px 0 0; }
.ob-note ul { margin: 8px 0 0; padding-left: 20px; }
.ob-note li { margin-bottom: 6px; }

.ob-note-info { background: #eef5ff; border-color: #cfe0fb; }
.ob-note-warn { background: #fff8e6; border-color: #f3e1ac; }
.ob-note-error { background: #fdeeec; border-color: #f3c9c4; }

.ob-hint { display: block; color: var(--text-secondary); font-size: 13.5px; }

/* Outline and plan lists */

.ob-outline, .ob-plan {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ob-outline li, .ob-plan-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.ob-outline p, .ob-plan-item p {
    margin: 3px 0 0;
    font-size: 14.5px;
    line-height: 1.45;
    color: var(--text-secondary);
}

.ob-outline-num {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--brand-navy);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.ob-plan-badge {
    flex: 0 0 auto;
    min-width: 68px;
    text-align: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-secondary);
}

.ob-plan-create .ob-plan-badge { background: #e3f4e8; color: #1c6b35; }
.ob-plan-update .ob-plan-badge { background: #fff2d6; color: #8a5b00; }
.ob-plan-reuse  .ob-plan-badge { background: #eaf0fb; color: var(--brand-navy); }

/* Summary list */

.ob-summary { margin: 0; display: grid; gap: 12px; }
.ob-summary > div { display: flex; gap: 16px; flex-wrap: wrap; }

.ob-summary dt {
    flex: 0 0 150px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.ob-summary dd { margin: 0; font-size: 15px; }

/* Actions */

.ob-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.ob-actions-inline { justify-content: flex-start; margin-top: 12px; }
.ob-actions form { margin: 0; }

.ob-btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--transition), transform 0.1s ease;
}

.ob-btn:active { transform: scale(0.98); }
.ob-btn-primary { background: var(--accent); color: #fff; }
.ob-btn-primary:hover { background: var(--accent-hover); }
.ob-btn-primary:disabled { background: #b9c3ce; cursor: not-allowed; }

.ob-btn-quiet {
    background: transparent;
    color: var(--accent);
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.ob-btn-quiet:hover { background: rgba(0, 0, 0, 0.03); }

.ob-shell code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.92em;
    padding: 2px 6px;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.05);
}

@media (max-width: 640px) {
    .ob-shell { margin: 16px auto 40px; }
    .ob-card { padding: 20px; }
    .ob-actions .ob-btn { flex: 1 1 100%; text-align: center; }
    .ob-summary dt { flex-basis: 100%; }
    .ob-progress-title { display: none; }
}

/* ── Client portfolio (/portfolio/) ───────────────────────────────────── */

.pf { max-width: 960px; width: 100%; margin: 0 auto; padding: 8px 0 40px; }
.pf-title { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; margin: 8px 0 4px; }
.pf-h2 { font-size: 18px; font-weight: 600; margin: 24px 0 8px; }
.pf-sub { color: var(--text-secondary); font-size: 15px; margin: 0 0 20px; }
.pf-when { display: block; font-size: 13px; margin-top: 2px; }
.pf-alert { color: #a3120d; }
.pf-back { display: inline-block; margin-bottom: 4px; color: var(--accent); text-decoration: none; font-size: 15px; }

.pf-list { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.pf-head, .pf-row {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: center;
    padding: 14px 20px;
}
.pf-head { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-secondary); border-bottom: 1px solid var(--border); }
.pf-row { color: inherit; text-decoration: none; font-size: 16px; border-bottom: 1px solid var(--border); transition: background var(--transition); }
.pf-row:last-child { border-bottom: 0; }
.pf-row:hover, .pf-row:focus-visible { background: rgba(0, 113, 227, 0.04); }
.pf-name { font-weight: 600; display: flex; align-items: center; gap: 10px; min-width: 0; }
.pf-cell { font-variant-numeric: tabular-nums; }
.pf-cell--bad { color: #a3120d; font-weight: 600; }

.pf-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; }
.pf-dot--ok { background: #1a936f; }
.pf-dot--bad { background: #cc1711; }
.pf-dot--none { background: #c7c7cc; }

.pf-pr { display: inline-block; min-width: 3.2em; padding: 2px 10px; border-radius: 980px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.pf-pr--good { background: #e6f4ef; color: #12664c; }
.pf-pr--warn { background: #fdf3c9; color: #7a5b00; }
.pf-pr--bad { background: #fbe4e3; color: #a3120d; }
.pf-pr--none { background: transparent; color: var(--text-secondary); }

.pf-note { color: var(--text-secondary); font-size: 13px; line-height: 1.6; margin: 16px 4px 0; }
.pf-note .pf-pr { min-width: 0; padding: 0 8px; font-weight: 500; }
.pf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.pf-problems { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); margin: 0; padding: 8px 20px 8px 40px; }
.pf-problems li { padding: 8px 0; }
.pf-allgood { color: #12664c; font-weight: 600; }
.pf-btn { display: inline-block; margin-top: 24px; padding: 10px 20px; border-radius: 980px; background: var(--accent); color: #fff; text-decoration: none; }
.pf-btn:hover { background: var(--accent-hover); }

@media (max-width: 700px) {
    .pf-title { font-size: 24px; }
    .pf-head { display: none; }
    /* Each site becomes a card: name on top, three labelled figures underneath. */
    .pf-row { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 14px 16px; row-gap: 10px; }
    .pf-name { grid-column: 1 / -1; }
    /* Labels can wrap to two lines; bottom-align so the three values share a baseline. */
    .pf-cell { align-self: end; }
    .pf-cell::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-secondary); margin-bottom: 2px; }
}
