/* ProductionWatch — "Ink & Signal" design system (steel-blue) */

/* ---- fonts (self-hosted) ---- */
@font-face{font-family:"Space Grotesk";font-weight:400;font-style:normal;font-display:swap;src:url('../fonts/space-grotesk-400.woff2') format('woff2');}
@font-face{font-family:"Space Grotesk";font-weight:500;font-style:normal;font-display:swap;src:url('../fonts/space-grotesk-500.woff2') format('woff2');}
@font-face{font-family:"Space Grotesk";font-weight:600;font-style:normal;font-display:swap;src:url('../fonts/space-grotesk-600.woff2') format('woff2');}
@font-face{font-family:"Space Grotesk";font-weight:700;font-style:normal;font-display:swap;src:url('../fonts/space-grotesk-700.woff2') format('woff2');}
@font-face{font-family:"Geist";font-weight:400;font-style:normal;font-display:swap;src:url('../fonts/geist-400.woff2') format('woff2');}
@font-face{font-family:"Geist";font-weight:500;font-style:normal;font-display:swap;src:url('../fonts/geist-500.woff2') format('woff2');}
@font-face{font-family:"Geist";font-weight:600;font-style:normal;font-display:swap;src:url('../fonts/geist-600.woff2') format('woff2');}
@font-face{font-family:"Geist";font-weight:700;font-style:normal;font-display:swap;src:url('../fonts/geist-700.woff2') format('woff2');}

/* ---- tokens ---- */
:root{
  color-scheme:light;
  --canvas:#FBFBFD; --surface:#FFFFFF; --ink:#171A21; --muted:#6A6F79; --faint:#9DA2AD;
  --border:#E7E8EC; --line-strong:#D5D7DE; --brand:#4F5F82; --brand-hover:#3F4E6E;
  --scheduled:#A96412; --development:#6A6F79; --hold:#9DA2AD;
  --font-display:"Space Grotesk", system-ui, sans-serif;
  --font-body:"Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --wrap:1040px;
}

/* ---- reset/base ---- */
*{box-sizing:border-box;}
html{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;}
body{margin:0;background:var(--canvas);color:var(--ink);font-family:var(--font-body);font-size:15px;line-height:1.5;}
a{color:inherit;text-decoration:none;}
h1,h2,h3{font-family:var(--font-display);font-weight:600;letter-spacing:-0.02em;margin:0;color:var(--ink);}
button{font-family:inherit;cursor:pointer;}
:focus-visible{outline:2px solid var(--brand);outline-offset:2px;border-radius:4px;}
.page-container{max-width:var(--wrap);margin:0 auto;padding:2rem 1.5rem 3rem;}
.eyebrow{font-size:0.68rem;font-weight:700;letter-spacing:0.09em;text-transform:uppercase;color:var(--faint);margin:0;}

/* ---- header ---- */
/* Scoped to the SITE header only (always a direct child of <body>).
   A bare `header` selector also matched <header class="detail-header">
   inside the production detail page, making it sticky at the same z-index
   and painting it OVER the site header on scroll. */
body > header{position:sticky;top:0;z-index:100;background:rgba(251,251,253,0.94);backdrop-filter:blur(8px);border-bottom:1px solid var(--border);}
/* Belt and braces: in-page <header> elements must never stick or stack. */
main header{position:static;z-index:auto;background:none;backdrop-filter:none;}
.header-content{max-width:var(--wrap);margin:0 auto;display:flex;align-items:center;gap:1.5rem;padding:0.8rem 1.5rem;}
.header-brand{flex:0 0 auto;line-height:0;}
.header-wordmark{display:block;max-width:100%;height:auto;}
.header-nav{display:flex;gap:1.5rem;margin-left:auto;font-size:0.875rem;}
.header-nav a{color:var(--muted);transition:color .15s;}
.header-nav a:hover{color:var(--ink);}
.header-nav a.active{color:var(--ink);font-weight:600;}
.header-chip{flex:0 0 auto;width:30px;height:30px;border-radius:50%;background:var(--brand);color:#fff;display:flex;align-items:center;justify-content:center;font-size:0.72rem;font-weight:600;border:none;padding:0;}
.header-chip:hover{background:var(--brand-hover);}
.header-auth{flex:0 0 auto;display:flex;align-items:center;gap:1rem;font-size:0.85rem;}
.header-login-link{color:var(--muted);}
.header-login-link:hover{color:var(--ink);}
.header-subscribe-link{padding:0.4rem 0.85rem;border-radius:8px;background:var(--brand);color:#fff;font-weight:600;}
.header-subscribe-link:hover{background:var(--brand-hover);}
.header-account{flex:0 0 auto;position:relative;}
.header-menu{position:absolute;top:calc(100% + 0.6rem);right:0;min-width:150px;background:var(--surface);border:1px solid var(--border);border-radius:10px;box-shadow:0 8px 24px rgba(23,26,33,0.1);padding:0.4rem;display:none;flex-direction:column;gap:0.1rem;z-index:110;}
.header-account.is-open .header-menu{display:flex;}
.header-menu a{padding:0.5rem 0.65rem;border-radius:6px;font-size:0.85rem;color:var(--ink);}
.header-menu a:hover{background:var(--canvas);}
.header-menu a.active{color:var(--brand);font-weight:600;}
.logout-form{margin:0;}
.header-menu .logout-form button{display:block;width:100%;text-align:left;padding:0.5rem 0.65rem;border:none;border-radius:6px;background:none;font:inherit;font-size:0.85rem;color:var(--ink);cursor:pointer;}
.header-menu .logout-form button:hover{background:var(--canvas);}

/* ---- search bar ---- */
.search-bar{display:flex;gap:0.6rem;margin-bottom:2.5rem;}
.search-bar input{flex:1;min-width:0;padding:0.7rem 1rem;border:1px solid var(--line-strong);border-radius:8px;background:var(--surface);font-family:inherit;font-size:0.9375rem;color:var(--ink);}
.search-bar input::placeholder{color:var(--faint);}
.search-bar input:focus{outline:none;border-color:var(--brand);}
.search-button{padding:0.7rem 1.4rem;border:none;border-radius:8px;background:var(--brand);color:#fff;font-weight:600;font-size:0.9rem;transition:background .15s;}
.search-button:hover{background:var(--brand-hover);}

/* ---- section head ---- */
.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-bottom:1.25rem;}
.section-head--markets{margin-top:48px;}
.section-head-copy .eyebrow{margin-bottom:0.35rem;}
.section-head h2{font-size:1.35rem;}
.this-week-actions{display:flex;gap:1.25rem;align-items:center;}
.section-head-link{font-size:0.85rem;color:var(--muted);}
.section-head-link:hover{color:var(--brand);}

/* ---- lead rows ---- */
.productions-list{border-top:1px solid var(--border);}
.lead-row{position:relative;display:grid;grid-template-columns:118px minmax(0,1fr) 168px auto;gap:1.25rem;align-items:start;padding:1.25rem 0.25rem;border-bottom:1px solid var(--border);transition:background .15s;}
.lead-row:hover{background:rgba(79,95,130,0.028);}
.status-dot{display:inline-flex;align-items:center;gap:0.5rem;font-size:0.78rem;font-weight:600;color:var(--ink);line-height:1.3;}
.status-dot::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--faint);flex:0 0 auto;margin-top:1px;}
.status-dot.scheduled::before{background:var(--scheduled);}
.status-dot.development::before{background:var(--development);}
.status-dot.hold::before{background:var(--hold);}
.lead-row-main{min-width:0;}
.lead-row-main strong{display:block;}
.lead-row-main strong a{font-family:var(--font-display);font-size:1.12rem;font-weight:600;letter-spacing:-0.01em;color:var(--ink);}
.lead-row-main strong a::after{content:"";position:absolute;inset:0;z-index:0;}   /* stretched link: whole row -> detail */
.lead-row:hover .lead-row-main strong a{color:var(--brand);}
.lead-row-main .eyebrow{margin:0.35rem 0;}
.logline{color:var(--muted);font-size:0.9rem;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.lead-row-facts{margin-top:0.4rem;font-size:0.8rem;color:var(--muted);font-variant-numeric:tabular-nums;}
.lead-row-contacts{text-align:right;font-size:0.8rem;position:relative;z-index:1;}
.lead-row-office-label{font-size:0.62rem;font-weight:700;letter-spacing:0.08em;text-transform:uppercase;color:var(--faint);}
.lead-row-office-name{color:var(--ink);font-weight:500;margin:0.25rem 0;}
.lead-row-office-link{color:var(--brand);font-weight:600;}
.lead-row-office-link:hover{color:var(--brand-hover);}
.lead-row-updated{color:var(--faint);font-size:0.72rem;margin-top:0.5rem;}
.lead-row-actions{display:flex;flex-direction:column;align-items:flex-end;gap:0.5rem;position:relative;z-index:1;}
.favorite-button{background:none;border:none;padding:0;line-height:0;color:var(--faint);transition:color .15s;}
.favorite-button:hover{color:var(--brand);}
.favorite-button.active{color:var(--brand);}
.favorite-button svg{width:18px;height:18px;}
.note-button{background:none;border:none;padding:0;font-size:0.78rem;color:var(--muted);text-decoration:underline;text-underline-offset:2px;}
.note-button:hover{color:var(--ink);}
.empty-state{padding:2.5rem 0;text-align:center;color:var(--muted);}
.empty-state strong{display:block;color:var(--ink);margin-bottom:0.25rem;}

/* ---- markets strip ---- */
.markets-strip{display:flex;gap:0;overflow-x:auto;border-top:1px solid var(--border);border-bottom:1px solid var(--border);}
.market-item{flex:0 0 auto;padding:0.9rem 1.25rem;border-right:1px solid var(--border);white-space:nowrap;}
.market-item:last-child{border-right:none;}
.market-item strong{display:block;font-family:var(--font-display);font-weight:600;font-size:0.95rem;color:var(--ink);}
.market-item:hover strong{color:var(--brand);}
.market-item-meta{font-size:0.75rem;color:var(--muted);font-variant-numeric:tabular-nums;}

/* ---- footer ---- */
footer{border-top:1px solid var(--border);background:rgba(23,26,33,0.015);margin-top:3rem;}
.footer-content{max-width:var(--wrap);margin:0 auto;display:flex;align-items:center;gap:1.5rem;flex-wrap:wrap;padding:1.75rem 1.5rem;}
.footer-wordmark{font-family:var(--font-display);font-weight:700;letter-spacing:-0.01em;color:var(--ink);}
.footer-links{display:flex;gap:1.25rem;flex-wrap:wrap;font-size:0.85rem;}
.footer-links a{color:var(--muted);}
.footer-links a:hover{color:var(--ink);}
.footer-cadence{margin-left:auto;font-size:0.8rem;color:var(--faint);}
.footer-legal-row{max-width:var(--wrap);margin:0 auto;padding:0 1.5rem 1.5rem;}
.footer-legal{margin:0;font-size:0.74rem;line-height:1.5;color:var(--faint);max-width:70ch;}

/* ---- database page (app-style, no page scroll) ---- */
html:has(body.db-page){height:100%;}
body.db-page{height:100dvh;height:100vh;display:flex;flex-direction:column;overflow:hidden;margin:0;}
body.db-page header{flex:0 0 auto;}
.db-app{flex:1;min-height:0;display:flex;flex-direction:column;}
.db-shell{flex:1;min-height:0;width:100%;max-width:1280px;margin:0 auto;padding:1.25rem 1.5rem;display:flex;flex-direction:column;gap:0.9rem;box-sizing:border-box;}

.page-count{font-size:0.85rem;color:var(--muted);margin-top:0.25rem;}
.page-count strong{color:var(--ink);font-weight:600;font-variant-numeric:tabular-nums;}

/* toolbar (horizontal, above the table) */
.db-toolbar{flex:0 0 auto;display:flex;align-items:flex-end;justify-content:space-between;gap:1.25rem;flex-wrap:wrap;padding-bottom:0.9rem;border-bottom:1px solid var(--border);}
.db-toolbar-left h1{font-size:1.4rem;}
.db-week-note{margin-bottom:0.4rem;color:var(--brand);}
.db-toolbar-right{display:flex;align-items:flex-end;gap:0.65rem;flex-wrap:wrap;font-size:0.85rem;}
.filter-search{width:220px;max-width:100%;padding:0.5rem 0.7rem;border:1px solid var(--line-strong);border-radius:8px;font-family:inherit;font-size:0.85rem;background:var(--surface);color:var(--ink);}
.filter-search:focus{outline:none;border-color:var(--brand);}
.filter-group{display:flex;flex-direction:column;gap:0.3rem;}
.filter-group label{font-size:0.66rem;font-weight:700;letter-spacing:0.08em;text-transform:uppercase;color:var(--faint);}
.filter-group select{min-width:130px;padding:0.48rem 0.55rem;border:1px solid var(--border);border-radius:8px;background:var(--surface);font-family:inherit;font-size:0.85rem;color:var(--ink);cursor:pointer;}
.filter-apply{padding:0.5rem 1rem;border:none;border-radius:8px;background:var(--brand);color:#fff;font-weight:600;font-size:0.85rem;}
.filter-apply:hover{background:var(--brand-hover);}
.filter-clear{color:var(--brand);text-decoration:underline;text-underline-offset:2px;font-size:0.82rem;padding-bottom:0.55rem;}

/* table area fills remaining height; never scrolls */
.db-table-area{flex:1;min-height:0;display:flex;flex-direction:column;gap:0.5rem;}
.db-table-row{flex:1;min-height:0;display:flex;flex-direction:row;align-items:stretch;gap:0.75rem;}
.table-wrap{flex:1;min-width:0;min-height:0;overflow:hidden;border:1px solid var(--border);border-radius:10px;}
.prod-table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:0.85rem;}
.prod-table th{position:sticky;top:0;z-index:1;background:var(--canvas);text-align:left;padding:0;border-bottom:1px solid var(--line-strong);}
.prod-table th:nth-child(1){width:25%;} .prod-table th:nth-child(2){width:15%;} .prod-table th:nth-child(3){width:20%;} .prod-table th:nth-child(4){width:18%;} .prod-table th:nth-child(5){width:22%;}
.prod-table th a{display:block;padding:0.65rem 0.8rem;font-size:0.66rem;font-weight:700;letter-spacing:0.06em;text-transform:uppercase;color:var(--muted);white-space:nowrap;}
.prod-table th a:hover{color:var(--ink);}
.prod-table th.sorted a{color:var(--brand);}
.prod-table th .arrow{color:var(--brand);}
.prod-table tbody tr{height:44px;}
.prod-table tbody td{padding:0 0.8rem;height:44px;border-bottom:1px solid var(--border);vertical-align:middle;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.prod-table tbody tr:last-child td{border-bottom:none;}
.prod-table tbody tr:hover{background:rgba(79,95,130,0.03);}
.prod-table .col-title a{font-family:var(--font-display);font-weight:600;letter-spacing:-0.01em;color:var(--ink);}
.prod-table .col-title a:hover{color:var(--brand);}
.prod-table .muted{color:var(--muted);}
#db-tbody{will-change:transform,opacity;}
.status-cell{display:inline-flex;align-items:center;gap:0.45rem;white-space:nowrap;color:var(--ink);}
.status-cell::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--faint);flex:0 0 auto;}
.status-cell.scheduled::before{background:var(--scheduled);}
.status-cell.development::before{background:var(--development);}
.status-cell.hold::before{background:var(--hold);}
.table-empty{padding:2.5rem;text-align:center;color:var(--muted);}

