/* Public-site additions on top of the original 42nd stylesheet. */

.wrap.narrow { max-width: 820px; }
.section-head.single { grid-template-columns: 1fr; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.preview-bar { position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 90; background: var(--gold); color: var(--ink); text-align: center; padding: 6px; }
.hud-link { display: inline-block; margin-top: 14px; color: var(--gold); }
.prose { color: var(--mute); }
.prose p { margin: 0 0 1em; }
.prose a { text-decoration: underline; }
.prose h2, .prose h3 { margin-top: 1.2em; }
.blk-icon { width: 30px; height: 30px; color: var(--gold); margin-bottom: 10px; }
.role-icon { width: 30px; height: 30px; color: var(--gold); margin-bottom: 14px; display: block; }
.numbered .blk-icon { float: right; }

/* leadership */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.team-card { display: flex; align-items: center; gap: 16px; padding: 18px; background: var(--panel); border: 1px solid var(--line-2); border-top: 3px solid var(--accent, var(--violet)); }
.team-card h3 { margin: 2px 0 4px; font-size: 1.35rem; }
.team-card p { margin: 0; color: var(--mute); font-size: .9rem; }
.team-avatar { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--panel-2); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--accent, var(--violet)); }
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-avatar span { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--mute); }
.org-emblem { width: 48px; height: 48px; object-fit: contain; float: right; }
.stat .lbl { display: block; color: var(--mute); margin-top: 6px; font-size: .7rem; }

/* events */
a.slot { color: var(--bone); }
a.slot:hover h3 { color: var(--gold); }
.slot p { margin: 4px 0 0; color: var(--mute); font-size: .95rem; }
.cal-head { display: flex; align-items: center; justify-content: center; gap: 24px; margin-bottom: 20px; }
.cal-head h2 { margin: 0; min-width: 260px; text-align: center; font-size: 2rem; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cal-dow { background: var(--ink); padding: 8px; text-align: center; color: var(--faint); font-size: .7rem; }
.cal-cell { background: var(--ink-2); min-height: 110px; padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.cal-cell.empty { background: var(--ink); }
.cal-cell.today { box-shadow: inset 0 0 0 1px var(--gold); }
.cal-d { font-family: var(--font-mono); font-size: .78rem; color: var(--faint); }
.cal-ev { font-size: .8rem; padding: 3px 6px; background: rgba(138,63,252,.22); border-left: 2px solid var(--violet); color: var(--bone); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev.k-training { background: rgba(94,177,239,.16); border-left-color: var(--info); }
.cal-ev.cancelled { text-decoration: line-through; opacity: .6; }
.event-detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.event-card { background: var(--panel); border: 1px solid var(--line-2); padding: 24px; display: flex; flex-direction: column; gap: 12px; position: sticky; top: calc(var(--header-h) + 20px); }
.event-card h3 { font-size: 1.5rem; margin: 0; }
.event-card p { margin: 0; }

/* faq */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 4px; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; text-transform: uppercase; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 14px; height: 14px; position: relative; flex-shrink: 0; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--gold); transition: transform .3s var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq .prose { padding: 0 4px 22px; }

/* public orbat */
.orbat-tree, .orbat-tree ul { list-style: none; margin: 0; padding: 0; }
.ot-children { padding-left: clamp(14px, 3vw, 34px) !important; border-left: 1px dashed var(--line-2); margin-left: 18px !important; }
.ot-unit { margin: 14px 0; }
.ot-head { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: var(--panel); border: 1px solid var(--line-2); border-left: 3px solid var(--unit, var(--violet)); }
.ot-head img { width: 40px; height: 40px; object-fit: contain; }
.ot-dot { width: 12px; height: 12px; background: var(--unit, var(--violet)); transform: rotate(45deg); }
.ot-head h3 { margin: 0; font-size: 1.3rem; }
.ot-pos { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-top: 0; }
.ot-pos li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 14px; background: var(--ink-2); font-size: .9rem; }
.ot-pos li span { color: var(--mute); }
.ot-pos li.open b { color: var(--faint); font-weight: 400; font-style: italic; }
.ot-pos li.lead span { color: var(--gold); }

/* gallery */
.pub-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.pub-gallery .shot { aspect-ratio: 16/10; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 16px; }
.video { margin: 0; }
.video iframe { width: 100%; aspect-ratio: 16/9; border: 0; display: block; }
.video figcaption { margin-top: 8px; color: var(--mute); }

@media (max-width: 860px) {
  .event-detail { grid-template-columns: 1fr; }
  .event-card { position: static; }
  .cal-cell { min-height: 64px; padding: 4px; }
  .cal-ev { font-size: .66rem; }
  .video-grid { grid-template-columns: 1fr; }
}
