/* CCWT: site styles, with no CSS framework dependency. */
:root {
    --ccwt-bg: #5c3a21;
    --ccwt-fg: #d9c4a3;
    --ccwt-header-expanded: 6rem;
    --ccwt-header-compact: 4.75rem;
    --ccwt-header-bg: #38271c;
    --ccwt-paper: #efe2ca;
    --ccwt-ink: #392719;
    --ccwt-content-width: 75rem;
    --ccwt-gutter: clamp(1.25rem, 4vw, 3.75rem);
}

/* Explicit defaults preserve the site's existing typography and spacing. */
html {
    box-sizing: border-box;
    min-width: 300px;
    margin: 0;
    padding: 0;
    font-size: 16px;
    overflow-x: hidden;
    overflow-y: scroll;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: calc(var(--ccwt-header-expanded) + 1rem);
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body,
h1, h2, h3, h4, h5, h6,
p, figure, ol, ul, li {
    margin: 0;
    padding: 0;
}

body {
    font-family: Inter, "SF Pro", "Segoe UI", Roboto, Oxygen, Ubuntu,
    "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--ccwt-fg);
    background-color: var(--ccwt-bg);
    background-image: radial-gradient(
        ellipse at 15% 10%,
        rgb(239 226 202 / 0.05) 0%,
                                      rgb(239 226 202 / 0) 65%
    );
    background-repeat: no-repeat;
}

h1, h2, h3, h4, h5, h6 {
    font-size: 100%;
    font-weight: 400;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    cursor: pointer;
    text-decoration: none;
    transition: background-color 294ms, border-color 294ms, color 294ms;
}

section,
footer {
    margin: 0;
    padding: clamp(2rem, 5vw, 3.75rem);
}

/* Reserve the expanded height so shrinking the fixed bar never moves the page. */
.ccwt-header-space {
    height: var(--ccwt-header-expanded);
}

.ccwt-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    background: var(--ccwt-header-bg);
    color: var(--ccwt-paper);
    box-shadow: 0 3px 10px #21160d33;
}

.ccwt-header-inner {
    min-height: var(--ccwt-header-expanded);

    max-width: none;
    margin-inline: auto;
    padding: 1rem clamp(1.25rem, 4vw, 3.75rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    transition: min-height 220ms ease, padding 220ms ease;
}

.ccwt-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    color: var(--ccwt-paper);
    text-decoration: none;
}

.ccwt-brand:hover {
    color: var(--ccwt-paper);
}

.ccwt-brand img {
    display: block;
    width: 4rem;
    height: 4rem;
    flex: 0 0 auto;
    object-fit: cover;
    border-radius: 50%;
    transition: width 220ms ease, height 220ms ease;
}

.ccwt-brand-name {
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.25;
}

.ccwt-brand-short {
    display: none;
}

.ccwt-nav {
    display: flex;
    align-items: center;
    gap: clamp(1.1rem, 2.5vw, 2rem);
}

.ccwt-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding-block: 0.375rem;
    border-bottom: 2px solid transparent;
    color: var(--ccwt-paper);
    font-size: 0.9375rem;
    text-decoration: none;
    white-space: nowrap;
}

.ccwt-nav a:hover {
    border-bottom-color: var(--ccwt-fg, #d9c4a3);
}

.ccwt-header.is-compact .ccwt-header-inner {
    min-height: var(--ccwt-header-compact);
    padding-block: 0.75rem;
}

.ccwt-header.is-compact .ccwt-brand img {
    width: 3rem;
    height: 3rem;
}

.ccwt-mobile-menu {
    display: none;
    position: relative;
}

.ccwt-mobile-menu summary {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d9c4a366;
    border-radius: 0.375rem;
    color: var(--ccwt-paper);
    font-size: 1rem;
    list-style: none;
    cursor: pointer;
}

.ccwt-mobile-menu summary::-webkit-details-marker {
    display: none;
}

.ccwt-mobile-menu summary::after {
    content: "+";
    margin-left: 0.75rem;
}

.ccwt-mobile-menu[open] summary::after {
    content: "−";
}

.ccwt-mobile-menu .ccwt-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 11rem;
    display: grid;
    gap: 0.125rem;
    padding: 0.5rem 1rem;
    border: 1px solid #d9c4a344;
    border-radius: 0.5rem;
    background: var(--ccwt-header-bg);
    box-shadow: 0 8px 18px #21160d33;
}