/* vertical pager, bottom-right of the table */
.db-pager-bar{flex:0 0 auto;display:flex;align-items:flex-end;justify-content:center;}
.db-pager-wrap{display:flex;flex-direction:column;align-items:center;gap:0.5rem;}
.db-pager{display:flex;flex-direction:column;align-items:center;gap:0.3rem;}
.db-pager-btn{width:26px;height:26px;padding:0;border:1px solid var(--border);border-radius:6px;background:var(--surface);color:var(--muted);display:flex;align-items:center;justify-content:center;font-size:0.62rem;line-height:1;}
.db-pager-btn:hover:not(:disabled){border-color:var(--brand);color:var(--brand);}
.db-pager-btn:disabled{opacity:0.35;cursor:default;}
.db-pager-input{width:3ch;text-align:center;padding:0.3rem 0.2rem;border:1px solid var(--line-strong);border-radius:6px;font-family:inherit;font-size:0.8rem;color:var(--ink);background:var(--surface);}
.db-pager-input:focus{outline:none;border-color:var(--brand);}
.db-pager-of{font-size:0.72rem;color:var(--faint);font-variant-numeric:tabular-nums;}

/* no-JS fallback pagination. Always rendered in markup (no inline <style>/<noscript>
   — CSP-clean); visibility is toggled purely by the .no-js class that site.js removes
   from <html> on load (see top of assets/js/site.js). JS on -> vertical pager shows,
   classic Prev/Next hidden. JS off -> the reverse. */
.pagination{display:none;align-items:center;justify-content:center;gap:1rem;padding:0.75rem 0;font-size:0.85rem;}
.page-link{padding:0.4rem 0.9rem;border:1px solid var(--border);border-radius:6px;color:var(--ink);}
.page-link:hover{border-color:var(--brand);color:var(--brand);}
.page-current{color:var(--muted);font-variant-numeric:tabular-nums;}
.no-js .db-pager-bar{display:none;}
.no-js .pagination{display:flex;}

/* ---- detail page ---- */
.detail-container{max-width:840px;margin:0 auto;padding:1.5rem 1.5rem 3rem;}
.detail-back{display:inline-block;margin-bottom:1.25rem;color:var(--brand);font-size:0.9rem;}
.detail-back:hover{color:var(--brand-hover);}
.detail-header{padding-bottom:1.5rem;border-bottom:1px solid var(--border);}
.detail-status{display:inline-flex;align-items:center;gap:0.45rem;font-size:0.72rem;font-weight:600;letter-spacing:0.05em;text-transform:uppercase;color:var(--muted);margin-bottom:0.5rem;}
.detail-status::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--faint);}
.detail-status.scheduled::before{background:var(--scheduled);}
.detail-status.development::before{background:var(--development);}
.detail-status.hold::before{background:var(--hold);}
.detail-title{font-size:2.1rem;line-height:1.1;margin:0.25rem 0;}
.detail-sub{color:var(--muted);font-size:1.02rem;}
.detail-actions{display:flex;gap:0.75rem;margin-top:1.25rem;}
.detail-btn{display:inline-flex;align-items:center;gap:0.4rem;padding:0.45rem 0.9rem;border:1px solid var(--line-strong);border-radius:8px;background:var(--surface);color:var(--muted);font-size:0.85rem;font-weight:500;}
.detail-btn:hover{border-color:var(--brand);color:var(--brand);}
.detail-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1.25rem 1.5rem;padding:1.5rem 0;border-bottom:1px solid var(--border);}
.fact-label{font-size:0.66rem;font-weight:700;letter-spacing:0.08em;text-transform:uppercase;color:var(--faint);margin-bottom:0.35rem;}
.fact-value{font-size:0.92rem;color:var(--ink);line-height:1.4;}
.no-info{color:var(--faint);font-style:italic;}
.detail-section{padding:1.5rem 0;border-bottom:1px solid var(--border);}
.detail-section:last-of-type{border-bottom:none;}
.detail-section h2{font-size:1.05rem;margin-bottom:1rem;}
.logline-full{font-size:0.95rem;line-height:1.65;color:var(--ink);max-width:66ch;}
.personnel-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem 1.5rem;}
.role-label{font-size:0.66rem;font-weight:700;letter-spacing:0.06em;text-transform:uppercase;color:var(--faint);margin-bottom:0.3rem;}
.person-names{font-size:0.9rem;color:var(--ink);line-height:1.45;}
.contacts-list{display:flex;flex-direction:column;gap:1rem;}
.contact-name{font-weight:600;color:var(--ink);}
.contact-lines{font-size:0.88rem;color:var(--muted);margin-top:0.2rem;}
.contact-lines a{color:var(--brand);white-space:nowrap;}
.contact-lines a:hover{color:var(--brand-hover);}
.contact-lines .sep{margin:0 0.4rem;color:var(--faint);}
.contact-fax{font-size:0.82rem;color:var(--faint);margin-top:0.2rem;}

/* Production office — the primary way to reach a production (per the
   owner). Given weight through type scale and a brand-colored label, not a
   tinted/boxed callout — stays flat, just reads bigger and first. */
