:root {
    --a:#6d1726;
    --b:#6b8e3d;
    --bg:#f7ead7;
    --line:#ddd
}
* {
    box-sizing:border-box
}
body {
    margin:0;
    font:15px/1.6 Georgia,sans-serif;
    color:#292929
}
.mate-wrap {
    width:min(1140px,calc(100% - 32px));
    margin:auto
}
.mate-head {
    border-bottom:3px solid var(--b);
    background:#fff
}
.mate-head>.mate-wrap {
    min-height:68px;
    display:flex;
    align-items:center;
    justify-content:space-between
}
.mate-brand {
    display:flex;
    gap:10px;
    align-items:center;
    color:var(--a);
    text-decoration:none;
    font-size:19px
}
.mate-brand i {
    background:var(--a);
    color:#fff;
    padding:5px 9px;
    font-style:normal;
    border-radius:20px
}
.mate-head nav {
    display:flex;
    gap:18px
}
.mate-head nav a {
    color:#333;
    text-decoration:none;
    font-weight:700
}
.mate-head button {
    display:none
}
.mate-hero {
    background:var(--bg)
}
.mate-hero>.mate-wrap {
    padding:48px 0;
    display:grid;
    grid-template-columns:.8fr 1.2fr;
    gap:45px;
    align-items:center
}
.mate-hero h1 {
    font-size:clamp(42px,6vw,65px);
    line-height:1;
    margin:10px 0;
    color:var(--a)
}
.mate-hero p {
    font-size:19px
}
.mate-hero a {
    display:inline-block;
    background:var(--a);
    color:#fff;
    padding:10px 16px;
    border-radius:20px;
    text-decoration:none
}
.mate-hero aside {
    padding:25px;
    background:#fff;
    border:2px solid var(--a);
    border-radius:20px
}
.mate-hero aside>* {
    display:block
}
.mate-hero aside b {
    font-size:34px;
    color:var(--a)
}
.mate-cal,.mate-content {
    padding:42px 0
}
.mate-year {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:14px
}
.mate-one {
    max-width:720px
}
.mate-month {
    border:1px solid var(--line);
    border-radius:20px;
    overflow:hidden
}
.mate-month header {
    display:flex;
    justify-content:space-between;
    padding:12px;
    background:var(--bg)
}
.mate-month h3 {
    margin:0;
    color:var(--a)
}
.mate-days,.mate-week {
    display:grid;
    grid-template-columns:36px repeat(7,1fr)
}
.mate-days>* ,.mate-week>* {
    padding:8px 2px;
    text-align:center;
    border-bottom:1px solid #eee
}
.mate-week button {
    border:0;
    background:#fff
}
.mate-week .holiday {
    background:var(--a);
    color:#fff;
    font-weight:bold
}
.mate-content>.mate-wrap {
    max-width:900px
}
.mate-content h2 {
    color:var(--a)
}
.mate-content details {
    border-top:1px solid var(--line);
    padding:11px
}
.mate-content table {
    width:100%;
    border-collapse:collapse
}
.mate-content td {
    padding:10px;
    border-bottom:1px solid var(--line)
}
.mate-title {
    background:var(--bg);
    padding:35px 0
}
.mate-title h1 {
    font-size:44px;
    color:var(--a)
}
.mate-foot {
    background:#222;
    color:#fff;
    padding:35px 0
}
.mate-foot nav {
    display:flex;
    gap:18px;
    margin-top:12px
}
.mate-foot a {
    color:#fff
}
@media(max-width:800px) {
    .mate-head nav {
        display:none
    }
    .mate-head button {
        display:block
    }
    .mate-hero>.mate-wrap {
        grid-template-columns:1fr
    }
    .mate-year {
        grid-template-columns:1fr 1fr
    }
}
@media(max-width:520px) {
    .mate-year {
        grid-template-columns:1fr
    }
}
.skip-link {
    position: fixed;
    left: 1rem;
    top: -5rem;
    z-index: 1000;
    padding: 0.75rem 1rem;
    background: #fff;
    color: #111;
}
.skip-link:focus {
    top: 1rem;
}
.form-hp {
    position: absolute;
    left: -10000px;
}
form {
    display: grid;
    gap: 1rem;
    max-width: 680px;
}
form label {
    display: grid;
    gap: 0.35rem;
    font-weight: 700;
}
form input, form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #bbb;
    font: inherit;
}
form button {
    justify-self: start;
    padding: 0.7rem 1.2rem;
    cursor: pointer;
}
.today {
    outline: 2px solid var(--b);
    outline-offset: -2px;
}
@media (max-width: 800px) {
    .mate-head nav.is-open {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 100;
        flex-direction: column;
        padding: 1rem;
        background: #fff;
    }
    .mate-head > .mate-wrap {
        position: relative;
    }
}

