/* =============================================================================
   CMS pages — flat editorial layout (works with fixed site header)
   ============================================================================= */

.cms-page {
    width: 100%;
    padding-top: 5rem; /* clear fixed header */
    background: #f8fafc;
    min-height: 60vh;
}

.cms-page-head {
    max-width: 920px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.cms-page-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    margin-bottom: 1rem;
    color: #94a3b8;
}

.cms-page-breadcrumb a {
    color: #64748b;
    text-decoration: none;
}

.cms-page-breadcrumb a:hover {
    color: #00baf1;
}

.cms-page-breadcrumb-sep {
    opacity: 0.5;
}

.cms-page-breadcrumb [aria-current="page"] {
    color: #475569;
    font-weight: 500;
}

.cms-page-title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
    color: #254965;
    letter-spacing: -0.02em;
}

.cms-page-lead {
    margin: 0;
    max-width: 40rem;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: #64748b;
}

.cms-page-main {
    max-width: 920px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}

.cms-page-blocks {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.cms-page-block {
    margin-bottom: 2rem;
}

.cms-page-block:last-child {
    margin-bottom: 0;
}

/* =============================================================================
   Typography & sections — no nested panels
   ============================================================================= */

.cms-content-text {
    line-height: 1.75;
    color: #334155;
    font-size: 1rem;
}

.cms-content-text h1 {
    font-size: 1.5rem;
    color: #254965;
    margin: 2rem 0 0.75rem;
    font-weight: 700;
}

.cms-content-text h2 {
    font-size: 1.25rem;
    color: #254965;
    margin: 2.25rem 0 0.85rem;
    font-weight: 700;
}

.cms-content-text h3 {
    font-size: 1.05rem;
    color: #254965;
    margin: 1.5rem 0 0.5rem;
    font-weight: 600;
}

.cms-content-text p {
    margin-bottom: 1rem;
    color: #475569;
}

.cms-content-text ul,
.cms-content-text ol {
    margin-bottom: 1rem;
    padding-left: 1.35rem;
    color: #475569;
}

.cms-content-text li {
    margin-bottom: 0.35rem;
}

.cms-content-text a {
    color: #0099cc;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cms-content-text a:hover {
    color: #00baf1;
}

.cms-content-text strong {
    color: #1e293b;
    font-weight: 600;
}

.cms-content-text img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1.25rem 0;
}

.cms-content-text blockquote {
    border-left: 3px solid #00baf1;
    padding-left: 1rem;
    margin: 1.25rem 0;
    color: #64748b;
}

/* Section blocks — spacing only, no boxes */
.cms-content-text .cms-block {
    margin-bottom: 2.5rem;
}

.cms-content-text .cms-block:last-child {
    margin-bottom: 0;
}

.cms-content-text .cms-block > h2:first-child {
    margin-top: 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.cms-content-text .cms-lead {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: #475569;
    margin: 0 0 1.5rem;
    padding: 0;
    background: none;
    border: none;
}

.cms-content-text .cms-note {
    margin: 1.25rem 0;
    padding: 0;
    background: none;
    border: none;
    font-size: 0.9375rem;
    color: #64748b;
}

.cms-content-text .cms-note strong {
    color: #254965;
}

/* Vignette type cards — simple grid, no card chrome */
.cms-content-text .cms-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem 2rem;
    margin: 1.25rem 0 1.75rem;
}

.cms-content-text .cms-card {
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.cms-content-text .cms-card:hover {
    transform: none;
    box-shadow: none;
}

.cms-content-text .cms-card-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #0099cc;
    margin-bottom: 0.35rem;
}

.cms-content-text .cms-card h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
}

.cms-content-text .cms-card p {
    margin: 0;
    font-size: 0.9375rem;
    color: #64748b;
}

/* Tables */
.cms-content-text .cms-table-wrap {
    overflow-x: auto;
    margin: 1.25rem 0 1.5rem;
    -webkit-overflow-scrolling: touch;
}

.cms-content-text table.cms-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.cms-content-text table.cms-table th {
    background: #254965;
    color: #fff;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
}

.cms-content-text table.cms-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
    vertical-align: top;
}

.cms-content-text table.cms-table tbody tr:nth-child(even) {
    background: #fff;
}

.cms-content-text table.cms-table tbody tr:nth-child(odd) {
    background: #f1f5f9;
}

.cms-content-text table.cms-table tfoot td {
    font-size: 0.8125rem;
    color: #64748b;
    background: transparent;
    border-bottom: none;
    padding-top: 0.85rem;
    line-height: 1.55;
}

/* Highway sections */
.cms-content-text .cms-highway {
    margin-bottom: 2rem;
}

.cms-content-text .cms-highway h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.cms-content-text .cms-highway-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.15rem 0.5rem;
    background: #254965;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
}

/* Checklist — plain list */
.cms-content-text .cms-list-check {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 1.25rem;
    background: none;
    border: none;
    border-radius: 0;
}

