/* ==========================================================================
   /css/main.css — keithparnell.com
   Structural styles only; no visual design pass yet. All CSS lives here —
   no inline style="" or <style> blocks on any page, per standing convention.
   ========================================================================== */

:root {
    /* Brand palette */
    --color-mist:      #cfdee1; /* lightest */
    --color-slate:      #85a3a9; /* mid-light */
    --color-teal:       #7ecdca; /* accent */
    --color-steel:      #547278; /* mid-dark */
    --color-charcoal:   #202d31; /* darkest */

    /* Semantic aliases — reference these in component rules below,
       so a future palette tweak only touches this block. */
    --color-bg:          #ffffff;
    --color-bg-alt:      var(--color-mist);
    --color-text:        var(--color-charcoal);
    --color-text-muted:  var(--color-steel);
    --color-accent:      var(--color-teal);
    --color-accent-dark: var(--color-steel);
    --color-border:      var(--color-slate);

    --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --max-width: 1140px;
    --radius: 8px;
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-base);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.5;
}

img { max-width: 100%; display: block; }

a {
    color: var(--color-accent-dark);
    text-decoration: none;
}
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; text-wrap: balance; }

p { margin: 0 0 1em; }

ul { margin: 0; padding: 0; list-style: none; }

.wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ---- Buttons ---- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.15s ease;
}
.btn:hover { text-decoration: none; opacity: 0.85; }

.btn--primary {
    background: var(--color-charcoal);
    color: var(--color-mist);
}

.btn--secondary {
    background: var(--color-teal);
    color: var(--color-charcoal);
}

/* ---- Site header ---- */
.site-header {
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    padding-bottom: 16px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-text);
}
.site-logo:hover { text-decoration: none; }
.site-logo img { width: 40px; height: 40px; }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    padding: 0;
}
.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-charcoal);
    display: block;
}

.site-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.site-nav a {
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.95rem;
}

.site-nav a.is-active {
    color: var(--color-accent-dark);
    border-bottom: 2px solid var(--color-teal);
    padding-bottom: 4px;
}

/* ---- Nav dropdown (Topics) ---- */
.site-nav__dropdown { position: relative; }

.site-nav__dropdown summary {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    list-style: none;
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.95rem;
}
.site-nav__dropdown summary::-webkit-details-marker { display: none; }
.site-nav__dropdown summary::after { content: "▾"; font-size: 0.65rem; position: relative; top: 1px; }
.site-nav__dropdown details[open] summary::after { content: "▴"; }
.site-nav__dropdown summary.is-active {
    color: var(--color-accent-dark);
    border-bottom: 2px solid var(--color-teal);
    padding-bottom: 4px;
}

.site-nav .site-nav__dropdown-menu {
    display: block; /* higher specificity than .site-nav ul (which is what was actually still winning before) */
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 230px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: 0 4px 14px rgba(0,0,0,.08);
    padding: 6px;
    z-index: 20;
}
.site-nav__dropdown-menu li { list-style: none; margin: 0; }
.site-nav__dropdown-menu a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    border-radius: calc(var(--radius) - 4px);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--color-text);
}
.site-nav__dropdown-menu a:hover { background: var(--color-bg-alt); }
.site-nav__dropdown-menu a.is-active { color: var(--color-accent-dark); }

/* ---- Hero ---- */
.hero {
    background: var(--color-charcoal);
    color: var(--color-mist);
    padding: 80px 0;
}

.hero__inner { max-width: 720px; }

.hero h1 {
    font-size: 2.5rem;
    color: #ffffff;
}

.hero__sub {
    font-size: 1.1rem;
    color: var(--color-mist);
    margin-bottom: 1.5em;
}

/* ---- Section heading ---- */
.section-heading {
    font-size: 1.75rem;
    margin-bottom: 1em;
}

/* ---- Pillar landing pages: article grid ---- */
.pillar-articles { padding: 48px 0; }

.pillar-articles__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 600px) {
    .pillar-articles__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
    .pillar-articles__grid { grid-template-columns: repeat(3, 1fr); }
}

.article-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--color-bg);
}
.article-card__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}
.article-card h3 {
    font-size: 1.05rem;
    margin: 14px 16px 6px;
}
.article-card h3 a { color: var(--color-text); }
.article-card p {
    margin: 0 16px 16px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* ---- Article page ---- */
.article { padding: 48px 0 64px; }
.article__inner { max-width: 720px; }

.article__pillars {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1em;
}
.pillar-tag {
    display: inline-flex;
    align-items: center;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: 4px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text);
}
.pillar-tag:hover { background: var(--color-teal); text-decoration: none; }

.article h1 { font-size: 2rem; }

.article__hero-image {
    width: 100%;
    border-radius: var(--radius);
    margin: 1em 0 1.5em;
}

