/* 외부행사: 먹색 바탕·크림색 선 체계를 그대로 쓰는 찾기 도구와 행사 카드 (style.css 변수 사용) */
.oe-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.oe-pilot { margin-top: 20px; padding: 14px 18px; border: 1px dashed var(--soft); display: grid; gap: 4px; max-width: 52em; word-break: keep-all; overflow-wrap: anywhere; }
.oe-pilot b { font-size: 13px; letter-spacing: .14em; color: var(--soft); }
.oe-pilot p { font-size: 14px; color: #e4dac7; }

.oe-tools { margin-top: 28px; padding: 22px 24px; background: var(--deep); border: 1px solid rgba(239,229,210,.3); display: grid; gap: 16px; min-width: 0; }
.oe-search { display: grid; gap: 6px; max-width: 560px; }
.oe-search label, .oe-legend { font-size: 14px; color: var(--soft); }
.oe-search input {
  font: inherit; color: var(--line); background: var(--land); border: 1px solid rgba(239,229,210,.45);
  padding: 10px 14px; min-height: 46px; width: 100%; border-radius: 0; -webkit-appearance: none; appearance: none;
}
.oe-search input::placeholder { color: var(--muted); }
.oe-help { font-size: 13px; color: var(--muted); }
.oe-group { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 8px 12px; align-items: start; }
.oe-legend { padding-top: 9px; }
.oe-chips { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.oe-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px;
  border: 1px solid rgba(239,229,210,.45); border-radius: 20px; background: transparent; color: var(--line);
  font: inherit; font-size: 14px; cursor: pointer; max-width: 100%; overflow-wrap: anywhere; text-align: left;
}
.oe-chip:hover { border-color: var(--line); }
.oe-chip[aria-pressed="true"] { background: var(--line); color: var(--ink); border-color: var(--line); font-weight: 700; }
.oe-chip[aria-pressed="true"]::before { content: '✓'; font-size: 12px; }
.oe-n { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.oe-chip[aria-pressed="true"] .oe-n { color: var(--ink); }
.oe-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.oe-actions .btn { min-height: 42px; padding: 0 18px; font-size: 14px; }

.oe-count { margin-top: 24px; font-size: 14px; color: var(--soft); letter-spacing: .04em; }
.oe-list { margin-top: 12px; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); align-items: start; }
.oe-card { background: var(--land); border: 2px solid var(--line); padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0; word-break: keep-all; overflow-wrap: anywhere; }
.oe-card.is-past { border: 1px dashed rgba(239,229,210,.5); background: rgba(76,70,63,.55); }
.oe-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.oe-when { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 13px; background: var(--line); color: var(--ink); font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.oe-when-past, .oe-when-unknown { background: transparent; color: var(--soft); border: 1px dashed var(--muted); }
.oe-checked { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.oe-card h3 { font-size: clamp(19px, 2.2vw, 23px); line-height: 1.4; }
.oe-summary { color: #e4dac7; font-size: 15px; }
.oe-facts { margin: 0; display: grid; gap: 6px; font-size: 14px; }
.oe-facts div { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; }
.oe-facts dt { color: var(--soft); }
.oe-facts dd { margin: 0; color: var(--line); min-width: 0; }
.oe-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.oe-tags li { font-size: 12px; padding: 1px 10px; border: 1px solid rgba(239,229,210,.4); border-radius: 11px; color: var(--soft); }
.oe-links { display: flex; flex-wrap: wrap; gap: 10px; }
.oe-links .btn { min-height: 42px; padding: 0 18px; font-size: 14px; letter-spacing: .02em; max-width: 100%; text-align: center; }
.oe-more { border-top: 1px solid rgba(239,229,210,.25); padding-top: 10px; font-size: 14px; }
.oe-more summary { cursor: pointer; color: var(--soft); min-height: 32px; display: flex; align-items: center; gap: 10px; list-style: none; }
.oe-more summary::-webkit-details-marker { display: none; }
/* 펼침 표시: 장식 기호라 읽기 프로그램에는 요약 문구만 전달 */
.oe-more summary::after { content: '+'; content: '+' / ''; margin-left: auto; flex: none; width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 15px; line-height: 1; }
.oe-more[open] summary::after { content: '−'; content: '−' / ''; }
.oe-more summary:hover { color: var(--line); }
.oe-more[open] summary { margin-bottom: 8px; }
.oe-more h4 { margin: 12px 0 4px; font-size: 13px; letter-spacing: .08em; color: var(--soft); font-weight: 500; }
.oe-more ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; color: #e4dac7; }
.oe-notice { padding: 10px 12px; border-left: 3px solid var(--line); background: rgba(47,43,39,.6); color: var(--line); }
.oe-refs a { color: var(--soft); font-size: 13px; }

.oe-state, .oe-empty { margin-top: 28px; padding: 24px; border: 2px dashed var(--muted); color: var(--soft); display: grid; gap: 10px; justify-items: start; }
.oe-empty { margin-top: 0; grid-column: 1 / -1; }
.oe-empty b { font-family: var(--display); font-size: 19px; color: var(--line); }
.oe-error { border-style: solid; }

@media (max-width: 600px) {
  .oe-tools { padding: 18px 16px; }
  .oe-group { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .oe-legend { padding-top: 0; }
  .oe-card { padding: 18px 16px; }
  .oe-facts div { grid-template-columns: 64px minmax(0, 1fr); }
}