.office-list{display:flex;flex-direction:column;}
.office-block + .office-block{margin-top:1.5rem;padding-top:1.5rem;border-top:1px solid var(--border);}
.office-label{font-size:0.68rem;font-weight:700;letter-spacing:0.09em;text-transform:uppercase;color:var(--brand);margin-bottom:0.5rem;}
.office-name{font-family:var(--font-display);font-weight:600;font-size:1.2rem;letter-spacing:-0.01em;color:var(--ink);margin-bottom:0.3rem;}
.office-block .contact-address{font-size:0.95rem;margin-bottom:0.35rem;}
.office-block .contact-lines{font-size:0.95rem;}
.office-block .contact-fax{font-size:0.85rem;}

/* Production companies — one card-free block per company, laid out as a
   flowing grid so 2-3 companies read compactly and 8-11 (a handful of
   productions run that high) wrap instead of forming a wall of rows. */
.companies-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1.5rem 2rem;}
.note-input{width:100%;min-height:96px;padding:0.75rem;border:1px solid var(--line-strong);border-radius:8px;background:var(--surface);font-family:inherit;font-size:0.92rem;color:var(--ink);resize:vertical;margin-bottom:0.75rem;}
.note-input:focus{outline:none;border-color:var(--brand);}

/* Report-an-issue (production detail page — site/plugins/listing-reports).
   Collapsed <details> by design: this is a small, secondary affordance
   that must never compete with the contact data above it (see CLAUDE.md).
   Auto-opened server-side (an `open` attribute) only when there's a
   confirmation/error to show. */
.report-issue summary{cursor:pointer;font-size:0.82rem;color:var(--muted);list-style:none;}
.report-issue summary::-webkit-details-marker{display:none;}
.report-issue summary::before{content:"\2691";margin-right:0.45rem;color:var(--faint);font-size:0.78rem;}
.report-issue summary:hover{color:var(--ink);}
.report-issue-body{margin-top:1rem;max-width:480px;}
.report-issue-notice{border-radius:8px;padding:0.65rem 0.9rem;font-size:0.85rem;margin-bottom:1rem;}
.report-issue-notice-success{background:rgba(79,95,130,0.08);border:1px solid rgba(79,95,130,0.25);color:var(--brand);}
.report-issue-notice-error{background:rgba(169,100,18,0.08);border:1px solid rgba(169,100,18,0.25);color:var(--scheduled);}
.report-issue-form{display:flex;flex-direction:column;gap:0.9rem;}
.report-issue-reasons{border:none;padding:0;margin:0;display:flex;flex-direction:column;gap:0.5rem;}
.field-legend{font-size:0.72rem;font-weight:700;letter-spacing:0.05em;text-transform:uppercase;color:var(--faint);padding:0;margin:0 0 0.15rem;}
.report-issue-reason{display:flex;align-items:center;gap:0.5rem;font-size:0.88rem;color:var(--ink);font-weight:400;cursor:pointer;}
.report-issue-reason input{margin:0;}

/* Admin — /admin/reports (site/plugins/listing-reports) */
.admin-reports-tabs{display:flex;gap:1rem;margin-bottom:1.25rem;border-bottom:1px solid var(--border);}
.admin-reports-tab{padding:0.5rem 0.1rem;font-size:0.85rem;color:var(--muted);border-bottom:2px solid transparent;}
.admin-reports-tab:hover{color:var(--ink);}
.admin-reports-tab.active{color:var(--ink);border-bottom-color:var(--brand);font-weight:600;}
.admin-reports-list{display:flex;flex-direction:column;gap:0.9rem;}
.admin-report-row{display:flex;justify-content:space-between;gap:1.5rem;padding:1rem 1.25rem;background:var(--surface);border:1px solid var(--border);border-radius:10px;flex-wrap:wrap;}
.admin-report-main{flex:1 1 320px;min-width:0;}
.admin-report-title{display:flex;align-items:center;gap:0.6rem;font-family:var(--font-display);font-weight:600;font-size:1rem;color:var(--ink);flex-wrap:wrap;}
.admin-report-title a{color:var(--ink);}
.admin-report-title a:hover{color:var(--brand);}
.admin-report-meta{font-size:0.8rem;color:var(--muted);margin-top:0.3rem;}
.admin-report-detail{font-size:0.85rem;color:var(--ink);margin-top:0.5rem;max-width:56ch;}
.admin-report-resolution{color:var(--muted);}
.admin-report-actions{flex:0 0 260px;display:flex;flex-direction:column;gap:0.5rem;}
.admin-report-note{min-height:56px;margin-bottom:0;font-size:0.82rem;}
.admin-report-buttons{display:flex;gap:0.5rem;flex-wrap:wrap;}

/* ---- auth pages (login / account) ---- */
.auth-shell{max-width:440px;margin:3rem auto;padding:0 1.5rem 3rem;}
.auth-card{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:2rem;}
.auth-title{font-size:1.6rem;margin:0.3rem 0 0.4rem;}
.auth-sub{color:var(--muted);font-size:0.9rem;margin-bottom:1.5rem;}
.auth-error{background:rgba(169,100,18,0.08);border:1px solid rgba(169,100,18,0.25);color:var(--scheduled);border-radius:8px;padding:0.7rem 0.9rem;font-size:0.85rem;margin-bottom:1.25rem;}
.auth-form{display:flex;flex-direction:column;gap:1rem;}
.auth-form + .auth-form{margin-top:0.75rem;}
.field{display:flex;flex-direction:column;gap:0.35rem;}
.field label{font-size:0.72rem;font-weight:700;letter-spacing:0.05em;text-transform:uppercase;color:var(--faint);}
.field input{padding:0.65rem 0.8rem;border:1px solid var(--line-strong);border-radius:8px;background:var(--surface);font-family:inherit;font-size:0.92rem;color:var(--ink);}
.field input:focus{outline:none;border-color:var(--brand);}
.auth-submit{margin-top:0.25rem;padding:0.7rem 1rem;border:none;border-radius:8px;background:var(--brand);color:#fff;font-weight:600;font-size:0.9rem;}
.auth-submit:hover{background:var(--brand-hover);}
.auth-links{margin-top:1.5rem;font-size:0.82rem;color:var(--muted);display:flex;gap:0.6rem;flex-wrap:wrap;}
.auth-links a{color:var(--brand);}
.auth-links a:hover{color:var(--brand-hover);}
.auth-links-sep{color:var(--faint);}
.account-facts{display:flex;flex-direction:column;gap:1.1rem;margin:1.5rem 0;}
.account-actions{display:flex;gap:0.75rem;margin-top:1.5rem;}
.account-actions .logout-form{display:flex;}
button.detail-btn{font-family:inherit;cursor:pointer;}

/* ---- responsive ---- */
@media(max-width:720px){
  /* database: below this width the toolbar wraps to multiple lines, so the
     strict "no page scroll" rule is relaxed — the table area scrolls instead. */
  body.db-page{height:auto;min-height:100dvh;min-height:100vh;overflow:visible;}
  .db-app{min-height:0;}
  .db-shell{padding:1rem;}
  .db-toolbar{align-items:stretch;}
  .db-toolbar-right{width:100%;}
  .filter-search{width:100%;}
  .db-table-row{flex-direction:column;gap:0.5rem;}
  .table-wrap{overflow:auto;max-height:60vh;}
  .prod-table tbody tr{height:auto;}
  .prod-table tbody td{height:auto;padding:0.6rem 0.6rem;white-space:normal;}
  .db-pager-bar{justify-content:center;padding-top:0.5rem;}
  .db-pager-wrap{flex-direction:row;}
  .personnel-grid{grid-template-columns:1fr;}
  .detail-title{font-size:1.6rem;}
  .lead-row{grid-template-columns:1fr;gap:0.5rem;padding:1.25rem 0.25rem;}
  .lead-row-contacts{text-align:left;}
  .lead-row-actions{position:absolute;top:1rem;right:0.25rem;flex-direction:row;}
  .logline{white-space:normal;}
  .header-nav{gap:1rem;}
  .footer-cadence{margin-left:0;}
}

/* Reports (/reports) */
.reports-list{display:flex;flex-direction:column;gap:0.75rem;margin-top:1rem;}
.reports-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.25rem;background:var(--surface);border:1px solid var(--border);border-radius:10px;}

/* Throttle (site/plugins/throttle) — the 429 "slow down" page reuses
   .auth-submit's look for a link (an <a>, not a <button>, so it gets its
   own class rather than fighting <button>'s default display). */