.article__body {
    font-size: 1.05rem;
    line-height: 1.75;
}
.article__body h2 { font-size: 1.4rem; margin-top: 1.5em; }
.article__body h3 { font-size: 1.15rem; margin-top: 1.2em; }
.article__body p { margin-bottom: 1.2em; }
.article__body ul, .article__body ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.article__body li { margin-bottom: 0.4em; }
.article__body a { text-decoration: underline; }
.article__body img { max-width: 100%; border-radius: var(--radius); }
.article__body blockquote {
    border-left: 3px solid var(--color-teal);
    margin: 1.5em 0;
    padding-left: 1.2em;
    color: var(--color-text-muted);
    font-style: italic;
}

/* ---- Status badges (Articles admin) ---- */
.status-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 999px;
}
.status-badge--draft     { background: var(--color-bg-alt); color: var(--color-text-muted); }
.status-badge--scheduled { background: #fff4cc; color: #8a6d00; }
.status-badge--published { background: #e5f8ee; color: #1f8a4c; }

/* ---- Article editor form ---- */
.editor-field { margin-bottom: 22px; }
.editor-field label,
.editor-field .field-label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 6px;
}
.editor-field small { font-weight: 400; color: var(--color-text-muted); }
.editor-field input[type="text"],
.editor-field input[type="datetime-local"],
.editor-field input[type="file"],
.editor-field textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
}
.editor-field textarea { min-height: 80px; }

.editor-label-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}
.editor-label-row label { margin-bottom: 0; }

.editor-field-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 700px) {
    .editor-field-row { grid-template-columns: 1fr 1fr; }
}

.editor-pillar-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.editor-pillar-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    min-height: 44px;
}
.editor-pillar-check input { width: 18px; height: 18px; }

.editor-active-inline {
    font-weight: 500;
    font-size: 0.85rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.editor-hint {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 6px;
}

.editor-image-preview {
    max-width: 280px;
    border-radius: var(--radius);
    margin-bottom: 10px;
}

.schedule-quick-picks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0;
}
.schedule-quick-btn {
    font-size: 0.8rem;
    padding: 8px 12px;
    min-height: 40px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg);
    cursor: pointer;
}
.schedule-quick-btn:hover { border-color: var(--color-accent); }

/* ---- Draft prompt box ---- */
.draft-prompt-box textarea {
    font-family: monospace;
    font-size: 0.8rem;
}
.draft-prompt-copied {
    font-size: 0.85rem;
    color: #1f8a4c;
    margin-left: 10px;
}

/* ---- Library table pillar tags (compact, inline) ---- */
.tagging-answer-title { font-weight: 600; margin-bottom: 2px; }
.library-pillar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}
.library-pillar-tag {
    font-size: 0.7rem;
    background: var(--color-bg-alt);
    border-radius: 4px;
    padding: 1px 6px;
    color: var(--color-text-muted);
}

/* ---- Intro / credibility section ---- */
.intro { padding: 48px 0 8px; }
.intro__inner { max-width: 720px; }
.intro p {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ---- Pillars grid ---- */
.pillars { padding: 64px 0; }

.pillars__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.pillar-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 24px;
    background: var(--color-bg);
}

.pillar-card h3 { font-size: 1.2rem; }
.pillar-card h3 a { color: var(--color-text); }

.pillar-card__latest {
    margin-top: 1em;
    padding-top: 1em;
    border-top: 1px solid var(--color-border);
    font-size: 0.9rem;
}

.pillar-card__latest-label {
    font-weight: 600;
    color: var(--color-text-muted);
    margin-right: 6px;
}

.pillar-card__latest--empty {
    color: var(--color-text-muted);
    font-style: italic;
}

/* ---- Newsletter CTA band ---- */
.newsletter-cta {
    background: var(--color-mist);
    padding: 56px 0;
    text-align: center;
}

.newsletter-cta__inner { max-width: 560px; margin: 0 auto; }

/* ---- FAQ section ---- */
.faq { padding: 64px 0; }

.faq__list {
    max-width: 720px;
}

.faq__item {
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
}
.faq__item:last-child { border-bottom: none; }
.faq__item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.faq__item p { margin: 0; color: var(--color-text-muted); }

/* ---- Site footer ---- */
.site-footer {
    background: var(--color-charcoal);
    color: var(--color-mist);
    padding: 48px 0 24px;
}

.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-footer__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #ffffff;
}
.site-footer__brand img { width: 32px; height: 32px; }

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.site-footer__links a { color: var(--color-mist); font-size: 0.9rem; }

