/*
Theme Name: ALS Untangled 2026
Theme URI: https://www.tomatillodesign.com/
Description: ALS Untangled child theme built on Plumbline. Includes all Yak-era design tokens, review tables, grade badge system, modal UI, and responsive layout.
Author: Chris Liu-Beers @ Tomatillo Design
Author URI: https://www.tomatillodesign.com/
Template: plumbline-main
Version: 1.0.0
Requires at least: 6.9
Requires PHP: 8.2
Text Domain: als-untangled-2026
Domain Path: /languages
Update URI: false

License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/*
 * All Yak-era design tokens and custom styling is imported below.
 * Genesis-specific class names (site-container, site-inner, etc.) in the
 * Yak CSS layers are inert in Plumbline — they simply don't match any
 * Plumbline markup. Content-level styles (grade badges, tables, modals,
 * infoboxes) transfer cleanly because they target custom class names.
 */

@import url('css/yak-overrides.css');

/* Prevent horizontal scroll without clipping position:fixed overlays (e.g. mobile menu) */
html { overflow-x: clip; }
body { max-width: 100%; overflow-x: clip; }

/* ==========================================================================
   Sticky header — fixed height, logo overlay that shrinks on scroll
   ========================================================================== */

/* Sticky bar — overflow: visible so the logo can hang below */
.pl-site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease;
    overflow: visible;
}

.pl-site {
    padding-top: 72px;
}

.admin-bar .pl-site-header {
    top: 32px;
}

.admin-bar .pl-site {
    padding-top: 104px;
}

@media (max-width: 782px) {
    .admin-bar .pl-site-header {
        top: 46px;
    }
    .admin-bar .pl-site {
        padding-top: 118px;
    }
}
.pl-site-header.als-scrolled {
    box-shadow: 0 2px 14px rgba(0,0,0,0.10);
}

/* Inner row — constant height, never moves */
.pl-site-header__inner {
    align-items: center !important;
    min-height: 64px !important;
}

/* Global page title spacing and alignment */
.pl-entry__header {
    padding-top: 2rem;
}
.pl-entry__title {
    text-align: center;
    font-size: 2.4rem !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
}

/* Branding: fixed size, no overflow */
.pl-site-header__branding {
    position: relative;
    flex-shrink: 0;
    line-height: 0;
    display: flex;
    align-items: center;
}

/* Logo: fixed size regardless of scroll */
.pl-site-header__branding .custom-logo-link {
    display: block;
}
.pl-site-header__branding .custom-logo {
    display: block;
    width: 100px !important;
    max-width: none !important;
    height: auto !important;
}

/* Nav */
.pl-site-header__end {
    align-items: center !important;
    margin-left: auto;
}
.pl-nav-menu > li > a,
.pl-nav-menu .pl-nav-search {
    font-size: 0.88rem;
    padding: 6px 10px;
    border-radius: 6px;
    color: #444;
    transition: background 0.15s, color 0.15s;
}
.pl-nav-search {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #444 !important;
}
.pl-nav-menu > li > a:hover {
    background: #f0f4f8;
    color: #1a1a1a;
}
.pl-nav-menu > li.current-menu-item > a,
.pl-nav-menu > li.current-menu-ancestor > a {
    color: #027dc3;
    font-weight: 600;
    background: transparent;
    border-bottom: 2px solid #027dc3;
    border-radius: 0;
}

/* ==========================================================================
   CSS Design Tokens & Variables
   ========================================================================== */
:root {
    /* Yak Font Settings */
    --yak-primary-font: system-ui, sans-serif;
    --yak-secondary-font: var(--yak-primary-font);
    --yak-accent-font: var(--yak-primary-font);
    --yak-font-base-px: 18;
    --yak-font-base: calc(var(--yak-font-base-px) * 1px);
    --yak-type-ratio: 1.25;
    --yak-font-xs: calc(var(--yak-font-base) / (var(--yak-type-ratio) * var(--yak-type-ratio)));
    --yak-font-sm: calc(var(--yak-font-base) / var(--yak-type-ratio));
    --yak-font-md: var(--yak-font-base);
    --yak-font-lg: calc(var(--yak-font-md) * var(--yak-type-ratio));
    --yak-font-xl: calc(var(--yak-font-lg) * var(--yak-type-ratio));
    --yak-font-2xl: calc(var(--yak-font-xl) * var(--yak-type-ratio));
    --yak-font-3xl: calc(var(--yak-font-2xl) * var(--yak-type-ratio));
    --yak-font-4xl: calc(var(--yak-font-3xl) * var(--yak-type-ratio));
    --yak-font-5xl: calc(var(--yak-font-4xl) * var(--yak-type-ratio));
    --yak-font-6xl: calc(var(--yak-font-5xl) * var(--yak-type-ratio));

    /* Dynamic Line Heights */
    --yak-lh-xs: 1.84;
    --yak-lh-sm: 1.78;
    --yak-lh-md: 1.65;
    --yak-lh-lg: 1.45;
    --yak-lh-xl: 1.32;
    --yak-lh-2xl: 1.22;
    --yak-lh-3xl: 1.15;
    --yak-lh-4xl: 1.1;
    --yak-lh-5xl: 1.05;
    --yak-lh-6xl: 1;

    /* Yak Color Tokens — override Plumbline's --pl-color-* where needed */
    --yak-color-black: #000;
    --yak-color-white: #fff;
    --yak-color-primary: #027dc3;
    --yak-color-muted: #f5f5f5;
    /* Plumbline primary override */
    --pl-color-primary: #027dc3;
    --pl-color-primary-dark: #025f96;

    /* Layout Utilities */
    --yak-radius: 6px;
    --yak-content-max-width: 75ch;
    --yak-padding-block: 2rem;
    --yak-padding-block-mobile: 1.5rem;

    /* WP Color Presets (so blocks using these vars render correctly) */
    --wp--preset--color--primary: var(--yak-color-primary);
    --wp--preset--color--secondary: #666;
    --wp--preset--color--tertiary: #ccc;
}

