/*
 * Module: 03-layout.css
 *
 * Purpose: Shared shell layout, page wrappers, sidebar blocks, generic cards, and navigation foundation.
 *
 * Notes: This module provides shared structural styles used across multiple templates.
 * Source range from former theme.css: lines 632-1239.
 */

/* ================================================================
   LAYOUT WRAPPER â€” Full height so footer stays at bottom
   ================================================================ */
.govgr-site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.govgr-site-content {
    flex: 1;
}

/* ================================================================
   HEADER WRAPPER â€” sticky
   ================================================================ */
.govgr-header-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
}

/* ================================================================
   NAVIGATION BAR (ÎºÎ¬Ï„Ï‰ Î±Ï€ÏŒ Ï„Î¿ header)
   ================================================================ */
.govgr-nav-bar {
    background-color: #ffffff;
    border-bottom: 1px solid #d0d0d0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}
.govgr-nav-bar .govgr-width-container {
    display: flex;
    align-items: stretch;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.govgr-nav-bar .govgr-width-container::-webkit-scrollbar { display: none; }

/* Nav menu list â€” compact Î³Î¹Î± Î½Î± Ï‡Ï‰ÏÎ¬Î½Îµ ÏŒÎ»Î± Ï„Î± ÎµÎ»Î»Î·Î½Î¹ÎºÎ¬ */
.govgr-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    flex-wrap: nowrap;
    width: 100%;
    align-items: stretch;
    overflow: visible !important;
}
.govgr-nav-list li { position: relative; }
.govgr-nav-list li a {
    display: flex;
    align-items: center;
    padding: 13px 9px;
    font-family: 'Roboto', sans-serif !important;
    font-size: 0.8rem;
    font-weight: 500;
    color: #0b0c0c;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    letter-spacing: -0.01em;
    transition: border-color 0.15s, color 0.15s;
}
.govgr-nav-list li a:hover,
.govgr-nav-list li.current-menu-item > a,
.govgr-nav-list li.current-menu-ancestor > a {
    color: #003476;
    border-bottom-color: #003476;
}
@media (max-width: 1280px) {
    .govgr-nav-list li a { padding: 13px 7px; font-size: 0.76rem; }
}
@media (max-width: 1100px) {
    .govgr-nav-list li a { padding: 13px 5px; font-size: 0.72rem; }
}

/* Dropdown â€” ÎšÎ¡Î™Î£Î™ÎœÎŸ: overflow visible Î³Î¹Î± Î½Î± Ï†Î±Î¯Î½ÎµÏ„Î±Î¹ */
.govgr-nav-bar {
    background-color: #ffffff;
    border-bottom: 1px solid #d0d0d0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    overflow: visible !important;
    position: relative;
    z-index: 50;
}
.govgr-nav-bar .govgr-width-container {
    display: flex;
    align-items: stretch;
    overflow: visible !important;
}

.govgr-nav-list li.menu-item-has-children > a::after {
    content: ' â–¾';
    font-size: 0.7rem;
    margin-left: 2px;
}
.govgr-nav-list li.menu-item-has-children > a::after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 0.45rem;
    border-left: 0.26rem solid transparent;
    border-right: 0.26rem solid transparent;
    border-top: 0.34rem solid currentColor;
    transform: translateY(0.08rem);
}

.govgr-nav-list .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #ffffff;
    border-top: 3px solid #003476;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    list-style: none;
    padding: 0.4rem 0;
    margin: 0;
    z-index: 9999 !important;
}
/* ÎšÎ¡Î™Î£Î™ÎœÎŸ: hover trigger */
.govgr-nav-list li.menu-item-has-children:hover > .sub-menu {
    display: block !important;
}
.govgr-nav-list li:focus-within > .sub-menu {
    display: block !important;
}
.govgr-nav-list .sub-menu li a {
    padding: 9px 18px;
    border-bottom: none !important;
    border-left: 3px solid transparent;
    font-size: 0.85rem;
    font-weight: 400;
    color: #0b0c0c;
    white-space: nowrap;
}
.govgr-nav-list .sub-menu li a:hover {
    border-left-color: #003476 !important;
    background: #f0f4ff;
    color: #003476;
    border-bottom: none !important;
}

