/*
Theme Name: LABRE Mato Grosso do Sul
Description: Tema institucional e editorial da LABRE-MS · PT9AA.
Version: 1.2.18
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: labre-ms-tema
*/

:root {
    --navy: #151d56;
    --blue: #2c3386;
    --brand-blue: #2e3897;
    --ink: #19243d;
    --muted: #516078;
    --line: #dce2ee;
    --paper: #f2f2f3;
    --white: #fff;
    --accent: #f4e629;
    --radius: 4px;
    --wrap: 1120px;
    --body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.64 var(--body); }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.035em; text-wrap: balance; }
p { margin: 0 0 1em; }
a { color: var(--blue); text-underline-offset: .2em; }
a:hover { color: #4153ac; }
img { max-width: 100%; height: auto; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 3px solid #6272ec; outline-offset: 4px; }
.wrap { width: min(var(--wrap), calc(100% - 64px)); margin-inline: auto; }
.skip-link, .screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus, .screen-reader-text:focus { z-index: 100001; inset: 8px auto auto 8px; width: auto; height: auto; padding: 12px; clip-path: none; background: white; }

.masthead-band { background: var(--brand-blue); color: white; }
.masthead { display: grid; justify-items: center; align-items: center; min-height: 120px; padding-block: 14px; }
.masthead-logo { display: block; width: min(100%, 585px); }
.masthead-logo img { display: block; width: 100%; height: auto; }
.brand { display: inline-flex; align-items: center; gap: 13px; color: inherit; text-decoration: none; }
.brand:hover { color: inherit; }
.brand img { display: block; flex: none; }
.brand strong { display: block; color: inherit; font-size: 2.4rem; font-weight: 850; line-height: 1; letter-spacing: -.035em; }
.brand small { display: block; color: inherit; margin-top: 6px; font-size: .78rem; line-height: 1.35; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 9px 16px; border: 1px solid transparent; border-radius: 4px; background: var(--blue); color: #fff; font-size: .88rem; font-weight: 700; line-height: 1.25; text-decoration: none; }
.button:hover { background: #38499e; color: #fff; }
.button svg, .arrow-link svg { width: 18px; height: 18px; flex: none; }
.navigation { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; z-index: 5; background: var(--navy); }
.nav-wrap { display: flex; min-height: 64px; justify-content: space-between; align-items: center; gap: 12px; position: relative; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav .menu { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.primary-nav li { position: relative; }
.primary-nav a, .submenu-toggle, .nav-toggle, .site-search summary { display: inline-flex; align-items: center; min-height: 43px; padding: 8px 10px; border: 0; border-radius: 0; background: transparent; color: var(--ink); text-decoration: none; text-transform: uppercase; font-size: .76rem; font-weight: 720; line-height: 1.3; }
.primary-nav .menu > li:first-child > a { margin-left: -11px; }
.primary-nav .menu > li > a, .primary-nav .menu > li > .submenu-toggle, .nav-toggle, .site-search summary { color: #edf0ff; }
.primary-nav .menu > li > a:hover, .primary-nav .menu > li > .submenu-toggle:hover,
.primary-nav .menu > li > [aria-current="page"], .primary-nav .menu > li > [aria-expanded="true"],
.nav-toggle:hover, .site-search summary:hover, .site-search[open] summary { color: var(--accent); background: #202963; }
.primary-nav .sub-menu a:hover, .primary-nav .sub-menu .submenu-toggle:hover,
.primary-nav .sub-menu [aria-current="page"], .primary-nav .sub-menu [aria-expanded="true"] { color: var(--blue); background: var(--paper); }
.primary-nav .menu > li > [aria-current="page"] { color: var(--accent); box-shadow: inset 0 -3px var(--accent); background: transparent; }
.submenu-toggle:only-of-type:first-child::after { content: ""; width: 6px; height: 6px; margin: -3px 1px 0 10px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.primary-nav .sub-menu { display: none; position: absolute; left: 0; top: 100%; min-width: min(265px, 80vw); padding: 6px; background: white; border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 12px 30px #18284224; }
.primary-nav .sub-menu .sub-menu { position: static; min-width: 0; margin: 0 0 3px 10px; background: var(--paper); box-shadow: none; }
.primary-nav.is-enhanced .sub-menu .menu-item-has-children:has(> a + .submenu-toggle) { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.primary-nav.is-enhanced .sub-menu .menu-item-has-children > .sub-menu { grid-column: 1 / -1; }
.primary-nav .sub-menu .submenu-toggle:not(:first-child) { min-width: 42px; justify-content: center; }
.primary-nav .sub-menu a, .primary-nav .sub-menu .submenu-toggle:first-child { display: flex; min-height: 38px; width: 100%; text-align: left; }
.primary-nav .sub-menu.is-open,
.primary-nav:not(.is-enhanced) li:hover > .sub-menu,
.primary-nav:not(.is-enhanced) li:focus-within > .sub-menu { display: block; }
.nav-toggle { display: none; }
.site-search { margin-left: auto; }
.join-button { flex: none; min-height: 40px; color: var(--navy); background: var(--accent); font-size: .76rem; text-transform: uppercase; white-space: nowrap; }
.join-button:hover { color: var(--navy); background: #fff36b; }
.site-search summary { list-style: none; }
.site-search summary::-webkit-details-marker { display: none; }
.site-search form { position: absolute; right: 0; top: 100%; z-index: 2; width: min(365px, 100%); padding: 10px; background: white; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 30px #18284224; }
.search-form { display: flex; gap: 8px; max-width: 505px; }
.search-form input { width: 100%; min-width: 0; border: 1px solid #9aa7bd; border-radius: 6px; padding: 8px 10px; }
.search-form button { border: 0; border-radius: 6px; padding: 8px 13px; background: var(--blue); color: white; }

.hero { overflow: hidden; color: white; background: radial-gradient(ellipse at 35% 85%, #233c76 0%, var(--navy) 65%); }
.hero-inner { display: grid; align-items: center; min-height: 356px; position: relative; isolation: isolate; }
.hero-inner::before { content: ""; position: absolute; z-index: -1; inset: 0 -32px 0 47%; background: linear-gradient(90deg, #162243, #17294fa0 32%, #1828420f 84%), url("assets/antena.jpg") center 46% / cover; opacity: .84; mask-image: linear-gradient(90deg, transparent, #000 38%); }
.hero-inner::after { content: ""; position: absolute; z-index: -1; bottom: 0; right: 0; width: 40%; height: 34%; background: linear-gradient(0deg, #14234c81, transparent); }
.hero-copy { max-width: 680px; padding: 48px 0 53px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 15px; color: var(--accent); font-size: .77rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero .eyebrow { padding-left: 11px; border-left: 3px solid var(--accent); }
.hero h2 { max-width: 650px; font-size: clamp(2.6rem, 5.8vw, 4.65rem); letter-spacing: -.06em; line-height: 1.03; }
.hero-copy > p:not(.eyebrow) { max-width: 485px; margin: 20px 0 25px; color: #e0e7fc; font-size: clamp(1rem, 2vw, 1.12rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button-light { color: var(--navy); background: var(--accent); }
.button-light:hover { color: var(--navy); background: #fff36b; }
.button-outline { color: white; background: #101b3775; border-color: #b4c1e5; }
.button-outline:hover { background: #25345d; }

.services { padding: 34px 0 40px; background: var(--paper); border-bottom: 1px solid var(--line); }
.services h2, .section-heading h2 { font-size: clamp(1.6rem, 3vw, 2.42rem); }
.service-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.service-card { display: grid; align-content: start; position: relative; gap: 5px; min-height: 151px; padding: 15px 16px; color: var(--ink); text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.service-card:hover { border-color: #8795d4; box-shadow: 0 4px 14px #28368516; color: var(--blue); }
.service-card strong { margin-top: 4px; font-size: 1.02rem; line-height: 1.3; }
.service-card > span:not([class]) { font-size: .83rem; line-height: 1.42; color: var(--muted); }
.service-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: #edf0fd; color: var(--blue); }
.service-arrow { position: absolute; top: 18px; right: 14px; color: var(--blue); }
.service-arrow svg { width: 18px; height: 18px; }
.service-card-member { align-content: end; background: var(--navy); border-color: var(--navy); color: white; }
.service-card-member:hover { background: #202963; border-color: var(--blue); color: white; }
.service-card-member > span:not([class]) { color: #edf0ff; }
.service-card-member .service-arrow { color: var(--accent); }

.newsroom { padding-block: 26px 0; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.arrow-link { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; font-size: .88rem; font-weight: 750; }
.arrow-link:hover { text-decoration: underline; }
.news-layout { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: minmax(217px, auto); gap: 2px; }
.news-lead { grid-row: span 2; }
.news-layout:not(:has(> :nth-child(4))) .news-lead { grid-row: auto; }
.news-layout:has(> :only-child) { grid-template-columns: 1fr; }
.news-tile { display: flex; min-width: 0; min-height: 217px; background: var(--navy); }
.news-tile-link { position: relative; isolation: isolate; display: grid; align-items: end; flex: 1; min-width: 0; overflow: hidden; color: #fff; text-decoration: none; }
.news-tile-link::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, transparent 18%, #08133226 40%, #091331f5 100%); }
.news-tile-link:focus-visible { outline-offset: -4px; outline-color: var(--accent); }
.news-tile-link:hover { color: #fff; }
.news-tile-link:hover h2 { text-decoration: underline; text-underline-offset: .14em; }
.news-tile-image { position: absolute; z-index: -2; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.news-tile-copy { padding: 12px 14px 15px; text-shadow: 0 1px 4px #000; }
.news-lead .news-tile-copy { padding: 22px; }
.news-tile-copy time { display: block; margin-bottom: 5px; color: #f4f5ff; font-size: .75rem; font-weight: 600; }
.news-tile-copy h2 { font-size: clamp(.95rem, 1.55vw, 1.17rem); letter-spacing: -.015em; line-height: 1.22; text-wrap: initial; }
.news-lead h2 { font-size: clamp(1.46rem, 3.25vw, 2.23rem); }
.recent-news { padding-block: 32px 42px; }
.recent-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.recent-news-grid article { padding: 15px; border-top: 3px solid var(--blue); background: white; }
.recent-news-grid h3 { margin: 6px 0 9px; font-size: 1.11rem; }
.recent-news-grid h3 a, .archive-card h2 a { color: inherit; text-decoration: none; }
.recent-news-grid h3 a:hover, .archive-card h2 a:hover { text-decoration: underline; }
.recent-news-grid time, .archive-copy time { color: var(--blue); font-size: .78rem; font-weight: 720; }
.recent-news-grid p, .archive-copy p { margin: 0; color: var(--muted); font-size: .89rem; }
.archive-card { border: 1px solid var(--line); overflow: hidden; background: white; }
.archive-image { display: block; background: var(--paper); }
.archive-image img { display: block; width: 100%; aspect-ratio: 2.05; object-fit: cover; }
.community { padding: 32px 0; background: var(--paper); border-top: 1px solid var(--line); }
.community-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.community article { padding: 20px; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.community h2 { margin-bottom: 8px; font-size: 1.33rem; }
.community p { color: var(--muted); margin-bottom: 9px; }

.page-banner { padding-top: 24px; }
.page-banner > .wrap { padding: 19px 24px 22px; border-bottom: 3px solid var(--accent); background: white; }
.breadcrumbs ol { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 11px; list-style: none; padding: 0; margin: 0 0 19px; font-size: .84rem; color: var(--muted); }
.breadcrumbs li:not(:first-child)::before { content: "/"; margin-right: 11px; color: #818da2; }
.breadcrumbs a { color: var(--blue); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.page-banner h1 { max-width: 1000px; font-size: clamp(1.8rem, 4.5vw, 3.15rem); font-weight: 800; }
.page-banner .eyebrow { margin-bottom: 10px; color: var(--blue); }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 17px; margin: 13px 0 0; color: var(--muted); font-size: .9rem; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(215px, 270px); gap: clamp(24px, 5vw, 64px); padding: 28px 24px 60px; margin-bottom: 28px; align-items: start; background: white; }
.article-content { min-height: 170px; font-size: 1.02rem; overflow-wrap: anywhere; }
.article-content > :first-child { margin-top: 0; }
.article-content h2, .article-content h3 { margin: 1.25em 0 .55em; }
.article-content figure { max-width: 100%; margin-inline: 0; }
.article-content img { max-width: 100%; }
.article-content iframe { max-width: 100%; }
.article-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.article-content th, .article-content td { border: 1px solid var(--line); padding: 8px; vertical-align: top; }
.resource-list { margin: 0; padding: 0; list-style: none; }
.resource-list li { padding: 9px 0; border-top: 1px solid var(--line); }
.article-image img { display: block; border-radius: var(--radius); }
.sidebar, .contact-panel { padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.sidebar h2 { font-size: 1.12rem; margin: 0 0 8px; }
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar a { display: block; padding: 6px 0; font-size: .88rem; text-decoration: none; }
.sidebar a:hover, .sidebar [aria-current="page"] { text-decoration: underline; }
.sidebar [aria-current="page"] { font-weight: 750; }
.article-content .contact-panel h2 { margin-top: 0; }
.contact-panel p:last-child { margin-bottom: 0; }
.archive-summary { margin-top: 12px; }
.archive-content { padding: 28px 24px 60px; margin-bottom: 28px; min-height: 35vh; background: white; }
.archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.archive-copy { padding: 17px; }
.archive-copy h2 { margin: 7px 0; font-size: 1.24rem; }
.archive-copy p { font-size: .89rem; }
.pagination { margin-top: 25px; }
.page-numbers { display: inline-flex; padding: 5px 9px; }
.page-numbers.current { background: var(--paper); font-weight: 750; }

.site-footer { background: var(--brand-blue); color: #e4e9ff; }
.footer-grid { display: grid; grid-template-columns: 1.25fr .8fr 1fr; gap: 25px; padding: 38px 0 26px; }
.footer-brand { display: inline-block; margin-bottom: 10px; }
.site-footer a { color: inherit; }
.footer-brand img { display: block; }
.site-footer h2 { color: white; font-size: 1.04rem; margin-bottom: 9px; }
.site-footer p, .site-footer address, .site-footer li, .site-footer a:not(.brand) { font-size: .87rem; }
.site-footer a:not(.brand) { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer address { font-style: normal; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; border-top: 1px solid #ffffff34; font-size: .8rem; padding: 13px 0 18px; }

@media (max-width: 875px) {
    .wrap { width: calc(100% - 38px); }
    .nav-toggle:not([hidden]) { display: inline-flex; gap: 10px; }
    .nav-wrap { flex-wrap: wrap; align-content: start; }
    .primary-nav { flex-basis: 100%; order: 3; }
    .primary-nav.is-enhanced:not(.is-open) { display: none; }
    .primary-nav .menu { display: block; padding-bottom: 8px; }
    .primary-nav .menu > li:first-child > a { margin-left: 0; }
    .primary-nav .sub-menu, .primary-nav .sub-menu .sub-menu { position: static; box-shadow: none; margin: 0 0 3px 13px; min-width: 0; background: var(--paper); }
    .site-search form { top: 50px; }
    .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .service-card-member { grid-column: 1 / -1; min-height: 95px; }
    .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .wrap { width: calc(100% - 30px); }

    .masthead { min-height: 75px; padding-block: 10px; }
    .brand { gap: 8px; }
    .hero-inner { min-height: auto; }
    .hero-inner::before { inset: 0 -15px 0 24%; opacity: .35; }
    .hero-copy { padding-block: 52px; }
    .service-grid { gap: 8px; }
    .service-card { padding: 12px; }
    .service-card strong { font-size: .94rem; }
    .community-grid, .content-layout, .archive-grid, .footer-grid { grid-template-columns: minmax(0, 1fr); }
    .news-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
    .news-lead { grid-column: 1 / -1; grid-row: auto; min-height: 275px; }
    .news-tile:not(.news-lead) { min-height: 175px; }
    .news-tile-copy { padding-inline: 9px; }
    .news-lead .news-tile-copy { padding: 14px; }
    .newsroom { padding-top: 15px; }
    .recent-news-grid { grid-template-columns: 1fr; }
    .page-banner > .wrap, .content-layout, .archive-content { padding-inline: 14px; }
    .content-layout, .archive-content { padding-block: 23px 40px; }
}














.simulator-dialog { width: min(960px, calc(100% - 24px)); height: min(900px, 90dvh); max-height: none; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); overflow: hidden; }
.simulator-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.simulator-dialog::backdrop { background: #0c153bcc; }
.simulator-dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; color: white; background: var(--navy); }
.simulator-dialog-header h2 { font-size: 1.1rem; }
.simulator-dialog-header a { color: var(--accent); font-size: .83rem; }
.simulator-dialog-header button { padding: 6px 10px; border: 1px solid #a2adcf; border-radius: 4px; color: white; background: transparent; font-weight: 700; }
.simulator-dialog iframe { display: block; width: 100%; height: 100%; border: 0; }
.simulator-dialog-header p { margin: 3px 0; font-size: .82rem; }