.ccwt-header :focus-visible,
.ccwt-skip-link:focus-visible {
    outline: 3px solid var(--ccwt-paper);
    outline-offset: 4px;
}

.ccwt-skip-link {
    position: fixed;
    top: 0.75rem;
    left: 1rem;
    z-index: 100;
    padding: 0.75rem 1rem;
    background: var(--ccwt-header-bg);
    color: var(--ccwt-paper);
    transform: translateY(-200%);
}

.ccwt-skip-link:focus {
    transform: translateY(0);
}

/* The photograph scrolls away naturally; only the navigation remains fixed. */
.ccwt-hero {
    padding: 0;
    background:
    linear-gradient(90deg, #24180fc4, #24180f26),
    url("../img/central-coast-woodturning-lathe.jpg") center 44% / cover no-repeat;
    color: var(--ccwt-paper);
}
.ccwt-hero-inner {

    max-width: none;
    margin-inline: auto;
    padding: clamp(2.5rem, 6vw, 5.5rem) clamp(1.25rem, 4vw, 3.75rem);
}

.ccwt-hero-welcome {
    margin: 0 0 0.35rem;
    color: var(--ccwt-paper);
    font-size: clamp(1.125rem, 2vw, 1.6rem);
}

.ccwt-hero h1 {
    max-width: 900px;
    margin: 0;
    color: var(--ccwt-paper);
    font-size: clamp(2rem, 5.5vw, 4.75rem);
    font-weight: 400;
    line-height: 1.12;
}

/* Calendar badges and event cards. */
.ccwt-events h2 {
    margin: 0;
    color: var(--ccwt-fg, #d9c4a3);
    font-weight: 400;
    line-height: 1.2;
}

.ccwt-events-intro {
    margin: 0.65rem 0 1.75rem;
    font-size: 1rem;
}

.ccwt-event {
    display: grid;
    grid-template-columns: 4rem minmax(0, 1fr);
    align-items: start;
    gap: clamp(1rem, 2.5vw, 1.5rem);
    margin: 0 0 1rem;
    padding: clamp(1.125rem, 2.5vw, 1.75rem);
    border-radius: 0.75rem;
    background: var(--ccwt-fg, #d9c4a3);
    color: var(--ccwt-ink);
}

.ccwt-event:last-child {
    margin-bottom: 0;
}

.ccwt-event-date {
    display: grid;
    overflow: hidden;
    border-radius: 0.45rem;
    background: var(--ccwt-paper);
    color: var(--ccwt-ink);
    text-align: center;
}

.ccwt-date-month {
    padding: 0.25rem 0;
    background: var(--ccwt-bg, #5c3a21);
    color: var(--ccwt-paper);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.5;
    text-transform: uppercase;
}

.ccwt-date-day {
    padding-top: 0.3rem;
    color: var(--ccwt-ink);
    font-size: 1.875rem;
    font-weight: 500;
    line-height: 1.15;
}

.ccwt-date-year {
    padding: 0.15rem 0 0.45rem;
    font-size: 0.75rem;
}

.ccwt-event-details {
    min-width: 0;
}

.ccwt-event-details .ccwt-event-meta {
    margin: 0 0 0.375rem;
    color: var(--ccwt-ink);
    font-size: 0.875rem;
    font-weight: 500;
}

.ccwt-event-details h3 {
    margin: 0;
    color: var(--ccwt-ink);
    font-size: clamp(1.125rem, 2vw, 1.35rem);
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.ccwt-event-details p {
    margin: 0.75rem 0 0;
    color: var(--ccwt-ink);
    font-size: 1rem;
    line-height: 1.6;
}

/* About the club. */
.ccwt-about {
    --ccwt-about-text: var(--ccwt-fg, #d9c4a3);
    --ccwt-about-title: var(--ccwt-paper, #efe2ca);
    --ccwt-about-rule: #d9c4a350;

    margin: 0;
    padding: clamp(2rem, 5vw, 3.75rem);
    background: transparent;
    color: var(--ccwt-about-text);
    font-size: 1rem;
    line-height: 1.65;
    text-align: left;
}

.ccwt-about-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.65fr);
    align-items: start;
    gap: clamp(2rem, 5vw, 3.5rem);

    max-width: none;
    margin-inline: auto;
}

.ccwt-about-kicker {
    margin: 0 0 1.1875rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ccwt-about-kicker::before {
    content: "";
    display: block;
    width: 2.375rem;
    height: 2px;
    margin-bottom: 1.1875rem;
    background: var(--ccwt-about-text);
}

.ccwt-about-heading h2 {
    margin: 0;
    color: var(--ccwt-about-title);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    letter-spacing: -0.025em;
}

.ccwt-about-location {
    margin: 1.5rem 0 0;
    font-size: 0.875rem;
}

.ccwt-about-copy {
    min-width: 0;
    max-width: 65ch;
    overflow-wrap: break-word;
}

.ccwt-about-copy p {
    margin: 0 0 1rem;
}

.ccwt-about-copy .ccwt-about-lead {
    margin: 0 0 1.1875rem;
    color: var(--ccwt-about-title);
    font-size: clamp(1.3125rem, 2vw, 1.4375rem);
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.ccwt-about-more {
    margin-top: 1.1875rem;
}

.ccwt-about-more summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 2.75rem;
    padding: 0.625rem 0;
    border-top: 1px solid var(--ccwt-about-rule);
    color: var(--ccwt-about-title);
    font-size: 0.875rem;
    list-style: none;
    cursor: pointer;
}

.ccwt-about-more summary::-webkit-details-marker {
    display: none;
}

.ccwt-about-more summary:hover > span:first-child {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.ccwt-about-more summary:focus-visible {
    outline: 2px solid var(--ccwt-about-title);
    outline-offset: 4px;
}

.ccwt-about-symbol {
    flex: 0 0 auto;
    font-size: 1.3125rem;
    line-height: 1;
}

.ccwt-about-symbol::before {
    content: "+";
}

.ccwt-about-more[open] .ccwt-about-symbol::before {
    content: "−";
}

.ccwt-about-more > div {
    padding-top: 0.6875rem;
}

.ccwt-about-more > div p:last-child {
    margin-bottom: 0;
}

@media (max-width: 700px) {
    :root {
        --ccwt-header-expanded: 5rem;
        --ccwt-header-compact: 4rem;
    }

    .ccwt-header-inner {
        padding-block: 0.75rem;
    }

    .ccwt-brand img {
        width: 3.5rem;
        height: 3.5rem;
    }

    .ccwt-header.is-compact .ccwt-header-inner {
        padding-block: 0.5rem;
    }

    .ccwt-desktop-nav {
        display: none;
    }

    .ccwt-mobile-menu {
        display: block;
    }

    .ccwt-about-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }

    .ccwt-about-heading h2 br {
        display: none;
    }

    .ccwt-about-location {
        margin-top: 0.75rem;
    }

    .ccwt-about-kicker {
        margin-bottom: 0.75rem;
    }

    .ccwt-about-kicker::before {
        margin-bottom: 0.875rem;
    }

    .ccwt-about-copy {
        max-width: none;
    }
}

@media (max-width: 400px) {
    .ccwt-brand-full {
        display: none;
    }

    .ccwt-brand-short {
        display: inline;
    }

    .ccwt-event {
        grid-template-columns: 3.125rem minmax(0, 1fr);
        gap: 0.875rem;
        padding: 1rem;
    }

    .ccwt-date-day {
        font-size: 1.65rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ccwt-header-inner,
    .ccwt-brand img {
        transition: none;
    }
}

.ccwt-header-inner,
.ccwt-hero-inner,
#main-content > section:not(.ccwt-hero),
.site-footer {
    padding-inline: max(
        var(--ccwt-gutter),
                        calc((100% - var(--ccwt-content-width)) / 2)
    );
}

/* Responsive sizing for the main section headings */
#main-content > section > h2,
.ccwt-about-heading h2 {
    font-size: clamp(1.75rem, 1.25rem + 2vw, 2.25rem);
    line-height: 1.2;
}

/* Weekly timetable */
#timetable {
container-type: inline-size;
container-name: ccwt-timetable;
}

#timetable > h2 {
margin: 0 0 1.5rem;
}

#timetable .ccwt-timetable-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 0.875rem;
list-style: none;
margin: 0;
padding: 0;
}

/* Individual days */
#timetable .ccwt-timetable-day {
min-width: 0;
margin: 0;
padding: 1.25rem;
background: rgb(239 226 202 / 0.065);
border: 1px solid rgb(217 196 163 / 0.22);
border-radius: 0.75rem;
}

#timetable .ccwt-timetable-day h3 {
grid-area: day;
margin: 0;
color: var(--ccwt-fg);
font-size: 1rem;
line-height: 1.4;
font-weight: 500;
}

/* Session times */
#timetable .ccwt-timetable-hours {
grid-area: hours;
display: flex;
align-items: baseline;
flex-wrap: wrap;
column-gap: 0.3em;
margin: 0.65rem 0 0.5rem;
color: var(--ccwt-paper);
font-size: 1.375rem;
line-height: 1.3;
font-weight: 500;
font-variant-numeric: tabular-nums;
}

#timetable .ccwt-timetable-hours time {
white-space: nowrap;
}

