/* Redesign-native theming for ported (Bootstrap) detail content.
   Scoped to .detail-content so the redesign chrome/pages are untouched.
   Reuses the redesign's CSS variables from styles.css. */

/* Ported detail pages sit right under the nav — trim the tall hero-style section padding. */
.detail-section { padding-block: 28px; overflow-x: clip; }
.detail-content { padding-block: 0; min-width: 0; }
.detail-content img { max-width: 100%; height: auto; }
.detail-content h1, .detail-content h2, .detail-content h3, .detail-content h4, .detail-content h5 {
    font-family: "Poppins", "Noto Sans Devanagari", system-ui, sans-serif;
    color: var(--authority-900);
    font-weight: 500;
    margin-top: 1rem;
}
.detail-content > h1 {
    margin: 0 0 .45rem;
    font-size: 2rem;
    line-height: 1.15;
}
.detail-content > h1 + .text-muted {
    max-width: 72ch;
    margin-bottom: 1.35rem;
    line-height: 1.65;
}
.detail-content h2 { font-size: 1.9rem; margin-bottom: .35rem; }
.detail-content h5 { font-size: 1.15rem; }
.detail-content .text-muted { color: var(--muted) !important; }
.detail-content a { color: var(--authority-700); text-decoration: none; }
.detail-content a:hover { color: var(--authority); text-decoration: underline; }

/* breadcrumb from legacy static pages */
.detail-content .breadcrumb, .detail-content .breadcrumb ul {
    list-style: none; display: flex; flex-wrap: wrap; gap: .4rem;
    padding: 0; margin: .25rem 0 1rem; font-size: .9rem; color: var(--muted);
}
.detail-content .inner_section { margin-bottom: 1.5rem; }
.detail-content .accordion { display: grid; gap: 1rem; }
.detail-content .accordion > h2 {
    font-size: 1.35rem;
    line-height: 1.3;
    margin: 1.65rem 0 .15rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--line);
}
.detail-content .accordion > h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}
.detail-content .pane { min-width: 0; }

/* Tables */
.detail-content .table-responsive {
    border-radius: var(--radius);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.detail-content .table {
    --bs-table-bg: var(--paper);
    border-color: var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 34px rgba(6, 26, 51, .07);
    margin-bottom: 0;
}
.detail-content .table > :not(caption) > * > * { border-color: var(--line); }
.detail-content .table thead th,
.detail-content .table .table-light th {
    background: var(--authority-900);
    color: #fff;
    font-family: "Poppins", "Noto Sans Devanagari", system-ui, sans-serif;
    font-weight: 500;
    letter-spacing: .01em;
    border-color: var(--authority-900);
    vertical-align: middle;
}
.detail-content .table-striped > tbody > tr:nth-of-type(odd) > * { background: var(--mist); }
.detail-content .table-hover > tbody > tr:hover > * { background: var(--sky); }
.detail-content .table td, .detail-content .table th { padding: .7rem .85rem; overflow-wrap: anywhere; }

/* Legacy contact/data tables that were copied from WebForms pages. */
.detail-content center {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    text-align: initial;
    -webkit-overflow-scrolling: touch;
}
.detail-content table.contacts {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--paper);
    box-shadow: 0 10px 34px rgba(6, 26, 51, .07);
}
.detail-content .contactDept,
.detail-content .contacts th {
    background: var(--authority-900);
    color: #fff;
    font-weight: 500;
    vertical-align: middle;
}
.detail-content .contact,
.detail-content .contactDept,
.detail-content .contacts td,
.detail-content .contacts th {
    padding: .75rem .85rem;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow-wrap: anywhere;
}
.detail-content .contacts tr:last-child td { border-bottom: 0; }
.detail-content .contacts td:last-child,
.detail-content .contacts th:last-child { border-right: 0; }
.detail-content .contacts a { font-weight: 500; }

.detail-content .table_area1 {
    max-width: 100%;
    overflow-x: auto;
    float: none;
    -webkit-overflow-scrolling: touch;
}
.detail-content .table_area1 table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--paper);
}
.detail-content .table_area1 th {
    background: var(--authority-900);
    color: #fff;
}
.detail-content .table_area1 th,
.detail-content .table_area1 td {
    padding: .75rem .85rem;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    vertical-align: top;
    overflow-wrap: anywhere;
}

