:root {
    --green: #008574;
    --ink: #193b33;
    --muted: #698077;
    --bg: #f6f9f6;
    --line: #dce7df;
    --mint: #e7f3ed;
    --amber: #95600c;
    --gold: #fcf3df
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif
}

button,
input,
select {
    font: inherit
}

button,
a,
summary,
select {
    -webkit-tap-highlight-color: transparent
}

button,
summary {
    cursor: pointer
}

a {
    color: inherit;
    text-decoration: none
}

button {
    color: inherit
}

svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0
}

a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
summary:focus-visible {
    outline: 0;
    outline-offset: 4px
}

.shell {
    width: min(1160px, calc(100% - 48px));
    margin: auto
}

.top {
    background: white;
    border-bottom: 1px solid var(--line)
}

.top .shell {
    min-height: 82px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px
}

.brand {
    display: inline-flex;
    gap: 11px;
    align-items: center;
    font-size: 21px;
    font-weight: 750;
    letter-spacing: -.65px;
    white-space: nowrap
}

.brand b {
    color: var(--green)
}

.brandmark {
    width: 38px;
    height: 42px;
    display: grid;
    place-items: center;
    transform: rotate(-7deg);
    border-radius: 13px 13px 13px 5px;
    background: var(--green);
    color: white
}

.brandmark svg {
    transform: rotate(7deg);
    width: 23px;
    height: 23px
}

.nav {
    display: flex;
    align-items: center;
    gap: 29px;
    font-size: 13px
}

.nav .current {
    color: var(--green);
    border-bottom: 3px solid var(--green);
    padding: 27px 0;
    font-weight: 650
}

.nav .place {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    border-radius: 9px;
    background: var(--mint);
    color: var(--green)
}

.nav .place svg {
    width: 16px;
    height: 16px
}

.bread {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
    padding: 25px 0
}

.bread a {
    color: var(--green)
}

.bread svg {
    height: 12px;
    width: 12px
}

.hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 44px;
    align-items: center;
    margin: 8px 0 30px
}

.eyebrow {
    margin: 0 0 13px;
    color: var(--green);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 1.8px;
    text-transform: uppercase
}

h1 {
    font-size: 43px;
    line-height: 1.13;
    letter-spacing: -1.5px;
    margin: 0 0 17px
}

h1 span {
    color: var(--green)
}

.intro {
    font-size: 15px;
    color: var(--muted);
    max-width: 460px;
    margin: 0 0 20px
}

.year {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    padding: 5px 10px;
    color: var(--muted);
    font-size: 12px
}

.year svg {
    width: 15px;
    height: 15px
}

.next {
    border: 1px solid #cfe2d5;
    border-radius: 20px;
    background: #eaf4ec;
    padding: 22px 24px;
    position: relative;
    overflow: hidden
}

.next-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 19px
}

.next-top .eyebrow {
    margin: 0;
    font-size: 10px
}

.countdown {
    border-radius: 30px;
    background: white;
    color: var(--green);
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 650;
    white-space: nowrap
}

.next-body {
    display: flex;
    gap: 18px;
    align-items: center
}

.date-large {
    flex-shrink: 0;
    background: white;
    border: 1px solid #dbe7d9;
    border-radius: 14px;
    width: 77px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    line-height: 1.2;
    color: var(--green)
}

.date-large b {
    font-size: 34px;
    letter-spacing: -1px
}

.date-large span {
    font-size: 11px;
    letter-spacing: 1.2px;
    font-weight: 700;
    margin-top: 4px
}

.next h2 {
    font-size: 20px;
    letter-spacing: -.4px;
    line-height: 1.35;
    margin: 0 0 8px
}

.next-desc {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--muted)
}

.next-desc .tag {
    font-size: 10px;
    background: #fff
}

.next-foot {
    border-top: 1px solid #d3e3d6;
    padding-top: 14px;
    margin-top: 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px
}

.next-foot span {
    font-size: 11px;
    color: var(--muted)
}

.link-button {
    border: 0;
    background: none;
    padding: 0;
    color: var(--green);
    display: inline-flex;
    gap: 6px;
    align-items: center;
    font-size: 12px;
    font-weight: 650
}

.link-button svg {
    width: 16px;
    height: 16px
}

.query-card {
    border: 1px solid var(--line);
    border-radius: 17px;
    background: white;
    padding: 18px 22px;
    display: flex;
    align-items: flex-end;
    gap: 14px;
    margin-bottom: 34px
}

.field {
    flex: 1
}