/* Activity and frequency */
#timetable .ccwt-timetable-craft {
grid-area: craft;
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 0.3rem 0.6rem;
margin: 0;
color: var(--ccwt-fg);
font-size: 0.875rem;
line-height: 1.5;
}

#timetable .ccwt-timetable-cadence {
display: inline-block;
padding: 0.08rem 0.4rem;
border: 1px solid rgb(217 196 163 / 0.35);
border-radius: 0.25rem;
color: var(--ccwt-paper);
font-size: 0.6875rem;
line-height: 1.5;
white-space: nowrap;
}

/* Read the time separator as "to" for screen readers */
#timetable .ccwt-timetable-sr {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip-path: inset(50%);
white-space: nowrap;
}

/* Two columns when the timetable's content area is narrower */
@container ccwt-timetable (max-width: 600px) {
    #timetable .ccwt-timetable-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Compact rows on mobile */
@container ccwt-timetable (max-width: 440px) {
    #timetable .ccwt-timetable-grid {
    grid-template-columns: minmax(0, 1fr);
    }

    #timetable .ccwt-timetable-day {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
    "day hours"
    "craft craft";
    align-items: baseline;
    gap: 0.5rem 0.75rem;
    padding: 1rem;
    }

    #timetable .ccwt-timetable-hours {
    justify-content: end;
    margin: 0;
    font-size: 1.125rem;
    }
}

