/* Tabitha: Core broadsheet colour variables and font families for minimapbirmingham.com */
:root {
  --hekk-bg: #f7f0ed;
  --hekk-panel: #ecded8;
  --hekk-paper: #fcf8f6;
  --hekk-accent: #314a59;
  --hekk-accent-hover: #243844;
  --hekk-ink: #211c19;
  --hekk-muted: #635952;
  --hekk-rule: #d5c4bc;
  --hekk-alert-bg: #f6e2de;
  --hekk-alert-ink: #7a261d;
  --hekk-radius: 8px;
  --hekk-radius-sm: 4px;
  --hekk-display: 'Bitter', Georgia, serif;
  --hekk-body: 'Lexend', -apple-system, BlinkMacSystemFont, sans-serif;
  --hekk-mono: 'Fira Code', ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body.hekk-broadsheet-body {
  margin: 0;
  padding: 20px 16px 40px;
  background-color: var(--hekk-bg);
  color: var(--hekk-ink);
  font-family: var(--hekk-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--hekk-accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--hekk-accent-hover);
}

:focus-visible {
  outline: 2.5px solid var(--hekk-accent);
  outline-offset: 2px;
}

.hekk-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hekk-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--hekk-accent);
  color: #fcf8f6;
  padding: 10px 16px;
  font-weight: 600;
  z-index: 900;
}

.hekk-skip-link:focus {
  left: 16px;
  top: 16px;
}

/* Silas: Outer broadsheet frame container keeping crisp 1px border discipline */
.hekk-frame-shell {
  max-width: 1240px;
  margin: 0 auto;
  background-color: var(--hekk-paper);
  border: 1px solid var(--hekk-rule);
  border-radius: var(--hekk-radius);
}

/* Masthead & DRAWER_AND_SEARCH bar */
.hekk-masthead {
  border-bottom: 2px solid var(--hekk-ink);
  background-color: var(--hekk-paper);
  border-top-left-radius: var(--hekk-radius);
  border-top-right-radius: var(--hekk-radius);
}

.hekk-masthead-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  flex-wrap: wrap;
}

.hekk-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--hekk-ink);
}

.hekk-brand-emblem {
  flex-shrink: 0;
  border-radius: var(--hekk-radius-sm);
}

.hekk-brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.hekk-brand-name {
  font-family: var(--hekk-display);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hekk-brand-tag {
  font-family: var(--hekk-mono);
  font-size: 0.72rem;
  color: var(--hekk-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hekk-nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hekk-nav-link {
  display: inline-block;
  padding: 7px 11px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--hekk-ink);
  text-decoration: none;
  border-radius: var(--hekk-radius-sm);
  border: 1px solid transparent;
}

.hekk-nav-link:hover,
.hekk-nav-link.is-current {
  background-color: var(--hekk-panel);
  border-color: var(--hekk-rule);
  color: var(--hekk-accent);
}

.hekk-utility-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hekk-search-wrap {
  position: relative;
}

.hekk-search-form {
  display: flex;
  align-items: center;
  border: 1px solid var(--hekk-rule);
  border-radius: var(--hekk-radius-sm);
  background-color: var(--hekk-bg);
  overflow: hidden;
}

.hekk-search-input {
  width: 185px;
  padding: 7px 10px;
  border: 0;
  background: transparent;
  color: var(--hekk-ink);
  font-family: var(--hekk-body);
  font-size: 0.86rem;
}

.hekk-search-input:focus {
  outline: none;
}

.hekk-search-btn {
  padding: 7px 12px;
  border: 0;
  border-left: 1px solid var(--hekk-rule);
  background-color: var(--hekk-accent);
  color: #fcf8f6;
  font-family: var(--hekk-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.hekk-search-btn:hover {
  background-color: var(--hekk-accent-hover);
}

.hekk-search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: min(340px, 90vw);
  background-color: var(--hekk-paper);
  border: 1px solid var(--hekk-ink);
  border-radius: var(--hekk-radius-sm);
  z-index: 400;
  box-shadow: 0 8px 20px rgba(33, 28, 25, 0.12);
}

.hekk-search-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--hekk-ink);
  border-bottom: 1px solid var(--hekk-rule);
  font-size: 0.86rem;
}

.hekk-search-item:last-child {
  border-bottom: 0;
}

.hekk-search-item:hover {
  background-color: var(--hekk-panel);
}

.hekk-search-kind {
  font-family: var(--hekk-mono);
  font-size: 0.72rem;
  color: var(--hekk-muted);
  white-space: nowrap;
}

.hekk-search-empty {
  padding: 12px;
  margin: 0;
  font-size: 0.85rem;
  color: var(--hekk-muted);
}

.hekk-phone-badge {
  font-family: var(--hekk-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--hekk-accent);
  text-decoration: none;
  padding: 7px 10px;
  border: 1px solid var(--hekk-rule);
  border-radius: var(--hekk-radius-sm);
  background-color: var(--hekk-bg);
  white-space: nowrap;
}

.hekk-drawer-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid var(--hekk-ink);
  border-radius: var(--hekk-radius-sm);
  background-color: var(--hekk-panel);
  color: var(--hekk-ink);
  font-family: var(--hekk-body);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.hekk-mobile-drawer {
  border-top: 1px solid var(--hekk-rule);
  background-color: var(--hekk-bg);
  padding: 16px 24px 20px;
}

.hekk-drawer-links {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.hekk-drawer-link {
  display: block;
  padding: 9px 12px;
  background-color: var(--hekk-paper);
  border: 1px solid var(--hekk-rule);
  border-radius: var(--hekk-radius-sm);
  color: var(--hekk-ink);
  text-decoration: none;
  font-weight: 500;
}

.hekk-drawer-link.is-current {
  border-color: var(--hekk-accent);
  color: var(--hekk-accent);
}

.hekk-drawer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.85rem;
  color: var(--hekk-muted);
}

/* Main section rhythm */
.hekk-main-canvas {
  display: block;
}

.hekk-band {
  padding: 36px 28px;
  border-bottom: 1px solid var(--hekk-rule);
}

.hekk-band-tinted {
  background-color: var(--hekk-panel);
}

.hekk-band-soft {
  background-color: var(--hekk-bg);
}

.hekk-eyebrow {
  display: inline-block;
  font-family: var(--hekk-mono);
  font-size: 0.76rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hekk-accent);
  margin-bottom: 8px;
}