.field label {
    display: block;
    font-weight: 650;
    font-size: 12px;
    margin: 0 0 7px
}

.select-field {
    display: flex;
    gap: 10px;
    align-items: center;
    border: 1px solid #d2e0d7;
    border-radius: 10px;
    padding-left: 13px;
    color: var(--green)
}

.select-field select {
    width: 100%;
    min-height: 45px;
    background: white;
    border: 0;
    border-radius: 10px;
    color: var(--ink);
    padding: 8px 12px 8px 0;
    font-size: 14px
}

.primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--green);
    background: var(--green);
    color: white;
    border-radius: 10px;
    padding: 11px 21px;
    min-height: 46px;
    font-size: 13px;
    font-weight: 650
}

.primary:hover {
    background: #006c5e
}

.outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 14px;
    min-height: 46px;
    font-size: 12px
}

.outline:hover {
    background: var(--mint)
}

.outline svg {
    width: 17px;
    height: 17px
}

.layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 306px;
    gap: 24px;
    align-items: start
}

.section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 19px
}

h2 {
    font-size: 23px;
    line-height: 1.3;
    letter-spacing: -.6px;
    margin: 0 0 6px
}

.section-head p {
    margin: 0;
    color: var(--muted);
    font-size: 12px
}

.calendar-year {
    font-size: 12px;
    border: 1px solid var(--line);
    padding: 5px 10px;
    border-radius: 7px;
    background: white
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 19px
}

.filters button {
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--line);
    background: white;
    color: var(--muted);
    padding: 8px 12px;
    border-radius: 9px;
    font-size: 12px
}

.filters button[aria-pressed=true] {
    color: white;
    background: var(--green);
    border-color: var(--green)
}

.filters button span {
    font-size: 10px;
    background: #f1f5f1;
    border-radius: 5px;
    padding: 0 5px;
    color: var(--muted)
}

.filters button[aria-pressed=true] span {
    color: white;
    background: #ffffff26
}

.list-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 15px
}

.upcoming-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 12px;
    color: var(--muted)
}

.upcoming-toggle input {
    accent-color: var(--green);
    width: 16px;
    height: 16px;
    margin: 0
}

.list-tools select {
    border: 1px solid var(--line);
    background: white;
    border-radius: 8px;
    color: var(--ink);
    font-size: 12px;
    padding: 7px 10px;
    max-width: 180px
}

.result-info {
    font-size: 11px;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 12px;
    min-height: 24px
}

.clear {
    border: 0;
    background: none;
    color: var(--green);
    font-size: 11px;
    text-decoration: underline;
    text-underline-offset: 3px;
    padding: 3px
}

.holiday-list {
    background: white;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden
}

.holiday {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 19px 21px;
    border-bottom: 1px solid #e7eee8;
    position: relative
}

.holiday:last-child {
    border-bottom: 0
}

.holiday.highlight {
    background: #f0f8f1;
    box-shadow: inset 3px 0 var(--green)
}

.date-tile {
    width: 51px;
    height: 57px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    flex-shrink: 0;
    border-radius: 10px;
    background: #f4f6f2;
    color: #718278;
    line-height: 1.2
}

.date-tile b {
    font-size: 23px;
    letter-spacing: -.6px
}

.date-tile span {
    font-size: 9px;
    letter-spacing: .7px;
    font-weight: 750;
    margin-top: 3px
}

.holiday:not(.past) .date-tile {
    background: var(--gold);
    color: var(--amber)
}

.holiday.highlight .date-tile {
    background: var(--green);
    color: white
}

.holiday-copy {
    min-width: 0;
    flex: 1
}

.holiday h3 {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 650;
    margin: 0 0 6px
}

.holiday-meta {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 11px;
    color: var(--muted);
    flex-wrap: wrap
}

.holiday-side {
    font-size: 10px;
    color: var(--green);
    white-space: nowrap;
    font-weight: 650
}

.holiday.past .holiday-side {
    color: #96a298;
    font-weight: 400
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 10px;
    line-height: 1.4
}

.tag.Nacional {
    background: #e9f4ed;
    color: #087c66
}

.tag.Estadual {
    background: #edf2fa;
    color: #486da1
}

.tag.Municipal {
    background: #fcf3df;
    color: #986919
}

.empty {
    padding: 40px 25px;
    text-align: center;
    color: var(--muted);
    background: white;
    border: 1px dashed var(--line);
    border-radius: 17px
}

.empty svg {
    width: 30px;
    height: 30px;
    color: var(--green)
}

.empty h3 {
    color: var(--ink);
    font-size: 18px;
    margin-bottom: 6px
}