.accessibility {
    min-width: 0;
    margin: 0;
    padding: 1.25rem;
    background: rgb(239 226 202 / 0.065);
    border: 1px solid rgb(217 196 163 / 0.22);
    border-radius: 0.75rem;

}

/* The three photographs stay side by side at every screen width. */
.ccwt-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.ccwt-gallery-image {
    display: block;
    position: relative;
    aspect-ratio: 4 / 3;
}

.ccwt-gallery-image {
    overflow: hidden;
    border-radius: 0.75rem;
}

.ccwt-gallery-image img {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

/* The large bowl keeps its natural proportions. */
.ccwt-showcase-image {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
}

.ccwt-showcase-image img {
    display: block;
    width: 100%;
    height: auto;
}

.ccwt-showcase-caption {
    padding: 1rem;
    font-size: 1.25rem;
    text-align: center;
}

/* Life at the club: two columns on small screens, three when space allows. */
.ccwt-life {
    container: ccwt-life / inline-size;
}

.ccwt-life-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(0.75rem, 1.6vw, 1.25rem);
    margin-top: clamp(1rem, 2vw, 1.5rem);
}

@container ccwt-life (min-width: 769px) {
    .ccwt-life-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.ccwt-life-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border-radius: 0.75rem;
    background: var(--ccwt-fg, #d9c4a3);
    color: var(--ccwt-ink, #392719);
    box-shadow: 0 0.35rem 0.9rem rgb(33 22 13 / 0.12);
}

.ccwt-life-image {
    position: relative;
    flex: none;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--ccwt-header-bg, #38271c);
}

.ccwt-life-image img {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--ccwt-photo-position, 50% 50%);
}

.ccwt-life-card figcaption {
    flex: 1;
    padding: 0.75rem clamp(0.65rem, 1.5vw, 1rem);
    font-size: clamp(0.875rem, 0.8rem + 0.25vw, 1rem);
    font-weight: 500;
    line-height: 1.45;
    overflow-wrap: break-word;
}

/* Supporters: a compact acknowledgement above the contact footer. */
.ccwt-supporters {
    container: ccwt-supporters / inline-size;
    padding-block: clamp(1.5rem, 3vw, 2.25rem);
}

.ccwt-supporters-panel {
    padding: clamp(1.25rem, 2.4vw, 2rem);
    border-radius: 0.75rem;
    /*background: #f3eadb;*/
    /*background: rgb(217 196 163 / 0.85);*/
    background: rgb(217 196 163 / 0.75);


    color: var(--ccwt-ink, #392719);
}

.ccwt-supporters-panel > h2 {
    margin: 0;
    font-family: inherit;
    font-size: clamp(1.05rem, 0.95rem + 0.3vw, 1.25rem);
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    text-wrap: balance;
}

.ccwt-supporters-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 1rem 1.5rem;
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
}

.ccwt-supporter {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 4.5rem;
    margin: 0;
    padding: 0;
}

.ccwt-supporter img {
    display: block;
    width: 100%;
    max-width: 10rem;
    height: auto;
    max-height: 4.5rem;
    object-fit: contain;
}

.ccwt-supporter--council img {
    width: 4.5rem;
    max-width: 100%;
}

@container ccwt-supporters (min-width: 500px) {
    .ccwt-supporters-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@container ccwt-supporters (min-width: 1000px) {
    .ccwt-supporters-list {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        column-gap: 1.75rem;
    }
}

/* Supporter logo hover effect */
.ccwt-supporters a img {
    transition: transform 0.25s ease, filter 0.25s ease;
}

.ccwt-supporters a:hover img {
    /*transform: translateY(-3px);*/
    filter: brightness(1.20);
}

/* Keyboard accessibility */
.ccwt-supporters a:focus-visible {
    outline: 2px solid #d9c4a3;
    outline-offset: 5px;
    border-radius: 4px;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .supporters a img {
        transition: none;
    }
}


/* Contact footer. */
#contact.ccwt-contact {
container: ccwt-contact / inline-size;
padding-block: clamp(2rem, 4vw, 3rem);
padding-inline: max(
    var(--ccwt-gutter, 1.25rem),
                    calc((100% - var(--ccwt-content-width, 75rem)) / 2)
);
border-top: 1px solid rgb(217 196 163 / 0.16);
background: var(--ccwt-header-bg, #38271c);
color: var(--ccwt-fg, #d9c4a3);
font-size: 1rem;
line-height: 1.6;
}

#contact .ccwt-contact-grid {
display: grid;
grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 0.8fr);
align-items: start;
gap: 2rem;
}

#contact .ccwt-contact-grid > div {
min-width: 0;
}