.site-footer__social {
    display: flex;
    align-items: center;
    gap: 16px;
}
.site-footer__social a {
    color: var(--color-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}
.site-footer__social a:hover { color: #ffffff; }

.site-footer__copy {
    width: 100%;
    margin: 24px 0 0;
    font-size: 0.8rem;
    color: var(--color-slate);
}

/* ---- Secure dashboard (/secure/) — mobile-first ---- */

.secure-body {
    background: var(--color-bg-alt);
}

/* ---- Login screen ---- */
.secure-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.secure-login__box {
    width: 100%;
    max-width: 360px;
    background: var(--color-bg);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
}

.secure-login__logo {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
}

.secure-login__error {
    color: #b3261e;
    font-size: 0.9rem;
    margin-bottom: 1em;
}

.secure-login__form {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.secure-login__form label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 10px;
}

.secure-login__form input {
    padding: 12px;
    font-size: 1rem; /* 16px+ prevents iOS zoom-on-focus */
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    min-height: 44px;
}

.secure-login__form .btn {
    margin-top: 20px;
}

/* ---- Secure header ---- */
.secure-header {
    background: var(--color-charcoal);
}

.secure-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.secure-header__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-weight: 700;
}
.secure-header__brand img { width: 32px; height: 32px; }
.secure-header__brand:hover { text-decoration: none; }

.secure-header__logout {
    color: var(--color-mist);
    font-size: 0.9rem;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.secure-main {
    padding: 24px 0 60px;
}

/* ---- Breadcrumbs ---- */
.breadcrumbs {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5em;
}
.breadcrumbs a { color: var(--color-text-muted); }
.breadcrumbs__sep { margin: 0 6px; }
.breadcrumbs__current { color: var(--color-text); font-weight: 600; }

/* ---- Dashboard tiles ---- */
.dashboard-tiles {
    display: grid;
    grid-template-columns: 1fr; /* single column on mobile by default */
    gap: 16px;
    align-items: start; /* prevents a lone tile from stretching to fill row height */
}

.dashboard-tile {
    position: relative;
    min-width: 0; /* same grid-shrink fix as .analytics-column */
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 20px 20px 36px; /* extra bottom room so the sublink doesn't crowd the description */
    max-width: 360px; /* keeps a single/few tiles from ballooning to fill a wide row */
    transition: border-color .15s ease, box-shadow .15s ease;
}
.dashboard-tile:hover {
    border-color: var(--color-accent);
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.dashboard-tile__main {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--color-text);
    text-decoration: none;
}
.dashboard-tile__main:hover { text-decoration: none; }
.dashboard-tile h2 { font-size: 1.1rem; margin-bottom: 4px; }
.dashboard-tile p { margin: 0; font-size: 0.9rem; color: var(--color-text-muted); }

/* Sub-links sit inside the tile's own existing padding, absolutely
   positioned at the bottom corners so they never add to the tile's
   width or height. Deliberately smaller than the description text —
   this is a quiet secondary link, not another line of body copy. */
.dashboard-tile__sublink {
    position: absolute;
    bottom: 10px;
    font-weight: 400;
    font-size: 0.7rem;
    color: var(--color-text-muted);
    text-decoration: none;
}
.dashboard-tile__sublink:hover { color: var(--color-accent-dark); }
.dashboard-tile__sublink--right { right: 20px; }
.dashboard-tile__sublink--left { left: 20px; }

.dashboard-tile__badge {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 12px;
    background: var(--color-teal);
    color: var(--color-charcoal);
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- Dashboard stats ---- */
.dashboard-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 16px 0 32px;
}

.dashboard-stat {
    min-width: 0; /* same grid-shrink fix as .analytics-column */
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
}
.dashboard-stat__number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-charcoal);
}
.dashboard-stat__label {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 4px;
}

/* ---- Analytics range picker + heading row ---- */
.analytics-heading-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 0.5em;
}

.analytics-range-picker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.range-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    min-height: 44px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
}
.range-pill:hover { text-decoration: none; border-color: var(--color-accent); }
.range-pill--active {
    background: var(--color-charcoal);
    color: #ffffff;
    border-color: var(--color-charcoal);
}

.analytics-section { margin-top: 40px; }
.analytics-section h2 { font-size: 1.2rem; margin-bottom: 0.5em; }

.dashboard-empty {
    color: var(--color-text-muted);
    font-style: italic;
}

/* ---- Dashboard table — reflows into stacked labeled rows on narrow
   screens, real <table> layout above the breakpoint. No horizontal
   scroll or min-width trick at any width — every cell wraps instead. ---- */
.dashboard-table-wrap { /* no longer a scroll container; kept as a class so existing markup doesn't need restructuring */ }

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
}

/* Mobile-first: each row becomes a card, each cell a labeled block */
.dashboard-table thead { display: none; }
.dashboard-table tbody tr {
    display: block;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 10px 12px;
    margin-bottom: 10px;
}
.dashboard-table td {
    display: block;
    padding: 4px 0;
    border-bottom: none;
    font-size: 0.9rem;
    word-break: break-word;
}
.dashboard-table td[data-label]::before {
    content: attr(data-label) ": ";
    font-weight: 600;
    color: var(--color-text-muted);
}
.dashboard-table .col-right { text-align: left; } /* right-align only makes sense in real table mode, below */

