.sg-dialog {
  --sg-wine: #651d30;
  --sg-ink: #29231e;
  --sg-paper: #fffcf5;
  --sg-rule: #dcd4c7;
  padding: 0;
  width: min(790px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 40px);
  margin: auto;
  overflow: hidden;
  color: var(--sg-ink);
  background: var(--sg-paper);
  border: 1px solid #c3ae98;
  border-radius: 14px;
  box-shadow: 0 30px 100px #20100f55;
  text-align: left;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.52;
}
.sg-dialog::backdrop { background: #20171bcc; }
.sg-dialog *, .sg-dialog *::before, .sg-dialog *::after { box-sizing: border-box; }
.sg-shell { display: flex; flex-direction: column; height: min(830px, calc(100dvh - 42px)); }
.sg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 21px 26px 9px; }
.sg-head h2, .sg-section-title { margin: 0; font-family: "Baskervville", Georgia, serif; font-weight: 500; letter-spacing: -.025em; color: #332823; }
.sg-head h2 { font-size: clamp(25px, 4vw, 35px); }
.sg-close, .sg-tabs button { appearance: none; background: transparent; color: inherit; font: inherit; cursor: pointer; box-shadow: none; text-transform: none; letter-spacing: normal; }
.sg-close { display: grid; place-items: center; padding: 7px; width: 40px; height: 40px; border: 1px solid var(--sg-rule); border-radius: 50%; }
.sg-close svg { width: 21px; height: 21px; }
.sg-close:hover { color: var(--sg-wine); background: #f1e8dc; }
.sg-tabs { display: flex; gap: 22px; padding: 0 27px; border-bottom: 1px solid var(--sg-rule); }
.sg-tabs button { margin: 0; padding: 11px 0 10px; border: 0; border-radius: 0; border-bottom: 3px solid transparent; color: #635b53; font-size: .92em; }
.sg-tabs button[aria-selected=true] { color: var(--sg-wine); border-bottom-color: var(--sg-wine); font-weight: 700; }
.sg-body { overflow-y: auto; overscroll-behavior: contain; padding: clamp(20px, 5vw, 36px); min-height: 0; flex: 1; }
.sg-body h3.sg-section-title { font-size: clamp(27px, 3.9vw, 38px); line-height: 1.15; margin: 0 0 10px; }
.sg-body h4 { margin: 26px 0 9px; font-size: 1.15em; line-height: 1.3; letter-spacing: 0; font-family: inherit; color: #332823; }
.sg-body p { font-size: inherit; line-height: inherit; margin: 0 0 10px; color: inherit; }
.sg-body p.sg-lead { color: #554b42; font-size: 1.06em; }
.sg-callout { padding: 13px 17px 14px; background: #f2ebdf; border-left: 3px solid #986f59; margin: 20px 0; border-radius: 2px 7px 7px 2px; }
.sg-callout h4 { margin: 0 0 4px; font-size: 1em; }
.sg-callout p, .sg-agenda p { margin: 0; }
.sg-agenda, .sg-link-list, .sg-case-list { list-style: none; padding: 0; margin: 0; }
.sg-agenda li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--sg-rule); }
.sg-agenda strong { font-weight: 700; display: block; margin-bottom: 2px; }
.sg-time { color: var(--sg-wine); font-weight: 650; font-variant-numeric: tabular-nums; }
.sg-extra { border-top: 1px solid var(--sg-rule); padding-top: 14px; margin-top: 20px; }
.sg-extra summary { cursor: pointer; font-weight: 650; color: var(--sg-wine); }
.sg-extra p { margin: 10px 0 0; }
.sg-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sg-photos figure { margin: 0; border: 1px solid var(--sg-rule); border-radius: 7px; overflow: hidden; }
.sg-photo-link { display: block; background: #e2d8cb; }
.sg-photos img { display: block; width: 100%; height: auto; aspect-ratio: 1.63; object-fit: cover; }
.sg-photos figcaption { display: grid; gap: 3px; padding: 10px 12px; line-height: 1.4; }
.sg-photos figcaption span { font-size: .86em; }
.sg-photos small, .sg-case-list small { font-size: .8em; color: #63584f; }
.sg-body a { color: var(--sg-wine); text-underline-offset: .18em; text-decoration: underline; overflow-wrap: anywhere; }
.sg-body a:hover { color: #35151d; }
.sg-link-list, .sg-case-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
.sg-link-list li, .sg-case-list li { display: grid; align-content: start; gap: 4px; padding: 10px 0; border-top: 1px solid var(--sg-rule); }
.sg-link-list span { color: #5d534a; font-size: .91em; }
.sg-case-list span, .sg-link-list a { font-weight: 650; }
.sg-dialog :focus-visible { outline: 3px solid #a05a30; outline-offset: 2px; }
.sg-body:focus-visible, .sg-photo-link:focus-visible { outline-offset: -3px; }
@media (max-width: 570px) {
  .sg-dialog { width: calc(100% - 12px); max-height: calc(100dvh - 12px); }
  .sg-shell { height: calc(100dvh - 15px); }
  .sg-head { padding: 14px 15px 6px; }
  .sg-tabs { padding: 0 16px; gap: 15px; }
  .sg-body { padding: 20px 16px; }
  .sg-link-list, .sg-case-list { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .sg-photos { grid-template-columns: 1fr; }
}
.sg-audio button {
  margin: 10px 0 2px; background: var(--sg-wine); color: white; font: inherit;
  border: 1px solid var(--sg-wine); padding: 8px 14px; border-radius: 6px; cursor: pointer;
}
.sg-audio button:disabled { background: #6d6464; border-color: #6d6464; cursor: progress; }
.sg-audio progress { width: min(100%, 28rem); height: 12px; accent-color: var(--sg-wine); }
.sg-audio-status { font-weight: 650; }
.sg-audio .sg-audio-note, .sg-audio .sg-audio-counts, .sg-audio .sg-audio-missing { color: #5b514a; font-size: .92em; }
.sg-audio p:empty { display: none; }
.sg-map { margin: 16px 0 12px; }
.sg-map img { display: block; width: 100%; height: auto; border: 1px solid #c7cabc; border-radius: 6px; background: #edece0; }
.sg-map figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 3px 12px; margin-top: 6px; font-size: .79em; color: #635e55; }
.sg-map-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sg-map-actions a { display: inline-flex; align-items: center; justify-content: space-between; gap: 11px; padding: 8px 11px; min-height: 38px; border: 1px solid #bbac96; background: #f2ecdf; color: #4f2632; border-radius: 4px; font-weight: 650; text-decoration: none; }
.sg-map-actions a:hover { background: #e9dfcf; text-decoration: underline; }
.sg-map-key { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 18px; list-style: none; padding: 0; margin: 0; }
.sg-map-key li { display: flex; align-items: flex-start; gap: 9px; padding: 8px 0; border-top: 1px solid var(--sg-rule); }
.sg-map-num { display: grid; flex: none; place-items: center; margin-top: 2px; width: 23px; height: 23px; border-radius: 50%; background: #4f5146; color: #fff; font: 650 12px/1 var(--sans,Arial,sans-serif); }
.sg-map-key li:first-child .sg-map-num { background: #70283a; }
.sg-map-key li:nth-child(7) .sg-map-num { background: #336459; }
.sg-map-key strong, .sg-map-key small { display: block; }
.sg-map-key small { color: #625a50; line-height: 1.43; margin-top: 2px; font-size: .85em; }
.sg-body .sg-map-note { margin-top: 12px; font-size: .88em; color: #5c5950; }
@media(max-width:570px) {
  .sg-map-key { grid-template-columns: 1fr; }
  .sg-tabs { gap: 12px; }
  .sg-tabs button { font-size: .83em; }
  .sg-map-actions a { width: 100%; }
}