/* Semantic page and calendar foundation — v2.1.1 */
:root {
    --ink: var(--a);
    --paper: var(--bg);
    --accent: var(--b);
}
.mate-hero > .mate-wrap {
    display: block;
}
.mate-hero > .mate-wrap > p {
    margin: 0;
    color: var(--accent);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .15em;
}
.mate-hero .mate-lead {
    max-width: 720px;
    margin: 0 0 22px;
    font-size: 19px;
}
.mate-facts {
    border-bottom: 1px solid var(--line);
    background: #fff;
}
.mate-facts .mate-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}
.mate-facts article {
    min-width: 0;
    padding: 18px;
    border-right: 1px solid var(--line);
}
.mate-facts article:last-child {
    border-right: 0;
}
.mate-facts small {
    display: block;
    color: #727773;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
}
.mate-facts b {
    display: block;
    overflow-wrap: anywhere;
    color: var(--ink);
}
.mate-month h3 {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 13px 14px;
    color: var(--ink);
    background: var(--paper);
}
.mate-month h3 small {
    font: inherit;
}
.mate-wd,
.mate-week {
    display: grid;
    grid-template-columns: 36px repeat(7, minmax(0, 1fr));
}
.mate-wd b {
    padding: 8px 2px;
    color: #707570;
    font-size: 10px;
    text-align: center;
}
.mate-week > * {
    display: grid;
    min-height: 40px;
    padding: 0;
    place-items: center;
    border: 0;
    border-top: 1px solid #eceeec;
    background: #fff;
}
.mate-week em {
    color: #929792;
    font-size: 10px;
    font-style: normal;
}
.mate-week button {
    cursor: pointer;
}
.mate-year {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.mate-page {
    padding: 42px 0;
    background: var(--paper);
}
.mate-page h1 {
    margin: 8px 0;
    color: var(--ink);
    font-size: clamp(38px, 6vw, 54px);
    line-height: 1.08;
}
.mate-page-intro {
    max-width: 780px;
    font-size: 17px;
}
.mate-cal--page,
.mate-table {
    padding: 44px 0;
}
.mate-table table {
    width: 100%;
    border-collapse: collapse;
}
.mate-table th,
.mate-table td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}
.mate-table th {
    color: #fff;
    background: var(--ink);
}
.mate-copy,
.mate-faq {
    padding: 32px 0 56px;
}
.mate-copy .mate-wrap,
.mate-faq .mate-wrap {
    max-width: 900px;
}
.mate-copy h2,
.mate-faq h2 {
    color: var(--ink);
}
.mate-faq-list details {
    padding: 13px 0;
    border-top: 1px solid var(--line);
}
.mate-faq-list summary {
    cursor: pointer;
    color: var(--ink);
    font-weight: 800;
}
.mate-faq-list details > div {
    padding-top: 8px;
}
.mate-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    color: #fff;
    background: var(--ink);
    text-decoration: none;
    font-weight: 800;
}

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