/* Mobile nav toggle */
.govgr-nav-toggle {
    display: none;
    background: none;
    border: 1px solid #cbd5e1;
    padding: 10px 14px;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    color: #0b0c0c;
    margin-left: auto;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .govgr-nav-toggle { display: flex; align-items: center; }
    .govgr-nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        border-top: 1px solid #e0e0e0;
    }
    .govgr-nav-list.is-open { display: flex; }
    .govgr-nav-list li a { border-bottom: 1px solid #f0f0f0; border-left: none; }
    .govgr-nav-list li a:hover { border-left: none; background: #f0f4ff; }
    .govgr-nav-list .sub-menu {
        position: static;
        border-top: none;
        border-left: 4px solid #003476;
        margin-left: 1rem;
        box-shadow: none;
    }
}

/* ================================================================
   BREADCRUMBS
   ================================================================ */
.govgr-breadcrumbs-bar {
    background: #f3f2f1;
    border-bottom: 1px solid #e8e8e8;
    padding: 0.6rem 0;
}
.govgr-breadcrumbs-bar .govgr-width-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.govgr-breadcrumbs-bar a {
    font-size: 0.875rem;
    color: #1d4ed8;
    text-decoration: none;
}
.govgr-breadcrumbs-bar a:hover { text-decoration: underline; }
.govgr-breadcrumbs-bar .sep {
    font-size: 0.875rem;
    color: #6b7280;
}
.govgr-breadcrumbs-bar .current {
    font-size: 0.875rem;
    color: #374151;
    font-weight: 500;
}

/* ================================================================
   MAIN CONTENT AREA
   ================================================================ */
.govgr-page-layout {
    padding: 2rem 0 3rem;
}
.govgr-content-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2.5rem;
    align-items: start;
}

.govgr-content-grid--single {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}

.govgr-content-grid--post-single {
    max-width: 60rem;
    margin-right: auto;
    margin-left: auto;
}

@media (max-width: 900px) {
    .govgr-content-grid { grid-template-columns: 1fr; }
}

.govgr-width-container.govgr-page-layout--official {
    max-width: 1160px !important;
    padding-top: 2.5rem;
    padding-bottom: 4rem;
}

.govgr-content-grid--official {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 3rem;
}

.govgr-content-grid--official.govgr-content-grid--single {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}

.govgr-post-content--official {
    max-width: none;
    min-width: 0;
}

.govgr-page-layout__sidebar--official {
    min-width: 0;
}

.govgr-page-news-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #d8dde1;
}

.govgr-page-news-section__inner {
    max-width: none;
}

.govgr-page-news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
    .govgr-page-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .govgr-page-news-grid {
        grid-template-columns: 1fr;
    }
}

.govgr-page-shell {
    width: 100%;
}

.govgr-page-shell__header {
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #d8dde1;
}

.govgr-post-content--official h1 {
    font-size: clamp(2.35rem, 4vw, 3.25rem);
    line-height: 1.08;
    margin-bottom: 0;
}

.govgr-page-shell__media {
    margin: 1.5rem 0 0;
}

.govgr-page-shell__media img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 0;
    margin: 0;
}

.govgr-page-shell__body > :first-child {
    margin-top: 0;
}

.govgr-post-content--official h2 {
    margin-top: 2.5rem;
    margin-bottom: 0.9rem;
}

.govgr-post-content--official h3 {
    margin-top: 1.9rem;
}

.govgr-post-content--official p,
.govgr-post-content--official li {
    font-size: 1rem;
    line-height: 1.75;
}

.govgr-post-content--official table {
    margin: 1.75rem 0;
}