.hekk-h1 {
  font-family: var(--hekk-display);
  font-size: clamp(1.85rem, 3.2vw, 2.7rem);
  line-height: 1.18;
  margin: 0 0 14px;
  color: var(--hekk-ink);
  letter-spacing: -0.015em;
}

.hekk-h2 {
  font-family: var(--hekk-display);
  font-size: clamp(1.38rem, 2.2vw, 1.85rem);
  line-height: 1.25;
  margin: 0 0 10px;
  color: var(--hekk-ink);
}

.hekk-h3 {
  font-family: var(--hekk-display);
  font-size: 1.14rem;
  line-height: 1.32;
  margin: 0 0 8px;
  color: var(--hekk-ink);
}

.hekk-lead {
  font-size: 1.04rem;
  color: var(--hekk-muted);
  margin: 0 0 18px;
  max-width: 68ch;
}

.hekk-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.hekk-section-head p {
  margin: 0;
  color: var(--hekk-muted);
  max-width: 64ch;
}

/* Buttons */
.hekk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: var(--hekk-body);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--hekk-radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
}

.hekk-btn-primary {
  background-color: var(--hekk-accent);
  color: #fcf8f6;
  border-color: var(--hekk-accent);
}

.hekk-btn-primary:hover {
  background-color: var(--hekk-accent-hover);
  color: #fcf8f6;
}

.hekk-btn-outline {
  background-color: var(--hekk-paper);
  color: var(--hekk-ink);
  border-color: var(--hekk-ink);
}

.hekk-btn-outline:hover {
  background-color: var(--hekk-panel);
  color: var(--hekk-ink);
}

.hekk-btn-ghost {
  background-color: transparent;
  color: var(--hekk-accent);
  border-color: var(--hekk-rule);
}

.hekk-btn-ghost:hover {
  background-color: var(--hekk-panel);
}