.empty p {
    font-size: 13px;
    margin-top: 0
}

.sidebar {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 24px
}

.panel {
    background: white;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 21px
}

.panel-heading {
    display: flex;
    gap: 9px;
    align-items: center;
    margin-bottom: 17px
}

.panel-heading svg {
    color: var(--green);
    width: 19px;
    height: 19px
}

.panel-heading h2 {
    font-size: 16px;
    margin: 0
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #edf1ec;
    font-size: 12px
}

.summary-line:last-of-type {
    border-bottom: 0
}

.summary-line>b {
    font-size: 16px
}

.summary-total {
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid var(--line);
    padding-top: 16px;
    margin-top: 6px;
    font-size: 12px;
    color: var(--muted)
}

.summary-total strong {
    color: var(--green);
    font-size: 29px;
    line-height: 1
}

.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px
}

.calendar-nav strong {
    font-size: 14px;
    text-transform: capitalize
}

.icon-button {
    border: 1px solid var(--line);
    background: white;
    border-radius: 8px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    padding: 4px;
    color: var(--muted)
}

.icon-button svg {
    height: 15px;
    width: 15px
}

.icon-button:disabled {
    opacity: .35;
    cursor: default
}

.mini-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    font-size: 11px;
    text-align: center
}

.weekday {
    color: #87968e;
    font-size: 9px;
    padding: 0 0 7px
}

.day {
    height: 28px;
    display: grid;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 11px;
    background: none;
    color: var(--muted);
    padding: 0
}

.day.event {
    background: var(--mint);
    color: var(--green);
    font-weight: 700
}

.day.event:hover {
    border-color: var(--green)
}

.day.today {
    border-color: #91ae9d
}

.day.event.selected {
    background: #087565;
    border-color: #087565;
    color: #fff
}

.calendar-key {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: var(--muted);
    margin: 15px 0 0
}

.calendar-key i {
    height: 7px;
    width: 7px;
    background: var(--green);
    border-radius: 50%
}

.notice {
    background: #edf4e9;
    border: 1px solid #dce8d6;
    border-radius: 17px;
    padding: 21px
}

.notice>svg {
    color: var(--green);
    width: 24px;
    height: 24px;
    margin-bottom: 9px
}

.notice h3 {
    font-size: 15px;
    line-height: 1.4;
    margin: 0 0 9px
}

.notice p {
    font-size: 12px;
    color: var(--muted);
    margin: 0
}

.sources {
    margin: 27px 0 37px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: white;
    padding: 0 19px
}

.sources summary {
    padding: 16px 0;
    font-size: 12px;
    font-weight: 650;
    color: var(--muted)
}

.sources-content {
    padding-bottom: 18px;
    font-size: 12px;
    color: var(--muted)
}

.sources-content a {
    color: var(--green);
    text-decoration: underline;
    text-underline-offset: 3px
}

.sources-content ul {
    padding-left: 18px
}

.sources-content li {
    margin: 8px 0
}

.sources-content p {
    margin: 10px 0
}



.footer {
    border-top: 1px solid var(--line);
    background: white;
    padding: 25px 0
}

.footer .shell {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px
}

.footer .brand {
    font-size: 17px
}

.footer p {
    font-size: 11px;
    color: var(--muted);
    margin: 5px 0 0
}

.footer a:not(.brand) {
    font-size: 12px;
    color: var(--green)
}

.skip {
    position: fixed;
    top: -100px;
    left: 12px;
    background: white;
    padding: 10px;
    z-index: 100
}

.skip:focus {
    top: 10px
}

[hidden] {
    display: none !important
}

@media(max-width:980px) {
    .hero {
        gap: 23px;
        grid-template-columns: 1fr 1fr
    }

    h1 {
        font-size: 36px
    }

    .layout {
        grid-template-columns: minmax(0, 1fr) 270px;
        gap: 18px
    }

    .next {
        padding: 19px
    }

    .next-body {
        gap: 13px
    }

    .next h2 {
        font-size: 18px
    }

    .holiday {
        padding: 17px 15px;
        gap: 12px
    }

    .nav {
        gap: 17px
    }

    .next-foot span {
        max-width: 160px
    }

    .holiday-side {
        display: none
    }
}