#contact .ccwt-contact-lead h2 {
margin: 0 0 0.625rem;
color: var(--ccwt-paper, #efe2ca);
font-family: Georgia, "Times New Roman", serif;
font-size: clamp(1.75rem, 1.25rem + 2vw, 2rem);
font-weight: 400;
line-height: 1.2;
letter-spacing: -0.015em;
}

#contact .ccwt-contact-lead p {
margin: 0 0 0.25rem;
}

#contact .ccwt-contact-group h3 {
margin: 0 0 0.75rem;
color: var(--ccwt-paper, #efe2ca);
font-size: 0.75rem;
font-weight: 500;
line-height: 1.5;
letter-spacing: 0.12em;
text-transform: uppercase;
}

#contact address {
margin: 0;
font-style: normal;
overflow-wrap: anywhere;
}

#contact a {
color: var(--ccwt-paper, #efe2ca);
text-decoration-thickness: 1px;
text-underline-offset: 0.25em;
}

#contact .ccwt-contact-email,
#contact .ccwt-contact-text-link {
display: inline-flex;
align-items: center;
min-height: 2.75rem;
max-width: 100%;
padding-block: 0.375rem;
text-decoration-line: underline;
overflow-wrap: anywhere;
}

#contact .ccwt-contact-email {
font-weight: 500;
}