/* ==========================================================================
   Visibility Helpers (desktop/mobile show/hide)
   ========================================================================== */
@media (max-width: 960px) {
    .yak-desktop-only { display: none !important; }
}
@media (min-width: 960px) {
    .yak-mobile-only  { display: none !important; }
}

/* ==========================================================================
   Buttons — Yak style applied to standard WP button classes
   ========================================================================== */
.button,
.wp-block-button__link,
input[type="submit"],
input[type="button"],
button {
    display: inline-block;
    padding: 0.6em 1.2em;
    font-family: var(--yak-primary-font);
    font-size: var(--yak-font-md);
    line-height: var(--yak-lh-md);
    font-weight: 600;
    border: none;
    border-radius: var(--yak-radius);
    background-color: var(--yak-color-primary);
    color: var(--yak-color-white);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
button:hover {
    background-color: var(--yak-color-black);
    color: var(--yak-color-white);
}

/* ==========================================================================
   Modals (Yak custom modal system — used for grade description popovers)
   ========================================================================== */
.yak-modal {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: none;
    align-items: center;
    justify-content: center;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    opacity: 0;
    pointer-events: none;
    transform: translateY(30px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
}

.yak-modal.show {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.yak-modal-open { overflow: hidden; }

body.yak-modal-open .site-container,
body.yak-modal-closing .site-container {
    filter: blur(12px);
    transition: filter 0.3s ease;
}

body.yak-modal-closing .site-container { filter: blur(2px); }
body:not(.yak-modal-open):not(.yak-modal-closing) .site-container { filter: none; }
body.yak-modal-closing .yak-modal { pointer-events: none; }

.yak-modal-dialog {
    position: relative;
    width: auto;
    margin: 2rem auto;
    pointer-events: none;
    max-width: 50vw;
    width: 90%;
    max-height: 90vh;
}

button.yak-modal-close {
    opacity: 0.667;
    background: transparent;
    color: red;
    font-weight: 400;
    outline: none;
    transition: all ease-in-out 0.25s;
    font-size: var(--yak-font-xl);
    line-height: 0.5;
}

button.yak-modal-close:hover { opacity: 1; }

.yak-modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    pointer-events: auto;
    background-color: var(--yak-color-white, #fff);
    background-clip: padding-box;
    border-radius: var(--yak-radius, 6px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
    outline: 0;
    max-height: 90vh;
    overflow-y: auto;
}

.yak-modal-header,
.yak-modal-footer {
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.yak-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #dee2e6;
    padding-right: 0;
}

.yak-modal-title { margin-bottom: 0; font-size: 1.25rem; font-weight: 600; }

.yak-modal-body { position: relative; flex: 1 1 auto; padding: 2rem; }

.yak-modal-footer {
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem;
}

/* ==========================================================================
   Hello Bar / Separator
   ========================================================================== */
.clb-hello-bar-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0.5rem 1rem;
    background: var(--yak-color-primary);
    color: var(--yak-color-white);
}

.clb-hello-bar-wrapper a { color: var(--yak-color-white); text-decoration: none; }
.clb-hello-bar-wrapper a:hover { text-decoration: underline; }

.wp-block-separator.has-alpha-channel-opacity {
    display: block;
    width: 100%;
    max-width: 10rem;
    height: 3px;
    margin: 2em auto;
    border: none;
    background: linear-gradient(to right, #ddd, #999, #ddd);
    border-radius: 999px;
    opacity: 1;
}

/* ==========================================================================
   Wide-page layout helpers
   (In Plumbline, .pl-main--full-width handles the full-width layout.
    These selectors are kept for page-level body classes set by templates.)
   ========================================================================== */
.completed-reviews-page .pl-main,
.future-reviews-page .pl-main {
    max-width: 100%;
    padding-top: 2rem;
}


.completed-reviews-page .pl-entry,
.future-reviews-page .pl-entry {
    max-width: 100%;
}

.completed-reviews-page .pl-entry__content,
.future-reviews-page .pl-entry__content {
    max-width: 100%;
    width: 100%;
    overflow-x: hidden;
}

.completed-reviews-page .pl-main,
.future-reviews-page .pl-main {
    padding-inline: 1rem;
}

@media (min-width: 960px) {
    .completed-reviews-page .pl-main,
    .future-reviews-page .pl-main {
        padding-inline: 2rem;
        max-width: 1600px;
        margin-inline: auto;
    }
}

/* ==========================================================================
   Filter bar — Completed Reviews
   ========================================================================== */
.clb-filter-bar {
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: #f4f6fa;
    border: 1px solid #dde2ed;
    border-radius: 8px;
}

.clb-filter-search-row {
    margin-bottom: 0.75rem;
}

.clb-filter-search-wrap {
    position: relative;
}

.clb-filter-search-icon {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    pointer-events: none;
    font-size: 0.9rem;
}

#clb-filter-search {
    width: 100%;
    padding: 0.65rem 0.9rem 0.65rem 2.4rem;
    font-size: 1rem;
    border: 1px solid #c8cfe0;
    border-radius: 6px;
    box-sizing: border-box;
    font-family: var(--yak-primary-font);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#clb-filter-search:focus {
    outline: none;
    border-color: var(--yak-color-primary);
    box-shadow: 0 0 0 3px rgba(35, 99, 224, 0.12);
}

.clb-filter-selects-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: flex-end;
}

.clb-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.clb-filter-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #5a6272;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Override the global button rule for selects inside the filter bar */
.clb-filter-bar select {
    padding: 0.4rem 0.55rem;
    font-size: 0.875rem;
    border: 1px solid #c8cfe0;
    border-radius: 6px;
    background: #fff;
    font-family: var(--yak-primary-font);
    cursor: pointer;
    min-width: 105px;
    color: #222;
    transition: border-color 0.15s;
}

.clb-filter-bar select:focus {
    outline: none;
    border-color: var(--yak-color-primary);
}

.clb-filter-group--check {
    justify-content: flex-end;
    padding-bottom: 0.15rem;
}

.clb-filter-check-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 400;
    color: #333;
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0;
    padding: 0.45rem 0;
    white-space: nowrap;
}

.clb-filter-check-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--yak-color-primary);
    flex-shrink: 0;
}