@media (min-width: 640px) {
    .dashboard-table thead { display: table-header-group; }
    .dashboard-table tbody tr {
        display: table-row;
        border: none;
        border-radius: 0;
        padding: 0;
        margin-bottom: 0;
    }
    .dashboard-table th,
    .dashboard-table td {
        display: table-cell;
        padding: 10px 12px;
        border-bottom: 1px solid var(--color-border);
        text-align: left;
        word-break: normal;
    }
    .dashboard-table td[data-label]::before { content: none; font-weight: normal; }
    .dashboard-table th { color: var(--color-text-muted); font-weight: 600; white-space: nowrap; }
    .dashboard-table .col-right { text-align: right; }
}

/* Wider screens: tiles and stats can use available width */
@media (min-width: 600px) {
    .dashboard-tiles { grid-template-columns: repeat(2, 1fr); }
    .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
    .dashboard-tiles { grid-template-columns: repeat(3, 1fr); }
    .dashboard-stats--four { grid-template-columns: repeat(4, 1fr); }
}

/* ---- Analytics two-column layout ---- */
.analytics-columns {
    display: grid;
    grid-template-columns: 1fr; /* stacked on mobile */
    gap: 32px;
}
.analytics-column {
    min-width: 0; /* without this, grid items won't shrink below the intrinsic
                     width of their content (e.g. the 420px-min-width table
                     inside), which forces the whole page wider than the
                     viewport instead of containing the scroll where it belongs */
}
@media (min-width: 700px) {
    .analytics-columns { grid-template-columns: 1fr 1fr; }
}

.analytics-column h2 { font-size: 1.2rem; margin-bottom: 0.75em; }

.analytics-column__more {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    min-height: 44px;
    line-height: 44px;
}
.analytics-column__more:hover { color: var(--color-accent-dark); }

.pagelog-preview-time {
    white-space: nowrap;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}
.pagelog-preview-page {
    word-break: break-all;
    font-size: 0.85rem;
}

/* ---- Page Logs ---- */
.pagelog-heading-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 1em;
}

.pagelog-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.pagelog-select {
    padding: 10px 12px;
    min-height: 44px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg);
    font-size: 0.9rem;
}

.pagelog-clean-link {
    color: #b3261e;
    font-size: 0.85rem;
    font-weight: 600;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.pagelog-hint {
    color: var(--color-text-muted);
    font-style: italic;
}

.pagelog-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 1em;
    font-size: 0.8rem;
}
.pagelog-swatch {
    padding: 4px 10px;
    border-radius: 12px;
    color: #ffffff;
}
.pagelog-swatch--office  { background: var(--color-steel); }
.pagelog-swatch--bot     { background: var(--color-slate); }
.pagelog-swatch--blocked { background: #b3261e; }

.pagelog-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pagelog-row {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 14px 16px;
    background: var(--color-bg);
    font-size: 0.9rem;
}
.pagelog-row--office  { border-left: 4px solid var(--color-steel); }
.pagelog-row--bot     { border-left: 4px solid var(--color-slate); }
.pagelog-row--blocked { border-left: 4px solid #b3261e; }

.pagelog-row__top { margin-bottom: 8px; word-break: break-word; }

.pagelog-row__actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}
.pagelog-row__actions button {
    min-width: 44px;
    min-height: 44px;
    font-size: 1.1rem;
    background: none;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    cursor: pointer;
}
.pagelog-row__result {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.pagelog-row__detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    word-break: break-word;
}

/* ---- Responsive (public site) ---- */
@media (max-width: 800px) {
    .nav-toggle { display: flex; }

    .site-header__inner { flex-wrap: wrap; }

    .site-nav {
        display: none;
        width: 100%;
        order: 3;
    }
    .site-nav.is-open { display: block; }
    .site-nav ul { flex-direction: column; gap: 0; }
    .site-nav li { border-top: 1px solid var(--color-border); }
    .site-nav a {
        padding: 14px 4px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .site-nav__dropdown summary {
        padding: 14px 4px;
        min-height: 44px;
    }
    .site-nav .site-nav__dropdown-menu {
        position: static;
        border: none;
        box-shadow: none;
        padding: 0 0 0 16px;
    }
    .site-nav__dropdown-menu li { border-top: 1px solid var(--color-border); }

    .pillars__grid { grid-template-columns: 1fr; }

    .hero { padding: 48px 0; }
    .hero h1 { font-size: 1.9rem; }

    .btn {
        display: block;
        width: 100%;
        text-align: center;
        padding: 14px 24px;
    }
}