/* Screen presentation only. Native print/PDF/DOCX layouts and member UI are untouched. */
@media screen {
    body.edga-document-page #main {
        --theme-content-vertical-spacing: 40px;
        color: var(--edga-public-ink);
    }
    body.edga-document-page #main article.type-page { width: calc(100% - 48px); max-width: var(--edga-public-layout-width); margin-inline: auto; }
    body.edga-document-page #main .hero-section { max-width: var(--edga-public-reading-width); margin: 0 auto 28px; padding-bottom: 24px; border-bottom: 1px solid var(--edga-public-line); }
    body.edga-document-page #main .page-title { color: var(--edga-public-ink); font-size: clamp(30px, 3.1vw, 44px); line-height: 1.15; letter-spacing: -.025em; text-wrap: balance; overflow-wrap: anywhere; }
    body.edga-document-page #main .entry-content { --theme-normal-container-max-width: 1120px; --theme-container-width: 100%; }
    body.edga-document-page #main .edga-document-container {
        --edga-brand-green: var(--edga-public-red);
        --edga-brand-darkgreen: var(--edga-public-ink);
        --edga-brand-muted: var(--edga-public-muted);
        --edga-brand-white: var(--edga-public-white);
        --edga-brand-text: var(--edga-public-ink);
        --edga-brand-navy: var(--edga-public-ink);
        --edga-brand-border: var(--edga-public-line);
        --edga-border-light: var(--edga-public-line);
        --edga-brand-surface-subtle: var(--edga-public-surface);
        margin: 0 auto 32px;
        overflow-wrap: anywhere;
        font-size: 18px;
    }
    body.edga-document-page #main .edga-doc-breadcrumb { font-size: 14px; margin-bottom: 24px; }
    body.edga-document-page #main .edga-doc-screen-header { padding: 24px; background: var(--edga-public-surface); border: 1px solid var(--edga-public-line); border-radius: var(--edga-panel-radius, 8px); margin-bottom: 40px; }
    body.edga-document-page #main :where(.edga-doc-pill-badge,.edga-doc-status-pill) { font-size: 13px; line-height: 1.5; letter-spacing: 0; text-transform: none; padding: 4px 8px; border-radius: 4px; }
    body.edga-document-page #main .edga-doc-pill-badge { background: var(--edga-public-ink); }
    body.edga-document-page #main .edga-doc-status-pill.edga-status-adopted { background: var(--edga-success-bg); color: var(--edga-success-ink); border-color: var(--edga-success-ink); }
    body.edga-document-page #main .edga-doc-status-pill.edga-status-draft { background: var(--edga-warning-bg); color: var(--edga-warning-ink); border-color: var(--edga-warning-ink); }
    body.edga-document-page #main .edga-doc-subheading { font-size: 16px; line-height: 1.6; margin-bottom: 24px; }
    body.edga-document-page #main .edga-doc-meta-chips { grid-template-columns: repeat(auto-fit,minmax(min(180px,100%),1fr)); gap: 16px; margin-bottom: 24px; }
    body.edga-document-page #main .edga-doc-chip { padding: 0; background: transparent; border: 0; border-radius: 0; }
    body.edga-document-page #main .edga-chip-label { font-size: 13px; line-height: 1.5; font-weight: 500; text-transform: none; letter-spacing: 0; margin-bottom: 4px; }
    body.edga-document-page #main .edga-chip-value { font-size: 16px; line-height: 1.5; font-weight: 600; }
    body.edga-document-page #main .edga-btn { font-size: 16px; font-weight: 600; padding: 12px 18px; border-width: 1px; text-transform: none; letter-spacing: 0; touch-action: manipulation; }
    body.edga-document-page #main :where(.edga-btn-secondary,.edga-btn-docx) { background: var(--edga-public-ink); border-color: var(--edga-public-ink); }
    body.edga-document-page #main :where(.edga-btn-outline,.edga-btn-print) { border-color: var(--edga-control-border, #7a8982); }
    body.edga-document-page #main .edga-doc-customiser { padding: 24px; margin-top: 24px; border-color: var(--edga-public-line); }
    body.edga-document-page #main .edga-customiser-header h3 { font-size: 22px; line-height: 1.3; margin-bottom: 8px; }
    body.edga-document-page #main .edga-customiser-header p { font-size: 16px; line-height: 1.6; margin-bottom: 24px; }
    body.edga-document-page #main .edga-form-group label { font-size: 15px; line-height: 1.5; }
    body.edga-document-page #main .edga-customiser-actions { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--edga-public-line); }
    body.edga-document-page #main .edga-document-body { max-width: var(--edga-public-reading-width); margin-inline: auto; font-size: 18px; line-height: 1.75; }
    body.edga-document-page #main .edga-document-body p { font-size: 18px; line-height: 1.75; margin-bottom: 24px; }
    body.edga-document-page #main .edga-document-body :where(h1,h2,h3,h4,h5,h6) { color: var(--edga-public-ink); letter-spacing: -.015em; text-wrap: balance; }
    body.edga-document-page #main .edga-document-body h2 { font-size: clamp(25px,2.3vw,30px); margin-block: 48px 16px; line-height: 1.3; }
    body.edga-document-page #main .edga-document-body h2:first-child { margin-top: 0; }
    body.edga-document-page #main .edga-document-body h3 { font-size: 22px; line-height: 1.3; margin-block: 32px 12px; }
    body.edga-document-page #main .edga-document-body h4 { font-size: 20px; margin-block: 28px 12px; }
    body.edga-document-page #main .edga-document-body :where(ul,ol) { padding-inline-start: 1.4em; margin-bottom: 24px; }
    body.edga-document-page #main .edga-document-body li { line-height: 1.7; margin-bottom: 8px; }
    body.edga-document-page #main .edga-document-body :where(.wp-block-quote,.edga-callout) { padding: 24px; margin-block: 32px; border: 1px solid var(--edga-public-line); border-radius: 8px; background: var(--edga-public-surface); }
    body.edga-document-page #main .edga-document-body :where(.wp-block-quote,.edga-callout) p:last-child { margin-bottom: 0; }
    body.edga-document-page #main .edga-document-body .wp-block-table table { min-width: 560px; font-size: 16px; font-variant-numeric: tabular-nums; }
    body.edga-document-page #main .edga-document-body .wp-block-table th { text-transform: none; letter-spacing: 0; font-size: 16px; border-bottom: 1px solid var(--edga-public-line); }
    body.edga-document-page #main .edga-document-body .wp-block-table td { font-size: 16px; }
    body.edga-document-page #main .edga-document-body .wp-block-table tr:nth-child(even) td { background: var(--edga-public-surface); }
    body.edga-document-page #main .edga-document-footer { max-width: var(--edga-public-reading-width); margin: 32px auto 0; padding: 24px 0; background: transparent; }
    body.edga-document-page #main .edga-footer-legal p { font-size: 14px; line-height: 1.6; }
    body.edga-document-page #main .edga-doc-disclaimer { font-size: 14px !important; }
    body.edga-document-page #main .ct-share-box { max-width: var(--edga-public-reading-width); margin: 32px auto; }
    body.edga-document-page #main .ct-share-box a { min-width: 44px; min-height: 44px; }
    body.edga-document-page #main :where(a,input,button,summary):focus-visible { outline: 2px solid var(--edga-public-red); outline-offset: 4px; }
    body.edga-document-page #main .edga-document-body a { color: var(--edga-public-ink); text-decoration: underline; text-underline-offset: .2em; }
    body.edga-document-page #main ::selection { background: var(--edga-public-ink); color: var(--edga-public-white); }
    body.edga-document-page #main :where(.edga-table-wrapper,.wp-block-table) { scrollbar-color: var(--edga-public-muted) var(--edga-public-surface); }
    /* Public hubs keep wide registers, with the ordinary reading treatment around them. */
    body.edga-governance-page.page-id-2163 #main .entry-content { --theme-normal-container-max-width: 1040px; }
    body.edga-governance-page.page-id-2163 #main .edga-document-container { max-width: 1040px; width: 100%; margin-inline: auto; }
    body.edga-governance-page.page-id-2163 #main .edga-document-body > :where(p, ul, ol, h2, h3, .edga-doc-bottom-nav) { max-width: var(--edga-public-reading-width, 760px); margin-inline: auto; }
    body.edga-governance-page #main .entry-content :is(> .wp-block-table, .wp-block-table.edga-register-table) { max-width: 1040px; width: 100%; margin-block: 32px; margin-inline: auto; border: 1px solid var(--edga-public-line); border-radius: 8px; background: #ffffff; box-shadow: 0 1px 4px rgba(31, 58, 77, 0.05); overflow-x: auto; overscroll-behavior-x: contain; }
    body.edga-governance-page #main .entry-content .wp-block-table table { min-width: 850px; border-collapse: collapse; margin: 0; }
    body.edga-governance-page.page-id-2163 #main .entry-content .wp-block-table table,
    body.edga-governance-page #main .entry-content .wp-block-table.edga-register-table table { min-width: 0; width: 100%; }
    body.edga-governance-page #main .entry-content .wp-block-table :where(th,td) { border: 0; border-bottom: 1px solid var(--edga-public-line); padding: 16px; vertical-align: top; }
    body.edga-governance-page #main .entry-content .wp-block-table th { background: var(--edga-public-ink); color: var(--edga-public-white); text-align: left; font-size: 15px; }
    body.edga-governance-page #main .entry-content .wp-block-table tbody tr:nth-child(even) { background: var(--edga-public-surface); }
    body.edga-governance-page #main .entry-content .wp-block-table a { display: inline-block; padding-block: 8px; }
    body.edga-governance-page #main .entry-content .wp-block-table td:nth-child(3) { white-space: nowrap; }
    body.edga-governance-page.page-id-2163 #main .entry-content .wp-block-table td:nth-child(3),
    body.edga-governance-page #main .entry-content .wp-block-table.edga-register-table td:nth-child(3) { white-space: normal; }
    body.edga-governance-page.page-id-2163 #main .entry-content .wp-block-table :where(th,td):first-child,
    body.edga-governance-page #main .entry-content .wp-block-table.edga-register-table :where(th,td):first-child { white-space: nowrap; font-weight: 600; width: 18%; min-width: 160px; }
    body.edga-governance-page.page-id-2163 #main .entry-content .wp-block-table :where(th,td):nth-child(2),
    body.edga-governance-page #main .entry-content .wp-block-table.edga-register-table :where(th,td):nth-child(2) { white-space: nowrap; width: 20%; min-width: 170px; }
    body.edga-governance-page.page-id-2163 #main .entry-content .wp-block-table :where(th,td):nth-child(3),
    body.edga-governance-page #main .entry-content .wp-block-table.edga-register-table :where(th,td):nth-child(3) { width: 31%; }
    body.edga-governance-page.page-id-2163 #main .entry-content .wp-block-table :where(th,td):nth-child(4),
    body.edga-governance-page #main .entry-content .wp-block-table.edga-register-table :where(th,td):nth-child(4) { width: 31%; }
    body.edga-governance-page #main .wp-block-table:focus-visible { outline: 2px solid var(--edga-public-red); outline-offset: 4px; }
    /* Register of Declared Interests: Responsive Cards on Tablet & Mobile (<= 820px) */
    @media (max-width: 820px) {
        body.edga-governance-page #main .entry-content .wp-block-table.edga-register-table { border: none; background: transparent; box-shadow: none; overflow-x: visible; margin-block: 24px; }
        body.edga-governance-page #main .entry-content .wp-block-table.edga-register-table colgroup,
        body.edga-governance-page #main .entry-content .wp-block-table.edga-register-table thead { display: none; }
        body.edga-governance-page #main .entry-content .wp-block-table.edga-register-table table { display: block; width: 100%; min-width: 0; border: none; }
        body.edga-governance-page #main .entry-content .wp-block-table.edga-register-table tbody { display: flex; flex-direction: column; gap: 16px; }
        body.edga-governance-page #main .entry-content .wp-block-table.edga-register-table tr { display: block; background: #ffffff; border: 1px solid var(--edga-public-line); border-radius: 8px; padding: 20px; box-shadow: 0 1px 3px rgba(31, 58, 77, 0.05); }
        body.edga-governance-page #main .entry-content .wp-block-table.edga-register-table tbody tr:nth-child(even) { background: #ffffff; }
        body.edga-governance-page #main .entry-content .wp-block-table.edga-register-table td { display: block; width: 100% !important; min-width: 0 !important; padding: 0 0 14px 0 !important; border: 0 !important; white-space: normal !important; font-size: 15px; line-height: 1.6; color: var(--edga-public-ink); }
        body.edga-governance-page #main .entry-content .wp-block-table.edga-register-table td:last-child { padding-bottom: 0 !important; }
        body.edga-governance-page #main .entry-content .wp-block-table.edga-register-table td:first-child { font-size: 19px; font-weight: 700; color: var(--edga-public-ink); padding-bottom: 4px !important; }
        body.edga-governance-page #main .entry-content .wp-block-table.edga-register-table td:nth-child(2) { font-size: 13.5px; font-weight: 600; color: var(--edga-public-muted); text-transform: uppercase; letter-spacing: 0.04em; padding-bottom: 14px !important; border-bottom: 1px solid var(--edga-public-line) !important; margin-bottom: 14px; }
        body.edga-governance-page #main .entry-content .wp-block-table.edga-register-table td:nth-child(3)::before { content: "Declared interests"; display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--edga-public-muted); margin-bottom: 4px; }
        body.edga-governance-page #main .entry-content .wp-block-table.edga-register-table td:nth-child(4)::before { content: "How EDGA manages this"; display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--edga-public-muted); margin-bottom: 4px; }
    }
    body.edga-governance-page #main .edga-mcp-notice { max-width: var(--edga-public-reading-width); margin: 24px auto; border: 1px solid var(--edga-public-line); border-radius: 8px; box-shadow: none; background: var(--edga-public-surface); }
    body.edga-governance-page #main .edga-mcp-notice__title { color: var(--edga-public-ink); }
    body.edga-document-page #main .edga-archive-history { margin-top: 48px; }
    body.edga-document-page #main .edga-archive-history summary { min-height: 44px; padding: 12px 16px; color: var(--edga-public-ink); background: var(--edga-public-surface); border: 1px solid var(--edga-public-line); border-radius: 4px; }
    /* Public contact page: suppress redundant hero featured image. */
    body.edga-contact-page #main .ct-featured-image { display: none; }
    @media (max-width: 689px) {
        body.edga-document-page #main { --theme-content-vertical-spacing: 28px; }
        body.edga-document-page #main article.type-page { width: calc(100% - 40px); }
        body.edga-document-page #main :where(.edga-doc-screen-header,.edga-doc-customiser) { padding: 20px; }
        body.edga-document-page #main .edga-doc-meta-chips { grid-template-columns: minmax(0,1fr); }
        body.edga-document-page #main .edga-document-body h2 { margin-top: 36px; }
        body.edga-document-page #main .edga-document-body { line-height: 1.7; }
    }
}