.auth-submit-link{display:inline-block;padding:0.7rem 1rem;border:none;border-radius:8px;background:var(--brand);color:#fff;font-weight:600;font-size:0.9rem;text-decoration:none;}
.auth-submit-link:hover{background:var(--brand-hover);}

/* Database page inline notice for a 429 from ?partial=1 (assets/js/site.js).
   Hidden by default; JS toggles .is-visible. Sits above the table so it
   reads as a small in-app banner, not a browser error. */
.db-throttle-notice{display:none;align-items:center;gap:0.5rem;background:rgba(169,100,18,0.08);border:1px solid rgba(169,100,18,0.25);color:var(--scheduled);border-radius:8px;padding:0.65rem 0.9rem;font-size:0.85rem;margin:0 0 0.75rem;}
.db-throttle-notice.is-visible{display:flex;}
.reports-row-label{font-size:0.95rem;color:var(--ink);font-weight:500;}
.reports-summary{margin:0.75rem 0 0;font-size:0.85rem;color:var(--muted);}
.reports-years{display:flex;flex-wrap:wrap;gap:0.5rem;margin-top:0.75rem;}
.reports-years a{padding:0.3rem 0.8rem;border:1px solid var(--border);border-radius:999px;background:var(--surface);font-size:0.82rem;font-weight:600;color:var(--muted);}
.reports-years a:hover{color:var(--brand);border-color:var(--brand);}
.reports-year{margin-top:1.75rem;scroll-margin-top:1rem;}
.reports-year-title{font-size:1.15rem;padding-bottom:0.4rem;border-bottom:1px solid var(--line-strong);}
.reports-month{margin-top:0.75rem;}
.reports-month summary{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;padding:0.75rem 0.25rem;cursor:pointer;list-style:none;color:var(--ink);font-family:var(--font-display);font-weight:600;font-size:1rem;}
.reports-month summary::-webkit-details-marker{display:none;}
.reports-month summary::before{content:"\25B8";margin-right:0.5rem;color:var(--faint);transition:transform .15s;display:inline-block;}
.reports-month[open] summary::before{transform:rotate(90deg);}
.reports-month summary:hover{color:var(--brand);}
.reports-month-name{flex:1 1 auto;}
.reports-month-count{font-family:var(--font-body);font-weight:400;font-size:0.82rem;color:var(--muted);}
.reports-month .reports-list{margin-top:0.25rem;}
.reports-latest{display:inline-block;margin-left:0.6rem;padding:0.1rem 0.5rem;border-radius:999px;background:rgba(79,95,130,0.1);border:1px solid rgba(79,95,130,0.25);color:var(--brand);font-size:0.68rem;font-weight:700;letter-spacing:0.06em;text-transform:uppercase;vertical-align:middle;}
@media (max-width:560px){.reports-row{padding:0.85rem 1rem;flex-wrap:wrap;}.reports-month summary{padding:0.7rem 0;}}

/* ==========================================================================
   Public marketing homepage (site/snippets/marketing-home.php)
   Editorial, single-column, flat surfaces — hairline dividers instead of
   boxed/tinted callouts. Reuses existing tokens throughout; the only new
   token is --canvas-dark, a flat near-ink ground for the hero.
   ========================================================================== */
:root{ --canvas-dark:#171A21; }

/* ---- 1. hero ----
   Full-bleed photo behind the headline. The <img> is absolutely positioned
   to fill the section (object-fit:cover); a flat semi-opaque scrim sits
   over it via ::before (not a gradient — the CLAUDE.md brief is explicit
   that a gradient "sheen" reads as an AI tell) so the white headline stays
   readable at any crop. background:var(--canvas-dark) stays as the base so
   there's no flash of white before the image decodes. */
.marketing-hero{position:relative;overflow:hidden;background:var(--canvas-dark);border-bottom:1px solid var(--canvas-dark);}
/* Explicit z-index on all three layers, not just DOM order: a ::before's
   generated content paints as the box's first child, i.e. BEHIND a real
   DOM child that comes after it — so the scrim would otherwise render
   underneath the <img> and have zero visible effect. Opacity 0.8 verified
   against this photo's brightest region (a lit white backdrop cloth sits
   right behind the headline at some crops) — needed to stay dark enough
   over that hotspot specifically, not just the average of the frame. */
.marketing-hero-img{position:absolute;inset:0;z-index:0;width:100%;height:100%;object-fit:cover;object-position:center 35%;}
.marketing-hero::before{content:"";position:absolute;inset:0;z-index:1;background:rgba(23,26,33,0.8);}
.marketing-hero-inner{position:relative;z-index:2;padding-top:4.5rem;padding-bottom:4rem;max-width:760px;}
.marketing-hero-eyebrow{color:#8B93A8;margin-bottom:1rem;}
.marketing-hero-title{font-size:2.75rem;line-height:1.08;letter-spacing:-0.02em;color:#FFFFFF;margin-bottom:1.1rem;}
.marketing-hero-sub{font-size:1.05rem;line-height:1.55;color:#C4C8D4;max-width:56ch;margin-bottom:2.25rem;}
.marketing-hero-search{margin-bottom:2.5rem;max-width:520px;}
.marketing-hero-search input{border-color:transparent;}
.marketing-hero-stats{display:flex;gap:2.5rem;flex-wrap:wrap;border-top:1px solid rgba(255,255,255,0.14);padding-top:1.5rem;}
.marketing-stat{display:flex;flex-direction:column;gap:0.3rem;}
.marketing-stat strong{font-family:var(--font-display);font-size:1.5rem;font-weight:600;color:#FFFFFF;letter-spacing:-0.01em;font-variant-numeric:tabular-nums;}
.marketing-stat span{font-size:0.78rem;color:#8B93A8;}
.marketing-hero-cta{margin-top:1.75rem;font-size:0.88rem;color:#C4C8D4;}
.marketing-hero-cta strong{color:#fff;font-weight:600;}
.marketing-hero-cta a{color:#fff;font-weight:600;text-decoration:underline;text-underline-offset:3px;}
.marketing-hero-cta a:hover{color:#C4C8D4;}

/* ---- shared section rhythm ---- */
.marketing-section{padding-top:1.25rem;padding-bottom:1.25rem;border-top:1px solid var(--border);}
.marketing-section:first-of-type{border-top:none;}
.marketing-section-note{margin-top:1rem;font-size:0.85rem;color:var(--muted);max-width:60ch;}
.marketing-section .section-head{margin-bottom:0.7rem;}
.marketing-inline-cta{color:var(--brand);font-weight:600;}
.marketing-inline-cta:hover{color:var(--brand-hover);}

/* ---- 1b. platform coverage row ----
   A flowing, boxless row — not tiles/cards. Each logo just sits above its
   count with generous gaps; the caption above frames it as coverage, not a
   sponsor wall. Wordmark color is baked into the SVGs themselves (see
   assets/img/logos/SOURCES.md) since they're loaded via <img> — CSS color
   can't reach inside an <img>-embedded SVG. */
.marketing-logos{padding-top:2.5rem;padding-bottom:2.5rem;}
.marketing-logos-caption{margin:0 0 1.5rem;font-size:0.78rem;color:var(--muted);}
.logo-row{display:flex;flex-wrap:wrap;align-items:flex-end;gap:2rem 3rem;list-style:none;margin:0;padding:0;}
.logo-row-item{display:flex;flex-direction:column;align-items:flex-start;gap:0.5rem;}
.logo-row-mark{display:block;height:24px;width:auto;}
.logo-row-count{font-size:0.72rem;color:var(--faint);font-variant-numeric:tabular-nums;}

/* ---- 2. live proof (locked lead rows) ----
   Asymmetric pairing: copy column left, a single accent photo right with
   real negative space around it rather than a full-width banner. */
.marketing-proof-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:2.5rem;align-items:start;}
.marketing-proof-media{margin:0;align-self:stretch;overflow:hidden;}
.marketing-proof-img{display:block;width:100%;height:100%;min-height:280px;object-fit:cover;object-position:center 40%;}
.lead-row-locked{padding-top:0.65rem;padding-bottom:0.65rem;}
.lead-row-locked-count{color:var(--ink);font-weight:500;margin:0.25rem 0;font-variant-numeric:tabular-nums;}
.lead-row-locked-cta{color:var(--brand);font-weight:600;}
.lead-row-locked-cta:hover{color:var(--brand-hover);}

/* ---- 3. archival sample — the "record frame" ----
   Each sample is framed like a captured excerpt of the real product: a
   flat hairline border (no radius, no shadow, no tint) with a small
   address-bar-style label strip on top, then the exact fact/contact markup
   a live detail page renders. Every sample renders at full detail now — no
   condensed stub variant. */
.record-frame{border:1px solid var(--line-strong);background:var(--surface);}
.record-frame-bar{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;padding:0.55rem 1.1rem;border-bottom:1px solid var(--border);flex-wrap:wrap;}
.record-frame-label{font-size:0.72rem;font-weight:600;letter-spacing:0.02em;color:var(--brand);}
.record-frame-path{font-size:0.72rem;color:var(--faint);font-variant-numeric:tabular-nums;white-space:nowrap;}
.record-frame-body{padding:1.75rem 1.75rem 2rem;}
.archival-status-pill{display:inline-flex;align-items:center;gap:0.5rem;font-size:0.7rem;font-weight:600;letter-spacing:0.06em;text-transform:uppercase;color:var(--muted);margin-bottom:0.7rem;}
.archival-status-pill::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--faint);}
.archival-title{font-size:1.7rem;margin-bottom:0.35rem;}
.archival-sub{color:var(--muted);font-size:0.92rem;line-height:1.5;margin-bottom:1.5rem;}
.archival-facts{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem 2rem;padding-bottom:1.25rem;}
.archival-facts .fact-value{line-height:1.55;}
.archival-contacts{padding-top:1.5rem;margin-top:0.5rem;border-top:1px solid var(--border);}
.archival-contacts .contacts-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:1.25rem 1.5rem;}
.contact-address{font-size:0.85rem;color:var(--muted);line-height:1.5;margin-top:0.15rem;}
.marketing-cta-line{margin-top:1.5rem;padding-top:1.25rem;border-top:1px solid var(--border);}

/* Masked-contacts note on the one "live, currently active" sample —
   conspicuous (bold, brand-colored lead line + its own hairline rule)
   without becoming a tinted/boxed callout, per the design system rule
   against colored-rail callouts. Placed above the fact grid so it's one of
   the first things read on that card, not buried near the contacts. */
.sample-masked-note{margin:0 0 1.5rem;padding-top:1rem;border-top:1px solid var(--border);font-size:0.85rem;line-height:1.5;color:var(--ink);max-width:60ch;}
.sample-masked-note strong{display:block;font-weight:700;color:var(--brand);margin-bottom:0.2rem;}

/* ---- skeuomorphic sample stack / slideshow ----
   JS-on (default) state: every .sample-slide occupies the same grid cell
   (an intentional CSS-grid "overlap" stack — all children share row 1 /
   column 1, so the row's height is driven by the tallest slide even though
   they visually overlap) so exactly one card reads as "on top" in a fixed
   position, with the rest peeking out behind it at a flat offset + slight
   rotation — paper-in-a-pile, not a card carousel. JS (site.js) toggles
   which slide carries .is-current vs .is-behind-N vs .is-hidden; nothing
   here needs inline style (CSP: no style-src 'unsafe-inline'). Without JS,
   html keeps its default .no-js class and the ".no-js …" rules below take
   over, returning every slide to plain stacked flow — see the .no-js
   overrides further down for the true fallback. */
.sample-stack{margin-top:0.25rem;}
/* align-items:start — without it grid items stretch to the tallest slide's
   height, leaving a hollow gap under any shorter card's own border. Track
   sizing (how tall the shared cell is) is still driven by the tallest
   slide's natural content height regardless of this, so nothing clips. */
/* stretch, not start: every slide fills the tallest cell so the cards behind
   are the same size as the one on top — a pile of identical records. */
/* The frame's height comes from the CURRENT slide only, which stays in flow.
   Slides behind are taken out of flow and stretched to fill it, so the pile
   is uniform WITHOUT the tallest card (Batman, ~1130px) forcing hundreds of
   pixels of dead space onto the shorter ones. */
.sample-stack-frame{position:relative;display:block;}
.js .sample-slide.is-behind-1,
.js .sample-slide.is-behind-2,
.js .sample-slide.is-behind-3{position:absolute;inset:0;}
/* Masked contact runs are unbreakable block characters; without this a long
   one blows out the card width. */
.record-frame .contact-lines,
.record-frame .fact-value{overflow-wrap:anywhere;}
.sample-slide{grid-row:1;grid-column:1;min-width:0;}
.sample-slide.is-current{position:relative;z-index:4;transform:none;box-shadow:0 2px 14px rgba(23,26,33,0.08);}
/* Behind slides are capped to a short "paper edge" height with overflow
   clipped — samples vary a lot in length (a 2017 archival record vs. a
   current tentpole with nine company contacts), and without this cap a much
   taller card behind a shorter current one would bleed a large, legible
   chunk of its own content into view instead of reading as a stacked edge.
   Capping also means the frame's height tracks whichever card is CURRENT
   (grid track sizing is driven by each item's own constrained size), so a
   short sample doesn't leave a tall empty gutter under it. */
/* Cards behind are FULL SIZE, not clipped stubs. They were capped at 230px,
   which made the pile read as a stack of short cards instead of identical
   records lying under the current one. `align-items:stretch` on the frame
   makes every slide fill the same cell, so the stack is uniform. */
.sample-slide.is-behind-1,
.sample-slide.is-behind-2,
.sample-slide.is-behind-3{overflow:hidden;}
.sample-slide.is-behind-1{z-index:3;transform:translate(10px,12px) rotate(-1.3deg);}
.sample-slide.is-behind-2{z-index:2;transform:translate(-9px,20px) rotate(1.7deg);}
.sample-slide.is-behind-3{z-index:1;transform:translate(6px,28px) rotate(-0.7deg);}
.sample-slide.is-hidden{visibility:hidden;opacity:0;pointer-events:none;z-index:0;}
@media(prefers-reduced-motion:no-preference){
  .sample-slide{transition:transform .35s cubic-bezier(.2,.7,.3,1);}
  .sample-slide.is-current{transition:transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s ease;}
}
.sample-stack-controls{display:flex;align-items:center;justify-content:center;gap:1rem;margin-top:2.25rem;padding-top:1.25rem;border-top:1px solid var(--border);}
.sample-stack-arrow{width:34px;height:34px;padding:0;border:1px solid var(--line-strong);border-radius:8px;background:var(--surface);color:var(--muted);display:flex;align-items:center;justify-content:center;font-size:1.05rem;line-height:1;}
.sample-stack-arrow:hover{border-color:var(--brand);color:var(--brand);}
.sample-stack-arrow:disabled{opacity:0.35;cursor:default;}
.sample-stack-position{font-size:0.78rem;color:var(--faint);font-variant-numeric:tabular-nums;min-width:7ch;text-align:center;}

/* No-JS fallback: plain stacked flow, exactly like the pre-slideshow
   layout, and the (non-functional without JS) arrows are hidden. */
.no-js .sample-stack-frame{display:block;}
.no-js .sample-slide{transform:none !important;box-shadow:none !important;visibility:visible !important;opacity:1 !important;position:static;margin-bottom:1.25rem;max-height:none !important;overflow:visible !important;}
.no-js .sample-slide:last-of-type{margin-bottom:0;}
.no-js .sample-stack-controls{display:none;}

/* ---- interstitial pull-quote — full-bleed image band breaking the page
   rhythm before pricing. Same absolute-photo + flat-scrim pattern as the
   hero/closing CTA, just shorter. Graphic/minimal photo chosen deliberately
   so the pull-quote stays legible without needing a heavier scrim. ---- */
.marketing-tension{position:relative;overflow:hidden;background:var(--canvas-dark);}
/* Pull toward the top of the frame: the crane and open sky live up there.
   Centering cropped to the pale mid-sky and the band read as a grey slab
   with no discernible photograph in it. */
.marketing-tension-img{position:absolute;inset:0;z-index:0;width:100%;height:100%;object-fit:cover;object-position:center 22%;}
/* This photo is mostly open sky (mean luminance ~0.75 of full white) — needs
   a heavier scrim than the other two full-bleed bands to keep the white
   pull-quote reliably readable, but not so heavy the photo stops reading as
   a photo (0.84 crushed it to a flat charcoal rectangle — checked pixel
   values in the actual rendered crop, not just eyeballed). 0.7 keeps ~4.4:1
   contrast worst-case against this specific crop's brightest sky pixels
   (well past the 3:1 AA floor for this text's large-text size) while the
   crane silhouette still reads as photography. z-index stacking: see
   .marketing-hero-img comment above — same fix applies here. */
/* Lighter than the hero's scrim: this photo is already dark and graphic,
   and 0.7 flattened it into an opaque slab. The quote sits left, so weight
   the scrim to that side and let the right breathe. */
.marketing-tension::before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(90deg, rgba(23,26,33,0.78) 0%, rgba(23,26,33,0.62) 55%, rgba(23,26,33,0.38) 100%);}
.marketing-tension-inner{position:relative;z-index:2;padding-top:3rem;padding-bottom:3rem;max-width:640px;}
.marketing-tension-line{font-family:var(--font-display);font-size:1.5rem;line-height:1.4;letter-spacing:-0.01em;color:#FFFFFF;max-width:52ch;margin:0;}

/* ---- 4. how it works (editorial rows, not icon cards) ----
   Asymmetric pairing again: the row list keeps its full editorial width on
   its own, a daylight location photo sits alongside for variety. */
.how-it-works-grid{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:2.5rem;align-items:start;}
.how-it-works-media{margin:0;align-self:stretch;overflow:hidden;}
.how-it-works-img{display:block;width:100%;height:100%;min-height:260px;object-fit:cover;object-position:center 45%;}
.how-row{display:grid;grid-template-columns:200px minmax(0,1fr);gap:1.5rem;padding:0.6rem 0;border-top:1px solid var(--border);}
.how-row:first-of-type{border-top:none;}
.how-row-copy{font-size:0.95rem;line-height:1.6;color:var(--ink);max-width:58ch;}
.how-row-copy a{color:var(--brand);font-weight:600;}
.how-row-copy a:hover{color:var(--brand-hover);}

/* ---- 5. pricing ---- */
.pricing-includes{margin:0 0 1.25rem;font-size:0.92rem;color:var(--ink);max-width:56ch;}
.pricing-row{display:flex;gap:3.5rem;flex-wrap:wrap;padding:0.5rem 0 0.75rem;}
.pricing-plan{display:flex;flex-direction:column;gap:0.75rem;}
.pricing-amount{font-family:var(--font-display);font-size:2.1rem;font-weight:600;letter-spacing:-0.01em;color:var(--ink);}
.pricing-period{font-family:var(--font-body);font-size:1rem;font-weight:500;color:var(--muted);margin-left:0.15rem;}
.pricing-cta{color:var(--brand);font-weight:600;font-size:0.92rem;}
.pricing-cta:hover{color:var(--brand-hover);}
.marketing-launch-note{font-size:0.85rem;color:var(--muted);}

/* ---- 6. closing CTA — dark full-bleed bookend to the hero. Same
   photo + flat-scrim treatment as the hero, using the moody neon-lit rig
   shot so the two bookends read related but not identical. ---- */
.marketing-final-cta{position:relative;overflow:hidden;background:var(--canvas-dark);}
.marketing-final-cta-img{position:absolute;inset:0;z-index:0;width:100%;height:100%;object-fit:cover;object-position:center 40%;}
.marketing-final-cta::before{content:"";position:absolute;inset:0;z-index:1;background:rgba(23,26,33,0.76);}
.marketing-final-cta-inner{position:relative;z-index:2;padding-top:3.5rem;padding-bottom:3.75rem;max-width:640px;}
.marketing-final-cta-eyebrow{color:#8B93A8;margin-bottom:0.9rem;}
.marketing-final-cta-title{font-size:2.1rem;line-height:1.16;letter-spacing:-0.02em;color:#FFFFFF;margin-bottom:1.85rem;}
.marketing-final-cta-actions{display:flex;gap:2rem;align-items:baseline;flex-wrap:wrap;}
.marketing-final-cta-link{color:#FFFFFF;font-weight:600;font-size:1rem;text-decoration:underline;text-underline-offset:3px;}
.marketing-final-cta-link:hover{color:#C4C8D4;}
.marketing-final-cta-secondary{color:rgba(255,255,255,0.72);font-size:0.92rem;font-weight:600;}
.marketing-final-cta-secondary:hover{color:#FFFFFF;}

/* ---- motion — restrained, CSS-only, opt-out for reduced motion ----
   Everything below lives inside prefers-reduced-motion:no-preference, so a
   visitor who has reduced motion turned on gets a fully static page (the
   elements' normal opacity:1/transform:none from the rules above — nothing
   here overrides that unless this query matches). No JS is involved either
   way; the page works identically with JS off. */
@media (prefers-reduced-motion: no-preference) {
  /* Hero copy: a single soft fade/rise on load, staggered per line so it
     reads as one settling motion rather than a bounce. The photo itself
     never animates — it's the LCP element and should paint immediately. */
  .marketing-hero-eyebrow,
  .marketing-hero-title,
  .marketing-hero-sub,
  .marketing-hero-search,
  .marketing-hero-stats,
  .marketing-hero-cta{
    animation:marketing-fade-up .7s cubic-bezier(.2,.7,.3,1) both;
  }
  .marketing-hero-title{animation-delay:.05s;}
  .marketing-hero-sub{animation-delay:.1s;}
  .marketing-hero-search{animation-delay:.16s;}
  .marketing-hero-stats{animation-delay:.22s;}
  .marketing-hero-cta{animation-delay:.28s;}

  @keyframes marketing-fade-up{
    from{opacity:0;transform:translateY(12px);}
    to{opacity:1;transform:translateY(0);}
  }

  /* Scroll-linked reveal for the editorial photos — a subtle scale-down as
     each image enters the viewport (never a slide/bounce). Uses the CSS
     scroll-driven animations spec (animation-timeline:view()); browsers
     without support (e.g. Firefox at time of writing) simply skip this
     block and the images render static — a clean no-op, not a broken one. */
  @supports (animation-timeline: view()) {
    .marketing-proof-img,
    .how-it-works-img,
    .marketing-tension-img,
    .marketing-final-cta-img{
      animation:marketing-reveal-scale linear both;
      animation-timeline:view();
      animation-range:entry 0% cover 35%;
    }
    @keyframes marketing-reveal-scale{
      from{transform:scale(1.05);}
      to{transform:scale(1);}
    }
  }
}

@media(max-width:720px){
  .marketing-hero-inner{padding-top:3rem;padding-bottom:2.75rem;}
  .marketing-hero-title{font-size:2rem;}
  /* single column, no orphan — was a 3-up flex row that broke 2-then-1 */
  .marketing-hero-stats{display:flex;flex-direction:column;gap:1.1rem;}
  .marketing-section{padding-top:2rem;padding-bottom:2rem;}
  .marketing-logos{padding-top:1.75rem;padding-bottom:1.75rem;}
  .logo-row{gap:1.5rem 2rem;}
  /* asymmetric pairings collapse to stacked: copy first, photo underneath
     at a fixed shorter height rather than stretching to match text length */
  .marketing-proof-grid,
  .how-it-works-grid{grid-template-columns:1fr;gap:1.5rem;}
  .marketing-proof-img,
  .how-it-works-img{min-height:200px;}
  .record-frame-body{padding:1.35rem 1.25rem 1.6rem;}
  .archival-facts{grid-template-columns:1fr;gap:1.25rem;}
  .archival-contacts .contacts-list{grid-template-columns:1fr;}
  /* smaller stack offsets so the peeking cards behind never push past the
     viewport edge on narrow screens */
  .sample-slide.is-behind-1{transform:translate(5px,8px) rotate(-1deg);}
  .sample-slide.is-behind-2{transform:translate(-5px,14px) rotate(1.3deg);}
  .sample-slide.is-behind-3{transform:translate(3px,20px) rotate(-0.5deg);}
  .marketing-tension-inner{padding-top:2.25rem;padding-bottom:2.25rem;}
  .marketing-tension-line{font-size:1.2rem;}
  .how-row{grid-template-columns:1fr;gap:0.5rem;}
  .pricing-row{gap:2rem;}
  .marketing-final-cta-inner{padding-top:2.75rem;padding-bottom:3rem;}
  .marketing-final-cta-title{font-size:1.65rem;}
}

/* Header below ~900px — CSS-only (header.php is shared by every page; strict
   CSP means no inline script/style). The full-size wordmark (386px) plus the
   nav plus the auth/account controls no longer fit in one row, so: logo and
   auth/account controls share row 1; the nav drops to its own full-width
   row 2. Wordmark shrinks further on phones so nothing overflows at 360px.
   Logged-in variant: the nav gains "Weekly Report" (4 links) and the account
   chip replaces Log in / Subscribe; both fit the same two rows.
   (Favorites/Alerts placeholders were removed from the markup, so the old
   nth-child hiding rules are gone.) */
@media(max-width:900px){
  .header-content{flex-wrap:wrap;gap:0.5rem 0.75rem;padding:0.65rem 1rem;}
  .header-brand{flex:1 1 auto;min-width:0;}
  .header-wordmark{max-width:220px;}
  .header-nav{order:3;flex:1 0 100%;margin-left:0;gap:1.25rem;font-size:0.85rem;}
  .header-nav a{white-space:nowrap;}
}
@media(max-width:480px){
  .header-content{gap:0.4rem 0.75rem;}
  .header-wordmark{max-width:130px;}
  .header-nav{gap:0.9rem;font-size:0.8rem;}
  .header-auth{gap:0.75rem;}
  .header-login-link{font-size:0.8rem;white-space:nowrap;}
  .header-subscribe-link{padding:0.35rem 0.7rem;font-size:0.8rem;white-space:nowrap;}
}

/* Sample-record logline. Sits between the title block and the fact grid,
   matching the real detail page's Logline section. */
.archival-logline{margin:1.25rem 0 0.25rem;padding-bottom:1.25rem;border-bottom:1px solid var(--border);}
/* Full card width (minus padding): the 68ch measure forced the logline into a
   narrow column and made the card far taller than it needed to be. */
.archival-logline-text{margin:0.4rem 0 0;color:var(--muted);font-size:0.92rem;line-height:1.6;}

/* ---------------------------------------------------------------------------
   Legal pages (terms, privacy, refunds)
   Rendered by site/templates/legal.php from content/<slug>/legal.txt.
   All styling lives here because the site runs a strict CSP
   (script-src 'self'; style-src 'self') — no inline style attributes.
   --------------------------------------------------------------------------- */

.legal-page {
  padding: 3rem 1.25rem 4rem;
}

.legal-container {
  max-width: 44rem;   /* ~75ch: long-form legal text needs a readable measure */
  margin: 0 auto;
}

.legal-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 0.4rem;
  color: var(--ink);
}

.legal-updated {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 2.25rem;
}

.legal-body {
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink);
}

.legal-body h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.25;
  margin: 2.5rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--ink);
}

.legal-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.legal-body p { margin: 0 0 1.1rem; }
.legal-body ul { margin: 0 0 1.1rem; padding-left: 1.2rem; }
.legal-body li { margin-bottom: 0.45rem; }
.legal-body strong { font-weight: 600; }

.legal-body a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-body a:hover { color: var(--brand-hover); }

/* Legal links in the footer */
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 0.75rem;
}

.footer-legal-links a {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
}

.footer-legal-links a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------------------------------------------------------------------------
   Report-an-error form (/report-error) and its notices.
   All styling lives here: strict CSP forbids inline style attributes.
   --------------------------------------------------------------------------- */

.report-notice {
  border: 1px solid var(--border);
  border-left-width: 3px;
  border-radius: 4px;
  padding: 0.9rem 1.1rem;
  margin: 0 0 1.75rem;
}
.report-notice p { margin: 0 0 0.4rem; font-size: 0.95rem; line-height: 1.55; }
.report-notice p:last-child { margin-bottom: 0; }
.report-notice-success { border-left-color: var(--brand); }
.report-notice-error   { border-left-color: var(--scheduled); }

.report-form {
  margin: 1.75rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.report-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 1.1rem;
}
.report-label:first-of-type { margin-top: 0; }

.report-optional { font-weight: 400; color: var(--muted); }

.report-select,
.report-input,
.report-textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 0.6rem 0.7rem;
  width: 100%;
}
.report-textarea { resize: vertical; min-height: 8rem; line-height: 1.55; }

.report-select:focus,
.report-input:focus,
.report-textarea:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  border-color: var(--brand);
}

.report-submit {
  margin-top: 1.4rem;
  align-self: flex-start;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: var(--brand);
  border: 0;
  border-radius: 4px;
  padding: 0.65rem 1.4rem;
  cursor: pointer;
}
.report-submit:hover { background: var(--brand-hover); }

.report-alt { font-size: 0.9rem; color: var(--muted); }

/* ---- Search tips panel (site/snippets/search-tips.php, shown by assets/js/site.js) ----
   A visual guide to the database's search + filters. Cloned out of an inert
   <template> into <body>; no inline styles anywhere (CSP style-src 'self'),
   the SVG art is coloured by the .ta-* classes below. */
.tips-overlay{position:fixed;inset:0;z-index:300;display:flex;align-items:center;justify-content:center;padding:1.25rem;background:rgba(23,26,33,0.45);overflow-y:auto;}
.tips-card{position:relative;width:100%;max-width:880px;max-height:calc(100vh - 2.5rem);max-height:calc(100dvh - 2.5rem);overflow-y:auto;background:var(--surface);border:1px solid var(--border);border-radius:14px;box-shadow:0 24px 64px rgba(23,26,33,0.22);padding:1.75rem 1.9rem 1.5rem;}
.tips-card:focus{outline:none;}
.tips-close{position:absolute;top:0.9rem;right:0.9rem;width:32px;height:32px;border:1px solid var(--border);border-radius:50%;background:var(--surface);color:var(--muted);font-size:1.2rem;line-height:1;padding:0;display:flex;align-items:center;justify-content:center;}
.tips-close:hover{border-color:var(--brand);color:var(--brand);}
.tips-title{font-size:1.5rem;margin:0.3rem 0 0.5rem;padding-right:2.5rem;}
.tips-sub{color:var(--muted);font-size:0.9rem;max-width:62ch;margin:0 0 1.25rem;}
.tips-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0.85rem;}
.tips-tile{background:var(--canvas);border:1px solid var(--border);border-radius:10px;padding:0.9rem 1rem 1rem;display:flex;flex-direction:column;}
.tips-tile h3{font-size:0.98rem;margin:0.6rem 0 0.25rem;}
.tips-tile p{margin:0;color:var(--muted);font-size:0.82rem;line-height:1.5;}
.tips-art{display:block;width:100%;height:auto;font-family:var(--font-body);font-size:11.5px;}
.tips-eg{display:flex;flex-wrap:wrap;gap:0.35rem;margin-top:0.6rem !important;}
.tips-chip{display:inline-block;padding:0.12rem 0.55rem;border:1px solid var(--line-strong);border-radius:999px;background:var(--surface);color:var(--ink);font-size:0.74rem;font-weight:500;}
.tips-chip--solid{border-color:var(--brand);background:var(--brand);color:#fff;font-size:0.8rem;padding:0.2rem 0.7rem;}
.tips-combo{margin-top:1rem;padding:1rem 1.1rem;border:1px solid var(--border);border-radius:10px;background:var(--surface);}
.tips-combo-label{font-size:0.68rem;font-weight:700;letter-spacing:0.08em;text-transform:uppercase;color:var(--faint);margin:0 0 0.6rem;}
.tips-combo-flow{display:flex;flex-wrap:wrap;align-items:center;gap:0.5rem;margin:0;}
.tips-plus{color:var(--faint);font-weight:600;}
.tips-result{color:var(--ink);font-weight:600;font-size:0.9rem;}
.tips-foot{margin:0.8rem 0 0;color:var(--muted);font-size:0.82rem;}
.tips-foot a{color:var(--brand);text-decoration:underline;text-underline-offset:2px;}
.tips-actions{display:flex;justify-content:flex-end;margin-top:1.1rem;}
/* SVG art palette */
.ta-box{fill:var(--surface);stroke:var(--line-strong);stroke-width:1;}
.ta-head{fill:var(--surface);stroke:var(--border);stroke-width:1;}
.ta-ink{stroke:var(--muted);}
.ta-text{fill:var(--ink);}
.ta-muted{fill:var(--faint);}
.ta-brand{fill:var(--brand);font-weight:600;}
.ta-caret{fill:var(--brand);}
.ta-line{fill:var(--border);}
.ta-pill{fill:var(--brand);}
.ta-pill-text{fill:#fff;font-weight:600;}
.ta-dot-dev{fill:var(--development);}
.ta-dot-sched{fill:var(--scheduled);}
@media(max-width:720px){
  .tips-overlay{align-items:flex-start;padding:0.75rem;}
  .tips-card{padding:1.25rem 1.1rem 1.1rem;max-height:none;}
  .tips-grid{grid-template-columns:1fr;}
}
@media(min-width:721px) and (max-width:960px){
  .tips-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(prefers-reduced-motion:no-preference){
  .tips-card{animation:tips-in .22s ease-out;}
  @keyframes tips-in{from{opacity:0;transform:translateY(8px);}to{opacity:1;transform:none;}}
}
/* Visually hidden (not display:none, so it still travels with copied text); paired with aria-hidden. Leak-tracing reference, see site/plugins/watermark. */
.pw-ref{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0;}

/* ==========================================================================
   Conversion refresh (marketing-home, /subscribe): buttons, plan cards,
   comparison table, audience cards, FAQ. Same tokens/fonts as above; light
   only, like the rest of the site. Prefix mk- keeps it from touching app UI.
   ========================================================================== */
.visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;}
.mk-btn{display:inline-block;padding:0.8rem 1.4rem;border-radius:8px;background:#fff;color:var(--canvas-dark);font-weight:600;font-size:0.95rem;text-align:center;transition:background .15s,transform .15s;}
.mk-btn:hover{background:#E4E7EF;}
.mk-btn:focus-visible{outline-color:#fff;}
.mk-btn-block{display:block;background:var(--brand);color:#fff;}
.mk-btn-block:hover{background:var(--brand-hover);}
.mk-hero-actions,.mk-sub-cta-row{display:flex;align-items:center;gap:1rem 1.25rem;flex-wrap:wrap;margin-top:1.75rem;}
.mk-hero-actions-note,.mk-sub-cta-note{font-size:0.85rem;color:#C4C8D4;max-width:42ch;}

/* ---- /subscribe hero ---- */
.mk-sub-hero{background:var(--canvas-dark);color:#fff;border-bottom:1px solid var(--canvas-dark);}
.mk-sub-hero-inner{max-width:var(--wrap);padding-top:4rem;padding-bottom:3rem;}
.mk-sub-eyebrow{color:#8B93A8;margin-bottom:1rem;}
.mk-sub-title{font-size:3rem;line-height:1.06;color:#fff;max-width:18ch;margin-bottom:1.1rem;}
.mk-sub-lede{font-size:1.05rem;line-height:1.55;color:#C4C8D4;max-width:58ch;margin:0;}
.mk-sub-stats{display:flex;gap:1.5rem 3rem;flex-wrap:wrap;margin:2.5rem 0 0;padding-top:1.5rem;border-top:1px solid rgba(255,255,255,0.14);}
.mk-sub-stats div{display:flex;flex-direction:column;gap:0.25rem;}
.mk-sub-stats dt{font-family:var(--font-display);font-size:1.9rem;font-weight:600;letter-spacing:-0.01em;font-variant-numeric:tabular-nums;color:#fff;}
.mk-sub-stats dd{margin:0;font-size:0.8rem;color:#8B93A8;}
.mk-sub-page{padding-top:2.5rem;}
.mk-sub-page > .marketing-section:first-of-type{border-top:0;}

/* ---- plan cards ---- */
.mk-plans{padding-bottom:1rem;}
.mk-plan-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.25rem;margin-top:0.75rem;}
.mk-plan{position:relative;display:flex;flex-direction:column;gap:0.5rem;background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:1.75rem;}
.mk-plan-featured{border:2px solid var(--brand);box-shadow:0 10px 30px rgba(79,95,130,0.12);}
.mk-plan-flag{position:absolute;top:-0.7rem;left:1.5rem;margin:0;padding:0.2rem 0.65rem;border-radius:999px;background:var(--brand);color:#fff;font-size:0.68rem;font-weight:700;letter-spacing:0.08em;text-transform:uppercase;}
.mk-plan-name{margin:0;font-size:0.8rem;font-weight:700;letter-spacing:0.09em;text-transform:uppercase;color:var(--faint);}
.mk-plan-price{font-family:var(--font-display);font-size:2.8rem;font-weight:600;letter-spacing:-0.02em;line-height:1.05;color:var(--ink);}
.mk-plan-price span{font-family:var(--font-body);font-size:1rem;font-weight:500;color:var(--muted);margin-left:0.2rem;letter-spacing:0;}
.mk-plan-note{margin:0;font-size:0.88rem;color:var(--muted);}
.mk-plan-badge{display:inline-block;align-self:flex-start;margin:0.25rem 0 0;padding:0.25rem 0.6rem;border-radius:6px;background:rgba(79,95,130,0.1);color:var(--brand);font-weight:700;font-size:0.85rem;}
.mk-plan-offer{margin:0;font-size:0.88rem;color:var(--ink);line-height:1.45;}
.mk-plan-form{margin-top:auto;padding-top:0.75rem;}
.mk-plan-form.auth-form + .auth-form{margin-top:auto;}
.mk-plan-submit{margin-top:0;padding:0.85rem 1rem;font-size:0.95rem;}
.mk-plan .mk-btn-block{margin-top:auto;}
.mk-plans-foot{font-size:0.85rem;color:var(--muted);max-width:70ch;margin:1.25rem 0 0;}
.mk-plans .auth-links{margin-top:1rem;}

/* ---- comparison ---- */
.mk-compare-wrap{overflow-x:auto;}
.mk-compare-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:0.92rem;}
.mk-compare-table th,.mk-compare-table td{padding:0.8rem 1rem;border-bottom:1px solid var(--border);text-align:center;vertical-align:middle;}
.mk-compare-table thead th{font-size:0.7rem;font-weight:700;letter-spacing:0.09em;text-transform:uppercase;color:var(--faint);border-bottom:2px solid var(--border);}
.mk-compare-table th:first-child{width:auto;text-align:left;}
.mk-compare-table th:not(:first-child),.mk-compare-table td{width:9.5rem;}
.mk-compare-table tbody th{font-weight:500;color:var(--ink);}
.mk-compare-table tbody tr:nth-child(even){background:rgba(79,95,130,0.045);}
.mk-compare-table .mk-compare-sub{box-shadow:inset 1px 0 0 var(--border);}
.mk-compare-table thead .mk-compare-sub{color:var(--brand);}
.mk-yes,.mk-no{display:inline-block;min-width:1em;font-size:1.05rem;line-height:1;}
.mk-yes{color:var(--brand);font-weight:700;}
.mk-no{color:var(--faint);}

/* ---- audience ---- */
.mk-audience-grid{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:1.25rem;margin-top:0.75rem;}
.mk-audience-card{border-top:2px solid var(--line-strong);padding-top:1rem;}
.mk-audience-primary{border-top-color:var(--brand);}
.mk-audience-tag{margin:0 0 0.4rem;font-size:0.68rem;font-weight:700;letter-spacing:0.09em;text-transform:uppercase;color:var(--brand);}
.mk-audience-card h3{font-size:1.1rem;line-height:1.25;margin-bottom:0.5rem;}
.mk-audience-card p:last-child{margin:0;font-size:0.9rem;color:var(--muted);}

/* ---- how / trust ---- */
.mk-steps{list-style:none;counter-reset:mk;margin:0.75rem 0 0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:1.25rem;}
.mk-steps li{counter-increment:mk;font-size:0.9rem;color:var(--muted);}
.mk-steps li::before{content:counter(mk,decimal-leading-zero);display:block;font-family:var(--font-display);font-size:1.6rem;font-weight:600;color:var(--brand);margin-bottom:0.3rem;}
.mk-steps strong{color:var(--ink);}
.mk-trust-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:1.25rem;font-size:0.88rem;color:var(--muted);}
.mk-trust-list strong{display:block;color:var(--ink);margin-bottom:0.2rem;}
.mk-trust-list a{color:var(--brand);text-decoration:underline;text-underline-offset:2px;}

/* ---- FAQ ---- */
.mk-faq-list{border-top:1px solid var(--border);}
.mk-faq-item{border-bottom:1px solid var(--border);}
.mk-faq-item summary{cursor:pointer;list-style:none;padding:1rem 2rem 1rem 0;position:relative;font-weight:600;font-size:0.98rem;color:var(--ink);}
.mk-faq-item summary::-webkit-details-marker{display:none;}
.mk-faq-item summary::after{content:"+";position:absolute;right:0.25rem;top:0.85rem;font-size:1.3rem;color:var(--brand);font-weight:400;}
.mk-faq-item[open] summary::after{content:"\2212";}
.mk-faq-item p{margin:0 0 1rem;max-width:68ch;font-size:0.92rem;color:var(--muted);}
.mk-faq-item p a{color:var(--brand);text-decoration:underline;}

/* ---- closing bands ---- */
.mk-sub-closer{background:var(--canvas-dark);color:#fff;margin-top:2rem;}
.mk-sub-closer-inner{max-width:var(--wrap);padding-top:3.5rem;padding-bottom:3.5rem;}
.mk-sub-closer h2{color:#fff;font-size:1.9rem;max-width:24ch;margin-bottom:0.75rem;}
.mk-sub-closer p{color:#C4C8D4;max-width:56ch;margin:0 0 1.5rem;}
.mk-final-note{margin-top:1rem;font-size:0.85rem;color:rgba(255,255,255,0.72);}

@media(max-width:860px){
  .mk-audience-grid,.mk-steps,.mk-trust-list{grid-template-columns:1fr 1fr;}
}
@media(max-width:720px){
  .mk-sub-hero-inner{padding-top:2.5rem;padding-bottom:2rem;}
  .mk-sub-title{font-size:2rem;}
  .mk-plan-grid{grid-template-columns:1fr;gap:1.5rem;}
  .mk-plan{padding:1.4rem;}
  .mk-audience-grid,.mk-steps,.mk-trust-list{grid-template-columns:1fr;}
  .mk-compare-table{font-size:0.85rem;}
  .mk-compare-table th:first-child{width:auto;}
  .mk-compare-table th,.mk-compare-table td{padding:0.65rem 0.5rem;}
  .mk-compare-table th:not(:first-child),.mk-compare-table td{width:5.5rem;}
  .mk-sub-closer h2{font-size:1.5rem;}
  .mk-btn{width:100%;}
  .mk-sub-stats{gap:1.25rem 2rem;}
}
@media(max-width:720px){
  .mk-sub-stats{display:grid;grid-template-columns:1fr 1fr;}
  .mk-sub-stats dt{font-size:1.6rem;}
}

/* ---- This Week: compact card grid (db-app[data-view="cards"]) ----
   Same toolbar/pager/JS as /database; only the results panel differs, so the
   page reads as a digest, not as the full table. */
.wk-intro{margin:0.3rem 0 0;font-size:0.85rem;color:var(--muted);}
.wk-intro a{color:var(--brand);font-weight:600;}
.wk-intro a:hover{color:var(--brand-hover);text-decoration:underline;}
.wk-wrap{overflow-y:auto;border:none;border-radius:0;background:transparent;}
.wk-sort{display:flex;flex-wrap:wrap;align-items:center;gap:0.35rem;padding:0 0 0.7rem;font-size:0.78rem;}
.wk-sort-label{font-size:0.66rem;font-weight:700;letter-spacing:0.06em;text-transform:uppercase;color:var(--faint);margin-right:0.25rem;}
.wk-sort-item a{display:inline-block;padding:0.28rem 0.7rem;border:1px solid var(--border);border-radius:999px;background:var(--surface);color:var(--muted);white-space:nowrap;}
.wk-sort-item a:hover{border-color:var(--brand);color:var(--brand);}
.wk-sort-item.sorted a{border-color:var(--brand);color:var(--brand);}
.wk-sort-item .arrow{color:var(--brand);}
.wk-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0.7rem;align-content:start;will-change:transform,opacity;}
.wk-card{display:flex;flex-direction:column;gap:0.35rem;min-width:0;padding:0.7rem 0.85rem;background:var(--surface);border:1px solid var(--border);border-left:3px solid var(--border);border-radius:10px;color:var(--ink);transition:border-color .15s ease,box-shadow .15s ease;}
.wk-card:hover{border-color:var(--brand);box-shadow:0 2px 10px rgba(23,26,33,0.06);}
.wk-card:focus-visible{outline:2px solid var(--brand);outline-offset:2px;}
.wk-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:0.6rem;}
.wk-card-title{font-family:var(--font-display);font-weight:600;font-size:0.95rem;letter-spacing:-0.01em;line-height:1.25;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;}
.wk-badge{flex:0 0 auto;font-size:0.62rem;font-weight:700;letter-spacing:0.07em;text-transform:uppercase;padding:0.18rem 0.5rem;border-radius:999px;line-height:1.2;}
.wk-badge-new{background:var(--brand);color:#fff;}
.wk-badge-updated{background:transparent;color:var(--scheduled);border:1px solid var(--scheduled);}
.wk-card-meta{display:flex;flex-wrap:wrap;gap:0.15rem 0.6rem;font-size:0.8rem;color:var(--muted);}
.wk-card-type{font-weight:600;color:var(--brand);}
.wk-card-loc{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;}
.wk-card-dates{display:flex;flex-wrap:wrap;gap:0.1rem 0.8rem;font-size:0.75rem;color:var(--muted);}
.wk-date b{font-weight:600;color:var(--faint);text-transform:uppercase;font-size:0.62rem;letter-spacing:0.06em;margin-right:0.15rem;}
/* The vertical pager would reserve a ~38px column to the right of the grid and
   leave it short of the filter row. On cards, drop the pager into a compact
   horizontal strip under the grid so the grid spans the full content width. */
.db-app[data-view="cards"] .db-table-row{flex-direction:column;gap:0.5rem;}
.db-app[data-view="cards"] .db-pager-bar{justify-content:center;align-items:center;}
.db-app[data-view="cards"] .db-pager-wrap{flex-direction:row;gap:0.75rem;}
.db-app[data-view="cards"] .db-pager{flex-direction:row;}
.db-app[data-view="cards"] .db-pager-btn{transform:rotate(-90deg);}
.wk-empty{grid-column:1/-1;margin:2rem 0;text-align:center;color:var(--muted);}
@media(max-width:720px){
  .wk-wrap{overflow:visible;max-height:none;}
  .wk-grid{grid-template-columns:1fr;}
}

/* ---- Logged-out database preview (body.db-preview; site/snippets/database-preview.php) ----
   Blur applies ONLY to dummy placeholder text; real locked values are never in the page. */
body.db-preview .db-shell{max-width:1280px;margin:0 auto;padding:1.25rem 1.5rem 3rem;display:flex;flex-direction:column;gap:0.9rem;box-sizing:border-box;}
.pv-login{margin:0.35rem 0 0;font-size:0.82rem;color:var(--muted);}
.pv-login a{color:var(--brand);text-decoration:underline;text-underline-offset:2px;}
.pv-inert{opacity:0.55;}
.pv-inert input,.pv-inert select{cursor:not-allowed;}
.pv-hint{font-size:0.78rem;color:var(--muted);padding-bottom:0.55rem;}
.pv-banner{display:flex;align-items:center;justify-content:space-between;gap:1.25rem;flex-wrap:wrap;padding:1rem 1.25rem;border:1px solid var(--line-strong);border-left:4px solid var(--brand);border-radius:10px;background:var(--surface);}
.pv-banner-copy{flex:1 1 320px;min-width:0;}
.pv-banner-lead{margin:0 0 0.3rem;font-weight:600;color:var(--ink);}
.pv-banner-note{margin:0;font-size:0.85rem;color:var(--muted);}
.pv-btn{display:inline-block;padding:0.7rem 1.4rem;border-radius:8px;background:var(--brand);color:#fff;font-weight:600;font-size:0.95rem;text-align:center;}
.pv-btn:hover{background:var(--brand-hover);}
.pv-th{display:block;padding:0.65rem 0.8rem;font-size:0.66rem;font-weight:700;letter-spacing:0.06em;text-transform:uppercase;color:var(--muted);white-space:nowrap;}
body.db-preview .pv-table th:nth-child(1){width:24%;} body.db-preview .pv-table th:nth-child(5){width:30%;}
.pv-title{font-family:var(--font-display);font-weight:600;letter-spacing:-0.01em;color:var(--ink);}
.pv-contact{white-space:normal !important;line-height:1.35;}
.pv-contact .pv-mask{display:inline-block;margin-right:0.5rem;}
.pv-lock{font-size:0.75rem;margin-right:0.35rem;opacity:0.7;}
.pv-mask{color:var(--muted);filter:blur(1.6px);user-select:none;-webkit-user-select:none;pointer-events:none;font-variant-numeric:tabular-nums;}
.pv-locknote{margin:0.6rem 0 0;font-size:0.8rem;color:var(--muted);}
.pv-fade{position:relative;margin-top:0.25rem;-webkit-mask-image:linear-gradient(to bottom,#000 0%,transparent 100%);mask-image:linear-gradient(to bottom,#000 0%,transparent 100%);}
.pv-ghost thead{display:none;}
.pv-cta{text-align:center;padding:1.75rem 1.25rem;border:1px solid var(--line-strong);border-radius:12px;background:var(--surface);}
.pv-cta h2{margin:0 0 0.4rem;font-size:1.3rem;}
.pv-cta p{margin:0 auto 1rem;max-width:560px;color:var(--muted);}
.pv-cta .pv-login{margin-top:0.9rem;}
@media(max-width:720px){
  body.db-preview .db-shell{padding:1rem;}
  body.db-preview .db-toolbar{align-items:stretch;}
  body.db-preview .db-toolbar-right{width:100%;}
  body.db-preview .filter-search{width:100%;}
  .pv-btn{width:100%;box-sizing:border-box;}
  body.db-preview .filter-group{flex:1 1 90px;min-width:0;}
  body.db-preview .filter-group select{min-width:0;width:100%;}
  body.db-preview .db-shell,body.db-preview .db-app{max-width:100vw;overflow-x:hidden;}
  .pv-table thead{display:none;}
  .pv-table,.pv-table tbody,.pv-table tr,.pv-table td{display:block;width:100%;box-sizing:border-box;}
  .pv-table tbody tr{height:auto;padding:0.7rem 0.2rem;border-bottom:1px solid var(--border);}
  .pv-table tbody td{height:auto;padding:0.15rem 0;border:none;white-space:normal;overflow:visible;}
  .pv-table td[data-label]::before{content:attr(data-label) ": ";font-size:0.68rem;text-transform:uppercase;letter-spacing:0.05em;color:var(--faint);}
}
/* Preview listing detail (site/templates/production-preview.php) */
a.pv-open{text-decoration:none;}
a.pv-open:hover{color:var(--brand);text-decoration:underline;text-underline-offset:2px;}
body.db-preview .detail-container .pv-banner{margin-bottom:1.25rem;}
body.db-preview .detail-container .pv-cta{margin-top:1.5rem;}
body.db-preview .detail-container{overflow-wrap:anywhere;}
.contact-lines .pv-lock{margin-right:0.4rem;}

/* Founder note (text only) + first-month price line */
.mk-founder{max-width:46rem;margin:2.5rem auto;padding:1.25rem 1.5rem;border-left:3px solid var(--brand);background:var(--surface,#f6f7f9);border-radius:0 8px 8px 0;}
.mk-founder-text{margin:0.4rem 0 0.75rem;line-height:1.55;}
.mk-founder-sign{margin:0;font-weight:600;}
.mk-founder-sign span{display:block;margin-top:0.25rem;font-weight:400;font-size:0.85rem;opacity:0.8;}
.mk-price-line{font-size:0.9rem;color:#C4C8D4;margin:0.5rem 0 0;}
.pv-price-line{font-size:0.85rem;margin:0.4rem 0 0;opacity:0.85;}
