
    * { box-sizing: border-box; }
    body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; padding: 0; margin: 0; background: #fff8f0; color: #333; -webkit-text-size-adjust: 100%; }
    
    /* Navigation - South Ruislip / Borough Style */
    .instance-tabs-wrapper { width: 100%; display: flex; justify-content: flex-end; padding: 10px 20px; position: relative; z-index: 2000; margin-bottom: 30px; }
    .instance-tabs { display: flex; gap: 5px; align-items: center; }
    .inst-btn { text-decoration: none; padding: 5px 12px; border-radius: 4px; font-size: 13px; font-weight: bold; background: #f0f0f0; color: #777; border: 1px solid #ddd; height: 32px; display: flex; align-items: center; line-height: 1; white-space: nowrap; }
    .inst-btn:hover { background: #e0e0e0; color: #333; }
    .inst-btn.current { background: #d35400; color: #fff; border-color: #ba4a00; cursor: default; }
    
    /* Home Button - White, Desktop Only, Underline on Hover */
    .home-btn { background: #fff; }
    
    .home-btn:hover { 
        text-decoration: underline; /* Adds the line */
        background: #e0e0e0;        /* Ensures it turns grey like the others */
    }

    @media (max-width: 768px) {
        .home-btn { display: none !important; }
    }
    
    .dropdown { position: relative; display: inline-block; vertical-align: middle; }
    .dropdown-content { display: none; position: absolute; right: 0; background-color: #f9f9f9; min-width: 190px; box-shadow: 0 8px 16px rgba(0,0,0,0.2); z-index: 3000; border-radius: 4px; border: 1px solid #ddd; text-align: left; }
    .dropdown-content a { color: #333; padding: 10px 14px; text-decoration: none; display: block; font-size: 13px; border-bottom: 1px solid #eee; }
    .dropdown:hover .dropdown-content { display: block; }
    .drop-btn { cursor: pointer; }
    
    /* Main Layout */
    .container { max-width: 1200px; margin: 0 auto 40px auto; background: #fff; padding: 40px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); position: relative; z-index: 1; }
    
    /* Typography */
    h1 { margin-top: 0; margin-bottom: 20px; font-size: 28px; text-align: left; color: #2c3e50; font-weight: 700; border-bottom: 3px solid #f37a1f; padding-bottom: 10px; }
    h1 a { text-decoration: none; color: #2c3e50; }
    h1 a:hover { color: #e67e22; }
    
    h2 { color: #e67e22; margin-top: 40px; margin-bottom: 15px; font-size: 22px; border-bottom: 1px solid #eee; padding-bottom: 5px; }
    h3 { color: #555; font-size: 16px; margin-top: 25px; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; }
    p { line-height: 1.6; margin-bottom: 15px; color: #444; }
    li { line-height: 1.6; margin-bottom: 8px; color: #444; }
    a { color: #d35400; text-decoration: none; }
    a:hover { text-decoration: underline; }
    
    /* Footer */
    .main-footer { margin-top: 40px; padding: 20px; border-top: 1px solid #eee; font-size: 11px; color: #888; line-height: 1.6; background: #fafafa; border-radius: 4px; text-align: left; }
    .main-footer a { color: #d35400; font-weight: bold; text-decoration: none; }
    .sep { margin: 0 5px; color: #ccc; }
    .timestamp { font-size: 11px; color: #999; margin-top: 15px; display: block; text-align: center; cursor: help; border-bottom: 1px dotted #ccc; width: fit-content; margin-left: auto; margin-right: auto; }

    /* Mobile */
    @media (max-width: 768px) {
        .instance-tabs-wrapper { justify-content: flex-start; padding: 10px; overflow-x: auto; -webkit-overflow-scrolling: touch; background: #fff8f0; border-bottom: 1px solid #ddd; width: 100%; }
        .dropdown-content { position: fixed; left: 10px; right: 10px; top: 50px; width: auto; }
        .container { padding: 20px; }
    }
    
    /* Internal Elements from Decisions Script */
    .skip-link { position: absolute; top: -40px; left: 0; background: #d35400; color: white; padding: 8px; z-index: 100; transition: top 0.2s; }
    .skip-link:focus { top: 0; }

    .nav-block { text-align: center; margin: 20px 0; padding: 15px; background: #f8f9fa; border-radius: 6px; border: 1px solid #eee; }
    .nav-title { font-weight: bold; color: #555; margin-bottom: 8px; font-size: 1.1em; }
    .nav-links { font-size: 15px; }
    .nav-links a { color: #d35400; text-decoration: none; font-weight: 500; margin: 0 10px; }
    .nav-links a:hover { text-decoration: underline; }
    .nav-bar { text-align: center; margin: 20px 0; font-size: 14px; font-weight: 500; color: #555; }
    .nav-bar a { color: #d35400; text-decoration: none; margin: 0 10px; font-weight: bold; }
    .nav-bar a:hover { text-decoration: underline; color: #e67e22; }
    .stats-box { margin-top: 30px; padding: 20px; background: #fffcf5; border: 1px solid #f0e0d0; border-radius: 6px; width: 100%; }
    .stats-table { margin: 10px auto; width: 60%; max-width: 400px; border-collapse: collapse; }
    .stats-table th { background: #d35400; color: white; padding: 8px; border-bottom: none; }
    .stats-table td { padding: 8px; text-align: center; border-bottom: 1px solid #ddd; font-weight: bold; }
    .stats-table tr:nth-child(even) { background: #fff; }
    .source-link { font-size: 12px; color: #888; margin-top: 5px; display: block; margin-bottom: 30px; }
    .source-link a { color: #888; text-decoration: underline; }
    
    table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 10px; }
    th { text-align: left; padding: 14px; background-color: #d35400; color: #ffffff !important; border-bottom: 3px solid #a04000; }
    td { padding: 12px 14px; border-bottom: 1px solid #eee; vertical-align: middle; }
    tr:hover { background-color: #fff8f0; }
    .col-num { width: 60px; font-weight: normal; color: #333; text-align: center; font-family: monospace; font-size: 14px; }
    .col-date { width: 100px; white-space: nowrap; color: #333; font-weight: 500; }
    .col-docs { width: 160px; }
    .btn { display: inline-block; padding: 4px 8px; font-size: 11px; font-weight: 600; text-decoration: none; border-radius: 4px; margin-right: 4px; border: 1px solid transparent; transition: all 0.2s; }
    .btn-report { background-color: #e3f2fd; color: #0d47a1; border-color: #bbdefb; }
    .btn-report:hover { background-color: #bbdefb; }
    .btn-minutes { background-color: #e8f5e9; color: #1b5e20; border-color: #c8e6c9; }
    .btn-minutes:hover { background-color: #c8e6c9; }
    .no-file { font-size: 11px; color: #aaa; font-style: italic; }
    .tag-base { display: inline-block; font-size: 10px; padding: 2px 8px; border-radius: 10px; margin-left: 6px; vertical-align: middle; text-decoration: none; font-weight: bold; transition: opacity 0.2s; border: 1px solid transparent; }
    .tag-base:hover { opacity: 0.8; text-decoration: none; }
    .tag-part2 { background: #fff5f5; color: #c53030 !important; border-color: #feb2b2; }
    .tag-su { background: #c0392b; color: white !important; border-color: #922b21; cursor: pointer; }
    .tag-chrysalis { background: #f3e5f5; color: #4a148c !important; border-color: #e1bee7; cursor: pointer; }
    .archive-list { margin-top: 40px; padding-top: 20px; border-top: 1px solid #eee; font-size: 13px; color: #666; line-height: 1.8; }
    .archive-list strong { color: #333; margin-right: 10px; }
    .archive-list a { margin-right: 12px; color: #d35400; text-decoration: none; }
    .archive-list a:hover { text-decoration: underline; }
    .title-link { color: #333; text-decoration: none; font-weight: 500; display: block; }
    .title-link:hover { color: #d35400; text-decoration: underline; }
    .archive-table td { padding: 0; border-bottom: 1px solid #eee; }
    .row-link { display: flex; align-items: center; width: 100%; height: 100%; padding: 20px; text-decoration: none; color: inherit; }
    .row-link:hover { text-decoration: none; }
    .q-cell { width: 150px; text-align: center; font-size: 24px; font-weight: bold; color: #d35400; border-right: 1px solid #eee; margin-right: 20px; display: inline-block; }
    .m-info { display: inline-block; vertical-align: middle; }
    .months { display: block; font-size: 16px; color: #333; margin-bottom: 5px; font-weight: 600; }
    .count { display: block; font-size: 13px; color: #999; }
    .meta { color: #666; font-size: 14px; margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 20px; }
    .meta span { margin-right: 20px; }
    .meta a { color: #d35400; text-decoration: none; font-weight: bold; }
    .meta a:hover { text-decoration: underline; }
    .doc-section { margin-bottom: 50px; }
    .doc-section h2 { font-size: 20px; border-left: 5px solid #d35400; padding-left: 10px; color: #333; margin-bottom: 15px; }
    .pdf-container { border: 1px solid #ddd; background: #eee; }
    .missing { opacity: 0.6; }
    .fallback { font-size: 12px; color: #666; padding: 10px; text-align: center; margin: 0; }
    .stats { text-align: center; color: #666; margin-bottom: 40px; }
    .home-link { display: block; text-align: center; margin-bottom: 30px; font-weight: bold; color: #d35400; text-decoration: none; }
    .home-link:hover { text-decoration: underline; }
    .debug-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); gap: 5px; margin-bottom: 30px; }
    .debug-item { background: #fee; color: #c00; padding: 5px; text-align: center; border-radius: 3px; font-size: 12px; font-family: monospace; border: 1px solid #fcc; }
    .debug-item.found { background: #e6fffa; color: #2c7a7b; border-color: #b2f5ea; text-decoration: none; font-weight: bold; }
    .debug-item.found:hover { background: #b2f5ea; }
    
    /* Related Decisions Box - Redesigned v2.20 */
    .related-box { margin-top:40px; padding:20px; background:#f9f9f9; border-top:2px solid #d35400; }
    .related-title { font-size:16px; font-weight:bold; color:#555; margin-bottom:15px; }
    .related-list { list-style:none; padding:0; margin:0; }
    .related-item { display: flex; align-items: flex-start; margin-bottom: 12px; }
    .rel-date { background-color: #d35400; color: white; padding: 4px 8px; border-radius: 4px; font-weight: bold; font-size: 11px; white-space: nowrap; margin-right: 12px; min-width: 70px; text-align: center; margin-top: 2px; }
    .rel-link { flex-grow: 1; font-size: 14px; line-height: 1.4; }
    .rel-link a { color:#d35400; text-decoration:none; }
    .rel-link a:hover { text-decoration:underline; }
    
    /* ID Badge for Status Page */
    .id-badge { background-color: #319795; color: white; padding: 2px 6px; border-radius: 4px; font-size: 11px; font-weight: bold; margin-right: 8px; font-family: monospace; }
    .disc-list li { margin-bottom: 6px; line-height: 1.5; }

    /* --- Sitemap & Accordion Styles --- */
    .sitemap-details { margin-bottom: 8px; border: 1px solid #eee; border-radius: 6px; overflow: hidden; }
    .sitemap-details summary { padding: 12px; background: #f9f9f9; cursor: pointer; font-weight: 600; color: #444; outline: none; transition: background 0.2s; }
    .sitemap-details summary:hover { background: #f0f0f0; color: #d35400; }
    .sitemap-details[open] summary { border-bottom: 1px solid #eee; background: #fff; color: #d35400; }
    .sitemap-list { list-style: none; padding: 15px; margin: 0; background: #fff; }
    .sitemap-list li { margin-bottom: 8px; display: flex; align-items: flex-start; line-height: 1.4; }
    .sitemap-list a { text-decoration: none; color: #333; }
    .sitemap-list a:hover { text-decoration: underline; color: #d35400; }

    pre { background: #f8f9fa; padding: 15px; border: 1px solid #eee; border-radius: 4px; overflow-x: auto; white-space: pre-wrap; word-wrap: break-word; }
    
    @media (max-width: 600px) {
        body { padding: 0; }
        .container { padding: 15px; margin: 0; width: 100%; box-shadow: none; border-radius: 0; }
        h1 { font-size: 22px; }
        
        /* Mobile Related Decisions - Collapsible */
        .related-box details { border: 1px solid #ddd; padding: 10px; border-radius: 6px; background: #fff; }
        .related-box summary { cursor: pointer; font-weight: bold; color: #d35400; }
        .related-title { display: none; } /* Hide the static title on mobile, use summary */
        
        .decision-table, .decision-table thead, .decision-table tbody, .decision-table th, .decision-table td, .decision-table tr { display: block; }
        .decision-table thead { display: none; } 
        .decision-table tr { display: flex; flex-wrap: wrap; background: #fff; margin-bottom: 12px; padding: 12px; border: 1px solid #eee; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
        .decision-table .col-num { display: none; }
        .decision-table tr td:nth-child(4) { width: 100%; order: 1; padding: 0 0 8px 0; border: none; font-size: 16px; font-weight: 600; line-height: 1.4; }
        .decision-table .col-date { width: auto; order: 2; padding: 0; border: none; font-size: 13px; color: #666; margin-right: 15px; display: flex; align-items: center; }
        .decision-table .col-docs { width: auto; order: 3; padding: 0; border: none; }
        .btn { padding: 6px 10px; font-size: 12px; margin-right: 5px; }
        .archive-table tr { display: block; border-bottom: 1px solid #eee; }
        .archive-table td { display: block; width: 100%; padding: 0; }
        .row-link { flex-direction: column; align-items: flex-start; padding: 15px; }
        .q-cell { width: auto; border-right: none; text-align: left; margin-bottom: 5px; font-size: 20px; }
        .m-info { padding-left: 0; }
    }
    