.ma-section {
  --ma-line: #e8d9ce;
  --ma-surface: #fff9f3;
  padding: clamp(40px, 5.2vw, 76px) 0;
  color: var(--ink);
}
.ma-section [hidden] { display: none !important; }
.ma-section :is(a, button, [tabindex="0"]):focus-visible {
  outline: 3px solid var(--ods);
  outline-offset: 4px;
}
.ma-home { border-top: 1px solid var(--ma-line); }
.ma-heading, .ma-media-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.ma-heading { margin-bottom: 22px; }
.ma-heading h2, .ma-section h1 {
  margin: 0;
  font-size: clamp(32px, 4.4vw, 54px);
  letter-spacing: -.035em;
  line-height: 1.2;
}
.ma-text-link {
  color: var(--ods);
  font-weight: 700;
  font-size: 15px;
  text-underline-offset: 4px;
}
.ma-text-link:hover, .ma-card:hover h3 { text-decoration: underline; }
.ma-text-link span { margin-inline: 2px; }
.ma-directory { min-height: 53vh; }
.ma-tabs {
  display: flex;
  gap: 24px;
  margin: 22px 0;
  border-bottom: 1px solid var(--ma-line);
}
.ma-tabs button {
  min-height: 46px;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 7px 2px 10px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 16px;
  font-weight: 650;
  cursor: pointer;
}
.ma-tabs button[aria-selected="true"] { color: var(--ods); border-bottom-color: var(--brand); }
.ma-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; }
.ma-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--ma-line);
  border-radius: 12px;
  background: white;
}
.ma-card:hover { border-color: #ba8e70; }
.ma-card-art {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ma-surface);
}
.ma-card-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.ma-card-art.ma-without-image { aspect-ratio: auto; min-height: 48px; }
.ma-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 5px;
  background: #fff0df;
  color: #833300;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}
.ma-card-art .ma-status { position: absolute; top: 10px; left: 10px; }
.ma-status[data-phase="past"] { color: #4f463f; background: #f1eeeb; }
.ma-status[data-phase="live"] { color: #18563b; background: #e0f5e8; }
.ma-card-copy { min-width: 0; padding: 18px 20px 20px; overflow-wrap: anywhere; }
.ma-card-copy h3 { margin: 0 0 11px; font-size: clamp(18px, 1.75vw, 23px); line-height: 1.4; text-underline-offset: 3px; }
.ma-card-time { color: #6d4730; font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; }
.ma-card-location { margin-top: 4px; color: var(--muted); font-size: 14px; }
.ma-notice, .ma-empty {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 78px;
  padding: 16px 20px;
  border-left: 3px solid #e7b58e;
  background: var(--ma-surface);
  color: var(--muted);
}
.ma-notice button { border: 0; background: transparent; color: var(--ods); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.ma-back { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 18px; }
.ma-detail h1 { max-width: 24em; margin-bottom: clamp(22px, 3vw, 36px); }
.ma-article {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  grid-template-rows: auto 1fr;
  gap: 26px clamp(28px, 5vw, 72px);
  align-items: start;
}
.ma-intro, .ma-report { grid-column: 1; min-width: 0; overflow-wrap: anywhere; }
.ma-intro { grid-row: 1; }
.ma-report { grid-row: 2; }
.ma-article h2 { margin: 0 0 12px; font-size: 22px; line-height: 1.4; }
.ma-facts { margin: 14px 0 24px; border-block: 1px solid var(--ma-line); }
.ma-facts > div { display: grid; grid-template-columns: 4.5em minmax(0, 1fr); gap: 10px; padding: 10px 0; }
.ma-facts > div + div { border-top: 1px solid var(--ma-line); }
.ma-facts dt { color: var(--muted); font-size: 14px; }
.ma-facts dd { font-weight: 650; }
.ma-prose { line-height: 1.9; white-space: pre-line; }
.ma-poster {
  grid-row: 1 / span 2;
  grid-column: 2;
  min-width: 0;
  padding: clamp(14px, 2.5vw, 24px);
  border: 1px solid var(--ma-line);
  border-radius: 12px;
  background: var(--ma-surface);
}
.ma-media-heading { margin-bottom: 12px; }
.ma-media-heading h2 { margin: 0; }
.ma-image-link { display: block; cursor: zoom-in; }
.ma-image-link img { display: block; width: auto; max-width: 100%; height: auto; margin-inline: auto; }
.ma-poster figcaption { margin-top: 10px; color: var(--muted); font-size: 13px; }
.ma-report > [data-ma-recap-block]:not([hidden]) + div { margin-top: 22px; }
.ma-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; list-style: none; }
.ma-photos a, .ma-photos img { display: block; width: 100%; }
.ma-photos a { cursor: zoom-in; }
.ma-photos img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.ma-viewer {
  position: fixed;
  inset: 0;
  width: min(94vw, 1040px);
  height: 91vh;
  height: 91dvh;
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #675d55;
  border-radius: 12px;
  background: #211d1a;
  color: #fff;
}
.ma-viewer[open] { display: flex; flex-direction: column; }
.ma-viewer::backdrop { background: #1a1512cf; }
.ma-viewer-tools, .ma-viewer-tools > div { display: flex; align-items: center; gap: 8px; }
.ma-viewer-tools { flex-wrap: wrap; justify-content: space-between; padding: 10px 14px; background: #312a25; }
.ma-viewer-tools strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ma-viewer-tools :is(a, button) {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 5px 11px;
  white-space: nowrap;
  border: 1px solid #aa9e94;
  border-radius: 5px;
  background: transparent;
  color: white;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.ma-viewer :focus-visible { outline: 2px solid #ffb77e !important; outline-offset: -2px !important; }
.ma-viewer-scroll { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.ma-viewer-scroll img { display: block; width: auto; height: auto; max-width: 100%; margin-inline: auto; }
.ma-viewer-scroll.ma-zoomed img { min-width: 180%; max-width: none; }
@media (max-width: 850px) {
  .ma-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}
@media (max-width: 720px) {
  .ma-article { display: flex; flex-direction: column; gap: 26px; }
  .ma-article > * { width: 100%; }
}
@media (max-width: 560px) {
  .ma-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ma-home .ma-card { display: grid; grid-template-columns: minmax(86px, 32%) minmax(0, 1fr); align-items: center; }
  .ma-home .ma-card-art { display: grid; gap: 5px; justify-items: start; aspect-ratio: auto; padding-left: 10px; background: transparent; }
  .ma-home .ma-card-art img { height: auto; aspect-ratio: 16 / 9; object-fit: contain; }
  .ma-home .ma-card-art .ma-status { position: static; }
  .ma-card-copy { padding: 14px; }
  .ma-card-copy h3 { margin-bottom: 7px; }
  .ma-card-art .ma-status { top: 6px; left: 6px; }
  .ma-tabs { margin: 16px 0; }
  .ma-viewer { width: 100%; height: 100vh; height: 100dvh; border: none; border-radius: 0; }
  .ma-viewer-tools { padding: max(10px, env(safe-area-inset-top)) 12px 8px; }
}