@media (max-width: 640px) {
    .mate-facts .mate-wrap {
        grid-template-columns: 1fr;
    }
    .mate-facts article {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
    .mate-facts article:last-child {
        border-bottom: 0;
    }
    .mate-year {
        grid-template-columns: 1fr;
    }
}


/* Calendar interaction, breadcrumb and homepage presentation — v2.1.1 */
.mate-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    max-width: 100%;
    margin-bottom: 14px;
    color: #6a6e6b;
    font-size: 13px;
    line-height: 1.4;
}
.mate-breadcrumb a {
    color: var(--ink);
    font-weight: 800;
    text-decoration: none;
}
.mate-breadcrumb a:hover,
.mate-breadcrumb a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.mate-breadcrumb > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mate-cal--home {
    position: relative;
    padding: 64px 0 72px;
    background: linear-gradient(180deg, #fff 0%, var(--paper) 100%);
}
.mate-calendar-intro {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 26px;
}
.mate-calendar-intro span,
.mate-calendar-guide > span {
    display: block;
    color: var(--accent);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .16em;
}
.mate-calendar-intro h2 {
    margin: 5px 0 4px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.1;
}
.mate-calendar-intro p {
    max-width: 650px;
    margin: 0;
    color: #5f625f;
    font-size: 16px;
}
.mate-calendar-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, .75fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 65px rgba(22, 28, 25, .1);
}
.mate-calendar-showcase .mate-one {
    max-width: none;
    padding: clamp(18px, 4vw, 42px);
}
.mate-calendar-showcase .mate-month {
    width: 100%;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 0 0 1px var(--line);
}
.mate-calendar-guide {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 4vw, 48px);
    color: #fffaf2;
    background: #6d1726;
}
.mate-calendar-guide > span {
    color: #d7b26d;
}
.mate-calendar-guide h3 {
    margin: 8px 0 12px;
    color: inherit;
    font-size: 29px;
    line-height: 1.12;
}
.mate-calendar-guide p {
    margin: 0 0 26px;
    opacity: .86;
}
.mate-legend {
    display: grid;
    gap: 12px;
}
.mate-legend span {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 750;
}
.mate-legend i {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 0 0 2px currentColor;
}
.mate-legend i.is-today {
    background: #6b8e3d;
    box-shadow: 0 0 0 3px #476425;
}
.mate-legend i.is-holiday {
    background: var(--accent);
    box-shadow: none;
}
.mate-legend i.is-weekend {
    opacity: .48;
}
.mate-legend--page {
    grid-template-columns: repeat(3, max-content);
    justify-content: center;
    margin-top: 28px;
    color: #4d514e;
}
.mate-week button {
    position: relative;
    isolation: isolate;
    min-width: 0;
    font: inherit;
    transition: color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.mate-week button > span {
    position: relative;
    z-index: 2;
}
.mate-week button:hover,
.mate-week button:focus-visible {
    z-index: 3;
    color: var(--ink);
    background: color-mix(in srgb, var(--paper) 72%, #fff);
    box-shadow: inset 0 0 0 2px var(--ink);
    outline: 0;
}
.mate-week button:active {
    transform: scale(.93);
}
.mate-week button.weekend:not(.holiday):not(.today) {
    color: var(--ink);
    background: color-mix(in srgb, var(--paper) 54%, #fff);
}
.mate-week button.holiday {
    color: #fff;
    background: var(--accent);
    font-weight: 900;
}
.mate-week button.holiday i {
    position: absolute;
    right: 5px;
    bottom: 4px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
}
.mate-week button.today {
    z-index: 2;
    color: #fff;
    background: #6b8e3d;
    font-weight: 950;
    box-shadow: inset 0 0 0 2px #476425, 0 0 0 2px #fff;
}
.mate-week button.selected {
    z-index: 3;
    box-shadow: inset 0 0 0 2px #fff, 0 0 0 3px var(--ink);
}
.mate-date-drawer {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1001;
    width: min(430px, calc(100% - 32px));
    padding: 28px;
    color: #232724;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 6px solid var(--accent);
    border-radius: 20px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .28);
}
.mate-date-drawer[hidden],
.mate-drawer-backdrop[hidden] {
    display: none;
}
.mate-date-drawer > button {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: var(--ink);
    cursor: pointer;
    font-size: 24px;
}
.mate-date-drawer > span {
    display: block;
    margin-right: 45px;
    color: var(--accent);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .16em;
}
.mate-date-drawer > strong {
    display: block;
    margin: 8px 45px 4px 0;
    color: var(--ink);
    font-size: 22px;
    line-height: 1.25;
}
.mate-date-drawer > p {
    margin: 0 0 18px;
    color: #6a6e6b;
}
.mate-date-drawer #selectedEvent > div,
.mate-date-drawer #selectedEvent > p {
    margin: 8px 0 0;
    padding: 13px 15px;
    border-radius: 12px;
    background: var(--paper);
}
.mate-date-drawer #selectedEvent span,
.mate-date-drawer #selectedEvent b {
    display: block;
}
.mate-date-drawer #selectedEvent span {
    color: var(--accent);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .1em;
}
.mate-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(13, 18, 15, .3);
    cursor: default;
}
.mate-drawer-open {
    overflow: hidden;
}

@media (max-width: 760px) {
    .mate-cal--home {
        padding: 42px 0 52px;
    }
    .mate-calendar-intro {
        display: grid;
        align-items: start;
    }
    .mate-calendar-intro .mate-more {
        justify-self: start;
        margin-top: 0;
    }
    .mate-calendar-showcase {
        grid-template-columns: 1fr;
    }
    .mate-calendar-showcase .mate-one {
        padding: 16px;
    }
    .mate-calendar-guide {
        padding: 24px;
    }
    .mate-calendar-guide h3 {
        font-size: 24px;
    }
    .mate-legend--page {
        grid-template-columns: 1fr;
        justify-content: start;
    }
    .mate-date-drawer {
        right: 16px;
        bottom: 16px;
        padding: 24px;
    }
}

@media (max-width: 430px) {
    .mate-calendar-intro h2 {
        font-size: 28px;
    }
    .mate-calendar-showcase .mate-one {
        padding: 10px;
    }
    .mate-calendar-showcase .mate-month {
        border-radius: 10px;
    }
    .mate-wd,
    .mate-week {
        grid-template-columns: 27px repeat(7, minmax(0, 1fr));
    }
    .mate-week > * {
        min-height: 38px;
        padding: 0;
        font-size: 12px;
    }
    .mate-wd b {
        overflow: hidden;
        font-size: 9px;
    }
}

/* Homepage actions stay editable through Primary/Secondary homepage settings. */
.mate-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.mate-hero .mate-hero-actions > a.mate-hero-secondary {
    color: var(--ink, var(--a));
    background: transparent;
    box-shadow: inset 0 0 0 1px currentColor;
}

.mate-cal--home {
    scroll-margin-top: 12px;
}

@media (max-width: 520px) {
    .mate-hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .mate-hero-actions > a {
        display: block;
        text-align: center;
    }
}