#contact .ccwt-contact-text-link {
margin-top: 0.25rem;
}

#contact .ccwt-contact-social {
list-style: none;
margin: 0;
padding: 0;
}

#contact .ccwt-contact-social li {
margin: 0;
padding: 0;
}

#contact .ccwt-contact-social a {
display: inline-flex;
align-items: center;
gap: 0.625rem;
min-height: 2.75rem;
padding-block: 0.375rem;
text-decoration: none;
}

/* Explicit dimensions avoid relying on intrinsic SVG sizing in flex layouts. */
#contact .ccwt-contact-social svg {
display: block;
width: 22px;
height: 22px;
flex: 0 0 22px;
fill: currentColor;
}

#contact .ccwt-contact-social a:hover span {
text-decoration: underline;
}

#contact a:hover {
color: #fff4df;
}

#contact a:focus-visible {
outline: 2px solid var(--ccwt-paper, #efe2ca);
outline-offset: 4px;
border-radius: 2px;
}

@container ccwt-contact (max-width: 780px) {
    #contact .ccwt-contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem 1.5rem;
    }

    #contact .ccwt-contact-lead {
    grid-column: 1 / -1;
    }
}

@container ccwt-contact (max-width: 270px) {
    #contact .ccwt-contact-grid {
    grid-template-columns: minmax(0, 1fr);
    }
}

/* Information and forms: footer access and document dialog. */
#contact .ccwt-documents-access {
margin-top: 0.25rem;
}

#contact .ccwt-documents-trigger,
#contact .ccwt-documents-fallback > summary {
display: inline-flex;
align-items: center;
gap: 0.5rem;
min-height: 2.75rem;
max-width: 100%;
padding: 0.375rem 0;
border: 0;
background: transparent;
color: var(--ccwt-paper);
font: inherit;
font-size: 0.9375rem;
line-height: 1.5;
text-align: left;
cursor: pointer;
}

#contact .ccwt-documents-trigger span,
#contact .ccwt-documents-fallback > summary {
text-decoration: underline;
text-decoration-thickness: 1px;
text-underline-offset: 0.25em;
}

#contact .ccwt-documents-trigger svg {
flex: 0 0 18px;
}

#contact .ccwt-documents-trigger:hover,
#contact .ccwt-documents-fallback > summary:hover {
color: #fff4df;
}

#contact .ccwt-documents-trigger:focus-visible,
#contact .ccwt-documents-fallback > summary:focus-visible {
outline: 2px solid var(--ccwt-paper);
outline-offset: 4px;
border-radius: 2px;
}

/* Explicit hidden rules take precedence over the display styles above. */
#contact .ccwt-documents-trigger[hidden],
#contact .ccwt-documents-fallback[hidden] {
display: none;
}

#contact .ccwt-documents-fallback > summary {
list-style: none;
}

#contact .ccwt-documents-fallback > summary::-webkit-details-marker {
display: none;
}