@media(max-width:760px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 3px
    }

    .intro {
        max-width: none
    }

    .hero-copy {
        max-width: 550px
    }

    .layout {
        grid-template-columns: 1fr
    }

    .sidebar {
        position: static;
        grid-template-columns: 1fr 1fr
    }

    .notice {
        grid-column: 1/-1
    }

    .query-card {
        padding: 17px;
        gap: 10px
    }

    .query-card .outline {
        padding: 10px
    }

    .query-card .outline span {
        display: none
    }

    .nav>a:first-child {
        display: none
    }

    .nav {
        gap: 17px
    }

    .sources {
        margin-bottom: 30px
    }
}

@media(max-width:480px) {
    .shell {
        width: calc(100% - 32px)
    }

    .top .shell {
        min-height: 72px;
        gap: 12px
    }

    .brand {
        font-size: 19px;
        gap: 9px
    }

    .brandmark {
        width: 33px;
        height: 38px
    }

    .nav .place {
        display: none
    }

    .nav .current {
        padding: 23px 0;
        font-size: 12px
    }

    .bread {
        padding: 20px 0;
        font-size: 10px;
        gap: 8px
    }

    h1 {
        font-size: 35px;
        letter-spacing: -1.3px
    }

    .intro {
        font-size: 14px;
        margin-bottom: 15px
    }

    .eyebrow {
        font-size: 9px;
        letter-spacing: 1.5px
    }

    .hero {
        margin-bottom: 22px
    }

    .next {
        padding: 19px 17px;
        border-radius: 17px
    }

    .next h2 {
        font-size: 18px
    }

    .next-top {
        margin-bottom: 15px
    }

    .date-large {
        width: 64px;
        height: 77px
    }

    .date-large b {
        font-size: 30px
    }

    .next-body {
        gap: 14px
    }

    .next-desc {
        flex-wrap: wrap;
        gap: 6px
    }

    .next-foot {
        gap: 8px
    }

    .next-foot span {
        font-size: 10px;
        max-width: 170px
    }

    .link-button {
        font-size: 11px
    }

    .query-card {
        flex-wrap: wrap;
        border-radius: 14px;
        margin-bottom: 27px
    }

    .query-card .field {
        flex-basis: 100%
    }

    .query-card .primary {
        flex: 1
    }

    .query-card .outline span {
        display: inline
    }

    .section-head h2 {
        font-size: 22px
    }

    .filters {
        gap: 6px
    }

    .filters button {
        font-size: 11px;
        padding: 7px 9px;
        gap: 5px
    }

    .filters button span {
        font-size: 9px
    }

    .list-tools {
        gap: 8px
    }

    .upcoming-toggle {
        font-size: 11px
    }

    .list-tools select {
        font-size: 11px;
        max-width: 135px
    }

    .holiday {
        padding: 16px 13px;
        gap: 12px
    }

    .holiday h3 {
        font-size: 13px
    }

    .holiday-meta {
        gap: 7px;
        font-size: 10px
    }

    .date-tile {
        width: 45px;
        height: 53px
    }

    .date-tile b {
        font-size: 21px
    }

    .tag {
        font-size: 9px;
        padding: 3px 6px
    }

    .sidebar {
        grid-template-columns: 1fr
    }

    .sidebar .calendar-panel {
        display: none
    }

    .summary-lines {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px
    }

    .summary-line {
        display: flex;
        flex-direction: column;
        gap: 9px;
        border: 0;
        padding: 0;
        font-size: 11px
    }

    .summary-total {
        justify-content: center;
        margin-top: 19px
    }

    .panel {
        padding: 20px
    }

    .notice {
        grid-column: auto
    }

    .footer .shell {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px
    }

    .sources {
        margin-top: 22px
    }


}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }
}

@media print {

    .top,
    .bread,
    .query-card,
    .filters,
    .list-tools,
    .sidebar,
    .result-info,
    .sources,
    .faq,
    footer,
    .next-foot {
        display: none !important
    }

    body {
        background: white;
        font-size: 12px
    }

    .shell {
        width: 100%
    }

    .hero {
        grid-template-columns: 1fr
    }

    .next {
        display: none
    }

    .year {
        border: 0;
        padding: 0
    }

    .layout {
        display: block
    }

    .holiday {
        break-inside: avoid;
        padding: 10px
    }

    .holiday-list {
        border: 0
    }

    .holiday-side {
        display: none
    }

    h1 {
        font-size: 28px
    }

    .section-head {
        margin-bottom: 10px
    }

    .holiday h3 {
        font-size: 12px
    }

    .date-tile {
        height: 40px;
        width: 40px
    }

    .date-tile b {
        font-size: 18px
    }
}

[hidden] {
    display: none !important;
}

.banner-topo {
    min-height: 100px;
    max-width: 900px;
    margin: auto;
    margin-bottom: 15px;
}