.clb-filter-group--reset {
    justify-content: flex-end;
}

/* Override global button rule for the Clear filters button */
.clb-filter-bar .clb-filter-reset-btn,
.clb-filter-reset-btn {
    display: inline-block;
    padding: 0.42rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 400;
    background: #fff;
    color: #555;
    border: 1px solid #c8cfe0;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--yak-primary-font);
    text-transform: none;
    letter-spacing: 0;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.clb-filter-bar .clb-filter-reset-btn:hover,
.clb-filter-reset-btn:hover {
    background: #eef0f6;
    border-color: #9aa3b8;
    color: #222;
}

.clb-filter-meta-row {
    margin-top: 0.55rem;
    min-height: 1.1em;
}

.clb-filter-count {
    font-size: 0.8rem;
    color: #666;
}

.clb-no-results-msg {
    padding: 2rem 1rem;
    text-align: center;
    color: #555;
    font-style: italic;
    font-size: 0.95rem;
}

/* Override global button rule for the inline "Clear filters" link-button */
.clb-filter-bar .clb-filter-inline-clear,
.clb-filter-inline-clear {
    display: inline;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    color: var(--yak-color-primary);
    cursor: pointer;
    font-size: inherit;
    font-weight: 400;
    font-family: inherit;
    text-decoration: underline;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: none;
    transition: color 0.15s;
}

.clb-filter-inline-clear:hover {
    background: none;
    color: #0a3db5;
}

@media (max-width: 768px) {
    .clb-filter-bar {
        padding: 0.85rem 0.9rem;
    }
    .clb-filter-bar select {
        min-width: 85px;
        font-size: 0.8rem;
    }
    .clb-filter-check-label {
        font-size: 0.8rem;
    }
}

/* ==========================================================================
   Dashboard-style Completed Reviews (replaces card layout)
   ========================================================================== */

/* --- Page header --- */
.cr-page-header {
    margin-bottom: 1.25rem;
}

.cr-header-meta {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
}

.cr-treatment-count {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--yak-color-primary);
    line-height: 1;
}

.cr-treatment-label {
    font-size: 0.95rem;
    color: #666;
    font-weight: 400;
}

.cr-intro-text {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.55;
    max-width: 72ch;
}

.cr-intro-text p {
    margin-bottom: 0.4em;
}

.cr-intro-text p:last-child {
    margin-bottom: 0;
}

.cr-intro-text a {
    color: var(--yak-color-primary);
}

/* --- Filter bar --- */
.cr-filter-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
    padding: 0.55rem 0.85rem;
    background: #f4f6fb;
    border: 1px solid #dde2ed;
    border-radius: 8px;
}

.cr-filter-search-wrap {
    position: relative;
    flex: 1;
    min-width: 180px;
}

.cr-filter-search-wrap .fas {
    position: absolute;
    left: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 0.8rem;
    pointer-events: none;
}

#clb-filter-search {
    width: 100%;
    padding: 0.45rem 0.75rem 0.45rem 2rem;
    font-size: 0.88rem;
    border: 1px solid #c8cfe0;
    border-radius: 6px;
    background: #fff;
    font-family: var(--yak-primary-font);
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}

#clb-filter-search:focus {
    outline: none;
    border-color: var(--yak-color-primary);
    box-shadow: 0 0 0 3px rgba(35, 99, 224, 0.1);
}

.cr-updated-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    color: #444;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    font-family: var(--yak-primary-font);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    padding: 0;
}

.cr-updated-toggle input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--yak-color-primary);
    cursor: pointer;
    flex-shrink: 0;
}

