* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f2f4f7;
    color: #222;
}

header {
    background: linear-gradient(to bottom, #a8d1ff, #6fb3ff);
    padding: 20px 0;
    text-align: center;
}

.site-header {
    position: relative;
    text-align: center;
}

.site-header img {
    width: 100%;
    display: block;
}

header img {
    max-width: 700px;
    width: 90%;
    height: auto;
}

.header-inner {
    position: relative;
    width: 90%;
    max-width: 700px;
    margin: 0 auto;
}

.header-inner img {
    display: block;
    width: 100%;
    height: auto;
}

.site-tagline {
    background-color: transparent;
    text-align: center;
    padding: 14px 20px 10px;
    font-size: 36px;
    font-style: italic;
    font-weight: bold;
    color: #f0a64a;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.main-nav {
    background-color: #ffffff;
    border-bottom: 1px solid #d9d9d9;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 16px 0;
    flex-wrap: wrap;
}

.main-nav a {
    text-decoration: none;
    color: #0037cc;
    font-size: 18px;
    font-weight: bold;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: #cc0000;
}

.env-banner {
    background: repeating-linear-gradient(
        45deg,
        #ff0000 0,
        #ff0000 14px,
        #b00000 14px,
        #b00000 28px
    );
    border-bottom: 6px solid #ffff00;
    border-top: 6px solid #ffff00;
    color: #ffffff;
    font-size: 22px;
    font-weight: bold;
    line-height: 1.35;
    padding: 16px 20px;
    text-align: center;
    text-shadow:
        2px 2px 0 #000000,
        0 0 8px rgba(0,0,0,0.8);
    text-transform: uppercase;
}

.env-banner-alert {
    display: inline-block;
    letter-spacing: 0;
    margin-right: 12px;
}

.env-banner a {
    background-color: #ffff00;
    color: #000000;
    padding: 2px 6px;
    text-decoration: underline;
    text-decoration-color: #000000;
    text-decoration-thickness: 3px;
    text-underline-offset: 3px;
    text-shadow: none;
}

.menu-toggle {
    display: none;
    width: 100%;
    padding: 14px 20px;
    background-color: #ffffff;
    border: none;
    border-bottom: 1px solid #e6e6e6;
    color: #0037cc;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
}

.event {
    border: 1px solid #d6d6d6;
    border-radius: 10px;
    margin-bottom: 25px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.event-header {
    padding: 24px;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s ease;
}

.event-header:hover {
    background-color: #f4f4f4;
}

.event-header-layout {
    display: flex;
    align-items: center;
    gap: 22px;
    padding-right: 45px;
}

.kennel-logo-wrap {
    flex: 0 0 110px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.kennel-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.event-header-text {
    flex: 1;
    min-width: 0;
}

.event-title {
    font-size: 38px;
    font-weight: bold;
    color: #0037cc;
    margin-bottom: 4px;
}

.event-subtitle {
    font-size: 28px;
    font-weight: bold;
    color: #0037cc;
    margin-bottom: 16px;
}

.event-meta {
    font-size: 22px;
    color: #444;
    line-height: 1.6;
}

.event-date-line {
    margin-bottom: 10px;
}

.event-time-line {
    font-size: 20px;
}

.event-content {
    display: none;
    border-top: 1px solid #e3e3e3;
    padding: 30px;
    background-color: #fafafa;
}

.event-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.event-field {
    margin-bottom: 8px;
}

.event-label {
    font-size: 18px;
    font-weight: bold;
    color: #0037cc;
    margin-bottom: 1px;
    line-height: 1.1;
}

.event-value {
    font-size: 17px;
    line-height: 1.2;
}

.event-notes {
    grid-column: 1 / -1;
}

.future-trails {
    grid-column: 1 / -1;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #dcdcdc;
}

.future-trails-title {
    font-size: 20px;
    font-weight: bold;
    color: #0037cc;
    margin-bottom: 12px;
}

.future-trails-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.future-trail-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 17px;
    line-height: 1.3;
}

.future-trail-date {
    min-width: 65px;
    font-weight: bold;
}

.future-trail-separator {
    color: #777;
}

.future-trail-hares {
    flex: 1;
}

.arrow {
    position: absolute;
    right: 24px;
    top: 35px;
    font-size: 24px;
    color: #333;
}

footer {
    border-top: 1px solid #dcdcdc;
    text-align: center;
    padding: 25px;
    margin-top: 50px;
    color: #666;
    font-size: 16px;
}

.static-page {
    background-color: #ffffff;
    border: 1px solid #d6d6d6;
    border-radius: 10px;
    padding: 32px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.static-page h1 {
    color: #0037cc;
    font-size: 36px;
    margin-top: 0;
    margin-bottom: 20px;
}

.static-page h2 {
    color: #0037cc;
    font-size: 26px;
    margin-top: 30px;
    margin-bottom: 12px;
}

.static-page p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 18px;
}

.kennel-directory {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin: 18px 0 30px;
}

.kennel-directory-item {
    display: flex;
    gap: 14px;
    align-items: center;
    border: 1px solid #d6d6d6;
    border-radius: 8px;
    padding: 16px;
    background-color: #fafafa;
}

.kennel-directory-item img {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.kennel-directory-item h3 {
    margin: 0 0 6px;
    color: #0037cc;
    font-size: 20px;
}

.kennel-directory-item p {
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
}

.main-nav a.active {
    color: #cc0000;
}

.page-intro {
    background-color: #ffffff;
    border: 1px solid #d6d6d6;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.page-intro h1 {
    color: #0037cc;
    font-size: 38px;
    margin-top: 0;
    margin-bottom: 0;
}

.page-intro p {
    font-size: 18px;
    line-height: 1.5;
    margin: 0;
}

.special-event-card {
    border: 1px solid #d6d6d6;
    border-radius: 10px;
    margin-bottom: 25px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.special-event-layout {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 28px;
}

.special-event-logo-wrap {
    flex: 0 0 110px;
    padding-top: 4px;
}

.special-event-body {
    flex: 1;
    min-width: 0;
}

.special-event-title {
    font-size: 34px;
    line-height: 1.1;
    color: #0037cc;
    margin: 0 0 8px;
}

.special-event-kennel {
    font-size: 18px;
    font-weight: bold;
    color: #444;
    margin-bottom: 20px;
}

.special-event-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 30px;
    margin-bottom: 22px;
}

.special-event-description {
    grid-column: 1 / -1;
}

.registration-button {
    display: inline-block;
    background-color: #0037cc;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 6px;
    font-weight: bold;
    transition: opacity .2s ease;
}

.registration-button:hover {
    opacity: .9;
}

.map-link {
    font-size: 0.9em;
    white-space: nowrap;
}

.trail-calendar {
    min-height: 680px;
    overflow: auto;
    background-color: #ffffff;
    border: 1px solid #d6d6d6;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
/* ==================================================
   Calendar
   ================================================== */

.fc {
    padding: 1rem;
}

.fc-toolbar-title {
    color: #0037cc;
    font-size: 1.75rem;
    font-weight: 700;
}

.fc-button-primary {
    background-color: #0037cc !important;
    border-color: #0037cc !important;
}

.fc-button-primary:hover {
    background-color: #002ba3 !important;
    border-color: #002ba3 !important;
}

.fc-button-primary:not(:disabled).fc-button-active {
    background-color: #cc0000 !important;
    border-color: #cc0000 !important;
}

.fc-event {
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}

.calendar-scheduled-placeholder {
    opacity: 0.75;
}

.fc-daygrid-day-number {
    color: #222;
    font-weight: 600;
    text-decoration: none;
}

.fc-col-header-cell-cushion {
    color: #0037cc;
    font-weight: bold;
    text-decoration: none;
}

/* Modal */

.calendar-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.65);
    z-index: 9999;
}

.calendar-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.calendar-modal-content {
    width: min(700px, 90vw);
    max-height: 85vh;
    overflow-y: auto;

    background: #ffffff;

    border-radius: 10px;
    border: 1px solid #d6d6d6;

    padding: 30px;

    box-shadow: 0 2px 12px rgba(0,0,0,0.2);

    position: relative;
}

.calendar-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;

    border: none;
    background: none;

    font-size: 2rem;
    cursor: pointer;

    color: #444;
}

.calendar-modal-close:hover {
    color: #cc0000;
}

#modalTitle {
    color: #0037cc;
    margin-top: 0;
    margin-bottom: 20px;
}

