/* page-title already defined in styles.css — no override needed */

/* ============================================================
   LEAD TEXT
   ============================================================ */
.page-lead {
    font-size: 1rem;
    color: var(--mu);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* ============================================================
   PAGE CONTENTS NAV
   ============================================================ */
.page-contents {
    background: var(--bg);
    border: 1px solid var(--bd);
    border-left: 4px solid var(--ac);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.88rem;
}

.page-contents-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mu);
    margin-bottom: 0.75rem;
}

.page-contents-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.page-contents-columns .contents-group-title {
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--tx);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
    display: block;
}

.page-contents ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.page-contents li {
    margin-bottom: 0.35rem;
}

.page-contents li a {
    color: var(--pr);
    text-decoration: none;
    font-size: 0.85rem;
}

.page-contents li a:hover {
    text-decoration: underline;
    color: var(--ac);
}

@media (max-width: 576px) {
    .page-contents-columns {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   SECTION CARDS
   Standard content section with optional image left
   ============================================================ */
.page-section {
    background: var(--wh);
    border: 1px solid var(--bd);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    transition: box-shadow 0.15s;
}

.page-section:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}

/* Section header — icon + h2 */
.page-section-header {
    padding: 0.9rem 1.5rem;
    border-bottom: 1px solid var(--bd);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: var(--wh);
}

.page-section-header i {
    color: var(--ac);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.page-section-header h2 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--pr);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0;
}

/* Section body — image left + short intro right */
.page-section-body {
    display: flex;
    padding-left: 1.5rem;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.page-section-img {
    flex-shrink: 0;
    width: 240px;
    background: #d6eaf8;
    overflow: hidden;
    border-right: 1px solid var(--bd);
    position: relative;
    aspect-ratio: 3 / 2;
    align-self: flex-start;
}

.page-section-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.3s;
}

.page-section:hover .page-section-img img {
    transform: scale(1.03);
}

.page-section-content {
    flex: 1;
    min-width: 0;
    padding: 0 1.5rem;
    font-size: 0.92rem;
    color: var(--tx);
    line-height: 1.75;
}

.page-section-content p {
    margin-bottom: 0.85rem;
}

.page-section-content p:last-child {
    margin-bottom: 0;
}

.page-section-content a {
    color: var(--pr);
    text-decoration: none;
}

.page-section-content a:hover {
    text-decoration: underline;
    color: var(--ac);
}

/* Full width content below image+intro */
.page-section-full {
    padding: 1.25rem 1.5rem;
    font-size: 0.92rem;
    color: var(--tx);
    line-height: 1.75;
    border-top: 1px solid var(--bd);
}

.page-section-full p {
    margin-bottom: 0.85rem;
}

.page-section-full p:last-child {
    margin-bottom: 0;
}

.page-section-full a {
    color: var(--pr);
    text-decoration: none;
}

.page-section-full a:hover {
    text-decoration: underline;
    color: var(--ac);
}

/* Sections without images */
.page-section-body.no-img {
    padding: 1.25rem 1.5rem;
}

.page-section-body.no-img .page-section-content {
    padding: 0;
}

.page-section-content a,
.page-section-full a {
    color: var(--pr);
    text-decoration: underline;
    text-decoration-color: var(--bd);
    text-underline-offset: 3px;
    transition: color 0.15s, text-decoration-color 0.15s;
}

.page-section-content a:hover,
.page-section-full a:hover {
    color: var(--ac);
    text-decoration-color: var(--ac);
}

/* Responsive */
@media (max-width: 991px) {
    .page-section-body {
        flex-direction: column;
        padding-left: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
    .page-section-img {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--bd);
        aspect-ratio: 3 / 2;
    }
    .page-section-img img {
        object-position: center center;
    }
    .page-section-content {
        padding: 1.25rem 1.5rem;
    }
}

/* ============================================================
   LOCAL TIP
   ============================================================ */
.page-tip {
    background: #fdebd0;
    border-left: 3px solid var(--ac);
    border-radius: 6px;
    padding: 0.65rem 1rem;
    font-size: 0.83rem;
    color: var(--tx);
    margin: 0.85rem 0;
}

.page-tip strong {
    color: var(--ac);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.page-back-top {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: var(--mu);
    text-decoration: none;
    margin-top: 0.5rem;
    transition: color 0.15s;
}

.page-back-top:hover {
    color: var(--pr);
    text-decoration: none;
}

/* ============================================================
   CLOSING / SUMMARY BLOCK
   ============================================================ */
.page-closing {
    background: #d6eaf8;
    border: 1px solid var(--bd);
    border-left: 4px solid var(--pr);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.92rem;
    color: var(--tx);
    line-height: 1.7;
}

.page-closing h2 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--pr);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.85rem;
}

.page-closing p:last-child {
    margin-bottom: 0;
}

/* ============================================================
   PAGE UPDATED
   ============================================================ */
.page-updated {
    font-size: 0.78rem;
    color: var(--mu);
    font-style: italic;
    margin-top: 0.5rem;
}

/* ============================================================
   DISCLAIMER
   ============================================================ */
.page-disclaimer {
    font-size: 0.78rem;
    color: var(--mu);
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--bd);
    font-style: italic;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
/* Ensure sidebar column stretches full height for sticky to work */
.col-sidebar {
    position: sticky;
    align-self: flex-start;
    top: 80px;
    height: fit-content;
}

/* Tablet only — override sticky for grid layout */
@media (min-width: 576px) and (max-width: 991px) {
    .col-sidebar .site-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
        position: static;  /* only static at tablet, not desktop */
    }
}

.sidebar-block {
    background: var(--wh);
    border: 1px solid var(--bd);
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.sidebar-block-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mu);
    margin-bottom: 0.85rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--ac);
    display: inline-block;
}

.sidebar-block-subtitle {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--mu);
    margin-bottom: 0.85rem;
    padding-bottom: 0.5rem;
}

.sidebar-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-links li {
    border-bottom: 1px solid var(--bd);
}

.sidebar-links li:last-child {
    border-bottom: none;
}

.sidebar-links a {
    display: block;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    color: var(--pr);
    text-decoration: none;
    transition: color 0.15s, padding-left 0.15s;
}

.sidebar-links a:hover {
    color: var(--ac);
    padding-left: 0.35rem;
}

.sidebar-ad {
    background: var(--bg);
    border-style: dashed;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mu);
    font-size: 0.8rem;
}

/* Tablet — sidebar blocks in a row */
@media (min-width: 576px) and (max-width: 991px) {
    	.col-sidebar {
        display: flex;
        gap: 1.25rem;
    }    
    .col-sidebar .site-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 1.25rem;
        position: static;
    }
    .col-sidebar .sidebar-block {
        margin-bottom: 0;
    }
}

/* ============================================================
   CONTACT / ADDRESS BLOCK
   ============================================================ */
.page-contact {
    background: var(--bg);
    border: 1px solid var(--bd);
    border-radius: 6px;
    padding: 1rem 1.25rem;
}

.page-contact-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--pr);
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.page-contact-title i {
    color: var(--ac);
    flex-shrink: 0;
}

.page-contact address {
    font-size: 0.92rem;
    font-style: normal;
    line-height: 1.9;
    color: var(--tx);
    margin: 0;
}

.page-contact address a {
    color: var(--pr);
    text-decoration: none;
}

.page-contact address a:hover {
    color: var(--ac);
    text-decoration: underline;
}