.hekk-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Rowena: BENTO_FACTS_STRIP hero layout */
.hekk-hero-bento {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.hekk-hero-copy {
  padding-right: 12px;
}

.hekk-bento-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hekk-bento-cell {
  background-color: var(--hekk-bg);
  border: 1px solid var(--hekk-rule);
  border-radius: var(--hekk-radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hekk-bento-cell.is-accent {
  background-color: var(--hekk-accent);
  color: #fcf8f6;
  border-color: var(--hekk-accent);
}

.hekk-bento-cell.is-accent .hekk-bento-label,
.hekk-bento-cell.is-accent .hekk-bento-note {
  color: #e6eef2;
}

.hekk-bento-label {
  font-family: var(--hekk-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--hekk-muted);
}

.hekk-bento-value {
  font-family: var(--hekk-display);
  font-size: 1.45rem;
  font-weight: 700;
  margin: 6px 0 4px;
}

.hekk-bento-note {
  font-size: 0.83rem;
  color: var(--hekk-muted);
  margin: 0;
}

.hekk-facts-strip {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--hekk-rule);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.hekk-fact-pill {
  background-color: var(--hekk-panel);
  border: 1px solid var(--hekk-rule);
  border-radius: var(--hekk-radius-sm);
  padding: 10px 12px;
  font-size: 0.84rem;
}

.hekk-fact-pill strong {
  display: block;
  font-family: var(--hekk-mono);
  font-size: 0.78rem;
  color: var(--hekk-accent);
}

/* Grids & Cards */
.hekk-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.hekk-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.hekk-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.hekk-card {
  background-color: var(--hekk-paper);
  border: 1px solid var(--hekk-rule);
  border-radius: var(--hekk-radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hekk-card-alt {
  background-color: var(--hekk-bg);
}

.hekk-card-media {
  border-radius: var(--hekk-radius-sm);
  overflow: hidden;
  border: 1px solid var(--hekk-rule);
  aspect-ratio: 16 / 10;
  background-color: var(--hekk-panel);
}

.hekk-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hekk-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hekk-tag {
  display: inline-block;
  padding: 3px 8px;
  font-family: var(--hekk-mono);
  font-size: 0.73rem;
  background-color: var(--hekk-panel);
  border: 1px solid var(--hekk-rule);
  border-radius: var(--hekk-radius-sm);
  color: var(--hekk-ink);
}

.hekk-meta-line {
  font-family: var(--hekk-mono);
  font-size: 0.78rem;
  color: var(--hekk-muted);
}

/* Tabitha: NUMBERED_LEDGER_ROWS layout for top 10 games sites */
.hekk-ledger-list {
  display: grid;
  gap: 12px;
}

.hekk-ledger-row {
  display: grid;
  grid-template-columns: 56px 148px minmax(0, 1fr) 210px;
  gap: 18px;
  align-items: center;
  padding: 16px;
  background-color: var(--hekk-paper);
  border: 1px solid var(--hekk-rule);
  border-radius: var(--hekk-radius);
}

.hekk-ledger-rank {
  font-family: var(--hekk-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--hekk-accent);
  text-align: center;
  border-right: 1px solid var(--hekk-rule);
  padding-right: 12px;
}

.hekk-ledger-thumb {
  width: 148px;
  aspect-ratio: 16 / 10;
  border-radius: var(--hekk-radius-sm);
  overflow: hidden;
  border: 1px solid var(--hekk-rule);
}

.hekk-ledger-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hekk-ledger-body h3 {
  margin: 0 0 6px;
  font-family: var(--hekk-display);
  font-size: 1.15rem;
}

.hekk-ledger-body p {
  margin: 6px 0 8px;
  font-size: 0.92rem;
  color: var(--hekk-muted);
}

.hekk-ledger-note {
  font-size: 0.82rem;
  color: var(--hekk-ink);
  margin: 0;
}

.hekk-ledger-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  text-align: right;
}

.hekk-score-box {
  font-family: var(--hekk-mono);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 5px 10px;
  border: 1px solid var(--hekk-accent);
  border-radius: var(--hekk-radius-sm);
  background-color: var(--hekk-bg);
  color: var(--hekk-accent);
}

/* Tables */
.hekk-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--hekk-rule);
  border-radius: var(--hekk-radius);
  background-color: var(--hekk-paper);
}

.hekk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.hekk-table th,
.hekk-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--hekk-rule);
  vertical-align: top;
}

.hekk-table th {
  background-color: var(--hekk-panel);
  font-family: var(--hekk-display);
  font-weight: 700;
}

.hekk-table tr:last-child td {
  border-bottom: 0;
}

/* ARIA_BUTTON_ACCORDION */
.hekk-accordion {
  display: grid;
  gap: 10px;
}