#contact .ccwt-documents-fallback > summary::after {
content: "+";
margin-left: 0.25rem;
}

#contact .ccwt-documents-fallback[open] > summary::after {
content: "−";
}

#contact .ccwt-documents-fallback ul {
margin: 0.25rem 0 0;
padding-inline-start: 1.25rem;
list-style: disc;
}

#contact .ccwt-documents-fallback a {
display: inline-block;
min-height: 2.75rem;
padding-block: 0.375rem;
text-decoration: underline;
}

html.ccwt-dialog-open {
    overflow-y: hidden;
    scrollbar-gutter: stable;
}

.ccwt-dialog-open body {
    overflow: hidden;
}

.ccwt-documents-dialog {
    width: min(36rem, calc(100% - 2rem));
    max-width: none;
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    margin: auto;
    padding: 0;
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid #cdb99c;
    border-radius: 1rem;
    background: linear-gradient(135deg, #f8f0e1, #efe2ca);
    color: var(--ccwt-ink);
    font: inherit;
    line-height: 1.5;
    box-shadow: 0 1.5rem 5rem rgb(24 15 9 / 0.35);
}

.ccwt-documents-dialog:not([open]) {
    display: none;
}

.ccwt-documents-dialog::backdrop {
    background: rgb(24 15 9 / 0.62);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.ccwt-documents-panel {
    padding: clamp(1rem, 4vw, 2rem);
}

.ccwt-documents-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-bottom: 0.875rem;
}

.ccwt-documents-kicker {
    color: #74573e;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ccwt-documents-topline form {
    margin: 0;
}

.ccwt-documents-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    min-width: 2.75rem;
    padding: 0.5rem 0.625rem;
    border: 1px solid #b8a185;
    border-radius: 0.375rem;
    background: transparent;
    color: var(--ccwt-ink);
    font: inherit;
    font-size: 0.875rem;
    cursor: pointer;
}