.cms-content-text .cms-list-check li {
    position: relative;
    padding: 0.4rem 0 0.4rem 1.5rem;
    margin-bottom: 0;
    border-bottom: none;
    color: #475569;
}

.cms-content-text .cms-list-check li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #00baf1;
    font-weight: 700;
}

/* FAQ — minimal accordion */
.cms-content-text .cms-faq {
    margin-top: 0.25rem;
}

.cms-content-text .cms-faq details {
    border: none;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 0;
    margin-bottom: 0;
    background: transparent;
    box-shadow: none;
}

.cms-content-text .cms-faq details[open] {
    box-shadow: none;
}

.cms-content-text .cms-faq summary {
    padding: 1rem 0;
    font-weight: 600;
    color: #254965;
    cursor: pointer;
    list-style: none;
}

.cms-content-text .cms-faq summary::-webkit-details-marker {
    display: none;
}

.cms-content-text .cms-faq summary::before {
    content: none;
}

.cms-content-text .cms-faq .cms-faq-answer {
    padding: 0 0 1rem;
    color: #64748b;
}

.cms-content-text .cms-faq .cms-faq-answer p {
    margin-bottom: 0;
}

/* Documents — simple link list */
.cms-content-text .cms-doc-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 0.5rem;
    border-top: 1px solid #e2e8f0;
}

.cms-content-text a.cms-doc-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 0;
    background: none;
    border: none;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 0;
    text-decoration: none;
    color: inherit;
    box-shadow: none;
    transform: none;
}

.cms-content-text a.cms-doc-card:hover {
    box-shadow: none;
    transform: none;
}

.cms-content-text a.cms-doc-card:hover h3 {
    color: #00baf1;
}

.cms-content-text .cms-doc-icon {
    width: auto;
    height: auto;
    background: none;
    font-size: 1.125rem;
    color: #00baf1;
    border-radius: 0;
}

.cms-content-text .cms-doc-card h3 {
    margin: 0 0 0.15rem;
    font-size: 1rem;
    color: #254965;
    transition: color 0.2s;
}

.cms-content-text .cms-doc-card p {
    margin: 0;
    font-size: 0.875rem;
}

.cms-content-text .cms-doc-action {
    margin-left: auto;
    margin-top: 0;
    white-space: nowrap;
    font-size: 0.8125rem;
}

.cms-content-text .cms-legislation-block {
    margin-bottom: 0;
}

/* =============================================================================
   Contact page — flat, no nested cards
   ============================================================================= */

.cms-contact-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem 4rem;
    align-items: start;
}

.cms-contact-primary {
    padding-right: 0;
}

.cms-contact-company {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: #254965;
}

.cms-contact-tagline {
    margin: 0 0 2rem;
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.55;
}

.cms-contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
}

.cms-contact-list li {
    display: flex;
    gap: 0.85rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
    line-height: 1.55;
}

.cms-contact-list li:last-child {
    border-bottom: none;
}

.cms-contact-list i {
    flex-shrink: 0;
    width: 1.125rem;
    margin-top: 0.2rem;
    color: #00baf1;
    text-align: center;
}

.cms-contact-list strong {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 0.15rem;
}

.cms-contact-list a {
    color: #0099cc;
    text-decoration: none;
    font-weight: 500;
}

.cms-contact-list a:hover {
    color: #00baf1;
    text-decoration: underline;
}

.cms-contact-email-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #0099cc;
    text-decoration: none;
}

.cms-contact-email-link:hover {
    color: #00baf1;
}

.cms-contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.cms-contact-section h2 {
    margin: 0 0 0.85rem;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    border: none;
    padding: 0;
}

.cms-contact-section dl {
    margin: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.35rem 1.5rem;
}

.cms-contact-section dt {
    font-size: 0.875rem;
    color: #64748b;
}

.cms-contact-section dd {
    margin: 0;
    font-size: 0.9375rem;
    color: #1e293b;
    font-weight: 500;
}

.cms-contact-section p {
    margin: 0;
    font-size: 0.9375rem;
    color: #475569;
    line-height: 1.6;
}

.cms-contact-pending {
    color: #94a3b8;
    font-style: italic;
}

/* =============================================================================
   Responsive
   ============================================================================= */

@media (max-width: 768px) {
    .cms-page {
        padding-top: 4.25rem;
    }

    .cms-page-head {
        padding: 1.75rem 1.25rem 1.5rem;
    }

    .cms-page-main {
        padding: 1.75rem 1.25rem 3rem;
    }

    .cms-content-text .cms-cards {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .cms-content-text table.cms-table {
        font-size: 0.8125rem;
    }

    .cms-content-text table.cms-table th,
    .cms-content-text table.cms-table td {
        padding: 0.6rem 0.75rem;
    }

    .cms-contact-page {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cms-content-text a.cms-doc-card {
        flex-wrap: wrap;
    }

    .cms-content-text .cms-doc-action {
        margin-left: 2.125rem;
    }
}

@media (max-width: 480px) {
    .cms-page-title {
        font-size: 1.5rem;
    }
}