/* Buttons */
.detail-content .btn-primary { background: var(--authority); border-color: var(--authority); }
.detail-content .btn-primary:hover, .detail-content .btn-primary:focus { background: var(--authority-700); border-color: var(--authority-700); }
.detail-content .btn-outline-primary { color: var(--authority); border-color: var(--authority); }
.detail-content .btn-outline-primary:hover { background: var(--authority); border-color: var(--authority); color: #fff; }

/* Badges */
.detail-content .badge.bg-secondary { background: var(--authority-900) !important; }
.detail-content .badge.bg-danger { background: #b3261e !important; }
.detail-content .badge.bg-success { background: var(--green) !important; }

/* Alerts */
.detail-content .alert { border-radius: var(--radius); border: 1px solid var(--line); }
.detail-content .alert-info { background: var(--sky); color: var(--authority-900); border-color: #cfe0f3; }
.detail-content .alert-secondary { background: var(--mist); color: var(--ink-soft); }
.detail-content .alert-success { background: #e7f4f0; color: var(--green); border-color: #bfe3d9; }
.detail-content .alert-danger { background: #fbeceb; color: #8f1f18; border-color: #f2c9c6; }

/* Forms */
.detail-content .form-label { font-weight: 500; color: var(--ink); }
.detail-content .form-control, .detail-content .form-select {
    border-color: var(--line); border-radius: 10px;
}
.detail-content .form-control:focus, .detail-content .form-select:focus {
    border-color: var(--authority-700);
    box-shadow: 0 0 0 .2rem rgba(14, 79, 151, .15);
}

/* list-group + nav-pills */
.detail-content .list-group-item { border-color: var(--line); }
.detail-content .list-group-item.active,
.detail-content .list-group-item-action.active { background: var(--authority); border-color: var(--authority); }
.detail-content .nav-pills .nav-link { color: var(--authority); border-radius: 999px; }
.detail-content .nav-pills .nav-link:hover { background: var(--sky); }
.detail-content .nav-pills .nav-link.active { background: var(--authority); color: #fff; }

/* address block (Contact) */
.detail-content address { line-height: 1.7; }

/* ---------------------------------------------------------------------------
   Clean layout components for ported legacy detail pages (EOU / SEZ / etc.)
   Replaces the old WebForms scaffold (inner_section / cnt / circular-list …).
--------------------------------------------------------------------------- */
.detail-content .page-crumb {
    display: flex; flex-wrap: wrap; gap: .45rem;
    margin: 0 0 1.1rem; font-size: .88rem; color: var(--muted);
}
.detail-content .page-crumb a { color: var(--authority-700); font-weight: 500; }

.detail-content .page-head {
    margin: 0 0 1.9rem; padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--line);
}
.detail-content .page-head .eyebrow {
    display: block; margin-bottom: .5rem;
    color: var(--authority-700);
    font: 500 .72rem/1 "Poppins", "Noto Sans Devanagari", system-ui, sans-serif;
    letter-spacing: .12em; text-transform: uppercase;
}
.detail-content .page-head h1 { margin: 0; font-size: 2rem; }
.detail-content .page-head p.lead {
    margin: .65rem 0 0; max-width: 72ch; color: var(--muted); line-height: 1.6;
}

.detail-content .doc-block { margin-bottom: 2.25rem; }
.detail-content .doc-block > h2 { font-size: 1.35rem; margin: 0 0 1rem; }
.detail-content .doc-block > p.block-intro { margin: 0 0 1rem; max-width: 78ch; color: var(--ink-soft); line-height: 1.7; }

.detail-content .doc-list {
    display: grid; gap: .65rem;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 1fr;
    align-items: stretch;
    padding: 0; margin: 0; list-style: none;
}
.detail-content .doc-list > li {
    display: flex;
    min-width: 0;
}
.detail-content .doc-list a {
    display: flex; align-items: center; gap: .7rem;
    width: 100%;
    min-height: 76px;
    padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px;
    background: var(--paper); box-shadow: var(--shadow); font-weight: 400;
    word-break: break-word;
    transition: transform .15s ease, border-color .15s ease;
}
.detail-content .doc-list a:hover {
    transform: translateY(-2px); border-color: var(--authority-700); text-decoration: none;
}
.detail-content .doc-list a::after {
    content: "\2192";
    flex: 0 0 auto;
    align-self: center;
    margin-left: auto;
    color: var(--authority-700);
}

.detail-content .info-cards {
    display: grid; gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    padding: 0; margin: 0; list-style: none;
}
.detail-content .info-cards .info-card2 {
    border: 1px solid var(--line); border-radius: 12px; background: var(--paper);
    box-shadow: var(--shadow); padding: 1.05rem 1.15rem;
}
.detail-content .info-card2 h3 { margin: 0 0 .55rem; font-size: 1rem; color: var(--authority); }
.detail-content .info-card2 p { margin: .15rem 0; font-size: .92rem; line-height: 1.55; }
.detail-content .info-card2 a { word-break: break-word; }

.detail-content .sez-data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    align-items: stretch;
}
.detail-content .sez-data-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.05rem 1.15rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .86);
    box-shadow: var(--shadow);
}
.detail-content .sez-data-card-head {
    margin-bottom: .9rem;
}
.detail-content .sez-data-card-head span {
    display: block;
    margin-bottom: .3rem;
    color: var(--green);
    font: 500 .78rem/1.2 "Poppins", "Noto Sans Devanagari", system-ui, sans-serif;
}
.detail-content .sez-data-card h3 {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.3;
}
.detail-content .sez-data-links {
    display: grid;
    gap: .55rem;
    margin: .95rem 0 0;
    padding: 0;
    list-style: none;
}
.detail-content .sez-data-links li {
    min-width: 0;
}
.detail-content .sez-data-links a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: .65rem;
    min-height: 54px;
    padding: .72rem .85rem;
    border: 1px solid #d8e3ee;
    border-radius: 10px;
    background: var(--mist);
    color: var(--authority-700);
    font-weight: 400;
    line-height: 1.35;
    transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.detail-content .sez-data-links a:hover {
    background: var(--paper);
    border-color: var(--authority-700);
    text-decoration: none;
    transform: translateY(-1px);
}
.detail-content .sez-data-links a::after {
    content: "\2192";
    color: var(--authority-700);
    font-weight: 500;
}
.detail-content .sez-data-links small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 24px;
    padding: .15rem .42rem;
    border-radius: 999px;
    background: #e6f4ee;
    color: #17633d;
    font: 500 .72rem/1 "Poppins", "Noto Sans Devanagari", system-ui, sans-serif;
}

.detail-content .list-services-docs {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    grid-auto-rows: 1fr;
}
.detail-content .list-services-docs a {
    min-height: 100%;
}

.detail-content .prose { max-width: 80ch; }
.detail-content .prose p { margin: .6rem 0; line-height: 1.75; color: var(--ink-soft); }

.detail-content .eou-apply-card {
    max-width: 980px;
    padding: 1.25rem 1.35rem;
    border: 1px solid #cfe0f3;
    border-top: 4px solid var(--authority-700);
    border-radius: 12px;
    background: linear-gradient(180deg, #fff, rgba(241, 247, 252, .88));
    box-shadow: 0 16px 44px rgba(6, 26, 51, .1);
}
.detail-content .eou-apply-card .card-kicker {
    display: block;
    margin-bottom: .45rem;
    color: var(--green);
    font: 500 .72rem/1 "Poppins", "Noto Sans Devanagari", system-ui, sans-serif;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.detail-content .eou-apply-card h2 {
    margin: 0 0 .85rem;
    font-size: 1.35rem;
    line-height: 1.3;
}
.detail-content .eou-apply-prose {
    max-width: 90ch;
}
.detail-content .eou-apply-prose p:first-child {
    margin-top: 0;
}
.detail-content .eou-apply-prose p:last-child {
    margin-bottom: 0;
}

.detail-content .setup-doc-links {
    grid-template-columns: repeat(auto-fit, minmax(300px, 398px));
}
.detail-content .setup-prose {
    max-width: 100%;
    padding: 1.15rem 1.25rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 14px 42px rgba(6, 26, 51, .08);
}
.detail-content .setup-prose > p:first-child { margin-top: 0; }
.detail-content .setup-prose p { max-width: 90ch; }
.detail-content .setup-prose b {
    color: var(--authority-900);
    font-weight: 500;
}
.detail-content .setup-prose > p:has(> b),
.detail-content .setup-prose > b {
    display: block;
    margin: 1.05rem 0 .45rem;
    color: var(--authority);
    font-family: "Poppins", "Noto Sans Devanagari", system-ui, sans-serif;
    font-size: 1rem;
}
.detail-content .setup-prose ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .45rem 1.35rem;
    padding: 0;
    margin: .8rem 0 1.15rem;
    list-style: none;
}
.detail-content .setup-prose li {
    position: relative;
    padding-left: 1.05rem;
    color: var(--ink-soft);
    line-height: 1.55;
    break-inside: avoid;
}
.detail-content .setup-prose li::before {
    position: absolute;
    top: .67em;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    content: "";
}
.detail-content .setup-prose br { display: none; }
.detail-content .setup-summary {
    max-width: 100%;
    padding: 1rem 1.15rem;
    border: 1px solid #cfe0f3;
    border-left: 4px solid var(--authority-700);
    border-radius: 12px;
    background: var(--sky);
}
.detail-content .setup-summary p:first-child { margin-top: 0; }
.detail-content .setup-summary p:last-child { margin-bottom: 0; }
.detail-content .jurisdiction-cards {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    align-items: stretch;
}
.detail-content .jurisdiction-cards .info-card2 {
    display: flex;
    flex-direction: column;
    gap: .28rem;
    min-width: 0;
}
.detail-content .jurisdiction-cards .info-card2 h3 {
    margin-bottom: .35rem;
    line-height: 1.35;
}
.detail-content .jurisdiction-cards .info-card2 p { margin: 0; }
.detail-content .jurisdiction-cards .jurisdiction {
    margin-top: auto;
    padding-top: .72rem;
    border-top: 1px solid var(--line);
    color: var(--authority-900);
}

.detail-content .checklist { max-width: 82ch; padding-left: 0; }
.detail-content .checklist > li {
    margin: .8rem 0 .3rem; list-style: none;
    font-weight: 500; color: var(--authority-900);
}
.detail-content .checklist > li > ul { margin: .35rem 0 .6rem 1.25rem; }
.detail-content .checklist > li > ul > li { margin: .2rem 0; font-weight: 400; color: var(--ink); }

/* ---------------------------------------------------------------------------
   Native theming for the raw legacy WebForms scaffold still used by ported
   pages (.title / .unit_row / .one-third / .circular-list). Scoped to
   .detail-content, so redesign pages are untouched.
--------------------------------------------------------------------------- */
.detail-content .cnt { max-width: 100%; }

/* Page heading block (legacy .title) */
.detail-content .title { margin: 0 0 1.4rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.detail-content .title h1, .detail-content .title h2 { margin: 0; font-size: 2rem; }
.detail-content .title .title-kicker {
    margin: .55rem 0 0;
    color: var(--muted);
    line-height: 1.6;
}

/* Section heading (legacy .unit_row) */
.detail-content .unit_row { margin-bottom: 2rem; }
.detail-content .unit_row > h2 { font-size: 1.35rem; margin: 0 0 1rem; }

/* Legacy document lists -> redesign card links */
.detail-content [class^="one-third"] ul,
.detail-content .circular-list ul {
    display: grid; gap: .65rem;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 1fr;
    align-items: stretch;
    padding: 0; margin: 0; list-style: none;
}
.detail-content [class^="one-third"] ul > li,
.detail-content .circular-list ul > li {
    display: flex;
    min-width: 0;
    margin: 0;
}
.detail-content [class^="one-third"] ul > li > a,
.detail-content .circular-list ul > li > a {
    display: flex; align-items: center; gap: .7rem;
    width: 100%;
    min-height: 76px;
    padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px;
    background: var(--paper); box-shadow: var(--shadow); font-weight: 400;
    word-break: break-word; transition: transform .15s ease, border-color .15s ease;
}
.detail-content [class^="one-third"] ul > li > a:hover,
.detail-content .circular-list ul > li > a:hover {
    transform: translateY(-2px); border-color: var(--authority-700); text-decoration: none;
}
.detail-content [class^="one-third"] ul > li > a::after,
.detail-content .circular-list ul > li > a::after {
    content: "\2193";
    flex: 0 0 auto;
    align-self: center;
    margin-left: auto;
    color: var(--authority-700);
}
/* drop empty legacy list rows that carry no link */
.detail-content [class^="one-third"] ul > li:empty,
.detail-content .circular-list ul > li:empty { display: none; }

/* Link card with an optional sub-note (e.g. GST page: "see Question No. 9,33…") */
.detail-content .circular-list .doc-label { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.detail-content .circular-list .doc-note {
    font-size: .8rem; font-weight: 400; color: var(--muted); line-height: 1.4;
}

/* Org chart image page (Organization_str) */
.detail-content .org-chart { text-align: center; }
.detail-content .org-chart img {
    max-width: 100%; height: auto;
    border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: .5rem;
}

/* Collapsible reference section (EOU setup / basic-requirements checklist) */
.detail-content .setup-details {
    border: 1px solid var(--line); border-radius: 12px;
    background: var(--paper); box-shadow: var(--shadow); overflow: hidden;
}
.detail-content .setup-details > summary {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .85rem 1.1rem; cursor: pointer; list-style: none; background: var(--authority); color: #fff;
}
.detail-content .setup-details > summary::-webkit-details-marker { display: none; }
.detail-content .setup-details > summary h2 { margin: 0; font-size: 1.1rem; color: #fff; }
.detail-content .setup-details > summary::after { content: "+"; flex: 0 0 auto; font-size: 1.2rem; line-height: 1; }
.detail-content .setup-details[open] > summary::after { content: "\2212"; }
.detail-content .setup-details > summary:hover { background: var(--authority-900); }
.detail-content .setup-details .setup-lead { font-weight: 600; margin: 0 0 .6rem; }

/* ---------------------------------------------------------------------------
   Description variant (.circular-list--desc): each row is a description line
   plus its circular citation link. The whole <li> is the card; the citation
   sits in a footer strip with the download arrow. Used by RBI.cshtml.
--------------------------------------------------------------------------- */
.detail-content .circular-list--desc ul > li {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    box-shadow: var(--shadow);
    transition: transform .15s ease, border-color .15s ease;
}
.detail-content .circular-list--desc ul > li:hover {
    transform: translateY(-2px);
    border-color: var(--authority-700);
}
.detail-content .circular-list--desc .doc-desc {
    flex: 1 1 auto;
    color: var(--ink);
    line-height: 1.6;
}
/* Reset the shared anchor-card style: here the anchor is a footer link, not a box */
.detail-content .circular-list--desc ul > li > a {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    width: 100%;
    min-height: 0;
    margin-top: auto;
    padding: .7rem 0 0;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: var(--authority-700);
    font-weight: 500;
}
.detail-content .circular-list--desc ul > li > a:hover {
    transform: none;
    color: var(--authority-900);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.detail-content .circular-list--desc ul > li > a::after {
    align-self: baseline;
}

/* Sitemap page: nested navigation tree (not card list) */
.detail-content .sitemap-tree ul { list-style: none; padding-left: 0; margin: 0; display: block; }
.detail-content .sitemap-tree > ul > li { margin: .1rem 0; }
.detail-content .sitemap-tree > ul > li > a { font-weight: 500; color: var(--authority-900); }
.detail-content .sitemap-tree ol { list-style: none; padding-left: 1.25rem; margin: .1rem 0; }
.detail-content .sitemap-tree ol a { color: var(--authority-700); font-weight: 500; }
.detail-content .sitemap-tree [id] { margin: .15rem 0 .3rem !important; width: auto !important; }

/* Minutes of Meeting / Approval Committee: mirrors the legacy MOM accordion table. */
.detail-content .mom-accordion {
    display: grid;
    gap: .85rem;
}
.detail-content .mom-section {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: 0 12px 34px rgba(6, 26, 51, .08);
    overflow: hidden;
}
.detail-content .mom-section summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 46px;
    padding: .75rem 1rem;
    color: #fff;
    background: var(--authority);
    cursor: pointer;
    font-family: "Poppins", "Noto Sans Devanagari", system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.35;
    list-style: none;
}
.detail-content .mom-section summary::-webkit-details-marker {
    display: none;
}
.detail-content .mom-section summary::after {
    content: "+";
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 50%;
    font-size: 1rem;
    line-height: 1;
}
.detail-content .mom-section[open] summary::after {
    content: "\2212";
}
.detail-content .mom-section summary:hover,
.detail-content .mom-section summary:focus-visible {
    background: var(--authority-900);
}
.detail-content .mom-pane {
    padding: .95rem;
    background: var(--mist);
}
.detail-content .mom-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    background: #fff;
    -webkit-overflow-scrolling: touch;
}
.detail-content .mom-table {
    width: 100%;
    min-width: 780px;
    border-collapse: collapse;
    color: #111;
    font-size: .94rem;
}
.detail-content .mom-table th {
    padding: .7rem .75rem;
    color: #fff;
    background: var(--authority);
    border: 1px solid var(--line);
    font-weight: 500;
    text-align: left;
    vertical-align: middle;
}
.detail-content .mom-table td {
    padding: .68rem .75rem;
    border: 1px solid var(--line);
    background: var(--mist);
    line-height: 1.55;
    vertical-align: top;
}
.detail-content .mom-table tbody tr:nth-child(even) td {
    background: #fff;
}
.detail-content .mom-table a {
    color: #064f91;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.detail-content .mom-table a:hover {
    color: var(--authority);
}
.detail-content .mom-col-serial,
.detail-content .mom-serial {
    width: 6rem;
    text-align: center;
}
.detail-content .mom-col-date,
.detail-content .mom-date {
    width: 11rem;
    text-align: center;
    white-space: nowrap;
}
.detail-content .mom-new {
    display: inline-flex;
    margin-left: .35rem;
    padding: .1rem .4rem;
    border-radius: 999px;
    color: #fff;
    background: #c0392b;
    font-size: .72rem;
    font-weight: 500;
    vertical-align: text-top;
}
.detail-content .mom-empty {
    color: #6b7280;
}

/* Embedded media (maps, videos) fluid on every viewport */
.detail-content iframe,
.detail-content embed,
.detail-content object,
.detail-content video { max-width: 100%; }
.detail-content .pdf-frame {
    width: 100%;
    min-height: 720px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--mist);
}

/* Responsive: let any ported/data table scroll instead of overflowing the page */
@media (max-width: 720px) {
    .detail-content > h1,
    .detail-content .title h1,
    .detail-content .title h2 { font-size: 1.6rem; }
    .detail-content h2,
    .detail-content .accordion > h2 { font-size: 1.22rem; }

    .detail-content table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .detail-content table.contacts,
    .detail-content .table_area1 table { min-width: 620px; }

    /* Neutralise legacy inline fixed pixel widths so ported pages fit the phone */
    .detail-content [style*="width:"],
    .detail-content [width] { max-width: 100% !important; }
    .detail-content [style*="float"] {
        float: none !important;
        width: 100% !important;
        border-right: 0 !important;
        padding-inline: 0 !important;
        margin-inline: 0 !important;
    }
    .detail-content iframe,
    .detail-content .cnt,
    .detail-content .one-third,
    .detail-content .one-third1,
    .detail-content .two-third { width: 100% !important; }

    /* Comfortable single-column doc cards + tap targets on phones */
    .detail-content [class^="one-third"] ul,
    .detail-content .circular-list ul { grid-template-columns: 1fr; }
    .detail-content [class^="one-third"] ul > li > a,
    .detail-content .circular-list ul > li > a { min-height: 48px; }
    .detail-content .setup-prose,
    .detail-content .setup-summary { padding: 1rem; }
    .detail-content .setup-prose ul { grid-template-columns: 1fr; }
    .detail-content .jurisdiction-cards { grid-template-columns: 1fr; }
    .detail-content .pdf-frame { min-height: 560px; }
}

/* Minutes of Meeting — table styled to match legacy (teal headers + committee band) */
.mom-band {
  background: var(--authority-900);
  color: #fff;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px 8px 0 0;
  margin-bottom: 0;
}
.mom-table { margin-bottom: 0; }
.mom-table thead th {
  background: var(--authority);
  color: #fff;
  border-color: var(--authority-900);
  vertical-align: middle;
}
.mom-table tbody tr:nth-child(odd) { background: var(--mist); }
.mom-table td, .mom-table th { padding: 10px 14px; }
.mom-table a { color: #123a8a; text-decoration: none; }
.mom-table a:hover { text-decoration: underline; }

/* Obs 10 — "A Glimpse on NSEZ" video link on NSEZ at a Glance */
.detail-content .glance-video {
  display: flex; align-items: center; gap: 16px;
  margin: 0 0 1.5rem; padding: 16px 20px;
  border: 1px solid var(--line); border-left: 4px solid var(--authority);
  border-radius: 12px; background: #fff; text-decoration: none; color: inherit;
  transition: box-shadow .15s ease, transform .15s ease;
}
.detail-content .glance-video:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.glance-video-play {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%;
  background: #c4302b; display: grid; place-items: center;
}
.glance-video-play svg { width: 24px; height: 24px; fill: #fff; }
.glance-video-copy { display: flex; flex-direction: column; gap: 2px; }
.glance-video-copy strong { font-size: 1.02rem; color: var(--authority-900); }
.glance-video-copy span { font-size: .9rem; color: #5b6b7f; }

/* ============================================================
   Obs 2 — Archive Section + archived minutes presentation
   ============================================================ */
.detail-content .archive-group-title {
  font-size: 1.25rem; color: var(--authority-900);
  margin: 2rem 0 .85rem; padding-bottom: .5rem; border-bottom: 2px solid var(--authority);
}
.detail-content .archive-block:first-of-type .archive-group-title { margin-top: 1.5rem; }

.archive-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin: 0 0 1.5rem; }
.archive-link-card {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  border: 1px solid var(--line); border-left: 4px solid var(--authority);
  border-radius: 12px; background: #fff; text-decoration: none; color: var(--authority-900); font-weight: 600;
  transition: box-shadow .15s ease, transform .15s ease;
}
.archive-link-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); text-decoration: none; }
.archive-link-icon {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 6px; background: var(--sky);
  position: relative;
}
.archive-link-icon::after {
  content: ""; position: absolute; inset: 7px 6px; border: 2px solid var(--authority); border-radius: 2px;
  border-top-width: 6px;
}

.archive-table .archive-col-doc { width: 7rem; text-align: center; }
.button-small { padding: 4px 12px; font-size: .82rem; }

.archive-pager {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px; margin: .75rem 0 0;
}
.archive-pager-count { font-size: .88rem; color: #5b6b7f; }
.archive-pager-links { display: flex; flex-wrap: wrap; gap: 4px; }
.archive-page {
  min-width: 34px; padding: 5px 9px; text-align: center; border: 1px solid var(--line);
  border-radius: 8px; text-decoration: none; color: var(--authority-900); font-size: .88rem; background: #fff;
}
.archive-page:hover { background: var(--sky); text-decoration: none; }
.archive-page.is-current { background: var(--authority); border-color: var(--authority); color: #fff; font-weight: 600; }

/* Document lists inside the archived-minutes accordion */
.archive-doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.archive-doc-list > li > a {
  display: block; padding: 9px 12px; border-radius: 8px; color: #123a8a;
  text-decoration: none; font-size: .95rem; line-height: 1.45;
}
.archive-doc-list > li > a:hover { background: var(--sky); text-decoration: underline; }
.archive-doc-list > li:nth-child(odd) > a { background: var(--mist); }
.archive-doc-list > li:nth-child(odd) > a:hover { background: var(--sky); }
.archive-page-step { font-size: 1.05rem; line-height: 1; }
.archive-page-gap { padding: 5px 4px; color: #8a97a6; }