#modalDetails p {
    margin-bottom: 12px;
    line-height: 1.5;
}
/* ==================================================
   End of Calendar
   ================================================== */

.trail-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-helper-link {
    margin-top: -4px;
    margin-bottom: 22px;
}

.form-helper-link a {
    font-weight: bold;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.trail-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 16px;
    font-weight: bold;
    color: #0037cc;
}

.field-label {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}

.required-marker {
    color: #cc0000;
    font-weight: bold;
}

.trail-form input,
.trail-form select,
.trail-form textarea {
    width: 100%;
    border: 1px solid #cfd7e3;
    border-radius: 6px;
    padding: 10px;
    font: inherit;
    color: #222;
    background-color: #ffffff;
}

.trail-form textarea {
    resize: vertical;
}

.form-success,
.form-errors,
.missing-fields {
    padding: 14px 16px;
    border-radius: 6px;
    margin-bottom: 18px;
}

.form-success {
    background-color: #e8f7ee;
    border: 1px solid #9dd8b0;
}

.form-errors {
    background-color: #fff0f0;
    border: 1px solid #e3aaaa;
}

.missing-fields {
    background-color: #fff7f7;
    border: 2px solid #cc0000;
    color: #4a0000;
}

.missing-fields strong {
    display: block;
    margin-bottom: 8px;
}

