/* Layouts for the organization profile, program directory and public archives. */
.feature-page {
    --brass: #8b6b3b;
    --gutter: clamp(28px, 4vw, 64px);
    --heading: clamp(2.7rem, 4.8vw, 5.1rem);
    overflow-wrap: anywhere;
}
.feature-page h1,.feature-page h2,.feature-page h3 {font-family:var(--display);font-weight:640;text-wrap:pretty}
.feature-page h1 {font-size:var(--heading);line-height:1.22;letter-spacing:-.03em}
.feature-page h2 {line-height:1.4}
.crumb {display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding-block:18px;font-size:.91rem;color:#59695e}
.crumb a,.text-link {display:inline-flex;align-items:center;min-height:44px}
.crumb a:hover,.text-link:hover {text-decoration:underline;text-underline-offset:4px}
.crumb span[aria-hidden] {opacity:.65}
.text-link {gap:11px;color:var(--forest);font-weight:600}
.ruled-title {display:flex;align-items:center;gap:24px;font-size:clamp(1.65rem,2.7vw,2.7rem);margin-bottom:24px}
.ruled-title::after {content:"";height:1px;background:var(--line);flex:1}
.feature-page section[id] {scroll-margin-top:90px}
.feature-page nav[role=navigation] {margin-block-start:24px}
.heritage {background:linear-gradient(115deg,#e5f1e8,#f5f7f0);}
.heritage-cover,.studio-cover {display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:var(--gutter);padding:5px 0 var(--gutter)}
.heritage-copy h1 {max-width:16ch;margin-block:20px 14px}
.heritage-copy>p,.studio-cover p,.darkroom-copy p,.press-mast p {font-size:clamp(1.06rem,1.4vw,1.32rem);line-height:1.75;max-width:45ch;text-wrap:pretty}
.heritage-emblem {width:66px;height:66px;border-radius:50%;outline:1px solid #b3a272;outline-offset:4px}
.heritage-print {max-width:600px;background:#fefbf3;padding:clamp(10px,1.4vw,20px);border:1px solid #c4b899;box-shadow:0 12px 24px #64573515;border-radius:20px}
.heritage-print img {border-radius:12px;width:100%;aspect-ratio:1.95;object-fit:cover}
.heritage-print figcaption {text-align:center;margin:12px 0 0;color:#655b43;font:580 1.04rem/1.55 var(--display)}
.story-chapters,.catalog,.collection,.press-list {padding-block:var(--gutter)}
.story-chapter {display:grid;grid-template-columns:.75fr 1.6fr;gap:var(--gutter);border-top:1px solid #c5bd9e;padding-block:26px}
.story-chapter h2 {font-size:clamp(1.5rem,2.4vw,2.4rem)}
.reading-copy {min-width:0;max-width:72ch;color:#31463e;font-size:1.16rem;line-height:1.9;overflow-x:auto}
.reading-copy p+p,.reading-copy ul,.reading-copy ol,.reading-copy blockquote {margin-top:1em}
.reading-copy ul,.reading-copy ol {padding-inline-start:1.5em}
.reading-copy ul {list-style:disc}.reading-copy ol {list-style:decimal}
.reading-copy a {text-decoration:underline}.reading-copy img,.reading-copy iframe {max-width:100%;height:auto}
.reading-copy blockquote {border-left:3px solid var(--brass);padding-left:1em}
.studio {position:relative;background:linear-gradient(115deg,#e0f1e7,#f3f8ee);;overflow:hidden}
.studio-cover {grid-template-columns:1.1fr 1fr;padding-bottom:42px}
.studio-cover h1 {font-size:clamp(2.5rem,4.2vw,4.55rem)}
.studio-cover p {margin:14px 0 12px}
.studio-prints {position:relative;height:clamp(195px,19vw,300px);isolation:isolate}
.studio-prints img {width:60%;height:74%;position:absolute;object-fit:cover;background:#fffaf0;border-radius:16px;border:5px solid #fffaf0;box-shadow:0 7px 16px #20392a26}
.studio-prints img:first-child {left:4%;top:2%;transform:rotate(-5deg)}
.studio-prints img:last-child {right:2%;bottom:3%;transform:rotate(4deg)}
.catalog .program-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.catalog .program {border-radius:16px;display:grid;grid-template-columns:minmax(110px,.8fr) 1.2fr;overflow:hidden}
.catalog .program-photo {aspect-ratio:auto;min-height:156px;height:100%;border-radius:0}
.catalog .program-body {display:flex;flex-direction:column;justify-content:center;padding:20px}
.catalog .program-top {margin:0}
.catalog .program-icon {border:0;border-radius:0;width:24px;height:24px;background:transparent;color:var(--brass)}
.catalog .program h3 {margin:8px 0 4px}
.catalog .program:not(:has(.program-photo)) {display:block;background:#f1f0e6;border-top:2px solid #a3a17d}
.darkroom {color:#fffaf1;background-color:#10201c;background-image:linear-gradient(90deg,#10221e 29%,#10221ed9 39%,#10221e36 68%,transparent),url(gallery-cover.webp);background-repeat:no-repeat;background-size:cover,70% auto;background-position:center,right 48%;border:0}
.darkroom .crumb {color:#e3e5d6}
.darkroom-copy {padding:clamp(30px,4.8vw,84px) 0 clamp(55px,6vw,99px);max-width:50%}
.darkroom-copy p {color:#e2e8dd;margin-top:14px}
.collection-tabs {display:flex;width:fit-content;max-width:100%;gap:3px;background:#edf3ed;border:1px solid var(--line);border-radius:28px;padding:4px;margin-bottom:24px}
.collection-tabs a {display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:8px 18px;border-radius:24px;color:#495b52}
.collection-tabs a[aria-current] {color:white;background:#173f36}
.collection-tabs a:hover:not([aria-current]) {background:#ecefe6}
.archive-empty {border-radius:18px;display:grid;justify-items:center;text-align:center;padding:clamp(30px,4vw,60px) 18px;background:#eef1e9;border:1px solid #d8dfcf}
.archive-icon {display:grid;place-items:center;border:1px solid #b9c6ac;border-radius:50%;width:54px;height:54px;background:#f8f9f3;color:#4a644e}
.archive-icon .front-icon {width:26px;height:26px}
.archive-empty h2,.press-empty h3 {font-size:clamp(1.3rem,2vw,1.95rem);margin:16px 0 6px}
.press-mast {background:#edf3eb;border:1px solid #d4e2d7;border-radius:24px;padding:clamp(20px,3vw,44px);display:grid;grid-template-columns:1fr .83fr;gap:var(--gutter);align-items:center}
.press-mast h1 {color:#153f31;font-size:clamp(3rem,6.2vw,6.6rem)}
.press-mast p {margin-top:14px}
.press-mast img {border-radius:16px;justify-self:end;width:100%;height:clamp(155px,16vw,225px);object-fit:cover}
.press-list {padding-top:32px}
.press-list .ruled-title {font-size:clamp(1.4rem,2.1vw,2rem)}
.press-empty {border-radius:16px;display:flex;gap:24px;align-items:center;padding:clamp(24px,4vw,54px);background:#f1eae3;border-left:3px solid #875652}
.press-empty>.front-icon {width:48px;height:48px;color:#855653}
.press-empty h3 {margin:0}
.news-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(16px,2vw,28px)}
.news-grid>.press-empty {grid-column:1/-1}
.news-card {position:relative;display:flex;flex-direction:column;min-width:0;border:1px solid #d4e2d7;border-radius:18px;background:#fff;box-shadow:0 6px 20px #183b2c0a}
.news-card:hover,.news-card:focus-within {border-color:#879e88;box-shadow:0 9px 28px #183b2c16}
.news-card-image {display:block;width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:17px 17px 0 0}
.news-card-copy {padding:clamp(17px,2vw,26px);flex:1}
.news-card time {display:flex;align-items:center;gap:7px;color:#725833;font-size:.9rem}
.news-card time svg {width:16px;height:16px}
.news-card h3 {font-size:clamp(1.4rem,1.85vw,1.9rem);line-height:1.4;margin:10px 0;color:#153f31}
.news-card a::after {content:"";position:absolute;inset:0;border-radius:18px}
.news-card a:focus-visible::after {outline:3px solid #176c52;outline-offset:3px}
.news-card p {line-height:1.7;color:#486052}
.news-card-foot {display:flex;align-items:center;justify-content:space-between;margin:0 clamp(17px,2vw,26px);padding:12px 0;border-top:1px solid #e0e8df;color:#28533e;font-weight:600}
.news-card-foot svg {width:20px;height:20px}
@media(max-width:960px){.news-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.news-grid{grid-template-columns:minmax(0,1fr)}}
.story-page {max-width:1160px;padding-bottom:var(--gutter)}
.story-intro {display:grid;align-items:center;background:#edf3eb;border:1px solid #d6e2d8;border-radius:22px;overflow:hidden}
.story-intro.with-image {grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.story-heading {padding:clamp(22px,3.6vw,54px);max-width:780px}
.story-heading time {display:flex;align-items:center;gap:8px;color:#605033;font-weight:600;font-size:.95rem}
.story-heading time svg {width:18px;height:18px}
.story-heading h1 {color:#123d32;font-size:clamp(2rem,3.3vw,3.45rem);line-height:1.3;margin:12px 0}
.story-heading p {font-size:clamp(1.04rem,1.45vw,1.27rem);line-height:1.72;color:#40594d}
.story-cover {margin:0;align-self:stretch;display:grid;place-items:center;background:#183c32;padding:clamp(12px,1.7vw,25px)}
.story-cover img {width:100%;height:clamp(230px,25vw,370px);object-fit:contain}
.story-text {max-width:680px;margin:clamp(28px,4vw,54px) auto 0}
.story-text .reading-copy {max-width:none;font-size:clamp(1.12rem,1.6vw,1.28rem);line-height:1.85;color:#273e34}
.story-text .reading-copy :is(h2,h3,h4) {margin:1.4em 0 .45em;line-height:1.45}
.story-text>.text-link {border-top:1px solid var(--line);margin-top:28px;padding-top:12px}
@media(max-width:760px){
    .story-intro.with-image {grid-template-columns:minmax(0,1fr)}
    .story-heading {padding:20px}
    .story-heading h1 {font-size:clamp(1.7rem,6vw,2.3rem)}
    .story-cover {padding:10px}
    .story-cover img {height:clamp(158px,48vw,265px)}
}
.heritage,.studio,.darkroom {
    width:min(1430px,calc(100% - 40px));
    margin:18px auto 0;
    border-radius:26px;
    overflow:hidden;
}
.heritage>.shell,.studio>.shell,.darkroom>.shell {width:min(1320px,92%)}
.story-chapter {border:1px solid var(--line);background:#fff;border-radius:18px;padding:clamp(20px,3vw,40px);margin-bottom:15px}
@media(max-width:850px) {
    .catalog .program {grid-template-columns:34% 1fr}
    .catalog .program-body {padding:14px}
    .media-wall {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:660px) {
    .heritage,.studio,.darkroom {width:calc(100% - 20px);margin-top:10px;border-radius:18px}
    .story-chapter {padding-inline:16px}
    .collection-tabs a {padding:8px 14px}
    .heritage-print {transform:none}
    .press-mast {padding-inline:16px}
    .feature-page {--heading:clamp(2.4rem,9vw,3.35rem);--gutter:28px}
    .crumb {padding-block:4px;font-size:.86rem}
    .heritage-cover,.studio-cover,.story-chapter,.press-mast {grid-template-columns:minmax(0,1fr);gap:20px}
    .heritage-cover {padding-top:12px}
    .heritage-emblem {width:49px;height:49px}
    .heritage-copy h1 {margin:14px 0 8px;max-width:none}
    .heritage-print {margin:2px 4px;padding:9px}
    .heritage-print img {aspect-ratio:2.25}
    .heritage-print figcaption {margin-top:7px;font-size:.94rem}
    .story-chapter {padding-block:18px;gap:10px}
    .reading-copy {font-size:1.08rem}
    .studio-cover {padding:10px 0 24px;gap:8px}
    .studio-cover h1 {font-size:var(--heading)}
    .studio-cover p {margin:8px 0 2px}
    .studio-prints {height:clamp(145px,35vw,205px);max-width:410px;width:100%;justify-self:center}
    .studio-prints img {width:57%;height:83%;border-width:4px}
    .ruled-title {gap:14px;margin-bottom:16px}
    .catalog .program-grid {grid-template-columns:1fr;gap:12px}
    .catalog .program {grid-template-columns:33% 1fr}
    .catalog .program-photo {min-height:132px}
    .catalog .program h3 {font-size:1.2rem}
    .catalog .program:not(:has(.program-photo)) .program-body {padding:16px}
    .darkroom {background-image:linear-gradient(0deg,#10221e 6%,#10221ed1 33%,#10221e29 75%,#08141282),url(gallery-cover.webp);background-size:cover,auto 85%;background-position:center,right top}
    .darkroom-copy {padding:82px 0 23px;max-width:100%}
    .darkroom-copy p {margin-top:6px}
    .collection-tabs {margin-bottom:16px}
    .media-wall {gap:18px 12px}
    .media-tile:first-child {grid-column:1/-1}
    .media-frame {aspect-ratio:1.2}.media-tile:first-child .media-frame {aspect-ratio:1.8}
    .media-tile h2 {font-size:1.08rem}
    .media-symbol {width:30px;height:30px;right:8px;bottom:8px}
    .archive-empty {padding:28px 15px}
    .press-mast {padding-block:18px;gap:13px}
    .press-mast p {margin-top:7px}
    .press-mast img {height:clamp(110px,28vw,175px);object-position:center 48%}
    .press-empty {align-items:flex-start;gap:12px;padding:20px 14px}
    .press-empty>.front-icon {width:29px;height:29px}
}
@media(prefers-reduced-motion:reduce){.media-frame img {transition:none}}



/* Public events, office directory and giving pages */
.agenda-cover,.reach-cover,.giving-cover {
    width:min(1430px,calc(100% - 40px));
    margin:18px auto 0;
    border-radius:26px;
    overflow:hidden;
}
.agenda-cover>.shell,.reach-cover>.shell,.giving-cover>.shell {width:min(1320px,92%)}
.agenda-copy p,.reach-intro p,.giving-intro p {
    max-width:43ch;margin-top:12px;
    font-size:clamp(1.08rem,1.45vw,1.34rem);line-height:1.65;text-wrap:pretty;
}
.agenda-list,.branch-directory,.giving-options {padding-block:var(--gutter)}
.agenda-cover {
    color:#fff;background-color:#102b23;
    background-image:linear-gradient(90deg,#102b23 12%,#102b23f5 30%,#102b23a1 52%,#102b2310 82%),url(stage-cover.webp);
    background-position:center,right 45%;background-size:cover,75% auto;background-repeat:no-repeat;
}
.agenda-cover .crumb,.reach-cover .crumb {color:#ddede2}
.agenda-copy {max-width:54%;padding:clamp(35px,4.6vw,76px) 0 clamp(48px,5.5vw,95px)}
.agenda-copy p {color:#e6efe5}
.agenda-heading {display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:14px;margin-bottom:22px}
.agenda-heading h2,.branch-directory h2,.giving-options h2,.office-card h2 {font-size:clamp(1.45rem,2.2vw,2.35rem)}
.agenda-tabs {display:flex;flex-wrap:wrap;padding:4px;border:1px solid #d5e3d8;background:#f1f6f1;border-radius:28px}
.agenda-tabs a {display:grid;place-items:center;padding:7px 15px;min-height:44px;border-radius:22px;color:#446253}
.agenda-tabs a[aria-current] {background:#15523c;color:white;font-weight:700}
.agenda-tabs a:hover:not([aria-current]) {background:#dfebdf}
.agenda-item {display:flex;align-items:flex-start;gap:clamp(14px,2vw,30px);padding:clamp(16px,2vw,28px);margin-bottom:14px;border:1px solid var(--line);border-radius:20px;background:#fff}
.date-stamp {flex:none;min-width:64px;display:grid;text-align:center;overflow:hidden;border-radius:13px;background:#edf5ee;color:#144f38}
.date-stamp span {background:#18523e;color:white;padding:3px 9px}
.date-stamp strong {font-size:1.85rem;line-height:1.25;padding:6px 6px 0}
.date-stamp small {padding:0 6px 5px}.date-stamp>.front-icon {margin:15px}
.agenda-detail {flex:1;min-width:0}.agenda-detail h3 {margin:7px 0;font-size:clamp(1.2rem,1.8vw,1.75rem);line-height:1.45}
.event-status {display:inline-block;background:#eaf3e5;color:#27513a;font-size:.87rem;font-weight:700;padding:3px 11px;border-radius:20px}
.event-meta {display:flex;gap:6px 18px;flex-wrap:wrap;color:#425e50}
.event-meta>* {display:flex;gap:6px;align-items:baseline;min-width:0}.event-meta svg {align-self:center}
.agenda-detail p {margin-top:8px;color:var(--muted)}
.agenda-photo {width:22%;aspect-ratio:1.8;object-fit:cover;border-radius:13px}
.agenda-empty,.directory-empty {padding:clamp(25px,3.4vw,50px);background:#f0f6ef;border:1px solid #d5e2d6;border-radius:20px}
.agenda-empty {display:grid;justify-items:center;text-align:center;gap:10px}
.agenda-empty h3 {font-size:clamp(1.22rem,1.8vw,1.75rem)}
.detail-icon {display:grid;place-items:center;width:46px;height:46px;flex:none;border-radius:15px;background:#dcebdc;color:#206047}
.detail-icon svg {width:23px;height:23px}
.reach-cover {color:#fff;background:radial-gradient(ellipse at 85% 40%,#286045,transparent 58%),#123c31}
.reach-layout,.giving-layout {display:grid;grid-template-columns:1.1fr 1fr;gap:var(--gutter);align-items:center;padding:10px 0 var(--gutter)}
.reach-intro p {color:#e3eee2}
.reach-intro .btn,.giving-intro .btn,.giving-options .btn {width:fit-content;margin-top:21px}
.reach-intro .btn {color:#143e2e;background:#d7edba}
.office-card {isolation:isolate;position:relative;overflow:hidden;border-radius:20px;padding:clamp(22px,3vw,46px);background:#f4f8ee;color:#153d30}
.office-card::before {content:"";position:absolute;z-index:-1;top:-95px;right:-75px;width:220px;aspect-ratio:1;border-radius:50%;border:1px solid #dde8d7;box-shadow:0 0 0 15px #f4f8ee,0 0 0 16px #dde8d7,0 0 0 32px #f4f8ee,0 0 0 33px #dde8d7}
.office-card h2,.giving-options h2 {margin:16px 0 6px}
.office-card p,.branch-entry address,.giving-options p,.directory-empty p {color:var(--muted);line-height:1.75}
.office-card address,.branch-entry address,.giving-methods p {white-space:pre-line;font-style:normal}
.office-number,.branch-contact {display:flex;gap:8px;align-items:center;margin-top:12px;color:#14563b;font-weight:650}
.office-number {min-height:44px;width:fit-content}.office-number:hover {text-decoration:underline}
.branch-cards {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.branch-entry,.directory-empty {display:flex;align-items:flex-start;gap:15px}
.branch-entry {border:1px solid var(--line);border-radius:17px;background:#fff;padding:22px}
.branch-entry h3 {font-size:1.32rem}.branch-entry small {color:#436851}
.directory-empty {align-items:center}
.giving-cover {background:linear-gradient(115deg,#e5f2e8,#f3f7ea)}
.giving-layout {padding-top:0}
.giving-intro h1 {max-width:17ch}.giving-intro p {color:#425e4e}
.giving-layout figure {position:relative;margin:0 6px 6px 0;isolation:isolate}
.giving-layout figure::before {content:"";position:absolute;inset:7px -6px -6px 7px;border-radius:20px 52px;background:#bcdbbe;z-index:-1}
.giving-layout img {width:100%;height:clamp(205px,21vw,320px);object-fit:cover;border-radius:20px 52px}
.giving-options {display:grid;grid-template-columns:1.3fr 1fr;gap:20px}
.giving-options article {min-width:0;scroll-margin-top:100px;padding:clamp(21px,2.8vw,40px);border:1px solid #cfdfd2;border-radius:22px}
.giving-methods {background:linear-gradient(115deg,#fff,#edf6ed)}
.giving-programs {background:#f7f3e9}.giving-programs .detail-icon {background:#ece3c8;color:#71572c}
.giving-programs .text-link {margin-top:12px}
@media(max-width:660px) {
    .agenda-cover,.reach-cover,.giving-cover {width:calc(100% - 20px);margin-top:10px;border-radius:18px}
    .agenda-cover {background-image:linear-gradient(0deg,#102b23 8%,#102b23e8 30%,#102b2320 77%,#0b211b96),url(stage-cover.webp);background-position:center,right 28%;background-size:cover,cover}
    .agenda-copy {max-width:100%;padding:95px 0 24px}
    .agenda-heading {gap:10px;margin-bottom:16px}.agenda-tabs {width:fit-content;max-width:100%}.agenda-tabs a {padding:6px 11px}
    .agenda-item {display:grid;grid-template-columns:52px minmax(0,1fr);gap:12px;padding:14px;border-radius:16px}
    .date-stamp {min-width:0}.date-stamp strong {font-size:1.5rem}
    .event-meta {flex-direction:column}.agenda-photo {width:100%;grid-column:1/-1;aspect-ratio:2.35}
    .agenda-empty {gap:6px;padding:24px 14px}
    .reach-layout,.giving-layout,.giving-options,.branch-cards {grid-template-columns:minmax(0,1fr)}
    .reach-layout,.giving-layout {gap:21px;padding:9px 0 21px}
    .reach-intro .btn,.giving-intro .btn {margin-top:13px}
    .office-card,.giving-options article {border-radius:15px;padding:19px}
    .office-card .detail-icon,.giving-options .detail-icon,.branch-entry .detail-icon {width:38px;height:38px;border-radius:12px}
    .office-card h2,.giving-options h2 {margin:11px 0 5px}
    .giving-layout img {height:clamp(145px,42vw,210px)}
    .giving-options,.branch-cards {gap:12px}
    .branch-entry,.directory-empty {padding:16px;gap:10px}
}

.program-periods {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:clamp(20px,3vw,36px) auto 0;max-width:48rem}
.program-periods a {display:flex;align-items:center;gap:12px;padding:12px 18px;border-radius:16px;border:1px solid #175440;background:linear-gradient(115deg,#123e33,#206148);color:white;font-size:1.08rem;font-weight:700;box-shadow:0 3px 10px #123e3310}
.program-periods a:last-child {background:#f6f3ea;border-color:#dcd4bf;color:#423b29}
.period-symbol {display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#ffffff20}
.program-periods a:last-child .period-symbol {background:#e9e2cf;color:#675530}
.program-periods a>.front-icon {margin-inline-start:auto}
.program-periods a:hover {box-shadow:0 4px 14px #123e3328;text-decoration:underline;text-underline-offset:4px}
.program-periods a:focus-visible {outline:3px solid #987634;outline-offset:3px}
@media(max-width:560px) {
    .program-periods {grid-template-columns:1fr;gap:8px}
    .program-periods a {padding:8px 14px}
}

.library-cover {color:#fff8e7;background:linear-gradient(110deg,#103c30,#285c45);border-bottom:3px solid #b39861}
.library-cover .crumb {color:#e6ecdf}
.library-cover h1 {margin:0;padding-bottom:clamp(22px,4vw,52px);font:700 clamp(1.9rem,4vw,3.6rem)/1.35 var(--display)}
.library-layout {display:grid;grid-template-columns:minmax(160px,215px) minmax(0,1fr);align-items:start;gap:clamp(18px,3vw,44px);padding-block:clamp(18px,3.5vw,48px)}
.library-index {position:sticky;top:96px;z-index:2;display:grid;gap:4px;padding:8px;border-radius:15px;background:#153f32;color:#fff8ea}
.library-index a,.library-action {display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:7px 12px;border-radius:9px;font-weight:600}
.library-index a:hover,.library-index a:focus-visible {background:#ffffff21}
.library-index svg {color:#ecd091}
.library-reader {display:grid;gap:20px;min-width:0;overflow-wrap:anywhere}
.library-reader section {background:#fffefa;border:1px solid #d7e0d5;border-radius:18px;padding:clamp(16px,2.5vw,32px);box-shadow:0 5px 22px #193a2b09}
.library-reader [id] {scroll-margin-top:100px}
.library-reader h2 {font:700 clamp(1.4rem,2.4vw,2rem)/1.45 var(--display);margin-bottom:14px;color:#174535}
.library-reader h3 {font:650 clamp(1.1rem,1.45vw,1.4rem)/1.5 var(--display);color:#1b4537}
.library-reader p {color:#475e51;line-height:1.8;max-width:70ch}
.library-notice,.library-file {border-top:1px solid #dde5d9;padding:18px 0}
.library-notice {display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:16px}
.library-notice time {display:grid;text-align:center;border-top:3px solid #ae925b;background:#f2eee0;border-radius:9px;padding:6px 9px;color:#504a34;font-size:.8rem}
.library-notice time b {font:700 1.6rem/1.2 var(--display)}
.library-notice p {white-space:pre-line;margin-top:6px}
.library-file>div {display:flex;flex-wrap:wrap;gap:7px}
.library-action {margin-top:8px;color:#184e38;background:#eef3e9}
.library-action:hover {text-decoration:underline;text-underline-offset:3px}
@media(max-width:760px) {
    .library-layout {display:block;padding-top:10px}
    .library-index {display:flex;justify-content:space-around;top:64px;padding:3px;gap:0;margin-bottom:12px}
    .library-index a {justify-content:center;padding:5px;gap:4px;font-size:.92rem}
    .library-index svg {width:15px}
    .library-reader [id] {scroll-margin-top:132px}
    .library-notice {grid-template-columns:minmax(0,1fr);gap:8px}
    .library-notice time {display:flex;gap:5px;align-items:baseline;justify-self:start;border:0;border-inline-start:3px solid #ae925b;padding:3px 9px}
    .library-notice time b {font-size:1rem}
}

.payment-outcome {max-width:46rem;text-align:center;background:#fffefa;margin-block:clamp(24px,6vw,80px);padding:clamp(24px,5vw,65px) 20px;border:1px solid #d5dfd5;border-radius:22px;box-shadow:0 10px 32px #143c3010}
.outcome-mark {display:grid;place-items:center;width:64px;height:64px;margin:0 auto 18px;border-radius:50%;color:#16543b;background:#e2efdf;font:600 2rem/1 system-ui}
.payment-outcome[data-result=fail] .outcome-mark {background:#fae7e1;color:#903623}
.payment-outcome:is([data-result=cancel],[data-result=unconfirmed]) .outcome-mark {background:#f4ecdb;color:#755a28}
.payment-outcome h1 {font:700 clamp(1.6rem,4vw,2.6rem)/1.35 var(--display)}
.payment-outcome p {max-width:36em;margin:12px auto 24px;line-height:1.7;color:#495e54}
.outcome-links {display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:16px}
.outcome-links>a {display:inline-flex;align-items:center;min-height:44px}

.payment-outcome[data-result=success] {overflow:hidden;padding:0 0 clamp(20px,4vw,32px);max-width:40rem}
.payment-outcome[data-result=success] .outcome-header {background:radial-gradient(at top right,#37634b,transparent 65%),#123d30;color:#fffaf0;border-top:3px solid #c3a367;padding:clamp(22px,4vw,36px) clamp(16px,4vw,36px)}
.payment-outcome[data-result=success] .outcome-mark {border:1px solid #d4bb81;background:#234f3c;color:#f6dfaa;width:48px;height:48px;font-size:1.6rem;margin-bottom:12px}
.payment-outcome[data-result=success] h1 {font-size:clamp(1.45rem,3vw,2.2rem);color:inherit}
.payment-outcome[data-result=success] .outcome-header p {color:#e4eee2;margin:8px auto 0}
.outcome-receipt {margin:0 clamp(16px,4vw,36px) 22px;text-align:start}
.outcome-receipt>div {display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid #dee5d9}
.outcome-receipt dt {color:#526656}
.outcome-receipt dd {margin:0;font-weight:650;color:#194431;text-align:end;overflow-wrap:anywhere;min-width:0}
.outcome-receipt .receipt-total {align-items:center;padding:18px 0;border-bottom:1px dashed #b5c3ae}
.receipt-total dd {font:700 clamp(1.65rem,4vw,2.45rem)/1.25 var(--display)}
.receipt-reference {font:600 .95rem/1.6 ui-monospace,monospace;user-select:all}
@media(max-width:480px) {
    .outcome-receipt>div:last-child {display:grid;gap:4px}
    .outcome-receipt .receipt-reference {text-align:start}
}
.agenda-item {position:relative}.agenda-detail h3 a::after {content:"";position:absolute;inset:0;border-radius:inherit}.agenda-item:focus-within {outline:2px solid #176c52;outline-offset:2px}.event-description {white-space:pre-line}
.event-archive-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(14px,2vw,24px);padding:0}.event-archive-grid .agenda-empty {grid-column:1/-1}.event-archive-grid .event-category {display:block;color:#4b6054;margin-bottom:5px}.event-archive-grid .home-news-copy {padding:clamp(15px,2vw,24px)}@media(max-width:960px){.event-archive-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.event-archive-grid{grid-template-columns:minmax(0,1fr);gap:10px}.event-archive-grid .home-news-copy{padding:0}.event-archive-grid .event-category{margin:0}}
.activity-schedule {margin-top:clamp(28px,4vw,52px)}.activity-schedule .section-head {align-items:center;flex-wrap:wrap;gap:10px}.activity-schedule .section-head h2 {font-size:clamp(1.4rem,2.5vw,2.1rem)}
