/* the per-council-file detail page.
   Extracted verbatim from generate_councilfile_pages.py, which used to
   inline this block into every generated page -- 5,838 copies of the same
   bytes. The rules are unchanged; only where they live has changed. */

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            line-height: 1.6;
            color: #1a1a1a;
            background: #f5f5f5;
            padding-bottom: 2rem;
        }

        .container {
            max-width: 900px;
            margin: 0 auto;
            padding: 0 1rem;
        }

        header {
            background: #fff;
            border-bottom: 1px solid #e0e0e0;
            padding: 1.5rem 0;
            margin-bottom: 1.5rem;
        }

        .breadcrumb {
            font-size: 0.875rem;
            color: #666;
            margin-bottom: 0.75rem;
        }

        .breadcrumb a {
            color: #0066cc;
            text-decoration: none;
        }

        .breadcrumb a:hover {
            text-decoration: underline;
        }

        h1 {
            font-size: 1.25rem;
            font-weight: 500;
            line-height: 1.4;
            margin-bottom: 1rem;
            color: #1a1a1a;
        }

        .official-title {
            font-size: 0.875rem;
            color: #666;
            margin-top: 1rem;
            padding-top: 1rem;
            border-top: 1px solid #e0e0e0;
        }

        .official-title-label {
            font-weight: 600;
            display: block;
            margin-bottom: 0.5rem;
        }

        .file-number {
            font-size: 1.5rem;
            font-weight: 600;
            color: #0066cc;
            margin-bottom: 0.75rem;
        }

        .meta-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
            margin-top: 1rem;
            padding: 1rem;
            background: #f9f9f9;
            border-radius: 8px;
        }

        .meta-item {
            font-size: 0.875rem;
        }

        .meta-label {
            font-weight: 600;
            color: #666;
            display: block;
            margin-bottom: 0.25rem;
        }

        .meta-value {
            color: #1a1a1a;
        }

        .section {
            margin-bottom: 2rem;
        }

        .section-title {
            font-size: 1.25rem;
            font-weight: 600;
            color: #1a1a1a;
            margin-bottom: 1rem;
            padding-left: 0.75rem;
            border-left: 3px solid #0066cc;
        }

        .section-note {
            font-size: 0.85rem;
            color: #666666;
            margin: -0.5rem 0 1rem;
        }

        .upcoming-appearance {
            border: 1px solid #fcd34d;
            border-left: 3px solid #d97706;
            border-radius: 6px;
            padding: 0.85rem;
            margin-bottom: 0.75rem;
            background: #fffbeb;
        }

        .upcoming-date {
            font-size: 0.85rem;
            font-weight: 600;
            color: #92400e;
        }

        .upcoming-desc {
            margin: 0.5rem 0 0.35rem;
        }

        .upcoming-meta {
            color: #666666;
            font-size: 0.85rem;
        }

        .timeline {
            position: relative;
            padding-left: 2rem;
        }

        .timeline::before {
            content: '';
            position: absolute;
            left: 0.5rem;
            top: 0;
            bottom: 0;
            width: 2px;
            background: #e0e0e0;
        }

        .timeline-item {
            position: relative;
            margin-bottom: 2rem;
        }

        .timeline-item::before {
            content: '';
            position: absolute;
            left: -1.65rem;
            top: 0.5rem;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: #0066cc;
            border: 3px solid #fff;
            box-shadow: 0 0 0 2px #e0e0e0;
        }

        .timeline-card {
            background: #fff;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            padding: 1.25rem;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
            text-decoration: none;
            color: inherit;
            display: block;
            transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
        }

        .timeline-card:hover {
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            border-color: #0066cc;
            transform: translateY(-2px);
        }

        .timeline-date {
            font-size: 0.875rem;
            font-weight: 600;
            color: #0066cc;
            margin-bottom: 0.5rem;
        }

        .timeline-meeting-title {
            font-size: 1rem;
            font-weight: 600;
            color: #1a1a1a;
            margin-bottom: 0.75rem;
        }

        .timeline-summary {
            font-size: 0.875rem;
            color: #555;
            line-height: 1.5;
        }

        .timeline-recommendation {
            margin-top: 0.75rem;
            padding: 0.75rem;
            background: #f9f9f9;
            border-radius: 4px;
            font-size: 0.875rem;
            color: #333;
            line-height: 1.5;
        }

        .attachments {
            margin-top: 1.5rem;
        }

        .attachments-title {
            font-size: 1rem;
            font-weight: 600;
            color: #1a1a1a;
            margin-bottom: 0.75rem;
        }

        .attachment {
            background: #fff;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            padding: 1.25rem;
            margin-bottom: 1.5rem;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
        }

        .attachment-header {
            display: flex;
            justify-content: space-between;
            align-items: start;
            margin-bottom: 1rem;
            gap: 1rem;
        }

        .attachment-title {
            font-size: 0.9375rem;
            font-weight: 600;
            color: #1a1a1a;
            flex: 1;
        }

        .attachment-actions {
            display: flex;
            gap: 0.5rem;
            flex-shrink: 0;
        }

        .doc-action {
            font-size: 0.8125rem;
            text-decoration: none;
            padding: 0.375rem 0.75rem;
            border-radius: 4px;
            transition: all 0.2s;
            font-weight: 500;
        }

        .doc-action.view-action {
            color: #0066cc;
            border: 1px solid #0066cc;
            background: transparent;
        }

        .doc-action.view-action:hover {
            background: #0066cc;
            color: #fff;
        }

        .doc-action.download-action {
            color: #fff;
            background: #0066cc;
            border: 1px solid #0066cc;
        }

        .doc-action.download-action:hover {
            background: #0052a3;
            border-color: #0052a3;
        }

        .attachment-badge {
            background: #e8f4f8;
            color: #0066cc;
            font-size: 0.75rem;
            font-weight: 600;
            padding: 0.25rem 0.5rem;
            border-radius: 4px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .summary {
            margin-top: 0.75rem;
            padding-top: 0.75rem;
            border-top: 1px solid #e0e0e0;
        }

        .summary h4 {
            font-size: 1rem;
            font-weight: 600;
            color: #1a1a1a;
            margin-bottom: 0.5rem;
        }

        .summary p {
            color: #333;
            margin-bottom: 0.75rem;
            line-height: 1.6;
        }

        .summary h5 {
            font-size: 0.9375rem;
            font-weight: 600;
            color: #1a1a1a;
            margin-top: 1rem;
            margin-bottom: 0.5rem;
        }

        .no-summary {
            color: #666;
            font-style: italic;
            font-size: 0.875rem;
        }

        .meeting-link {
            display: inline-block;
            margin-top: 0.5rem;
            font-size: 0.875rem;
            color: #0066cc;
            text-decoration: none;
        }

        .meeting-link:hover {
            text-decoration: underline;
        }

        @media (max-width: 640px) {
            h1 {
                font-size: 1.25rem;
            }

            .file-number {
                font-size: 1rem;
            }

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

        .no-summaries {
            background: #f9f9f9;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            padding: 1rem;
            margin-top: 1rem;
        }

        .no-summaries summary {
            cursor: pointer;
            font-size: 0.875rem;
            color: #666;
            font-weight: 600;
        }

        .no-summary-docs {
            margin-top: 0.75rem;
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .doc-item {
            display: flex;
            flex-direction: column;
            gap: 0.375rem;
        }

        .doc-title {
            font-size: 0.875rem;
            color: #333;
            font-weight: 500;
        }

        .doc-links {
            display: flex;
            gap: 0.5rem;
        }

        .doc-link {
            color: #0066cc;
            text-decoration: none;
        }

        .doc-link:hover {
            text-decoration: underline;
        }

        /* Design layer — the clerk's ledger. Appended so it wins at equal
           specificity without rewriting this page's bespoke layout CSS. */
        :root {
            --paper:#F2F4EF; --bar:#E4EBDF; --ink:#14180F; --ink-2:#5A6353;
            --rule:#C3CDBB; --aye:#2F6B3F; --nay:#A3372B; --stamp:#2A4B8D;
            --surface:#FBFCFA;
            --font-display:'Archivo Narrow','Helvetica Neue',Arial,sans-serif;
            --font-body:'Source Serif 4',Georgia,serif;
            --font-data:'IBM Plex Mono',ui-monospace,Menlo,monospace;
        }
        body { background:var(--paper); color:var(--ink);
                font-family:var(--font-display); -webkit-font-smoothing:antialiased; }
        a { color:var(--stamp); }
        h1,h2,h3 { font-family:var(--font-display); letter-spacing:-0.01em; color:var(--ink); }
        h1 { font-size:2rem; font-weight:700; letter-spacing:-0.02em; }
        header { background:var(--surface); border-bottom:2px solid var(--ink); }
        .breadcrumb { color:var(--ink-2); }
        p, li { font-family:var(--font-body); }
        table { background:var(--surface); }
        th { background:var(--ink); color:var(--paper); font-family:var(--font-display);
              font-size:0.75rem; letter-spacing:0.08em; text-transform:uppercase; }
        td, th { border-color:var(--rule); }
        tbody tr:nth-child(even) { background:var(--bar); }
        code, .cf-number, .council-file, time { font-family:var(--font-data);
              font-variant-numeric:tabular-nums; }
        :focus-visible { outline:2px solid var(--stamp); outline-offset:2px; }
        @media (prefers-reduced-motion: reduce) { * { transition:none !important; } }

/* A tracked vote as shown on a council file page. */
.tracked-vote {
    border: 1px solid #eee0cc;
    border-radius: 6px;
    padding: 0.85rem;
    margin-bottom: 0.75rem;
    background: #fffdfa;
}

.tracked-vote-column {
    margin-left: 0.4rem;
    font-weight: 600;
}

.tracked-vote-desc {
    margin: 0.5rem 0 0.35rem;
}

.tracked-vote-meta {
    color: #666666;
    font-size: 0.85rem;
}
