/* =============================================================================
   report.css — "State of the Building" story + "Governing Documents" pages.
   Public pages rendered through the standard site layout (nav + footer).
   Builds on styles.css variables (--primary-color #0056b3, etc.).
   ============================================================================ */

/* ---- Hero (matches the initiatives / election hero) ---------------------- */
.report-hero {
    padding: 2rem 0;
    background: linear-gradient(135deg, #141418 0%, #2c3e6d 100%);
    color: #fff;
    text-align: center;
}
.report-hero h1 { color: #fff; }
.report-hero .lead { color: rgba(255,255,255,0.9); max-width: 760px; margin-left: auto; margin-right: auto; }
.report-hero .subtitle { font-size: 0.95rem; color: rgba(255,255,255,0.7); }
.report-hero .lead a, .report-hero .subtitle a { color: #fff; }
.report-published { color: rgba(255,255,255,0.9); font-weight: 600; }
.report-published-sep { padding: 0 6px; color: rgba(255,255,255,0.45); }

/* ---- Story layout -------------------------------------------------------- */
/* Body width comes from a Bootstrap row > col-lg-9 (matching the initiatives page). */
.report-body { padding: 8px 0 48px; }

.sob-checkpoint {
    background: #fff; border: 1px solid #e3e6ea; border-left: 4px solid var(--primary-color, #0056b3);
    border-radius: 10px; padding: 24px 26px; margin: 26px 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    scroll-margin-top: 90px;
}
.sob-cp-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.sob-step {
    flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
    background: var(--primary-color, #0056b3); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.95rem;
}
.sob-cp-head h2 { font-size: 1.32rem; font-weight: 700; margin: 0; }
.sob-lede { font-size: 1.08rem; color: #2a2f36; font-weight: 500; margin-bottom: 14px; }
.sob-checkpoint p { color: #41474d; line-height: 1.65; }
.sob-list { color: #41474d; line-height: 1.7; }
.sob-list li { margin-bottom: 8px; }

/* Big figure callout(s) */
.sob-figure-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 4px 0 16px; }
.sob-figure {
    flex: 1 1 160px; background: #f6f8fa; border: 1px solid #e3e6ea; border-radius: 8px;
    padding: 16px 18px; text-align: center;
}
.sob-figure-value { display: block; font-size: 1.85rem; font-weight: 800; color: #1f2933; line-height: 1.1; }
.sob-figure-label { display: block; font-size: 0.8rem; color: var(--secondary-color, #6c757d); margin-top: 6px; }
.sob-figure.is-good   { background: #f0f7f1; border-color: #cfe3d2; }
.sob-figure.is-good   .sob-figure-value { color: #1d7a3d; }
.sob-figure.is-warn   { background: #fff8e1; border-color: #ffe6a0; }
.sob-figure.is-warn   .sob-figure-value { color: #b9770e; }
.sob-figure.is-danger { background: #fdecec; border-color: #f5c2c2; }
.sob-figure.is-danger .sob-figure-value { color: #b42318; }

/* Drill-down actions */
.sob-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 16px; }
.sob-drill {
    background: none; border: none; padding: 0; cursor: pointer;
    color: var(--primary-color, #0056b3); font-weight: 600; font-size: 0.95rem;
}
.sob-drill:hover { text-decoration: underline; }
.sob-source { font-size: 0.88rem; color: var(--secondary-color, #6c757d); }
.sob-scenario   { border-left-color: #b9770e; background: #fffdf7; }
.sob-bottomline { border-left-color: #1d7a3d; background: #f7fbf8; }

/* ---- Charts -------------------------------------------------------------- */
.report-chart { margin: 16px 0 6px; }
.report-chart-box { position: relative; height: 360px; }
.report-chart-box.tall { height: 420px; }
.report-chart-cap { font-size: 0.82rem; color: var(--secondary-color, #6c757d); margin-top: 10px; line-height: 1.5; }
.report-chart-cap strong { color: #41474d; }

/* ---- Verified-withdrawals drill-down (collapsible) ----------------------- */
.draw-list { margin-top: 12px; display: grid; gap: 10px; }
.draw-card {
    border: 1px solid #e3e6ea; border-left: 3px solid #b8503d; border-radius: 8px;
    padding: 12px 14px; background: #fff; scroll-margin-top: 90px;
}
.draw-card.flash { animation: drawflash 1.6s ease; }
@keyframes drawflash { 0%,100% { background:#fff; } 25% { background:#fff3cd; } }
.draw-card-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.draw-badge {
    flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: #b8503d; color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-size: 0.78rem; font-weight: 700;
}
.draw-when { font-weight: 600; color: #2a2f36; }
.draw-amt { margin-left: auto; font-weight: 700; color: #b42318; white-space: nowrap; }
.draw-card .draw-note { font-size: 0.85rem; color: #5c6b73; margin: 6px 0 0; line-height: 1.5; }

/* ---- Photo figure + gallery ---------------------------------------------- */
.report-photo { margin: 14px 0 4px; }
.report-photo img { width: 100%; border-radius: 10px; border: 1px solid #e3e6ea; display: block; }
.report-photo figcaption { font-size: 0.82rem; color: var(--secondary-color, #6c757d); margin-top: 8px; line-height: 1.5; }

.report-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 12px 0 6px; }
.report-gallery figure { margin: 0; }
.report-gallery img { width: 100%; height: 220px; object-fit: cover; border-radius: 8px; border: 1px solid #e3e6ea; display: block; background: #f0f2f4; }
.report-gallery.risers img { height: 300px; }
.report-gallery figcaption { font-size: 0.78rem; color: var(--secondary-color, #6c757d); margin-top: 6px; line-height: 1.45; }
@media (max-width: 575.98px) { .report-gallery { grid-template-columns: 1fr; } .report-gallery img, .report-gallery.risers img { height: 240px; } }

/* Subsection heading + muted note inside a checkpoint */
.sob-sub { font-size: 1.12rem; font-weight: 700; color: #1f2933; margin: 24px 0 8px; scroll-margin-top: 90px; }
.sob-note {
    background: #f6f8fa; border: 1px solid #e3e6ea; border-left: 3px solid var(--secondary-color, #6c757d);
    border-radius: 8px; padding: 12px 14px; font-size: 0.9rem; color: #5c6b73; line-height: 1.55; margin-top: 14px;
}

/* Info callout (e.g., the eviction clarification) */
.sob-callout {
    background: #eef5fb; border: 1px solid #cfe0ee; border-left: 4px solid var(--primary-color, #0056b3);
    border-radius: 10px; padding: 18px 20px; margin: 18px 0 4px;
}
.sob-callout h3 { font-size: 1.12rem; font-weight: 700; color: #15436b; margin: 0 0 8px; }
.sob-callout p { color: #2a3b49; line-height: 1.65; margin: 0; }

/* ---- Glossary term popouts ------------------------------------------------ */
/* Dotted-underline term that opens a small definition modal */
.sob-term { color: inherit; text-decoration: none; border-bottom: 1px dotted #8a98a5; cursor: pointer; }
.sob-term:hover { color: var(--primary-color, #0056b3); border-bottom-color: currentColor; }
.sob-gl-modal .modal-title { font-size: 1.05rem; font-weight: 700; color: #1f2933; }
.sob-gl-modal .modal-body p { margin: 0; color: #41474d; line-height: 1.6; }

/* One-line "In short" takeaway at the end of a checkpoint */
.sob-inshort {
    margin: 18px 0 0; padding: 10px 14px; border-radius: 8px;
    background: #f3f8fc; border: 1px solid #cfe0ee; font-size: 0.95rem;
}
.sob-checkpoint .sob-inshort { color: #15436b; margin-bottom: 0; }
.sob-inshort strong { color: #0f3557; }

/* ---- FAQ (native <details>) ----------------------------------------------- */
.sob-faq { display: grid; gap: 10px; margin-top: 6px; }
.sob-faq details { border: 1px solid #e3e6ea; border-radius: 8px; background: #fff; }
.sob-faq summary {
    cursor: pointer; padding: 12px 38px 12px 14px; font-weight: 600; color: #1f2933;
    list-style: none; position: relative;
}
.sob-faq summary::-webkit-details-marker { display: none; }
.sob-faq summary::after {
    content: '+'; position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    color: var(--primary-color, #0056b3); font-weight: 700; font-size: 1.15rem;
}
.sob-faq details[open] summary::after { content: '\2212'; }
.sob-faq .sob-faq-a { padding: 0 14px 12px; }
.sob-faq .sob-faq-a p { margin: 0 0 8px; color: #41474d; line-height: 1.6; }
.sob-faq .sob-faq-a p:last-child { margin-bottom: 0; }

/* ---- "If we do nothing" timeline ----------------------------------------- */
.sob-timeline { list-style: none; padding: 0; margin: 16px 0 0; }
.sob-timeline li {
    position: relative; padding: 0 0 18px 26px; border-left: 2px solid #f0c8b6; margin-left: 6px;
}
.sob-timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.sob-timeline li::before {
    content: ''; position: absolute; left: -7px; top: 2px; width: 12px; height: 12px;
    border-radius: 50%; background: #b8503d; border: 2px solid #fff;
}
.sob-timeline .yr { font-weight: 700; color: #b42318; display: block; font-size: 0.92rem; }
.sob-timeline .ev { color: #41474d; line-height: 1.55; }

/* Plan-flavored timeline variant ("Where we are in the process") */
.sob-timeline.is-plan li { border-left-color: #cfe0ee; }
.sob-timeline.is-plan li:last-child { border-left-color: transparent; }
.sob-timeline.is-plan li::before { background: var(--primary-color, #0056b3); }
.sob-timeline.is-plan li.is-now::before { background: #1d7a3d; }
.sob-timeline.is-plan .yr { color: #15436b; }
.sob-timeline .now-badge {
    display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 10px;
    background: #1d7a3d; color: #fff; font-size: 0.68rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px; vertical-align: 1px;
}

/* ---- Modal tables -------------------------------------------------------- */
.sob-table { margin-bottom: 0; }
.sob-table-total td { font-weight: 700; border-top: 2px solid #dee2e6; }

/* =============================================================================
   Governing documents — index + per-document pages
   ============================================================================ */
.govdoc-intro { max-width: 760px; margin: 0 auto 8px; color: #41474d; line-height: 1.65; }

/* Index cards (whole card is a link) */
.govdoc-card {
    display: block; text-decoration: none; background: #fff; border: 1px solid #e3e6ea;
    border-left: 4px solid var(--primary-color, #0056b3); border-radius: 10px;
    padding: 22px 24px; margin: 16px 0; box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    transition: box-shadow .15s ease, transform .15s ease;
}
.govdoc-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.10); transform: translateY(-1px); }
.govdoc-kicker { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; color: var(--primary-color, #0056b3); }
.govdoc-card h2 { font-size: 1.3rem; font-weight: 700; margin: 4px 0 6px; color: #1f2933; }
.govdoc-blurb { font-weight: 500; color: #41474d; margin-bottom: 10px; line-height: 1.55; }
.govdoc-card-cta { color: var(--primary-color, #0056b3); font-weight: 600; font-size: 0.92rem; }

/* Detail page */
.govdoc-viewpdf {
    display: inline-flex; align-items: center; gap: 10px; margin-top: 14px;
    background: #fff; border: 1px solid #d3d9df; border-radius: 8px; padding: 8px 16px;
    color: #2a2f36; text-decoration: none; font-weight: 600; font-size: 0.92rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.govdoc-viewpdf:hover { border-color: var(--primary-color, #0056b3); color: var(--primary-color, #0056b3); }
.govdoc-viewpdf-ico {
    font-size: 0.66rem; font-weight: 800; letter-spacing: 0.5px; color: #fff;
    background: #b8503d; border-radius: 4px; padding: 3px 6px;
}
.govdoc-lede { font-size: 1.08rem; color: #2a2f36; line-height: 1.65; margin-bottom: 14px; }
.govdoc-h { font-size: 1.0rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--secondary-color, #6c757d); margin: 26px 0 10px; }
.govdoc-points { margin: 12px 0 0; padding-left: 1.1rem; color: #41474d; line-height: 1.6; }
.govdoc-points li { margin-bottom: 6px; }
.govdoc-section { margin: 26px 0; scroll-margin-top: 90px; }
.govdoc-section h3 { font-size: 1.22rem; font-weight: 700; color: #1f2933; margin-bottom: 8px; }
.govdoc-section p { color: #41474d; line-height: 1.7; }
.govdoc-section:target { background: #f3f8fc; border-radius: 8px; margin: 26px -14px; padding: 12px 14px; }
.govdoc-section:target h3 { color: var(--primary-color, #0056b3); }
.govdoc-foot { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; padding-top: 20px; border-top: 1px solid #e3e6ea; }

/* ---- "Unofficial digitized copy" notice + full disclaimer ---------------- */
.govdoc-notice {
    background: #fdf8ec; border: 1px solid #ecdcb4; border-left: 4px solid #c08a2e;
    border-radius: 8px; padding: 12px 16px; margin: 4px 0 22px;
}
.govdoc-notice-tag {
    display: inline-block; font-size: 0.68rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.6px; color: #fff; background: #c08a2e; border-radius: 4px;
    padding: 3px 7px; margin-bottom: 7px;
}
.govdoc-notice p { margin: 0; font-size: 0.9rem; line-height: 1.55; color: #5a4a26; }
.govdoc-notice a { color: #8a6216; font-weight: 600; }

.govdoc-disclaimer {
    margin-top: 34px; padding: 18px 20px; scroll-margin-top: 90px;
    background: #f6f8fa; border: 1px solid #e3e6ea; border-radius: 8px;
}
.govdoc-disclaimer h2 {
    font-size: 0.92rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
    color: var(--secondary-color, #6c757d); margin: 0 0 10px;
}
.govdoc-disclaimer p { font-size: 0.85rem; line-height: 1.6; color: #5c6b73; margin-bottom: 10px; }
.govdoc-disclaimer strong { color: #41474d; }

/* ---- Resale-value calculator (By-Laws page) ------------------------------ */
.resale-calc-open { margin-top: 4px; }
.rc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 16px; }
.rc-field { display: flex; flex-direction: column; gap: 4px; font-size: 0.88rem; color: #41474d; font-weight: 600; }
.rc-field .text-muted { font-weight: 400; }
.rc-help-text { font-size: 0.78rem; color: #6c757d; font-weight: 400; line-height: 1.4; }
.rc-adv-toggle { color: var(--primary-color, #0056b3); text-decoration: none; font-weight: 600; }
.rc-result { background: #f0f7f1; border: 1px solid #cfe3d2; border-radius: 10px; padding: 16px 18px; margin-top: 16px; }
.rc-result-value { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.rc-result-label { font-weight: 600; color: #1d6b39; }
.rc-result-num { font-size: 1.8rem; font-weight: 800; color: #1d7a3d; line-height: 1; }
.rc-result-explain { margin: 8px 0 10px; color: #2a3b49; }
.rc-result-note { font-size: 0.85rem; color: #41474d; margin: 0; line-height: 1.55; }
.rc-disclaimer { font-size: 0.78rem; color: #6c757d; margin: 14px 0 0; line-height: 1.5; }
@media (max-width: 575.98px) { .rc-grid { grid-template-columns: 1fr; } }

/* =============================================================================
   Pest-report form page (/report)
   Same hero + accent-bordered card language as the rest of the site.
   ============================================================================ */
.report-card {
    background: #fff;
    border: 1px solid #e3e6ea;
    border-left: 4px solid var(--primary-color, #0056b3);
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}
.report-card-body { padding: 28px 30px; }
.report-card-title {
    font-size: 1.32rem;
    font-weight: 700;
    color: #1f2933;
}

/* Stat tiles in the "Current Building Statistics" card — matches .sob-figure */
.stats-section .stat-box {
    background: #f6f8fa;
    border: 1px solid #e3e6ea;
    border-radius: 8px;
    padding: 16px 12px;
    height: 100%;
}

@media (max-width: 575.98px) {
    .report-card-body { padding: 22px 18px; }
}

@media (max-width: 575.98px) {
    .sob-checkpoint, .govdoc { padding: 20px 18px; }
    .report-chart-box { height: 300px; }
}