.hekk-acc-item {
  border: 1px solid var(--hekk-rule);
  border-radius: var(--hekk-radius);
  background-color: var(--hekk-paper);
}

.hekk-acc-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  background: transparent;
  border: 0;
  color: var(--hekk-ink);
  font-family: var(--hekk-display);
  font-size: 1.02rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.hekk-acc-icon {
  font-family: var(--hekk-mono);
  font-size: 1.1rem;
  color: var(--hekk-accent);
  flex-shrink: 0;
}

.hekk-acc-panel {
  padding: 0 18px 16px;
  color: var(--hekk-muted);
  border-top: 1px solid var(--hekk-rule);
  font-size: 0.94rem;
}

.hekk-acc-panel p {
  margin: 12px 0 0;
}

/* Editorial Split & Article layouts */
.hekk-article-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.hekk-toc-box {
  position: sticky;
  top: 18px;
  background-color: var(--hekk-bg);
  border: 1px solid var(--hekk-rule);
  border-radius: var(--hekk-radius);
  padding: 16px;
}

.hekk-toc-box h2 {
  font-family: var(--hekk-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 10px;
  color: var(--hekk-accent);
}

.hekk-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 0.88rem;
}

.hekk-prose h2 {
  font-family: var(--hekk-display);
  font-size: 1.4rem;
  margin: 26px 0 10px;
}

.hekk-prose h2:first-child {
  margin-top: 0;
}

.hekk-prose p {
  margin: 0 0 14px;
}

.hekk-prose ul,
.hekk-prose ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.hekk-prose li {
  margin-bottom: 6px;
}

.hekk-callout {
  background-color: var(--hekk-panel);
  border-left: 4px solid var(--hekk-accent);
  padding: 14px 18px;
  border-radius: var(--hekk-radius-sm);
  margin: 18px 0;
}

/* Forms */
.hekk-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.hekk-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hekk-field-full {
  grid-column: 1 / -1;
}

.hekk-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--hekk-ink);
}

.hekk-input,
.hekk-select,
.hekk-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--hekk-rule);
  border-radius: var(--hekk-radius-sm);
  background-color: var(--hekk-paper);
  color: var(--hekk-ink);
  font-family: var(--hekk-body);
  font-size: 0.94rem;
}

.hekk-input[aria-invalid="true"],
.hekk-textarea[aria-invalid="true"] {
  border-color: var(--hekk-alert-ink);
  background-color: var(--hekk-alert-bg);
}

.hekk-alert-box {
  background-color: var(--hekk-alert-bg);
  color: var(--hekk-alert-ink);
  border: 1px solid var(--hekk-alert-ink);
  border-radius: var(--hekk-radius-sm);
  padding: 14px 16px;
  margin-bottom: 18px;
}

.hekk-alert-box ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.hekk-trap-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Filter buttons */
.hekk-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.hekk-filter-btn {
  padding: 7px 13px;
  border: 1px solid var(--hekk-rule);
  border-radius: var(--hekk-radius-sm);
  background-color: var(--hekk-bg);
  color: var(--hekk-ink);
  font-family: var(--hekk-body);
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
}

.hekk-filter-btn.is-active {
  background-color: var(--hekk-accent);
  border-color: var(--hekk-accent);
  color: #fcf8f6;
}

/* Colophon / Footer */
.hekk-colophon {
  padding: 34px 28px 26px;
  background-color: var(--hekk-panel);
  border-bottom-left-radius: var(--hekk-radius);
  border-bottom-right-radius: var(--hekk-radius);
}

.hekk-colophon-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.35fr);
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hekk-rule);
}

.hekk-colophon-summary {
  margin: 12px 0 10px;
  font-size: 0.92rem;
}

.hekk-disclosure-note {
  margin: 0;
  font-size: 0.83rem;
  color: var(--hekk-muted);
}

.hekk-colophon-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.hekk-col-heading {
  font-family: var(--hekk-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 10px;
  color: var(--hekk-ink);
}

.hekk-col-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
  font-size: 0.88rem;
}

