/* Three equal entrances, retaining the agreed transparent treatment. */
.yard .doors{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.yard .door{min-width:0;padding-inline:22px}
.yard .door.library{background:transparent;color:#171b19;border:0;outline:0;box-shadow:none;clip-path:none;transform:none;cursor:pointer;transition:transform .18s ease-out;transform-origin:center}
.yard .door h2{font-size:clamp(32px,3.3vw,46px);overflow-wrap:normal}
.yard .door.library:focus-visible{outline:2px solid #963e30;outline-offset:4px;transform:scale(1.025)}
@media(hover:hover) and (pointer:fine){.yard .door.library:hover{transform:scale(1.025);box-shadow:none}}
.on-this-day{display:grid;grid-template-columns:170px minmax(0,1fr) auto;gap:25px;align-items:center;background:#ede9ddf5;margin:0 auto;padding:21px 5%;max-width:1500px;color:#242c23}
.today-date{font-size:22px;font-weight:700;margin-top:7px}.on-this-day p{line-height:1.5;font-size:14px;margin:4px 0}.on-this-day h2{font-size:19px;margin:0 0 4px;line-height:1.25}.on-this-day>a{font-size:13px;white-space:nowrap}.on-this-day .event-source{font-size:11px;color:#616456}.on-this-day .event-source a{color:inherit}
.library-page{padding:30px 5% 60px;background:#eeeade;min-height:80vh;color:#222b23}.back{font-size:14px}.page-heading{margin:32px 0 28px;max-width:820px}.page-heading h1{font-size:clamp(36px,4vw,58px);margin:12px 0 18px}.page-heading p{font-size:16px;line-height:1.65;max-width:740px}
#catalogue-filters{display:grid;grid-template-columns:minmax(240px,2fr) 1fr 1fr auto;gap:16px;align-items:end;margin:30px 0 20px}label{display:block;font-size:13px;font-weight:bold;margin-bottom:8px}input,select{width:100%;border:1px solid #9c9d8e;padding:13px 12px;background:#faf8f1;color:#20281f;border-radius:0;font:15px Arial,sans-serif;min-height:46px}button{background:#283b30;color:#f5f0df;padding:13px 17px;border:0;font-size:14px;min-height:46px;cursor:pointer}.result-status,.catalogue-note{font-size:13px;color:#515a4a;line-height:1.5}.result-status{margin:20px 0}
.entity-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.entity-card{display:flex;flex-direction:column;background:#faf7ed;padding:23px;text-decoration:none;color:#26362a;min-height:215px;transition:transform .18s ease-out;min-width:0}.entity-card:hover{transform:scale(1.015)}.entity-card .entry-type{font:10px monospace;letter-spacing:.06em;color:#745042}.entity-card h2{font-size:25px;line-height:1.12;margin:17px 0 12px;overflow-wrap:anywhere}.entity-card p{font-size:14px;line-height:1.5;margin:0 0 20px}.entity-card .entry-related{font-size:12px;line-height:1.5;margin-top:auto;padding-top:12px;color:#58624e}.catalogue-note{margin-top:24px}.empty{padding:25px;background:#faf7ed;grid-column:1/-1;line-height:1.6}.empty button{margin-top:8px}
.entry-header{margin:35px 0 30px;max-width:1000px}.entry-header h1{font-size:clamp(38px,5vw,64px);margin:14px 0 20px;line-height:1.05;overflow-wrap:anywhere}.entry-header p{font-size:17px;line-height:1.5}.entry-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(250px,1fr);gap:28px}.entry-panel{background:#faf7ed;padding:28px;margin-bottom:20px}.entry-panel h2{font:30px Impact,'Arial Narrow',Arial,sans-serif;text-transform:uppercase;margin:0 0 20px}.entry-panel p{font-size:16px;line-height:1.8;max-width:750px}.entry-panel li{line-height:1.6;margin:12px 0}.entry-panel ul{padding-left:20px}.relation-list{list-style:none!important;padding:0!important}.relation-list li{margin:0}.relation-list a{display:flex;flex-direction:column;gap:6px;border-top:1px solid #cbcaba;padding:15px 0;text-decoration:none}.relation-list a:hover>strong{text-decoration:underline}.relation-list span{font-size:13px;color:#5c6555}.alias-list{font-size:14px!important;line-height:1.6!important}.entry-panel .small-note{font-size:13px;color:#646a5d}.source-list a{overflow-wrap:anywhere;font-size:14px}.entry-panel time{font-size:13px;color:#7b4b39}
.date-filter{display:flex;align-items:end;gap:18px;flex-wrap:wrap;margin:26px 0}.date-filter input{width:200px}.event-list{display:grid;gap:18px;max-width:950px}.event-card{background:#faf7ed;padding:24px}.event-card h2{font-size:24px;line-height:1.2;margin:10px 0}.event-card p{font-size:15px;line-height:1.65}.event-card time{font:12px monospace;color:#714333}.event-card .event-source{font-size:12px}.event-links{display:flex;gap:18px;flex-wrap:wrap;font-size:13px;margin-top:17px}
@media(min-width:701px) and (max-width:1000px){.yard .door{padding-inline:10px}.yard .door h2{font-size:32px}.yard .door small{font-size:10px}.yard .door .num{right:10px;font-size:10px}.yard .doors{gap:16px}.entity-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#catalogue-filters{grid-template-columns:2fr 1fr}.on-this-day{grid-template-columns:145px 1fr}.on-this-day>a{grid-column:2}header nav{gap:14px;font-size:12px}}
@media(max-width:700px){.yard .doors{grid-template-columns:1fr;gap:16px}.yard .door{padding-inline:20px;min-height:220px}.yard .door h2{font-size:36px}.on-this-day{grid-template-columns:1fr;gap:12px;padding-block:24px}.on-this-day>a{white-space:normal}.on-this-day>div:first-child{display:flex;align-items:center;gap:16px}.today-date{margin:0}.entity-grid{grid-template-columns:1fr}#catalogue-filters{grid-template-columns:1fr 1fr;gap:16px}.search-field{grid-column:1/-1}.library-page{padding-inline:5%}.entry-layout{grid-template-columns:1fr}.entry-panel{padding:22px}.entry-header h1{font-size:40px}header nav{gap:12px}header nav a{font-size:12px}header nav a:nth-child(-n+2){display:none}.page-heading h1{font-size:40px}.page-heading p{font-size:15px}.event-card{padding:20px}}
@media(prefers-reduced-motion:reduce){.yard .door.library{transition:none}.yard .door.library:hover,.yard .door.library:focus-visible,.entity-card:hover{transform:none}.entity-card{transition:none}}
/* The daily event replaces the introductory slogan on the wall. */
.hero .hero-day{grid-template-columns:140px minmax(0,1fr);width:70%;max-width:800px;margin:0 0 25px;padding:18px 20px;gap:10px 22px}
.hero-day .today-heading{font:30px/1.05 Impact,'Arial Narrow',Arial,sans-serif;text-transform:uppercase;letter-spacing:-.025em;margin:0 0 9px}
.hero-day>a{grid-column:2}
@media(max-width:1000px){.hero .hero-day{width:78%;grid-template-columns:120px minmax(0,1fr)}.hero-day .today-heading{font-size:27px}}
@media(max-width:700px){.hero .hero-day{width:100%;grid-template-columns:1fr;padding:17px;margin-bottom:20px;gap:13px}.hero-day>a{grid-column:auto}.hero-day .today-heading{font-size:28px;margin:0}.hero-day .today-date{font-size:18px}}
/* Calendar leaf: transparent surface and a fine black outline. */
.hero .hero-day{position:relative;background:transparent;border:3px solid #111;box-shadow:none;margin-top:8px;color:#171b19}
.hero-day:before,.hero-day:after{content:'';position:absolute;top:-7px;width:9px;height:13px;border:2px solid #111;border-radius:4px;background:transparent;pointer-events:none}
.hero-day:before{left:25px}.hero-day:after{right:25px}
.hero-day>div:first-child{grid-row:1 / span 2;align-self:stretch;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:0;border-right:2px solid #111;padding-right:18px}
.hero-day .today-date{margin-top:5px}
.hero-day .event-source{color:#343b32}
@media(max-width:700px){.hero-day>div:first-child{grid-row:auto;flex-direction:row;justify-content:space-between;align-items:center;gap:12px;border-right:0;border-bottom:2px solid #111;padding:0 0 12px}.hero-day .today-date{margin:0}}

.yard .doors-with-calendar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.yard .doors-with-calendar .door h2 { font-size: clamp(26px, 3vw, 42px); overflow-wrap: anywhere; }
.event-text { white-space: pre-line; }
.other-rock-notes { margin-top: 2rem; }
.other-rock-notes summary { cursor: pointer; }
.other-rock-notes .event-list { margin-top: 1rem; }
@media (max-width: 1150px) {
  .yard .doors-with-calendar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .yard .doors-with-calendar { grid-template-columns: minmax(0, 1fr); }
}

.yard .doors-with-calendar .door { container-type: inline-size; padding-inline: clamp(10px, 1.4vw, 22px); }
.yard .doors-with-calendar .door h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(18px, 9cqi, 36px);
  line-height: 1.05;
  letter-spacing: -.035em;
  overflow-wrap: normal;
}
.yard .doors-with-calendar .door-word { white-space: nowrap; }
.yard .doors-with-calendar .door small { letter-spacing: .06em; }
.yard .doors-with-calendar .door .num { display: none; }

.recent-materials .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.recent-materials .card { padding: 0; transform: none; }
.recent-materials .card a { display: block; height: 100%; padding-bottom: 1.25rem; }
.recent-materials .card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.recent-materials .card :is(h3, p, .meta) { margin-inline: 1rem; }
.recent-materials .card h3 { overflow-wrap: anywhere; }
.publication-index section { max-width: 75ch; margin-block: 2rem; }
.publication-index li { margin-block: .6rem; }

#catalogue-filters { grid-template-columns: minmax(150px, 1fr) auto auto; align-items: end; }
.icon-filter {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.icon-filter legend,
.icon-filter input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.icon-filter > div {
  display: flex;
  width: fit-content;
  max-width: 100%;
  padding: 3px;
  gap: 3px;
  border: 1px solid #2f211b;
  border-radius: 10px;
  background: linear-gradient(170deg, #3e3028, #241b18);
  box-shadow: 0 2px 4px #33261f24, inset 0 1px #ffffff24;
}

.icon-filter label {
  position: relative;
  margin: 0;
  cursor: pointer;
}

.guitar-switch {
  display: flex;
  min-width: 62px;
  min-height: 55px;
  padding: 4px 5px 5px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 6px;
  color: #e3d7c8;
}

.guitar-switch-hardware {
  position: relative;
  width: 30px;
  height: 26px;
}

.guitar-switch-hardware::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 6px;
  width: 18px;
  height: 18px;
  border: 1px solid #181211;
  border-radius: 50%;
  background: radial-gradient(circle, #514741 0 26%, #cdc0aa 30% 38%, transparent 43%),
    conic-gradient(#d8d3c9, #726861, #bfb9ae, #80766b, #eae2d1, #d8d3c9);
  box-shadow: 0 1px 3px #110e0d;
}

.guitar-switch-hardware::after {
  content: "";
  position: absolute;
  left: 11px;
  bottom: 7px;
  width: 8px;
  height: 18px;
  border: 1px solid #47362c;
  border-radius: 5px;
  background: linear-gradient(90deg, #958375, #e6d4b2 55%, #9d8268);
  box-shadow: 1px 2px 2px #100b0a80;
  transform: rotate(-37deg);
  transform-origin: center bottom;
  transition: transform .16s ease-out;
}

.guitar-switch-led {
  position: absolute;
  top: 4px;
  right: -9px;
  width: 7px;
  height: 7px;
  border: 1px solid #1c1512;
  border-radius: 50%;
  background: #514135;
}

.icon-filter input:checked + .guitar-switch .guitar-switch-led {
  border-color: #dda448;
  background: #ffcf76;
  box-shadow: 0 0 5px #ffb94caa;
}

.guitar-switch-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .75rem;
  line-height: 1.2;
  white-space: nowrap;
}

.guitar-switch-label svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.icon-filter label:hover .guitar-switch {
  background: #ffffff12;
}

.icon-filter input:checked + .guitar-switch {
  background: #f0b46120;
  box-shadow: inset 0 -2px #eab568;
  color: #ffe4ac;
}

.icon-filter input:checked + .guitar-switch .guitar-switch-hardware::after {
  transform: rotate(37deg);
  background: linear-gradient(90deg, #b99768, #fff2cf 55%, #c89d65);
}

.icon-filter input:focus-visible + .guitar-switch {
  outline: 2px solid #ffe4ac;
  outline-offset: -2px;
}

@media (prefers-reduced-motion: reduce) {
  .guitar-switch-hardware::after { transition: none; }
}

#catalogue-status:empty,
#catalogue-results:empty + .catalogue-note {
  display: none;
}

.entity-photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 32%; background: #dcd3c0; }
.entity-card .entity-photo { margin-bottom: 1rem; }
.entity-photo[hidden] { display: none; }
.entry-photo { margin: 0 0 1rem; }
.entry-photo .entity-photo { aspect-ratio: auto; max-height: 360px; object-fit: contain; }
.entry-photo figcaption { padding-block: .45rem; font-size: .85rem; }

.right-portrait {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.entity-card .right-portrait { margin-bottom: 1rem; }

.right-portrait .entity-photo {
  position: absolute;
  top: -50%;
  left: -216%;
  width: 320%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
}


.month-calendar { max-width: 760px; margin-block: 1.5rem; }
.month-toolbar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .75rem; }
.month-toolbar h2 { text-transform: capitalize; text-align: center; margin: 0; font-size: clamp(1.25rem, 4vw, 2rem); }
.month-calendar button { border: 0; border-radius: .3rem; cursor: pointer; }
.month-toolbar button, .month-actions button { padding: .6rem .8rem; background: #25362a; color: #fffaf0; }
.month-toolbar button { width: 2.8rem; min-height: 2.8rem; font-size: 1.35rem; }
.month-weekdays, .month-days { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: clamp(3px, 1vw, 8px); }
.month-weekdays { text-align: center; margin-bottom: .4rem; font-size: .85rem; }
.month-day { min-height: clamp(40px, 9vw, 72px); background: #e1dcd2; color: #555047; font-weight: 600; }
.month-day.has-notes { background: #45593c; color: #fffaf0; font-weight: 800; }
.month-day[aria-current="date"] { box-shadow: inset 0 0 0 2px #a84a34; }
.month-day:hover, .month-calendar button:focus-visible { outline: 2px solid #a84a34; outline-offset: 1px; }
.month-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.calendar-dialog { width: min(720px, calc(100% - 24px)); max-width: none; max-height: 85vh; max-height: 85dvh; overflow: auto; padding: clamp(12px, 3vw, 26px); }
.calendar-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.calendar-dialog-head h2 { margin: 0; }
.calendar-dialog-head button { min-width: 44px; min-height: 44px; font-size: 1.25rem; }
.calendar-dialog .event-card { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 960px) {
  #catalogue-filters { grid-template-columns: max-content minmax(0, 1fr); }
  #catalogue-filters .search-field { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .recent-materials .cards { grid-template-columns: minmax(0,1fr); }
  #catalogue-filters { gap: 10px; }
}