.ccwt-documents-dialog h2 {
    margin: 0 0 0.75rem;
    color: var(--ccwt-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.625rem, 4vw, 2.125rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.ccwt-documents-intro {
    margin: 0 0 1.5rem;
    max-width: 38ch;
    color: #624b36;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.ccwt-documents-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #cdb99c;
}

.ccwt-document {
    display: grid;
    grid-template-columns: 2.25rem minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 1rem;
    margin: 0;
    padding: 1rem 0;
    border-top: 1px solid #cdb99c;
}

.ccwt-document-icon {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.75rem;
    border-radius: 0.375rem;
    background: rgb(92 58 33 / 0.065);
    color: #795237;
}

.ccwt-document-details {
    min-width: 0;
}

.ccwt-document-title {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    max-width: 100%;
    padding-block: 0.375rem;
    color: var(--ccwt-ink);
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
    text-decoration: underline;
    text-decoration-color: #9a7b59;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

.ccwt-document-meta {
    margin: 0;
    color: #74573e;
    font-size: 0.75rem;
    line-height: 1.5;
}

.ccwt-document-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    min-height: 2.75rem;
    padding: 0.5rem 0.625rem;
    border: 1px solid #b8a185;
    border-radius: 0.375rem;
    color: var(--ccwt-ink);
    background: rgb(255 255 255 / 0.2);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
}

.ccwt-document-download svg,
.ccwt-documents-close svg {
    flex: 0 0 16px;
}

.ccwt-document-title:hover {
    text-decoration-color: currentColor;
    text-decoration-thickness: 2px;
}

.ccwt-document-download:hover,
.ccwt-documents-close:hover {
    background: rgb(92 58 33 / 0.08);
    border-color: #795237;
}

.ccwt-documents-dialog :focus-visible {
    outline: 2px solid var(--ccwt-ink);
    outline-offset: 3px;
    border-radius: 2px;
}

.ccwt-documents-note {
    margin: 1.125rem 0 0;
    color: #624b36;
    font-size: 0.8125rem;
    line-height: 1.6;
}

.ccwt-documents-dialog[open] {
    animation: ccwt-documents-enter 180ms ease-out;
}

.ccwt-documents-dialog[open]::backdrop {
    animation: ccwt-documents-backdrop 180ms ease-out;
}

@keyframes ccwt-documents-enter {
    from { opacity: 0; transform: translateY(0.5rem); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes ccwt-documents-backdrop {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 480px) {
    .ccwt-document {
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: 0.75rem;
    }

    .ccwt-document-icon {
        display: none;
    }
}

@media (max-width: 360px) {
    .ccwt-document {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 0.5rem;
    }

    .ccwt-document-download {
        justify-self: start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ccwt-documents-dialog[open],
    .ccwt-documents-dialog[open]::backdrop {
        animation: none;
    }
}

/* Adjustment for readability */

/* Lighter text within these sections only */
#about,
#timetable,
#contact {
--ccwt-fg: #ead8bd;
color: var(--ccwt-fg);
}

/* Increase ordinary paragraphs, keeping the container's width */
.ccwt-about-copy p:not(.ccwt-about-lead),
.ccwt-event-details p {
    font-size: 1.0625rem;
    line-height: 1.65;
}

.ccwt-events-intro,
.accessibility {
    color: #ead8bd;
    font-size: 1.0625rem;
    line-height: 1.65;
}


/* Event venue and map link */
.ccwt-event-venue {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem 0.6rem;
    margin: 0.25rem 0 0.75rem;
    font-size: 0.92rem;
    line-height: 1.5;
}

.ccwt-event-venue a {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ccwt-event-venue a:hover {
    text-decoration-thickness: 2px;
}

.ccwt-event-venue svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

/* Event Calendar */


/* Add to calendar dropdown */

.ccwt-event-calendar {
    position: relative;
    width: fit-content;
    margin-top: 0.85rem;
    font-size: 0.9rem;
}

.ccwt-event-calendar[open] {
    z-index: 10;
}

.ccwt-calendar-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid rgba(100, 80, 55, 0.3);
    border-radius: 0.4rem;
    background: rgba(100, 80, 55, 0.05);
    color: inherit;
    cursor: pointer;
    font-weight: 500;
    line-height: 1.4;
    list-style: none;
    user-select: none;
}

.ccwt-calendar-trigger::-webkit-details-marker {
    display: none;
}

.ccwt-calendar-trigger:hover,
.ccwt-event-calendar[open] .ccwt-calendar-trigger {
    background: rgba(100, 80, 55, 0.11);
}

.ccwt-calendar-trigger:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.ccwt-calendar-trigger svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.ccwt-calendar-chevron {
    margin-left: 0.25rem;
    transition: transform 0.15s ease;
}

.ccwt-event-calendar[open] .ccwt-calendar-chevron {
    transform: rotate(180deg);
}

/* Dropdown panel */

.ccwt-calendar-options {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    z-index: 20;
    min-width: 12rem;
    padding: 0.35rem;
    border: 1px solid rgba(100, 80, 55, 0.2);
    border-radius: 0.5rem;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.ccwt-calendar-options a {
    display: block;
    padding: 0.55rem 0.7rem;
    border-radius: 0.3rem;
    color: #333;
    text-decoration: none;
}

.ccwt-calendar-options a:hover,
.ccwt-calendar-options a:focus-visible {
    background: #f1ede7;
    text-decoration: none;
}


/* Weekly timetable – subtle interactive hover */

#timetable ol > li {
/* Slower fade-out */
transition:
transform 0.5s ease,
box-shadow 0.5s ease;
}

@media (hover: hover) and (pointer: fine) {
    #timetable ol > li:hover {
    /* Faster hover-in */
    transition:
    transform 0.24s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.24s ease;

    transform: translateY(-1px);
    box-shadow:
    inset 0 0 0 999px rgba(255, 255, 255, 0.20),
    0 9px 20px rgba(50, 40, 25, 0.09);
    }
}

@media (prefers-reduced-motion: reduce) {
    #timetable ol > li,
    #timetable ol > li:hover {
    transition: none;
    transform: none;
    }
}