.hekk-cookie-trigger {
  margin-top: 12px;
  padding: 7px 11px;
  border: 1px solid var(--hekk-ink);
  border-radius: var(--hekk-radius-sm);
  background-color: var(--hekk-paper);
  color: var(--hekk-ink);
  font-family: var(--hekk-body);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.hekk-colophon-meta {
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hekk-office-dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.hekk-dl-row dt {
  font-family: var(--hekk-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--hekk-muted);
}

.hekk-dl-row dd {
  margin: 4px 0 0;
  font-size: 0.88rem;
}

.hekk-copyright {
  margin: 0;
  font-size: 0.82rem;
  color: var(--hekk-muted);
}

/* Consent Banner & Modal */
.hekk-choice-dock {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 800;
  max-width: 1120px;
  margin: 0 auto;
  background-color: var(--hekk-paper);
  border: 2px solid var(--hekk-ink);
  border-radius: var(--hekk-radius);
  padding: 18px 22px;
  box-shadow: 0 12px 28px rgba(33, 28, 25, 0.16);
}

.hekk-consent-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.hekk-consent-text {
  max-width: 68ch;
}

.hekk-consent-text p {
  margin: 4px 0 0;
  font-size: 0.88rem;
  color: var(--hekk-muted);
}

.hekk-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hekk-sheet-scrim {
  position: fixed;
  inset: 0;
  z-index: 950;
  background-color: rgba(33, 28, 25, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.hekk-sheet-scrim[hidden],
.hekk-choice-dock[hidden],
.hekk-mobile-drawer[hidden],
.hekk-search-dropdown[hidden] {
  display: none;
}

.hekk-modal-card {
  width: min(560px, 100%);
  background-color: var(--hekk-paper);
  border: 2px solid var(--hekk-ink);
  border-radius: var(--hekk-radius);
  padding: 22px;
}

.hekk-sheet-titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.hekk-sheet-titlebar h2 {
  margin: 0;
  font-family: var(--hekk-display);
  font-size: 1.3rem;
}

.hekk-sheet-exit {
  border: 1px solid var(--hekk-rule);
  background-color: var(--hekk-bg);
  color: var(--hekk-ink);
  width: 34px;
  height: 34px;
  border-radius: var(--hekk-radius-sm);
  font-size: 1.25rem;
  cursor: pointer;
}

.hekk-modal-intro {
  font-size: 0.9rem;
  color: var(--hekk-muted);
  margin: 0 0 14px;
}

.hekk-pref-list {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.hekk-pref-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--hekk-rule);
  border-radius: var(--hekk-radius-sm);
  background-color: var(--hekk-bg);
}

.hekk-pref-item p {
  margin: 4px 0 0;
  font-size: 0.83rem;
  color: var(--hekk-muted);
}

.hekk-pref-status {
  font-family: var(--hekk-mono);
  font-size: 0.76rem;
  color: var(--hekk-accent);
  white-space: nowrap;
}

.hekk-modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

/* Rowena: Responsive layout rules for tablets and 375px viewports */
@media (max-width: 1040px) {
  .hekk-primary-nav,
  .hekk-phone-badge {
    display: none;
  }

  .hekk-drawer-toggle {
    display: inline-flex;
  }

  .hekk-hero-bento,
  .hekk-article-layout,
  .hekk-colophon-grid {
    grid-template-columns: 1fr;
  }

  .hekk-toc-box {
    position: static;
  }

  .hekk-ledger-row {
    grid-template-columns: 44px 120px minmax(0, 1fr);
  }

  .hekk-ledger-aside {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    border-top: 1px solid var(--hekk-rule);
    padding-top: 10px;
  }
}

@media (max-width: 780px) {
  .hekk-grid-3,
  .hekk-grid-4,
  .hekk-facts-strip,
  .hekk-colophon-cols,
  .hekk-office-dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  body.hekk-broadsheet-body {
    padding: 10px 8px 28px;
  }

  .hekk-masthead-bar,
  .hekk-band,
  .hekk-colophon {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hekk-search-input {
    width: 132px;
  }

  .hekk-grid-2,
  .hekk-grid-3,
  .hekk-grid-4,
  .hekk-bento-grid,
  .hekk-facts-strip,
  .hekk-form-grid,
  .hekk-colophon-cols,
  .hekk-office-dl {
    grid-template-columns: 1fr;
  }

  .hekk-ledger-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hekk-ledger-rank {
    border-right: 0;
    border-bottom: 1px solid var(--hekk-rule);
    padding-right: 0;
    padding-bottom: 6px;
    text-align: left;
  }

  .hekk-ledger-thumb {
    width: 100%;
  }
}

[hidden] {
  display: none !important;
}