@media (max-width: 900px) {
    .govgr-page-layout--official {
        padding-top: 2rem;
        padding-bottom: 3rem;
    }

    .govgr-content-grid--official {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .govgr-post-content--official h1 {
        font-size: clamp(2rem, 7vw, 2.6rem);
    }
}

/* Post / page content typography */
.govgr-post-content { color: #0b0c0c; }
.govgr-post-content h1 { font-size: 2rem; font-weight: 700; margin: 0 0 1rem; color: #0b0c0c; }
.govgr-post-content h2 { font-size: 1.5rem; font-weight: 700; margin: 2rem 0 0.75rem; padding-bottom: 0.5rem; border-bottom: 2px solid #e5e7eb; color: #0b0c0c; }
.govgr-post-content h3 { font-size: 1.25rem; font-weight: 600; margin: 1.5rem 0 0.5rem; color: #0b0c0c; }
.govgr-post-content h4 { font-size: 1.1rem; font-weight: 600; margin: 1rem 0 0.5rem; }
.govgr-post-content p { margin-bottom: 1rem; line-height: 1.7; }
.govgr-post-content ul,
.govgr-post-content ol { margin: 0.75rem 0 1rem 1.5rem; }
.govgr-post-content li { margin-bottom: 0.35rem; line-height: 1.6; }
.govgr-post-content a { color: #1d4ed8; }
.govgr-post-content a:hover { color: #1e3a8a; }
.govgr-post-content strong { font-weight: 700; }
.govgr-post-content--single .govgr-post-header h1 {
    max-width: 52rem;
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.12;
}
.govgr-post-content--single .govgr-post-body {
    max-width: 50rem;
}
.govgr-post-back-link {
    gap: 0.4rem;
}
.govgr-post-content blockquote {
    border-left: 5px solid #003476;
    background: #eff6ff;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    color: #0b0c0c;
}
.govgr-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1rem 0;
}
.govgr-post-header {
    margin-bottom: 1.5rem;
}
.govgr-post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.govgr-post-meta__categories {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}
.govgr-post-meta__date {
    font-size: 0.82rem;
    color: #6b7280;
}
.govgr-post-featured-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 2px;
    margin: 0 0 1.5rem;
}
.govgr-post-body > :last-child {
    margin-bottom: 0;
}
.govgr-post-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}
.govgr-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}
.govgr-post-content table th {
    background: #003476;
    color: #ffffff;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
}
.govgr-post-content table td {
    padding: 0.6rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}
.govgr-post-content table tr:nth-child(even) td { background: #f9fafb; }

.govgr-faq-list {
    margin: 1rem 0 0;
    border-top: 3px solid #003476;
    background: #ffffff;
    border-left: 1px solid #d1d5db;
    border-right: 1px solid #d1d5db;
    border-bottom: 1px solid #d1d5db;
}

.govgr-faq-pattern {
    margin: 1rem 0 0;
    border-top: 3px solid #003476;
    background: #ffffff;
    border-left: 1px solid #d1d5db;
    border-right: 1px solid #d1d5db;
    border-bottom: 1px solid #d1d5db;
}

.govgr-faq-list > div {
    display: grid;
    grid-template-columns: minmax(210px, 29%) minmax(0, 1fr);
    gap: 0.9rem;
    padding: 0.75rem 0.9rem;
    border-bottom: 1px solid #e5e7eb;
    align-items: start;
}

.govgr-faq-pattern .govgr-faq-item {
    padding: 0.75rem 0.9rem;
    border-bottom: 1px solid #e5e7eb;
}

.govgr-faq-pattern .govgr-faq-item:last-child {
    border-bottom: none;
}

.govgr-faq-pattern .govgr-faq-question {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    color: #0b0c0c;
}

.govgr-faq-pattern .govgr-faq-answer {
    font-size: 0.95rem;
    line-height: 1.55;
}

.govgr-faq-pattern .govgr-faq-answer > :last-child {
    margin-bottom: 0;
}

.govgr-faq-list > div:last-child {
    border-bottom: none;
}

.govgr-faq-list dt {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    color: #0b0c0c;
}

.govgr-faq-list dd {
    margin: 0;
    color: #0b0c0c;
    font-size: 0.95rem;
    line-height: 1.55;
}

.govgr-faq-list dd > :last-child {
    margin-bottom: 0;
}

.govgr-faq-list dd p {
    margin: 0 0 0.5rem;
}

.govgr-faq-list dd ul,
.govgr-faq-list dd ol {
    margin: 0 0 0.5rem 1rem;
}

.govgr-faq-list dd li {
    margin-bottom: 0.2rem;
}

.govgr-faq-list.is-enhanced > div {
    display: block;
    padding: 0;
}

.govgr-faq-pattern.is-enhanced .govgr-faq-item {
    padding: 0;
}

.govgr-faq-list.is-enhanced dt {
    font-size: inherit;
    line-height: inherit;
}

.govgr-faq-pattern.is-enhanced .govgr-faq-question {
    margin: 0;
    font-size: inherit;
    line-height: inherit;
}

.govgr-faq-toggle {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border: none;
    background: transparent;
    color: #0b0c0c;
    text-align: left;
    font: inherit;
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
}

.govgr-faq-toggle:hover {
    background: #f8fafc;
}

.govgr-faq-toggle::after {
    content: '+';
    flex: 0 0 auto;
    font-size: 1.15rem;
    line-height: 1;
    color: #003476;
    margin-top: 0.05rem;
}

.govgr-faq-list.is-enhanced > div.is-open .govgr-faq-toggle {
    color: #003476;
}

.govgr-faq-list.is-enhanced > div.is-open .govgr-faq-toggle::after {
    content: '−';
}

.govgr-faq-list.is-enhanced dd {
    padding: 0 1rem 0.95rem;
    font-size: 0.95rem;
    line-height: 1.55;
}

.govgr-faq-pattern.is-enhanced .govgr-faq-answer {
    padding: 0 1rem 0.95rem;
    font-size: 0.95rem;
    line-height: 1.55;
}

.govgr-faq-list.is-enhanced dd[hidden] {
    display: none;
}

.govgr-faq-pattern.is-enhanced .govgr-faq-answer[hidden] {
    display: none;
}

.govgr-document-action-pattern {
    margin: 1.25rem 0;
    padding: 1rem 1rem 1.05rem;
    border: 1px solid #d1d5db;
    border-left: 5px solid #003476;
    background: #ffffff;
}

.govgr-document-action-pattern__label {
    margin: 0 0 0.75rem;
    color: #4c5965;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.4;
    text-transform: uppercase;
}

.govgr-document-action-pattern__actions {
    margin: 0;
}

.govgr-document-action {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 44px;
    padding: 0.7rem 1rem;
    border: 2px solid #003476;
    color: #003476 !important;
    background: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none !important;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.govgr-document-action:visited {
    color: inherit;
}

.govgr-document-action--download {
    background: #003476;
    color: #ffffff !important;
}

.govgr-document-action--download::before,
.govgr-document-action--view::before {
    flex: 0 0 auto;
    font-size: 0.92rem;
    line-height: 1;
}

.govgr-document-action--download::before {
    content: '\2193';
}

.govgr-document-action--view::before {
    content: '\2197';
}

.govgr-document-action:hover,
.govgr-document-action:focus {
    border-color: #002855;
    text-decoration: none !important;
}

.govgr-document-action--download:hover,
.govgr-document-action--download:focus {
    background: #002855;
    color: #ffffff !important;
}

.govgr-document-action--view:hover,
.govgr-document-action--view:focus {
    background: #eff6ff;
    color: #002855 !important;
}

.govgr-document-action:focus {
    outline: 3px solid #ffdd00;
    outline-offset: 2px;
}

.govgr-official-image-preview {
    margin: 1.5rem 0;
}

.govgr-official-image-preview img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #d6e0ea;
    background: #ffffff;
}

.govgr-official-image-preview figcaption {
    margin-top: 0.5rem;
    color: #4c5965;
    font-size: 0.9rem;
    line-height: 1.45;
}

.govgr-leadership-list {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
}

.govgr-leadership-card {
    border: 1px solid #d6e0ea;
    border-top: 4px solid #003476;
    background: #ffffff;
}

.govgr-leadership-card > .wp-block-group__inner-container {
    display: grid;
    grid-template-columns: minmax(180px, 240px) 1fr;
    gap: 1.2rem;
    padding: 1rem;
}

.govgr-leadership-card figure {
    margin: 0;
}

.govgr-leadership-card img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    border: 1px solid #d6e0ea;
}

.govgr-leadership-card h2,
.govgr-leadership-card h3 {
    margin-top: 0 !important;
}

.govgr-board-section {
    margin: 1.5rem 0;
}

.govgr-board-list li {
    margin-bottom: 0.55rem;
}

@media (max-width: 700px) {
    .govgr-leadership-card > .wp-block-group__inner-container {
        grid-template-columns: 1fr;
    }

    .govgr-leadership-card img {
        max-width: 260px;
    }
}

.govgr-document-links-grid {
    margin: 1.5rem 0 0;
}

.govgr-document-links-grid > .wp-block-group__inner-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.85rem;
}

.govgr-document-links-grid--accordion > .wp-block-group__inner-container {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.govgr-document-link-card {
    background: #fbfdff;
    border: 1px solid #d6e0ea;
    border-top: 3px solid #003476;
    border-radius: 3px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.govgr-document-link-card > .wp-block-group__inner-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    height: 100%;
    min-height: 6rem;
    padding: 0.8rem 0.9rem 0.85rem;
}

.govgr-document-links-grid--accordion .govgr-document-link-card > .wp-block-group__inner-container {
    min-height: 0;
}

.govgr-document-link-card h3 {
    margin: 0 !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    line-height: 1.28 !important;
    letter-spacing: -0.01em;
    color: #0b0c0c;
    text-wrap: balance;
}

.govgr-document-link-card h3 a {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.45rem;
    color: #0b0c0c;
    text-decoration: none;
}

.govgr-document-link-card h3 a::before {
    content: "\2197";
    flex: 0 0 auto;
    color: #1d4ed8;
    font-size: 0.78rem;
    line-height: 1.35;
    margin-top: 0.05rem;
}

.govgr-document-link-card:hover,
.govgr-document-link-card:focus-within {
    border-color: #9fb3c8;
    box-shadow: 0 6px 16px rgba(0, 40, 85, 0.08);
    transform: translateY(-1px);
}

.govgr-document-link-card h3 a:hover,
.govgr-document-link-card h3 a:focus {
    color: #003476;
    text-decoration: underline;
}

.govgr-contact-map-pattern {
    align-items: stretch;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.govgr-contact-card,
.govgr-contact-map-card {
    height: 100%;
    padding: 1.25rem 1.35rem;
    background: #fbfdff;
    border: 1px solid #d6e0ea;
    border-top: 4px solid #003476;
    border-radius: 3px;
}

.govgr-contact-card h2,
.govgr-contact-map-card h2 {
    margin: 0 0 1rem !important;
    font-size: 1.15rem;
    line-height: 1.3;
}

.govgr-contact-card p {
    margin: 0 0 1rem;
}

.govgr-contact-highlight {
    margin: 0 0 1rem;
    padding: 0.9rem 1rem;
    background: #eef5ff;
    border-left: 4px solid #1d4ed8;
}

.govgr-contact-highlight__label {
    margin: 0 0 0.25rem !important;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #355070;
}

.govgr-contact-highlight__value {
    margin: 0 !important;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.govgr-contact-highlight__value a {
    color: #003476;
    text-decoration: none;
}

.govgr-contact-highlight__value a:hover,
.govgr-contact-highlight__value a:focus {
    text-decoration: underline;
}

.govgr-contact-list {
    margin: 0;
    padding-left: 1.1rem;
}

.govgr-contact-list li {
    margin-bottom: 0.55rem;
    line-height: 1.6;
}

.govgr-contact-map-frame {
    overflow: hidden;
    border: 1px solid #d6e0ea;
    border-radius: 3px;
    background: #f8fafc;
}

.govgr-contact-map-frame iframe {
    display: block;
    width: 100%;
    min-height: 360px;
    border: 0;
}

.govgr-contact-form-section {
    margin-top: 1.5rem;
    padding: 1.35rem;
    background: #fbfdff;
    border: 1px solid #d6e0ea;
    border-top: 4px solid #003476;
    border-radius: 3px;
}

.govgr-contact-form-section h2 {
    margin: 0 0 0.75rem !important;
    font-size: 1.35rem;
    line-height: 1.25;
}

.govgr-contact-form-section > p,
.govgr-contact-form-section .govgr-cf7-hint {
    max-width: 44rem;
}

.govgr-contact-form-section .wpcf7 {
    max-width: 44rem;
    margin-top: 1.25rem;
}

.govgr-contact-form-section .govgr-cf7-field {
    margin: 0 0 1rem;
}

.govgr-contact-form-section label {
    display: block;
    font-weight: 700;
    color: #0b0c0c;
}

.govgr-contact-form-section input[type="text"],
.govgr-contact-form-section input[type="email"],
.govgr-contact-form-section input[type="tel"],
.govgr-contact-form-section input[type="file"],
.govgr-contact-form-section textarea {
    display: block;
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.65rem 0.75rem;
    border: 2px solid #0b0c0c;
    border-radius: 0;
    background: #fff;
    color: #0b0c0c;
    font: inherit;
}

.govgr-contact-form-section textarea {
    min-height: 10rem;
    resize: vertical;
}

.govgr-contact-form-section input[type="file"] {
    padding: 0.55rem;
    border-color: #6b7280;
}

.govgr-contact-form-section .govgr-cf7-hint {
    margin: -0.35rem 0 1rem;
    font-size: 0.92rem;
    color: #4b5563;
}

.govgr-contact-form-section .govgr-cf7-acceptance label {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    font-weight: 400;
}

.govgr-contact-form-section .govgr-cf7-acceptance input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.2rem;
    flex: 0 0 auto;
}

.govgr-contact-form-section input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.65rem 1rem;
    border: 2px solid #003476;
    border-radius: 0;
    background: #003476;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.govgr-contact-form-section input[type="submit"]:hover,
.govgr-contact-form-section input[type="submit"]:focus {
    background: #002855;
    border-color: #002855;
}

.govgr-contact-form-section .wpcf7-not-valid-tip {
    margin-top: 0.35rem;
    color: #d4351c;
    font-weight: 700;
}

.govgr-contact-form-section .wpcf7-response-output {
    margin: 1rem 0 0;
    padding: 0.8rem 1rem;
    border-width: 3px;
}

.govgr-appointments-intro,
.govgr-appointments-booking {
    margin-top: 1.5rem;
    padding: 1.35rem;
    background: #fbfdff;
    border: 1px solid #d6e0ea;
    border-top: 4px solid #003476;
    border-radius: 3px;
}

.govgr-appointments-intro h2,
.govgr-appointments-booking h2 {
    margin: 0 0 0.75rem !important;
    font-size: 1.35rem;
    line-height: 1.25;
}

.govgr-appointments-intro p,
.govgr-appointments-booking p {
    max-width: 46rem;
}

.govgr-appointments-list {
    margin: 1rem 0 0;
    padding-left: 1.2rem;
}

.govgr-appointments-list li {
    margin-bottom: 0.45rem;
    line-height: 1.55;
}

.govgr-appointments-booking .ssa_booking_iframe {
    display: block;
    width: 100%;
    min-height: 36rem;
    margin-top: 1rem;
    border: 1px solid #d6e0ea;
    background: #fff;
}

@media (min-width: 1024px) {
    .govgr-document-links-grid > .wp-block-group__inner-container {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .govgr-news-archive__header {
        margin-bottom: 1.15rem;
    }

    .govgr-post-item {
        padding: 1rem;
    }

    .govgr-post-item h2 {
        font-size: 1.2rem;
        max-width: none;
    }

    .govgr-post-item p,
    .govgr-news-archive__description {
        max-width: none;
    }

    .govgr-document-link-card > .wp-block-group__inner-container {
        min-height: 0;
    }

    .govgr-contact-card,
    .govgr-contact-map-card,
    .govgr-contact-form-section,
    .govgr-appointments-intro,
    .govgr-appointments-booking {
        padding: 1rem;
    }

    .govgr-contact-highlight__value {
        font-size: 1.7rem;
    }

    .govgr-contact-map-frame iframe {
        min-height: 300px;
    }
}

@media (max-width: 900px) {
    .govgr-faq-list > div {
        grid-template-columns: 1fr;
        gap: 0.35rem;
        padding: 0.75rem;
    }

    .govgr-faq-pattern .govgr-faq-item {
        padding: 0.75rem;
    }

    .govgr-faq-list.is-enhanced > div {
        padding: 0;
    }

    .govgr-faq-pattern.is-enhanced .govgr-faq-item {
        padding: 0;
    }

    .govgr-faq-toggle {
        padding: 0.8rem 0.85rem;
        gap: 0.75rem;
    }

    .govgr-faq-list.is-enhanced dd {
        padding: 0 0.85rem 0.85rem;
    }

    .govgr-faq-pattern.is-enhanced .govgr-faq-answer {
        padding: 0 0.85rem 0.85rem;
    }

    .govgr-document-action {
        width: 100%;
        justify-content: center;
    }
}

/* ================================================================
   SIDEBAR
   ================================================================ */
.govgr-sidebar-widget {
    background: #fff;
    border: 1px solid #d1d5db;
    border-top: 4px solid #003476;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    border-radius: 2px;
}
.govgr-sidebar-widget h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #0b0c0c;
    margin: 0 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}
.govgr-sidebar-widget ul { list-style: none; padding: 0; margin: 0; }
.govgr-sidebar-widget li { padding: 0.4rem 0; border-bottom: 1px solid #f3f4f6; }
.govgr-sidebar-widget li:last-child { border-bottom: none; }
.govgr-sidebar-widget li a { font-size: 0.875rem; color: #1d4ed8; text-decoration: none; }
.govgr-sidebar-widget li a:hover { text-decoration: underline; }
.govgr-sidebar-widget__footer {
    margin: 1rem 0 0;
}
.govgr-sidebar-widget__empty {
    margin: 0;
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.6;
}
.govgr-sidebar-news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.govgr-sidebar-news-item {
    padding: 0.8rem 0;
    border-bottom: 1px solid #f3f4f6;
}
.govgr-sidebar-news-item:first-child {
    padding-top: 0;
}
.govgr-sidebar-news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.govgr-sidebar-news-item a {
    display: block;
    color: #0b0c0c;
    text-decoration: none;
    line-height: 1.5;
}
.govgr-sidebar-news-item a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}
.govgr-sidebar-news-item small {
    display: block;
    margin-top: 0.35rem;
    color: #6b7280;
    font-size: 0.76rem;
}
.govgr-sidebar-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-left: 5px solid #003476;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    border-radius: 2px;
}
.govgr-sidebar-info p { margin: 0; font-size: 0.875rem; }

/* ================================================================
   HOMEPAGE â€” Hero & Services
   ================================================================ */
.govgr-hero {
    background: linear-gradient(145deg, #003476 0%, #004a9e 100%);
    padding: 3.5rem 0;
    color: #ffffff;
}
.govgr-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1rem;
    color: #ffffff;
}
.govgr-hero p {
    font-size: 1.125rem;
    opacity: 0.92;
    margin: 0 0 2rem;
    max-width: 600px;
    line-height: 1.6;
}
.govgr-hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

.govgr-services-section { padding: 2.5rem 0; background: #f9fafb; }
.govgr-services-section h2 { font-size: 1.75rem; font-weight: 700; margin: 0 0 0.5rem; color: #0b0c0c; }
.govgr-services-divider { width: 50px; height: 4px; background: #003476; margin: 0.75rem 0 1.5rem; border-radius: 2px; }
.govgr-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}
.govgr-service-card {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-top: 4px solid #003476;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: box-shadow 0.15s, border-top-color 0.15s;
    border-radius: 2px;
}
.govgr-service-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    border-top-color: #f7a700;
    color: inherit;
    text-decoration: none;
}
.govgr-service-icon {
    font-size: 2rem;
    width: 52px;
    height: 52px;
    background: #eff6ff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
}
.govgr-service-card h3 { font-size: 1rem; font-weight: 700; color: #0b0c0c; margin: 0; }
.govgr-service-card p { font-size: 0.875rem; color: #4b5563; margin: 0; flex: 1; line-height: 1.5; }
.govgr-service-arrow { font-size: 0.875rem; color: #1d4ed8; font-weight: 600; margin-top: 0.5rem; }

.govgr-news-section { padding: 2.5rem 0; }
.govgr-news-section h2 { font-size: 1.75rem; font-weight: 700; margin: 0 0 0.5rem; color: #0b0c0c; }
.govgr-news-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.govgr-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}
.govgr-news-card {
    border: 1px solid #d1d5db;
    border-radius: 2px;
    background: #ffffff;
    overflow: hidden;
    transition: box-shadow 0.15s;
}
.govgr-news-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.govgr-news-card-body { padding: 1.25rem; }
.govgr-news-date { font-size: 0.8rem; color: #6b7280; margin-bottom: 0.4rem; }
.govgr-news-card h3 { font-size: 0.95rem; font-weight: 600; margin: 0 0 0.5rem; color: #0b0c0c; }
.govgr-news-card h3 a { color: inherit; text-decoration: none; }
.govgr-news-card h3 a:hover { color: #1d4ed8; text-decoration: underline; }
.govgr-news-card p { font-size: 0.85rem; color: #4b5563; margin: 0; line-height: 1.5; }
.govgr-news-category {
    display: inline-block;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 2px;
    margin-bottom: 0.4rem;
}

/* ================================================================
   NEWS/POSTS LIST (archive)
   ================================================================ */
.govgr-news-archive {
    min-width: 0;
}

.govgr-news-archive--procurements-landing {
    margin-top: 2rem;
}

.govgr-news-archive__header {
    margin-bottom: 1.5rem;
}

.govgr-news-archive__header .govgr-heading-xl {
    margin-bottom: 0;
}

.govgr-news-archive__header--compact {
    margin-bottom: 1.25rem;
}

.govgr-news-archive__description {
    margin: 0.75rem 0 0;
    max-width: 48rem;
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.7;
}

.govgr-page-layout--news-landing {
    max-width: 1160px !important;
}

.govgr-content-grid--news-landing {
    gap: 0;
}

.govgr-posts-list {
    display: grid;
    gap: 1rem;
}

.govgr-posts-list--news-landing {
    max-width: 58rem;
}

.govgr-post-item {
    padding: 1.2rem 1.3rem 1.25rem;
    background: #fbfdff;
    border: 1px solid #dbe4ee;
    border-left: 4px solid #003476;
    border-radius: 3px;
}

.govgr-post-item__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem 0.9rem;
    margin-bottom: 0.8rem;
}

.govgr-post-item__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.govgr-post-item-date {
    margin: 0;
    font-size: 0.8rem;
    color: #6b7280;
}

.govgr-post-item h2 {
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.18;
    margin: 0 0 0.65rem;
    max-width: 34rem;
}

.govgr-post-item h2 a { color: #0b0c0c; text-decoration: none; }
.govgr-post-item h2 a:hover { color: #1d4ed8; text-decoration: underline; }
.govgr-post-item p {
    max-width: 46rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #4b5563;
    margin: 0;
}

.govgr-read-more {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1d4ed8;
    text-decoration: none;
    display: inline-block;
    margin-top: 0.85rem;
}

.govgr-read-more:hover { text-decoration: underline; }
.govgr-related-posts {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}
.govgr-related-posts h2 {
    margin-top: 0;
}
.govgr-related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}
.govgr-related-post {
    border: 1px solid #dbe2e8;
    border-top: 4px solid #003476;
    padding: 1rem;
    background: #ffffff;
}
.govgr-related-post h3 {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.45;
    margin: 0 0 0.45rem;
}
.govgr-related-post h3 a {
    color: #0b0c0c;
    text-decoration: none;
}
.govgr-related-post h3 a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}
.govgr-related-post__date {
    margin: 0 0 0.45rem;
    font-size: 0.8rem;
    color: #6b7280;
}
.govgr-related-post p {
    margin: 0;
}

/* ================================================================
   PAGINATION
   ================================================================ */
.govgr-pagination-wrap {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}
.govgr-pagination-wrap a,
.govgr-pagination-wrap span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 0.6rem;
    border: 1px solid #9ca3af;
    text-decoration: none;
    font-size: 0.875rem;
    color: #1d4ed8;
    border-radius: 2px;
    transition: all 0.1s;
}
.govgr-pagination-wrap a:hover { background: #eff6ff; border-color: #003476; }
.govgr-pagination-wrap .current { background: #003476; color: #fff; border-color: #003476; }

/* ================================================================
   COOKIE BANNER
   ================================================================ */
.govgr-cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #0b0c0c;
    border-top: 5px solid #f7a700;
    z-index: 9000;
    padding: 1rem 0;
    display: none;
}
.govgr-cookie-banner.show { display: block; }
.govgr-cookie-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.govgr-cookie-banner p { margin: 0; font-size: 0.875rem; color: #ffffff; }
.govgr-cookie-banner a { color: #f7a700; }
.govgr-cookie-btns { display: flex; gap: 0.75rem; flex-shrink: 0; }

/* ================================================================
   SKIP LINK
   ================================================================ */
.govgr-skip-link {
    position: absolute;
    top: -120px;
    left: 1rem;
    background: #f7a700;
    color: #0b0c0c;
    padding: 0.5rem 1rem;
    font-weight: 700;
    font-size: 0.875rem;
    z-index: 9999;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
    transition: top 0.2s;
}
.govgr-skip-link:focus { top: 0; }

/* ================================================================
   FOOTER COLUMNS â€” extends govgr-footer
   ================================================================ */
.govgr-footer-columns {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    padding: 2.5rem 0 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}
@media (max-width: 900px) { .govgr-footer-columns { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .govgr-footer-columns { grid-template-columns: 1fr; } }

.govgr-footer-col h3 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0 0 1rem;
    color: rgba(255,255,255,0.7);
}
.govgr-footer-col ul { list-style: none; padding: 0; margin: 0; }
.govgr-footer-col ul li { margin-bottom: 0.4rem; }
.govgr-footer-col ul li a {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.1s;
}
.govgr-footer-col ul li a:hover { color: #f7a700; }
.govgr-footer-col p { font-size: 0.875rem; color: rgba(255,255,255,0.65); line-height: 1.6; margin: 0; }

.govgr-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.25rem 0;
}
.govgr-footer-bottom p { margin: 0; font-size: 0.8rem; color: rgba(255,255,255,0.5); }
.govgr-footer-links { display: flex; gap: 1.25rem; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.govgr-footer-links a { font-size: 0.8rem; color: rgba(255,255,255,0.5); text-decoration: none; }
.govgr-footer-links a:hover { color: #f7a700; }

/* EU Logos */
.govgr-eu-logos {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}
.govgr-eu-badge {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
}
.govgr-eu-badge span { display: block; font-size: 0.7rem; color: rgba(255,255,255,0.7); }
.govgr-eu-badge strong { display: block; font-size: 0.75rem; color: #ffffff; }

/* ================================================================
   SEARCH & 404
   ================================================================ */
.govgr-search-results-count { font-size: 0.875rem; color: #6b7280; margin-bottom: 1.5rem; }
.govgr-no-results { text-align: center; padding: 3rem 0; }
.govgr-404-code { font-size: 6rem; font-weight: 900; color: #e5e7eb; line-height: 1; margin-bottom: 0; }
.govgr-cta-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

/* ================================================================
   BACK TO TOP
   ================================================================ */
#govgr-back-top {
    position: fixed;
    bottom: 5rem;
    right: 1.25rem;
    background: #003476;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
#govgr-back-top.visible { opacity: 1; }
#govgr-back-top:hover { background: #004a9e; }

/* ================================================================
   PRINT
   ================================================================ */
@media print {
    .govgr-nav-bar, .govgr-cookie-banner, #govgr-back-top,
    .govgr-sidebar, .govgr-footer-columns, .govgr-nav-toggle { display: none !important; }
    .govgr-content-grid { grid-template-columns: 1fr !important; }
    body { font-size: 12pt; color: #000; }
    a { color: #000; text-decoration: underline; }
}

/* ================================================================
   ACCESSIBILITY
   ================================================================ */
*:focus {
    outline: 3px solid #f7a700;
    outline-offset: 2px;
}
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
