/* ============================================================
   FCC Governing Documents — Frontend Portal v1.1
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

.fcc-docs-portal { width: 100%; font-family: inherit; line-height: 1.5; }
.fcc-portal-inner { margin: 0 auto; }

.fcc-portal-title {
    margin: 0 0 22px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(0,0,0,0.07);
    font-size: 1.4em;
    font-weight: 700;
}

.fcc-sections { display: flex; flex-direction: column; }
.fcc-section + .fcc-section { margin-top: 2px; }

/* Section button */
.fcc-section-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.18s, color 0.18s;
    gap: 12px;
    outline: none;
}
.fcc-section-btn:focus-visible { outline: 2px solid rgba(255,255,255,0.6); outline-offset: -3px; }
.fcc-section-btn[disabled]     { opacity: 0.45; cursor: not-allowed; }

.fcc-btn-left  { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fcc-btn-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.fcc-btn-icon  { flex-shrink: 0; display: flex; align-items: center; opacity: 0.9; }
.fcc-btn-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.fcc-count-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    padding: 0 7px;
    border-radius: 20px;
    background: rgba(255,255,255,0.2);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1;
}

.fcc-chevron {
    display: flex;
    align-items: center;
    transition: transform 0.25s cubic-bezier(.4,0,.2,1);
}
.fcc-section.fcc-is-open > .fcc-section-btn .fcc-chevron,
.fcc-sub-section.fcc-is-open > .fcc-sub-btn .fcc-chevron {
    transform: rotate(180deg);
}

/* Section body */
.fcc-section-body[hidden] { display: none; }
.fcc-section-body-inner   { padding: 8px 0 4px; }

/* Sub-section */
.fcc-sub-section + .fcc-sub-section { margin-top: 2px; }

.fcc-sub-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s, color 0.15s;
    gap: 10px;
    outline: none;
}
.fcc-sub-btn:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }
.fcc-sub-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fcc-sub-body[hidden] { display: none; }

/* Document list */
.fcc-doc-list { display: flex; flex-direction: column; gap: 3px; padding: 6px 0 4px; }

/* Document row */
.fcc-doc-row {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    transition: background 0.14s, transform 0.12s;
}
.fcc-doc-row:hover { transform: translateX(2px); }

.fcc-doc-file-icon { flex-shrink: 0; display: flex; align-items: center; margin-top: 1px; }
.fcc-doc-info      { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }

.fcc-doc-info a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    font-weight: 500;
    line-height: 1.4;
    transition: color 0.15s;
    word-break: break-word;
}
.fcc-doc-info a:hover .fcc-doc-name { text-decoration: underline; text-underline-offset: 2px; }

.fcc-ext-link { display: inline-flex; align-items: center; flex-shrink: 0; opacity: 0.4; transition: opacity 0.15s; }
.fcc-doc-info a:hover .fcc-ext-link { opacity: 0.7; }
.fcc-doc-desc { font-size: 0.85em; color: #8a9ab0; line-height: 1.4; }

.fcc-empty-msg { padding: 14px 16px; color: #9aa5b4; font-size: 0.9em; font-style: italic; margin: 0; }

/* ---- Placeholder docs ---- */
.fcc-doc-row--placeholder { opacity: 0.72; cursor: default; }
.fcc-doc-row--placeholder:hover { transform: none; }
.fcc-doc-name--placeholder { font-weight: 500; }
.fcc-placeholder-badge {
    display: inline-block;
    font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
    padding: 2px 7px; border-radius: 20px;
    background: #f0f4f8; color: #8a9ab0; border: 1px solid #d8e4f0;
    margin-left: 6px; vertical-align: middle;
}

/* ---- Disclaimers ---- */
.fcc-disclaimer {
    font-size: 0.82em; color: #8a9ab0;
    margin: 10px 4px 4px; line-height: 1.5; font-style: italic;
}
.fcc-disclaimer a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.fcc-disclaimer a:hover { color: #4a7cb5; }
.fcc-disclaimer--global {
    margin-top: 18px; padding-top: 14px;
    border-top: 1px solid rgba(0,0,0,0.07);
    font-style: normal; font-size: 0.83em;
}

/* Responsive */
@media (max-width: 640px) {
    .fcc-portal-inner { padding: 16px !important; border-radius: 8px !important; }
    .fcc-section-btn  { padding-left: 14px !important; padding-right: 14px !important; }
    .fcc-sub-btn      { padding-left: 12px !important; padding-right: 12px !important; }
    .fcc-doc-row      { padding-left: 12px !important; padding-right: 12px !important; }
    .fcc-count-pill   { display: none; }
}

/* Print */
@media print {
    .fcc-section-body[hidden],
    .fcc-sub-body[hidden]     { display: block !important; }
    .fcc-chevron, .fcc-count-pill, .fcc-ext-link { display: none !important; }
    .fcc-doc-row { break-inside: avoid; }
}