.cr-clear-btn,
button.cr-clear-btn {
    padding: 0.38rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 400;
    background: #fff;
    color: #666;
    border: 1px solid #c8cfe0;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--yak-primary-font);
    text-transform: none;
    letter-spacing: 0;
    transition: background 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.cr-clear-btn:hover,
button.cr-clear-btn:hover {
    background: #edf0f8;
    border-color: #9aa3b8;
    color: #222;
}

.cr-clear-btn--link,
button.cr-clear-btn--link {
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    color: var(--yak-color-primary);
    text-decoration: underline;
    font-size: inherit;
    box-shadow: none;
}

.cr-clear-btn--link:hover {
    background: none;
    color: #0a3db5;
}

.cr-filter-count {
    font-size: 0.78rem;
    color: #888;
    margin-left: auto;
    white-space: nowrap;
}

/* --- Grade legend --- */
.cr-grade-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    color: #666;
    align-items: center;
}

.cr-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}

.cr-legend-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.cr-dot-a { background: #00c138; }
.cr-dot-b { background: #d4a900; color: #fff; }
.cr-dot-c { background: #027dc3; }
.cr-dot-d { background: #9600bc; }
.cr-dot-f { background: #e00; }
.cr-dot-u { background: #999; }

/* --- Dashboard table --- */
.cr-table {
    border: 1px solid #e0e4ef;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.cr-table-head {
    display: flex;
    align-items: center;
    padding: 0 14px 0 16px;
    background: #f4f6fb;
    border-bottom: 1px solid #e0e4ef;
    height: 36px;
}

.cr-table-head .cr-col-name {
    flex: 1;
    font-size: 0.7rem;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.cr-table-head .cr-col-grades {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
    margin-right: 36px; /* align with arrow column */
}

.cr-table-head .cr-col-grades span {
    width: 32px;
    text-align: center;
    font-size: 0.62rem;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* --- Row --- */
.cr-row {
    display: flex;
    align-items: center;
    padding: 0 14px 0 16px;
    min-height: 52px;
    border-bottom: 1px solid #edf0f6;
    transition: background 0.12s;
}

.cr-row:last-child {
    border-bottom: none;
}

.cr-row:hover {
    background: #f8f9fd;
}

.cr-col-name {
    flex: 1;
    min-width: 0;
    padding-right: 12px;
}

.cr-row-name {
    display: block;
    font-size: 0.93rem;
    font-weight: 500;
    color: #1a1a1a;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.12s;
    line-height: 1.3;
}

.cr-row-name:hover {
    color: var(--yak-color-primary);
}

.cr-row-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 1px;
}

.cr-row-year {
    font-size: 0.72rem;
    color: #aaa;
}

.cr-row-updated {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.68rem;
    font-weight: 600;
    color: #1a7c35;
    background: #e6f7ec;
    padding: 1px 7px;
    border-radius: 10px;
    white-space: nowrap;
}

.cr-row-updated .fa-sync-alt {
    font-size: 0.6rem;
}

.cr-row-podcast {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.68rem;
    color: #777;
    background: #f0f0f0;
    padding: 1px 7px;
    border-radius: 10px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.12s;
}

.cr-row-podcast:hover {
    background: #e0e0e0;
    color: #444;
}

.cr-col-grades {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* Grade cells (solid vivid colors) */
.cr-grade {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 7px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: filter 0.12s, transform 0.1s;
    color: #fff;
    flex-shrink: 0;
}

a.cr-grade:hover {
    filter: brightness(1.12);
    transform: scale(1.1);
    text-decoration: none;
}

.cr-grade-a { background: #00c138; }
.cr-grade-b { background: #d4a900; }
.cr-grade-c { background: #027dc3; }
.cr-grade-d { background: #9600bc; }
.cr-grade-f { background: #e00; }
.cr-grade-u { background: #bbb; color: #555; }

.cr-row-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: #ccc;
    text-decoration: none;
    margin-left: 8px;
    transition: color 0.12s, transform 0.12s;
    border-radius: 50%;
}

.cr-row:hover .cr-row-arrow {
    color: var(--yak-color-primary);
    transform: translateX(3px);
}

/* --- No results --- */
.cr-no-results {
    padding: 3rem 1rem;
    text-align: center;
    color: #999;
}

.cr-no-results .fa-search {
    display: block;
    font-size: 2rem;
    opacity: 0.3;
    margin-bottom: 0.75rem;
}

.cr-no-results p {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

/* --- Remove Plumbline title margin on this page --- */
.completed-reviews-page .pl-entry__title {
    margin-bottom: 0.5rem;
}

/* --- Mobile --- */
@media (max-width: 680px) {
    .cr-table-head { display: none; }

    .cr-row {
        flex-wrap: wrap;
        padding: 10px 12px;
        gap: 6px;
        min-height: unset;
    }

    .cr-col-name {
        width: 100%;
        padding-right: 0;
    }

    .cr-row-name {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }

    .cr-row-arrow { display: none; }

    .cr-grade { width: 28px; height: 28px; font-size: 0.8rem; }

    .cr-filter-bar { gap: 0.4rem; }
    .cr-filter-count { margin-left: 0; }
}

/* ==========================================================================
   Legacy card CSS — kept for reference, no longer used
   ========================================================================== */
.clb-filter-bar--cards .clb-filter-chips-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.clb-year-chips-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.rc-year-chip,
.clb-filter-bar .rc-year-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 13px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 400;
    border: 1px solid #d0d5dd;
    background: #fff;
    color: #555;
    cursor: pointer;
    font-family: var(--yak-primary-font);
    text-transform: none;
    letter-spacing: 0;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    line-height: 1.4;
}

.rc-year-chip:hover,
.clb-filter-bar .rc-year-chip:hover {
    background: #eef3ff;
    border-color: var(--yak-color-primary);
    color: var(--yak-color-primary);
}

.rc-year-chip.active,
.clb-filter-bar .rc-year-chip.active {
    background: var(--yak-color-primary);
    border-color: var(--yak-color-primary);
    color: #fff;
    font-weight: 500;
}

.clb-filter-divider {
    width: 1px;
    height: 22px;
    background: #d0d5dd;
    flex-shrink: 0;
}

.clb-updated-chip,
.clb-filter-bar .clb-updated-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 4px 13px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 400;
    border: 1px solid #d0d5dd;
    background: #fff;
    color: #555;
    cursor: pointer;
    font-family: var(--yak-primary-font);
    text-transform: none;
    letter-spacing: 0;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    user-select: none;
}

.clb-updated-chip input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.clb-updated-chip:has(input:checked) {
    background: var(--yak-color-primary);
    border-color: var(--yak-color-primary);
    color: #fff;
    font-weight: 500;
}

.clb-updated-chip:hover {
    background: #eef3ff;
    border-color: var(--yak-color-primary);
    color: var(--yak-color-primary);
}

.clb-updated-chip:has(input:checked):hover {
    background: #1a55d4;
    border-color: #1a55d4;
    color: #fff;
}

/* ==========================================================================
   Grade legend
   ========================================================================== */
.clb-grade-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin-bottom: 1rem;
    font-size: 0.78rem;
    color: #555;
}

.clb-legend-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.clb-legend-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

/* Grade pill colors (legend + card badges) */
.clb-legend-pill.clb-grade-a,
.rc-grade-pill.clb-grade-a { background: #e8f5e9; color: #1b5e20; }
.clb-legend-pill.clb-grade-b,
.rc-grade-pill.clb-grade-b { background: #fff8e1; color: #6d4c00; }
.clb-legend-pill.clb-grade-c,
.rc-grade-pill.clb-grade-c { background: #e3f2fd; color: #0d47a1; }
.clb-legend-pill.clb-grade-d,
.rc-grade-pill.clb-grade-d { background: #f3e5f5; color: #4a148c; }
.clb-legend-pill.clb-grade-f,
.rc-grade-pill.clb-grade-f { background: #ffebee; color: #b71c1c; }
.clb-legend-pill.clb-grade-u,
.rc-grade-pill.clb-grade-u { background: #f1f1f1; color: #757575; }

/* ==========================================================================
   Review cards
   ========================================================================== */
.reviews-card-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.review-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.09);
    border-radius: 10px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.review-card:hover {
    border-color: rgba(35, 99, 224, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.review-card__body {
    flex: 1;
    min-width: 0;
}

.review-card__name {
    margin-bottom: 4px;
}

.review-card__name a {
    font-size: 1rem;
    font-weight: 500;
    color: #1a1a1a;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s;
}

.review-card__name a:hover {
    color: var(--yak-color-primary);
}

.review-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.rc-year {
    font-size: 0.78rem;
    color: #999;
}

.rc-updated-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.72rem;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 10px;
    background: #e8f5e9;
    color: #2e7d32;
    white-space: nowrap;
}

.rc-updated-badge .fa-sync-alt {
    font-size: 0.65rem;
}

.rc-podcast-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.72rem;
    font-weight: 400;
    padding: 2px 8px;
    border-radius: 10px;
    background: #f0f0f0;
    color: #555;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

.rc-podcast-badge:hover {
    background: #e0e0e0;
    color: #333;
}

.review-card__grades {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.rc-grade-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.rc-grade-label {
    font-size: 0.6rem;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.rc-grade-pill {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: filter 0.15s, transform 0.1s;
    flex-shrink: 0;
}

a.rc-grade-pill:hover {
    filter: brightness(0.9);
    transform: scale(1.08);
    text-decoration: none;
}

.review-card__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #ccc;
    flex-shrink: 0;
    text-decoration: none;
    transition: color 0.15s, transform 0.15s;
    border-radius: 50%;
}

.review-card:hover .review-card__arrow {
    color: var(--yak-color-primary);
    transform: translateX(2px);
}

/* Empty / no results state */
.reviews-no-results {
    padding: 3rem 1rem;
    text-align: center;
    color: #888;
}

.reviews-no-results .fa-search {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
    opacity: 0.4;
}

.reviews-no-results p {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

/* Mobile: stack grades below name */
@media (max-width: 640px) {
    .review-card {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 12px;
    }

    .review-card__body {
        width: 100%;
    }

    .review-card__name a {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }

    .review-card__grades {
        gap: 4px;
    }

    .rc-grade-pill {
        width: 26px;
        height: 26px;
        font-size: 0.78rem;
        border-radius: 6px;
    }

    .review-card__arrow {
        display: none;
    }

    .clb-filter-divider {
        display: none;
    }
}

/* ==========================================================================
   Dossier — two-panel app layout for Completed Reviews
   ========================================================================== */

/* Hide legacy page elements */
.completed-reviews-page .pl-entry__title { display: none; }
.completed-reviews-page .cr-page-header  { display: none; }
.completed-reviews-page .cr-filter-bar   { display: none; }
.completed-reviews-page .cr-grade-legend { display: none; }
.completed-reviews-page .cr-table        { display: none; }

/* ── Shell ─────────────────────────────────────────────── */
.dossier-layout {
    display: flex;
    align-items: flex-start;
    gap: 0;
}

/* ── Sidebar ───────────────────────────────────────────── */
.dossier-sidebar {
    width: 340px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e0d9ce;
    border-radius: 14px;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}

.dossier-sidebar::after {
    content: '↓ scroll for more';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 8px;
    height: 72px;
    background: linear-gradient(to bottom, transparent 0%, #fff 55%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 10px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #8d7a5c;
    pointer-events: none;
    border-radius: 0 0 0 14px;
    z-index: 2;
}

.dossier-sidebar--bottom::after { opacity: 0; }

.dossier-sidebar-head {
    padding: 18px 16px 10px;
    border-bottom: 1px solid #ede8df;
    flex-shrink: 0;
}

.dossier-heading-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 10px;
}

.dossier-heading {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.dossier-count {
    font-size: 0.7rem;
    color: #bbb;
}

.dossier-search-wrap {
    position: relative;
    margin-bottom: 8px;
}

.dossier-search-wrap .fas {
    position: absolute;
    left: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
    font-size: 0.75rem;
    pointer-events: none;
}

#dossier-search {
    width: 100%;
    padding: 0.42rem 0.7rem 0.42rem 1.9rem;
    font-size: 0.83rem;
    border: 1px solid #e4dfd5;
    border-radius: 8px;
    background: #faf8f5;
    font-family: var(--yak-primary-font);
    box-sizing: border-box;
    color: #333;
    transition: border-color 0.15s, box-shadow 0.15s;
}

#dossier-search:focus {
    outline: none;
    border-color: #b8a88a;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(184,168,138,0.15);
}

.dossier-filters {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dossier-filter-toggle {
    /* replaces .dossier-updated-toggle */
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.76rem;
    color: #888;
    cursor: pointer;
    user-select: none;
    font-family: var(--yak-primary-font);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    padding: 0;
}

.dossier-filter-toggle input[type="checkbox"] {
    width: 13px;
    height: 13px;
    accent-color: #8d7a5c;
    cursor: pointer;
}

/* ── List ──────────────────────────────────────────────── */
.dossier-list {
    flex: 1;
    overflow-y: scroll;
    padding: 4px 0 72px;
    min-height: 0;
    scrollbar-width: auto;
    scrollbar-color: #b5a898 #f0ebe3;
}

.dossier-list::-webkit-scrollbar { width: 8px; }
.dossier-list::-webkit-scrollbar-track { background: #f0ebe3; border-radius: 0 0 0 14px; }
.dossier-list::-webkit-scrollbar-thumb { background: #b5a898; border-radius: 4px; }
.dossier-list::-webkit-scrollbar-thumb:hover { background: #8d7a5c; }

.dli {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 16px;
    cursor: pointer;
    transition: background 0.1s;
    border-left: 3px solid transparent;
    outline: none;
}

.dli:hover { background: #faf8f4; }

.dli--active {
    background: #f5f0e8 !important;
    border-left-color: #8d7a5c;
}

.dli-body { flex: 1; min-width: 0; }

.dli-name {
    display: block;
    font-size: 0.84rem;
    font-weight: 500;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
    margin-bottom: 4px;
}

.dli--active .dli-name { color: #5a3e28; }

.dli-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dli-icons {
    display: flex;
    gap: 3px;
    align-items: center;
    margin-left: auto;
    flex-shrink: 0;
}

.dli-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    font-size: 0.6rem;
}

.dli-icon-update { color: #166534; background: #dcfce7; }
.dli-icon-podcast { color: #1e40af; background: #dbeafe; }

.dli-grade-dots { display: flex; gap: 4px; align-items: center; }

.dgd {
    width: 28px;
    height: 10px;
    border-radius: 5px;
    flex-shrink: 0;
}

.dgd-a { background: #2d9e6b; }
.dgd-b { background: #c4940a; }
.dgd-c { background: #027dc3; }
.dgd-d { background: #9600bc; }
.dgd-f { background: #dd0000; }
.dgd-u { background: #ddd; }

.dli-year { font-size: 0.7rem; color: #ccc; flex-shrink: 0; }

.dossier-list-empty {
    padding: 2rem 1rem;
    text-align: center;
    font-size: 0.82rem;
    color: #bbb;
}

/* ── Detail wrap ───────────────────────────────────────── */
.dossier-detail-wrap {
    flex: 1;
    min-width: 0;
    background: transparent;
    position: relative;
    border: none;
    padding-left: 32px;
}

.dossier-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ccc;
    min-height: 400px;
}

.dossier-empty-inner i {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.6rem;
    opacity: 0.4;
}

.dossier-empty-inner p {
    font-size: 0.85rem;
    color: #bbb;
    line-height: 1.6;
}

/* ── Detail panel ──────────────────────────────────────── */
.dossier-detail {
    padding: 30px 34px 40px;
    max-width: 780px;
}

.dp-top { margin-bottom: 24px; }

.dp-meta {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: #8d7a5c;
    margin-bottom: 6px;
}

.dp-title {
    font-size: 1.9rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 6px;
    line-height: 1.15;
}

.dp-subtitle {
    font-size: 0.9rem;
    color: #777;
    font-style: italic;
    margin: 0 0 10px;
    line-height: 1.55;
}

.dp-podcast-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    background: #1a1a1a;
    color: #fff;
    text-decoration: none;
    transition: background 0.15s;
}

.dp-podcast-pill:hover { background: #444; color: #fff; text-decoration: none; }

/* ── Actions row ───────────────────────────────────────── */
.dp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

/* ── Evidence card ─────────────────────────────────────── */
.dp-evidence {
    background: #fff;
    border: 1px solid #ede8df;
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 20px;
}

.dp-grade-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dp-grade-row {
    display: grid;
    grid-template-columns: 34px 140px 1fr 180px;
    align-items: center;
    gap: 12px;
}

.dp-grade-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 7px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    flex-shrink: 0;
    transition: filter 0.12s, transform 0.1s;
}

a.dp-grade-pill:hover { filter: brightness(1.12); transform: scale(1.08); text-decoration: none; }

.dp-gp-a { background: #2d9e6b; }
.dp-gp-b { background: #c4940a; }
.dp-gp-c { background: #027dc3; }
.dp-gp-d { background: #9600bc; }
.dp-gp-f { background: #dd0000; }
.dp-gp-u { background: #ccc; color: #666; }

.dp-grade-info { display: flex; flex-direction: column; }

.dp-grade-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.2;
}

.dp-grade-sub {
    font-size: 0.68rem;
    font-weight: 500;
    margin-top: 1px;
}

.dp-sub-a { color: #2d9e6b; }
.dp-sub-b { color: #c4940a; }
.dp-sub-c { color: #027dc3; }
.dp-sub-d { color: #9600bc; }
.dp-sub-f { color: #dd0000; }
.dp-sub-u { color: #bbb; }

.dp-bar-wrap { flex: 1; }

.dp-bar-track {
    height: 6px;
    background: #ede8df;
    border-radius: 3px;
    overflow: hidden;
}

.dp-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.dp-bar-a { background: #2d9e6b; }
.dp-bar-b { background: #c4940a; }
.dp-bar-c { background: #027dc3; }
.dp-bar-d { background: #9600bc; }
.dp-bar-f { background: #dd0000; }
.dp-bar-u { background: #e8e4dc; }

.dp-grade-desc {
    font-size: 0.69rem;
    color: #bbb;
    line-height: 1.4;
}

/* ── Content / Updates / PDF ───────────────────────────── */
.dp-content {
    font-size: 0.88rem;
    color: #444;
    line-height: 1.7;
    margin-bottom: 18px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #ede8df;
    border-radius: 12px;
}

.dp-content p { margin-bottom: 0.7em; }
.dp-content p:last-child { margin-bottom: 0; }
.dp-content a { color: var(--yak-color-primary); }

.dp-update {
    margin-bottom: 18px;
    padding: 14px 18px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
}

.dp-update-hd {
    font-size: 0.76rem;
    font-weight: 700;
    color: #166534;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dp-update-body { font-size: 0.83rem; color: #333; line-height: 1.6; }
.dp-update-body p { margin-bottom: 0.4em; }
.dp-update-body p:last-child { margin-bottom: 0; }
.dp-update-body a { color: #1a6cb5; text-decoration: underline; word-break: break-all; }
.dp-update-body a:hover { color: #0d4a87; }
/* Previous (older) updates — neutral tone so newest stays prominent */
.dp-update--prev { background: #f7f8fa; border-color: #dde3ea; }
.dp-update--prev .dp-update-hd { color: #6b7a8d; font-size: 0.78rem; }
.dp-update--prev .dp-update-body { color: #555; font-size: 0.81rem; }

.dp-download-btn,
a.dp-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    background: #1a1a1a;
    color: #fff;
    font-size: 0.83rem;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s;
    font-family: var(--yak-primary-font);
    letter-spacing: 0;
    text-transform: none;
    border: none;
    cursor: pointer;
}

.dp-download-btn:hover,
a.dp-download-btn:hover { background: #333; color: #fff; text-decoration: none; }

.dp-btn-sec,
a.dp-btn-sec {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: transparent;
    border: 1px solid #bbf7d0;
    color: #166534;
    font-size: 0.76rem;
    border-radius: 6px;
    text-decoration: none;
    margin-top: 10px;
    font-family: var(--yak-primary-font);
    text-transform: none;
    letter-spacing: 0;
    transition: background 0.15s;
}

.dp-btn-sec:hover { background: rgba(0,0,0,0.03); text-decoration: none; }

.dp-full-link-btn,
a.dp-full-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    background: transparent;
    border: 1px solid #d0c9be;
    color: #5a3e28;
    font-size: 0.83rem;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
    font-family: var(--yak-primary-font);
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
}

.dp-full-link-btn:hover,
a.dp-full-link-btn:hover {
    background: #ede8df;
    border-color: #b8ae9e;
    color: #3a2410;
    text-decoration: none;
}

.dp-podcast-wrap { margin-bottom: 18px; }

.dp-podcast-wrap iframe,
.dp-podcast-wrap audio { width: 100%; border-radius: 8px; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 860px) {
    .dossier-layout {
        flex-direction: column;
        height: auto;
        max-height: none;
        border-radius: 10px;
        border: 1px solid #e0d9ce;
        overflow: hidden;
        box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    }

    .dossier-sidebar {
        width: 100%;
        max-height: 380px;
        border: none;
        border-bottom: 1px solid #e0d9ce;
        border-radius: 0;
        position: static;
        box-shadow: none;
    }

    /* Hide scroll hint on touch — users swipe naturally */
    .dossier-sidebar::after { display: none; }

    .dossier-detail-wrap {
        min-height: 0;
        padding-left: 0;
        border: none;
        border-radius: 0;
    }

    .dossier-empty { position: static; padding: 2rem 1rem; min-height: 120px; }

    .dp-grade-row { grid-template-columns: 30px 100px 1fr; gap: 8px; }

    .dp-grade-desc { display: none; }

    .dossier-detail { padding: 20px 16px; }

    .dp-title { font-size: 1.3rem; }

    .dp-update { margin: 0 0 12px; }
}

@media (max-width: 480px) {
    .dossier-detail { padding: 16px 12px; }
    .dp-grade-row { grid-template-columns: 28px 90px 1fr; gap: 6px; }
    .als-page-intro { font-size: 0.9rem; }
}

/* ==========================================================================
   Custom Footer
   ========================================================================== */
.als-footer-sponsor {
    text-align: center;
    padding: 16px 24px;
    background: #e8e8e8;
    font-size: 0.88rem;
    color: #555;
}

.als-footer-sponsor a {
    color: #1a6faf;
    text-decoration: none;
    font-weight: 500;
}

.als-footer-sponsor a:hover { text-decoration: underline; }

.als-footer {
    background: #1a6faf;
    padding: 14px 0;
}

.als-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.als-footer-copy {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.8);
    margin: 0;
    text-align: center;
}

.als-footer-copy a { color: rgba(255,255,255,0.9); text-decoration: none; }
.als-footer-copy a:hover { color: #fff; }

/* ================================================
   PAGE INTRO (editor content above dossier / future reviews table)
   ================================================ */

.als-page-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px;
    line-height: 1.2;
    text-align: center;
}

.als-page-intro {
    max-width: 860px;
    width: 100%;
    margin: 0 0 32px;
    font-size: 0.95rem;
    line-height: 1.75;
    color: #444;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.als-page-intro p { margin: 0 0 1em; }
.als-page-intro p:last-child { margin-bottom: 0; }
.als-page-intro a { color: #1a6faf; }

/* ================================================
   HOME PAGE — Plumbline block overrides
   ================================================ */

/* Hero: center content for media-background variant */
.pl-hero--media-background .pl-hero__inner { justify-content: center; }
.pl-hero--media-background .pl-hero__content { text-align: center; align-items: center; }
.pl-hero--media-background .wp-block-buttons { justify-content: center; }

/* Hero overlay: blue tint instead of grey/dark */
.pl-hero--overlay-dark::after {
    background: linear-gradient(150deg, rgba(1,80,145,0.72) 0%, rgba(2,125,195,0.65) 100%) !important;
}

/* Eyebrow on dark background: white */
.pl-hero--media-background .pl-eyebrow {
    color: rgba(255,255,255,0.95) !important;
    background: rgba(255,255,255,0.12) !important;
    border-color: rgba(255,255,255,0.3) !important;
}

/* "How it works" outline button on hero: white bg + blue text */
.pl-hero--media-background .wp-block-button.is-style-outline .wp-block-button__link {
    background: #fff !important;
    color: #027dc3 !important;
    border-color: #fff !important;
}
.pl-hero--media-background .wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: rgba(255,255,255,0.9) !important;
}

/* Stats bar section */
.als-stats-bar {
    background: #027dc3 !important;
    padding-block: 0 !important;
    --section-padding: 0 !important;
}
.als-stats-bar .pl-section__inner {
    padding-block: 0 !important;
    max-width: var(--pl-width-wide) !important;
    margin-inline: auto !important;
}
.als-stats-bar .wp-block-columns { justify-content: center; gap: 0; }
.als-stats-bar .wp-block-column {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 8px 40px;
    border-right: 1px solid rgba(255,255,255,0.2);
}
.als-stats-bar .wp-block-column:last-child { border-right: none; }
.als-stats-bar h3 { margin: 0 0 4px; line-height: 1; color: #fff !important; text-shadow: none !important; font-size: 2.2rem !important; font-weight: 700 !important; }
.als-stats-bar p { margin: 0; color: rgba(255,255,255,0.9) !important; font-size: 0.78rem !important; text-transform: uppercase; letter-spacing: 0.08em; text-shadow: none !important; font-weight: 500 !important; }

/* Tighten gap between stats bar and card grid */
.wp-block-plumbline-card-grid.pl-card-grid--spacing-spacious {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
}

/* "You can vote" badge rendered via card meta */
.pl-card__meta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #e0f0fa;
    color: #027dc3;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
    margin-bottom: 8px;
}

@media (max-width: 860px) {
    .pl-site-header__branding .custom-logo {
        width: 100px !important;
    }
}

/* Mobile nav panel: start below the sticky header */
#pl-mobile-nav {
    top: 72px !important;
    height: calc(100dvh - 72px) !important;
}
.pl-mobile-panel {
    max-height: calc(100dvh - 72px) !important;
}
.admin-bar #pl-mobile-nav {
    top: 118px !important;
    height: calc(100dvh - 118px) !important;
}
.admin-bar .pl-mobile-panel {
    max-height: calc(100dvh - 118px) !important;
}