.missing-fields ul {
    margin: 0;
    padding-left: 20px;
}

.required-key {
    align-self: flex-end;
    color: #555555;
    font-size: 0.95rem;
    font-weight: bold;
    margin: -6px 0 0;
}

.link-button {
    align-self: flex-start;
    border: none;
    background: none;
    color: #0037cc;
    font: inherit;
    font-weight: bold;
    padding: 0;
    cursor: pointer;
}

.link-button:hover {
    color: #cc0000;
}


.trail-mark-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.trail-mark-card {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.trail-mark-card > img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    display: block;
    margin: 0 auto 0.75rem;
}

.trail-mark-images {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.trail-mark-images img {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

.trail-mark-card figcaption {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.trail-mark-card figcaption strong {
    font-size: 1rem;
    color: #1f4f8f;
    line-height: 1.2;
}

.trail-mark-card figcaption span {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #333;
}

.misman-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
}

.misman-page h1 {
    text-align: center;
    margin-bottom: 0.75rem;
}

.misman-intro {
    max-width: 700px;
    margin: 0 auto 2rem;
    text-align: center;
    line-height: 1.5;
}

.misman-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: start;
}

.misman-card {
    background: #ffffff;
    border: 1px solid #d9e2ea;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.misman-card h2 {
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #74a9c8;
    color: #1f5f7a;
    font-size: 1.35rem;
    text-align: center;
}

.misman-role-list {
    margin: 0;
}

.misman-role-list div {
    display: grid;
    grid-template-columns: 105px 1fr;
    column-gap: 0.75rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid #eef2f5;
}

.misman-role-list div:last-child {
    border-bottom: none;
}

.misman-role-list dt {
    font-weight: 700;
    color: #333333;
}

.misman-role-list dd {
    margin: 0;
    color: #444444;
}

.misman-contact {
    max-width: 700px;
    margin: 0 auto 2rem;
    padding: 0.85rem 1rem;
    text-align: center;
    background: #ffffff;
    border: 1px solid #d9e2ea;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    font-size: 1rem;
    line-height: 1.5;
}

.misman-contact a {
    font-weight: 700;
    color: #1f5f7a;
    text-decoration: none;
}

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

@media (max-width: 768px) {
    header {
        position: relative;
        padding: 14px 0 16px;
        text-align: center;
    }

    .header-inner img {
        display: block;
        width: 100%;
        height: auto;
        margin: 0 auto;
    }

    .header-inner {
        position: relative;
        width: 92%;
        max-width: 620px;
        margin: 0 auto;
        padding: 0 70px 0 0;
    }

    .site-tagline {
        background-color: transparent;
        text-align: center;
        padding: 12px 16px 0;
        font-size: clamp(22px, 7vw, 30px);
        line-height: 1.15;

        font-style: italic;
        font-weight: bold;

        color: #eeab59;
    }
    
    .event-title {
        font-size: 24px;
        padding-right: 0;
    }

    .event-subtitle {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .event-meta {
        font-size: 17px;
    }

    .event-header {
        padding: 20px;
        padding-right: 85px;
    }

    .event-header-layout {
        display: block;
    }

    .kennel-logo-wrap {
        position: absolute;
        right: 18px;
        bottom: 18px;
    }

    .event-header-text {
        width: 100%;
    }

    .kennel-logo {
        width: 48px;
        height: 48px;
        opacity: 0.95;
    }

    .event-time-line {
        font-size: 15px;
    }

    .event-content {
        padding: 18px;
    }

    .event-field {
        margin-bottom: 18px;
    }

    .event-label {
        font-size: 16px;
        margin-bottom: 5px;
        line-height: 1.05;
    }

    .event-value {
        font-size: 15px;
        line-height: 1.15;
    }

    .event-grid {
        grid-template-columns: 1fr;
    }

    .arrow {
        top: 28px;
    }

    .menu-toggle {
        display: flex;

        position: absolute;
        top: 50%;
        right: 0;
        transform: translateY(-50%);

        width: 54px;
        height: 54px;
        padding: 0;

        align-items: center;
        justify-content: center;

        background: rgba(255,255,255,0.9);
        border: 1px solid #d9d9d9;
        border-radius: 8px;

        color: #0037cc;
        font-size: 30px;
        line-height: 1;
        font-weight: bold;
        cursor: pointer;

        z-index: 1000;
    }

    .menu-toggle-icon {
        display: block;
        transform: translateY(-2px);
    }

    .nav-container {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 12px 0;
    }

    .nav-container.open {
        display: flex;
    }

    .main-nav a {
        font-size: 18px;
        padding: 10px 14px;
        text-align: center;
        border-radius: 6px;
    }

    .main-nav a:hover,
    .main-nav a:focus {
        background-color: #f2f6ff;
    }

    .future-trails {
        margin-top: 20px;
        padding-top: 16px;
    }

    .future-trails-title {
        font-size: 17px;
        margin-bottom: 10px;
    }

    .future-trail-row {
        font-size: 15px;
        gap: 6px;
    }

    .future-trail-date {
        min-width: 56px;
    }

    .static-page {
        padding: 22px;
    }

    .static-page h1 {
        font-size: 28px;
    }

    .static-page h2 {
        font-size: 22px;
    }

    .static-page p {
        font-size: 16px;
        line-height: 1.5;
    }

    .kennel-directory {
        grid-template-columns: 1fr;
    }

    .page-intro {
        padding: 22px;
    }

    .page-intro h1 {
        font-size: 28px;
    }

    .page-intro p {
        font-size: 16px;
    }

    .special-event-layout {
        position: relative;
        display: block;
        padding: 22px;
        padding-right: 84px;
    }

    .special-event-logo-wrap {
        position: absolute;
        right: 18px;
        bottom: 18px;
        padding-top: 0;
    }

    .special-event-title {
        font-size: 24px;
        margin-bottom: 6px;
    }

    .special-event-kennel {
        font-size: 15px;
        margin-bottom: 16px;
    }

    .special-event-details {
        display: block;
        margin-bottom: 18px;
    }

    .registration-button {
        font-size: 16px;
        padding: 10px 14px;
    }

    .trail-calendar {
        min-height: 560px;
        border-radius: 8px;
    }

    .fc-header-toolbar {
        flex-direction: column;
        gap: 1rem;
    }

    .fc-toolbar-chunk {
        text-align: center;
    }

    .fc-toolbar-title {
        font-size: 1.4rem;
    }

    .calendar-modal-content {
        width: 95vw;
        padding: 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .trail-mark-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .trail-mark-card {
        padding: 0.9rem;
    }

    .trail-mark-card > img,
    .trail-mark-images img {
        width: 80px;
        height: 80px;
    }

    .trail-mark-card figcaption strong {
        font-size: 0.95rem;
    }

    .trail-mark-card figcaption span {
        font-size: 0.9rem;
    }

    .misman-page {
        padding: 1.5rem 0.85rem 2.5rem;
    }

    .misman-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .misman-card {
        padding: 1rem;
        border-radius: 10px;
    }

    .misman-card h2 {
        font-size: 1.25rem;
    }

    .misman-role-list div {
        grid-template-columns: 95px 1fr;
        column-gap: 0.5rem;
        padding: 0.5rem 0;
    }
}
