:root {
  --paper: #f8f4eb;
  --paper-soft: #fbf8f1;
  --surface: #fffdf8;
  --surface-subtle: #f1ece2;
  --ink: #24211c;
  --ink-soft: #504c44;
  --muted: #756f63;
  --line: #ded5c7;
  --line-strong: #cbbfad;
  --moss: #536044;
  --clay: #9b4a38;
  --stone: #d9d1c3;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(36, 33, 28, 0.035) 1px, transparent 1px) 0 0 / 96px 96px,
    var(--paper);
  font-family: "Hiragino Sans", "Yu Gothic", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0;
}

img {
  max-width: 100%;
}

.end-emblem {
  display: grid;
  place-items: center;
  padding: 42px 24px 34px;
}

.end-emblem img {
  display: block;
  width: 200px;
  height: 200px;
  object-fit: contain;
  filter: invert(1);
}

.site-header,
.page-header {
  color: var(--ink);
  background: var(--paper-soft);
  border-bottom: 1px solid var(--line);
}

.site-header {
  min-height: auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 30px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 650;
}

.brand::before {
  content: "";
  display: block;
  width: 30px;
  height: 1px;
  background: var(--ink);
}

.brand-mark {
  display: none;
}

.nav-links {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 0.92rem;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover,
.source-link:hover,
.feature-link:hover strong {
  color: var(--clay);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: end;
  gap: clamp(36px, 7vw, 96px);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(84px, 14vw, 156px) 24px clamp(72px, 10vw, 116px);
}

.hero-copy {
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--moss);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-intro h1,
.profile-summary h1 {
  margin: 0;
  line-height: 1.05;
}

.hero h1 {
  max-width: 640px;
  font-size: clamp(3rem, 7vw, 6.4rem);
}

.hero p:not(.eyebrow) {
  max-width: 590px;
  margin: 30px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.hero-panel {
  display: grid;
  gap: 8px;
  padding: 0 0 0 24px;
  border-left: 1px solid var(--line-strong);
  color: var(--ink-soft);
}

.panel-label,
.meta,
.latest-record {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-panel .panel-label {
  color: var(--muted);
}

.hero-panel strong {
  color: var(--ink);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif", Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(76px, 10vw, 120px) 24px;
}

.home-lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: stretch;
  gap: 18px;
  padding-top: 34px;
  padding-bottom: 34px;
}

.winner-banner,
.next-basho {
  border: 1px solid var(--line);
  background: var(--surface);
}

.winner-banner {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
}

.winner-image {
  overflow: hidden;
  min-height: 220px;
  border: 1px solid var(--line);
  background: var(--surface-subtle);
}

.winner-image img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top center;
  filter: saturate(0.9);
}

.winner-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.1;
}

.winner-copy p:not(.eyebrow),
.next-basho p {
  margin: 12px 0 0;
  color: var(--ink-soft);
}

.home-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 22px;
}

.next-basho {
  padding: 18px;
}

.next-basho h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.1;
}

.score-band,
.banzuke-band {
  max-width: none;
}

.score-band > *,
.banzuke-band > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.score-band {
  background: var(--paper);
}

.banzuke-band {
  background: var(--paper-soft);
  border-block: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.08;
}

.inline-help {
  max-width: 880px;
  margin: -14px 0 18px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.leader-grid,
.card-grid,
.feature-grid {
  display: grid;
  gap: 18px;
}

.leader-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.leader-card,
.rikishi-card,
.feature-link,
.profile-detail-grid article {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: none;
}

.leader-card {
  display: grid;
  gap: 10px;
  min-height: 172px;
  padding: 22px;
}

.leader-card strong,
.feature-link strong {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif", Georgia, serif;
  font-weight: 600;
}

.leader-record {
  color: var(--clay);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif", Georgia, serif;
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 650;
}

.button-link:hover {
  border-color: var(--clay);
  color: var(--clay);
}

.banzuke-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 253, 248, 0.62);
}

.banzuke-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.banzuke-table th,
.banzuke-table td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.banzuke-table th {
  background: var(--surface-subtle);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.banzuke-table tbody tr:hover {
  background: rgba(255, 253, 248, 0.78);
}

.stacked-table {
  margin-top: 18px;
}

.pager {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.standings-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(7, 74px);
  grid-auto-flow: column;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--surface);
}

.standing-cell {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  height: 74px;
  padding: 9px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.standing-number {
  color: var(--muted);
  font-size: 0.64rem;
  line-height: 1.2;
}

.standing-main {
  min-width: 0;
  overflow: hidden;
}

.standing-name {
  display: block;
  min-width: 0;
  font-weight: 700;
  line-height: 1.15;
}

.standing-name .source-link {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.standing-rank {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.standing-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.standing-record {
  margin-left: auto;
  color: var(--clay);
  font-size: 0.82rem;
  line-height: 1.2;
  white-space: nowrap;
}

.award-markers {
  display: inline-flex;
  gap: 3px;
  white-space: nowrap;
}

.award-marker {
  position: relative;
  color: var(--clay);
  font-size: 0.82rem;
  line-height: 1;
}

.award-marker::after {
  content: attr(data-award);
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: calc(100% + 7px);
  width: max-content;
  max-width: 160px;
  padding: 5px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(36, 33, 28, 0.12);
  font-family: "Hiragino Sans", "Yu Gothic", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
}

.award-marker:hover::after,
.award-marker:focus::after {
  opacity: 1;
}

.bout-matrix-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--surface);
}

.bout-matrix {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-width: 100%;
}

.bout-label-column,
.bout-column {
  display: grid;
  grid-template-rows: 24px 138px 18px 94px 18px 138px;
}

.bout-label-column {
  position: sticky;
  left: 0;
  z-index: 2;
  flex: 0 0 92px;
  border-right: 1px solid var(--line-strong);
  background: var(--surface);
}

.bout-label-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
}

.bout-label-cell:nth-child(4) {
  border-block: 1px solid var(--line);
}

.bout-column {
  flex: 1 1 0;
  min-width: 0;
  border-right: 1px solid var(--line);
}

.bout-column:last-child {
  border-right: 0;
}

.bout-number {
  display: grid;
  place-items: center;
  background: var(--surface-subtle);
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1;
}

.rotated-name,
.rotated-kimarite {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 8px 0;
  text-align: center;
}

.rotated-name .source-link,
.rotated-kimarite .source-link {
  display: block;
  overflow: visible;
  color: var(--ink);
  font-size: 0.58rem;
  line-height: 1;
  text-decoration: none;
  text-orientation: upright;
  text-transform: uppercase;
  white-space: nowrap;
  writing-mode: vertical-rl;
}

.rotated-kimarite {
  padding: 0;
  border-block: 1px solid var(--line);
}

.result-row {
  display: grid;
  place-items: center;
  min-width: 0;
  border-block: 1px solid var(--line);
  background: transparent;
}

.result-row.is-win {
  background: var(--ink);
}

.rotated-kimarite .source-link {
  color: var(--muted);
  font-size: 0.52rem;
}

.tools-heading {
  align-items: center;
}

.profile-tools {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
}

.search-box {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.search-box input {
  width: min(360px, 72vw);
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.segmented {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--surface);
}

.segmented button {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 1px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 650;
}

.segmented button.is-active {
  background: var(--ink);
  color: var(--surface);
}

.rikishi-card {
  overflow: hidden;
}

.card-media {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  min-height: 164px;
  background: var(--surface-subtle);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.card-media img {
  width: 118px;
  height: 164px;
  object-fit: cover;
  object-position: top center;
  background: var(--stone);
  filter: saturate(0.86);
}

.card-title {
  display: grid;
  align-content: end;
  gap: 8px;
  min-width: 0;
  padding: 18px;
}

.card-title h3 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 1.55rem;
  line-height: 1.12;
}

.rank-pill {
  width: fit-content;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--moss);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-body {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.meaning {
  margin: 0;
  color: var(--moss);
  font-weight: 650;
}

.style {
  margin: 0;
  color: var(--ink-soft);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.stat {
  display: grid;
  gap: 3px;
  padding: 12px;
  border-radius: 0;
  background: var(--paper-soft);
}

.stat span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stat strong {
  overflow-wrap: anywhere;
  font-weight: 650;
}

.stat small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.35;
}

.stable-name {
  display: inline-block;
}

.record-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.record-list li {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.source-link {
  color: var(--ink);
  font-weight: 650;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

.glossary-term {
  position: relative;
  display: inline;
  border-bottom: 1px dotted var(--line-strong);
  color: var(--ink);
  font-weight: 650;
}

.glossary-term::after {
  content: attr(data-definition);
  position: absolute;
  z-index: 30;
  left: 0;
  bottom: calc(100% + 7px);
  width: max-content;
  max-width: min(260px, 80vw);
  padding: 7px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(36, 33, 28, 0.12);
  font-family: "Hiragino Sans", "Yu Gothic", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
}

.glossary-term:hover::after,
.glossary-term:focus::after {
  opacity: 1;
}

.rikishi-mini {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  vertical-align: middle;
}

.rikishi-thumb {
  display: inline-grid;
  place-items: center;
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--surface-subtle);
  color: var(--muted);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif", Georgia, serif;
  font-size: 1.35rem;
  line-height: 1;
  text-decoration: none;
}

.rikishi-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: saturate(0.9);
}

.rikishi-thumb-placeholder {
  text-transform: uppercase;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 24px 44px;
  border-top: 1px solid var(--line);
  background: var(--paper-soft);
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer p {
  margin: 0;
}

.page-intro {
  padding-bottom: 52px;
}

.page-intro h1 {
  max-width: 820px;
  font-size: clamp(2.8rem, 6vw, 5.8rem);
}

.page-intro p:not(.eyebrow) {
  max-width: 640px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 1.06rem;
  overflow-wrap: anywhere;
}

.compact-section {
  padding-top: 34px;
}

.feature-link {
  display: grid;
  align-content: space-between;
  gap: 22px;
  min-height: 168px;
  padding: 22px;
  text-decoration: none;
}

.feature-link strong {
  font-size: 1.2rem;
}

.feature-link span {
  color: var(--muted);
}

.profile-list-card[hidden] {
  display: none;
}

.profile-hero {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: clamp(42px, 7vw, 88px);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 10vw, 112px) 24px clamp(42px, 7vw, 76px);
}

.profile-photo-wrap {
  overflow: hidden;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--surface-subtle);
  box-shadow: none;
}

.profile-photo-wrap img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(0.9);
}

.profile-photo-placeholder {
  display: grid;
  place-items: center;
  min-height: 420px;
  background: var(--surface-subtle);
  color: var(--line-strong);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif", Georgia, serif;
  font-size: clamp(5rem, 14vw, 9rem);
  line-height: 1;
}

.two-column-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.two-column-section .section-heading h2 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.profile-summary h1 {
  font-size: clamp(3rem, 8vw, 6.6rem);
}

.profile-subtitle {
  margin: 12px 0 22px;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 650;
}

.profile-summary > p:not(.eyebrow):not(.profile-subtitle):not(.meaning) {
  max-width: 760px;
  color: var(--ink-soft);
}

.stable-card {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  max-width: 560px;
  margin: 26px 0 0;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.5);
}

.stable-card img {
  width: 142px;
  height: 116px;
  object-fit: cover;
  filter: saturate(0.86);
}

.stable-card div {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 14px 16px 14px 0;
}

.stable-card .eyebrow {
  margin: 0;
}

.stable-card strong {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
}

.profile-stat-grid {
  margin-top: 28px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.profile-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
}

.profile-detail-grid article {
  padding: 24px;
}

.profile-detail-grid h2 {
  margin: 0 0 18px;
  font-size: 1.6rem;
}

.detail-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
}

.day-section {
  margin-top: 42px;
}

.rank-chart-section {
  padding-top: 36px;
}

.rank-chart-card {
  display: grid;
  gap: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.55);
  padding: 26px 28px 24px;
  overflow: hidden;
}

.rank-chart {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.chart-axis {
  stroke: var(--ink);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.chart-grid {
  stroke: var(--line);
  stroke-width: 1;
  opacity: 0.82;
  vector-effect: non-scaling-stroke;
}

.chart-grid-vertical {
  opacity: 0.42;
}

.chart-y-label,
.chart-x-label {
  fill: var(--muted);
  font-family: "Hiragino Sans", "Yu Gothic", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
}

.chart-y-label {
  text-anchor: end;
  dominant-baseline: middle;
}

.chart-x-label {
  text-anchor: middle;
  dominant-baseline: middle;
}

.rank-line {
  fill: none !important;
  stroke: var(--clay);
  stroke-width: 2.4;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.rank-dot {
  fill: var(--paper);
  stroke: var(--clay);
  stroke-width: 2.2;
  vector-effect: non-scaling-stroke;
}

.rank-hit-area {
  fill: transparent;
  stroke: transparent;
  pointer-events: all;
}

.rank-milestones {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
}

.rank-milestones li {
  display: grid;
  gap: 2px;
  padding: 12px;
  background: var(--paper-soft);
}

.rank-milestones strong {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif", Georgia, serif;
  font-weight: 600;
}

.rank-milestones span {
  color: var(--muted);
  font-size: 0.86rem;
}

.day-section h3 {
  margin: 0 0 14px;
  font-size: 1.45rem;
}

.bout-table th,
.bout-table td {
  white-space: normal;
}

.winner-cell,
.win-text {
  color: var(--clay);
  font-weight: 700;
}

.loss-text {
  color: var(--muted);
}

code {
  padding: 2px 5px;
  border-radius: 2px;
  background: var(--surface-subtle);
}

@media (max-width: 980px) {
  .hero,
  .profile-hero {
    grid-template-columns: 1fr;
  }

  .leader-grid,
  .card-grid,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-column-section {
    grid-template-columns: 1fr;
  }

  .standings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(21, 74px);
  }


  .profile-detail-grid {
    grid-template-columns: 1fr;
  }

  .profile-photo-wrap {
    max-width: 320px;
  }

  .profile-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rank-milestones {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  body {
    background-size: 72px 72px;
  }

  main,
  .site-header,
  .page-header {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .topbar,
  .section-heading,
  .tools-heading,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar {
    gap: 18px;
    padding: 22px 18px;
  }

  .brand::before {
    width: 22px;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    gap: 22px;
  }

  .hero {
    padding: 70px 18px 64px;
  }

  .hero h1 {
    max-width: 350px;
    font-size: 3.25rem;
  }

  .hero p:not(.eyebrow) {
    max-width: 350px;
    font-size: 1rem;
  }

  .hero-panel {
    width: 100%;
    max-width: 350px;
    padding: 18px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line-strong);
  }

  .section {
    width: 100%;
    max-width: 100vw;
    padding: 62px 18px;
    overflow-x: hidden;
  }

  .home-lead,
  .winner-banner {
    grid-template-columns: 1fr;
  }

  .winner-image,
  .winner-image img {
    min-height: 240px;
    height: 240px;
  }

  .page-intro h1,
  .section-heading h2 {
    width: min(100%, 21rem);
    max-width: calc(100vw - 36px);
    overflow-wrap: anywhere;
    font-size: 2.35rem;
    line-height: 1.12;
  }

  .page-intro p:not(.eyebrow) {
    width: min(100%, 21rem);
    max-width: calc(100vw - 36px);
  }

  .leader-grid,
  .card-grid,
  .feature-grid {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: calc(100vw - 36px);
  }

  .rikishi-card,
  .profile-list-card {
    width: 100%;
    max-width: calc(100vw - 36px);
  }

  .card-media {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .card-media img {
    width: 112px;
    height: 160px;
  }

  .profile-hero {
    padding: 48px 18px 28px;
  }

  .profile-stat-grid,
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stable-card {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .stable-card img {
    width: 104px;
    height: 112px;
  }

  .rank-chart-card {
    padding: 12px;
    overflow-x: auto;
  }

  .rank-chart {
    min-width: 1120px;
  }

  .profile-tools,
  .search-box,
  .search-box input {
    min-width: 0;
    max-width: calc(100vw - 36px);
    width: 100%;
  }

  .segmented {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    max-width: calc(100vw - 36px);
    overflow: hidden;
  }

  .segmented button {
    min-width: 0;
    padding: 0 2px;
    overflow-wrap: anywhere;
    font-size: 0.72rem;
  }
}

@media (max-width: 420px) {
  .profile-stat-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }
}

.rikishi-gallery-section {
  max-width: min(1480px, calc(100vw - 48px));
}

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

.rikishi-tile {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
  min-width: 0;
}

.rikishi-tile[hidden] {
  display: none;
}

.rikishi-tile h3 {
  min-height: 2.6em;
  margin: 0;
  font-size: clamp(0.82rem, 0.9vw, 1rem);
  line-height: 1.3;
  text-align: center;
  overflow-wrap: anywhere;
}

.rikishi-tile-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 270 / 474;
  border: 1px solid var(--line);
  background: var(--surface-subtle);
}

.rikishi-tile-photo img,
.rikishi-tile-placeholder {
  display: block;
  width: 100%;
  height: 100%;
}

.rikishi-tile-photo img {
  object-fit: cover;
  object-position: top center;
  filter: saturate(0.94);
}

.rikishi-tile-placeholder {
  display: grid;
  place-items: center;
  color: var(--moss);
  background:
    linear-gradient(135deg, rgba(83, 96, 68, 0.12), rgba(155, 74, 56, 0.1)),
    var(--surface-subtle);
}

.rikishi-tile-placeholder span {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif", Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.rikishi-profile-overlay {
  position: absolute;
  inset: auto 10px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid rgba(255, 253, 248, 0.78);
  background: rgba(36, 33, 28, 0.76);
  color: #fffdf8;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rikishi-profile-overlay:hover {
  background: var(--clay);
  color: #fffdf8;
}

.rikishi-tile-meta {
  display: grid;
  gap: 5px;
  min-height: 44px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
  text-align: center;
}

.tile-badge {
  justify-self: center;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--clay);
  background: var(--surface);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

@media (max-width: 1180px) {
  .rikishi-photo-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .rikishi-gallery-section {
    max-width: var(--max);
  }

  .rikishi-photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 520px) {
  .rikishi-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.welcome-section {
  padding-top: clamp(36px, 6vw, 64px);
  padding-bottom: clamp(36px, 6vw, 64px);
}

.welcome-copy {
  max-width: 820px;
  border-left: 1px solid var(--line-strong);
  padding-left: clamp(18px, 3vw, 32px);
}

.welcome-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.08;
}

.welcome-copy p:not(.eyebrow) {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

@media (max-width: 720px) {
  .welcome-copy {
    border-left: 0;
    padding-left: 0;
  }
}

.latest-tournament-section {
  padding-top: clamp(24px, 4vw, 42px);
  padding-bottom: clamp(34px, 5vw, 58px);
}

.latest-tournament-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.7fr) auto;
  gap: clamp(18px, 4vw, 44px);
  align-items: end;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  padding: clamp(22px, 4vw, 42px);
}

.latest-tournament-card h2 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 5.2rem);
  line-height: 1.02;
}

.latest-tournament-card h2 a {
  text-decoration: none;
}

.latest-tournament-card h2 a:hover {
  color: var(--clay);
}

.latest-tournament-card p {
  margin: 14px 0 0;
  color: var(--ink-soft);
}

.latest-tournament-winner {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.latest-tournament-winner strong {
  font-size: 1.2rem;
}

@media (max-width: 900px) {
  .latest-tournament-card {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

.sortable-table th button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  font: inherit;
  font-weight: 800;
  text-transform: inherit;
  cursor: pointer;
}

.sortable-table th button::after {
  content: "↕";
  color: var(--muted);
  font-size: 0.75em;
}

.sortable-table th button[data-sort-direction="asc"]::after {
  content: "↑";
  color: var(--clay);
}

.sortable-table th button[data-sort-direction="desc"]::after {
  content: "↓";
  color: var(--clay);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 8px;
  color: var(--moss);
  background: var(--surface);
  font-size: 0.78rem;
  font-weight: 800;
}

/* Temporary plain-content mode while the site structure and data model are being worked out. */
main,
.site-footer {
  max-width: none;
  margin: 0;
  padding: 0 12px;
  background: #fff;
  color: #000;
  font-family: Times, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.35;
}

main *:not(.topbar):not(.nav-links):not(.brand),
.site-footer * {
  box-shadow: none !important;
  text-shadow: none !important;
  letter-spacing: 0 !important;
}

main .section,
main .compact-section,
main .page-intro,
main .home-lead,
main .score-band,
main .banzuke-band,
main .rank-chart-section,
main .welcome-section,
main .latest-tournament-section,
main .rikishi-gallery-section,
.site-footer {
  max-width: none;
  margin: 0;
  padding: 12px 0;
}

main h1,
main h2,
main h3,
main p,
main ul,
main ol,
main dl,
main figure {
  margin-top: 0;
}

main h1,
main h2,
main h3,
main .winner-copy h1,
main .hero h1,
main .page-intro h1,
main .profile-summary h1,
main .section-heading h2,
main .latest-tournament-card h2,
main .welcome-copy h2 {
  color: #000;
  font-family: Times, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.2;
}

main h1,
main .winner-copy h1,
main .hero h1,
main .page-intro h1,
main .profile-summary h1 {
  font-size: 28px;
}

main h2,
main .section-heading h2,
main .latest-tournament-card h2,
main .welcome-copy h2 {
  font-size: 22px;
}

main h3 {
  font-size: 18px;
}

main p,
main .meta,
main .inline-help,
main .panel-label,
main .latest-record,
main .profile-subtitle,
main .meaning,
main .style,
main .section-subtitle,
main .winner-copy p:not(.eyebrow),
main .next-basho p,
main .welcome-copy p:not(.eyebrow),
.site-footer p {
  color: #000;
  font-size: 16px;
}

main .eyebrow,
main .category-group h3,
main .asset-detail-grid h4,
main .asset-transactions h4 {
  color: #000;
  font-size: 13px;
  font-weight: 700;
  text-transform: none;
}

main a,
.site-footer a,
main .source-link,
main .button-link,
main .feature-link,
main .latest-tournament-card h2 a,
main .rikishi-profile-overlay {
  color: #00e;
  text-decoration: underline;
  background: transparent;
  border: 0;
  padding: 0;
  min-height: 0;
  font: inherit;
  text-transform: none;
}

main a:visited,
.site-footer a:visited {
  color: #551a8b;
}

main a:hover,
.site-footer a:hover,
main .source-link:hover,
main .feature-link:hover strong {
  color: #00e;
}

main img {
  filter: none !important;
}

main .home-lead,
main .winner-banner,
main .profile-hero,
main .two-column-section,
main .asset-detail-grid,
main .latest-tournament-card,
main .feature-grid,
main .leader-grid,
main .card-grid,
main .stat-grid,
main .profile-stat-grid,
main .tools-heading,
main .section-heading,
main .profile-tools,
main .welcome-copy,
main .asset-summary-grid,
main .asset-cost-metrics,
main .asset-cost-header {
  display: block;
}

main .winner-banner,
main .next-basho,
main .feature-link,
main .leader-card,
main .rikishi-card,
main .stat,
main .profile-detail-grid article,
main .latest-tournament-card,
main .asset-cost-card,
main .rank-chart-card,
main .stable-card,
main .item,
main .modal,
main .tool-panel,
main .metric,
main .account-card,
main .table-wrap,
main .welcome-copy {
  border: 1px solid #999;
  background: #fff;
  border-radius: 0;
  padding: 8px;
  margin: 0 0 10px;
}

main .winner-image,
main .profile-photo-wrap,
main .card-media,
main .rikishi-tile-photo {
  border: 0;
  background: transparent;
}

main .winner-image,
main .winner-image img,
main .profile-photo-wrap img,
main .card-media img {
  width: auto;
  max-width: 180px;
  height: auto;
  min-height: 0;
  object-fit: contain;
}

main .home-actions,
main .button-row,
main .heading-actions,
main .pagination,
main .asset-cost-meta,
main .category-chips,
main .review-reasons,
main .source-line {
  display: block;
}

main .button-link,
main button,
main input,
main select,
main textarea,
main .segmented button,
main .sortable-table th button {
  border-radius: 0;
  font-family: Times, "Times New Roman", serif;
  font-size: 16px;
}

main button,
main .segmented button,
main .category-chip,
main .account-toggle,
main .delete-rule {
  border: 1px solid #999;
  background: #eee;
  color: #000;
  min-height: 0;
  padding: 2px 6px;
}

main .segmented,
main .filter-panel,
main .category-popover,
main .modal-backdrop,
main .profile-tools,
main .search-box,
main .welcome-copy {
  border: 0;
  background: transparent;
  padding: 0;
}

main .segmented button.is-active {
  background: #ddd;
  color: #000;
}

main input,
main select,
main textarea {
  border: 1px solid #999;
  background: #fff;
  color: #000;
  padding: 2px 4px;
}

main table,
main .banzuke-table,
main .mini-table,
main .asset-mini-table,
main .asset-transaction-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  font-size: 16px;
}

main th,
main td,
main .banzuke-table th,
main .banzuke-table td,
main .mini-table th,
main .mini-table td {
  border: 1px solid #999;
  padding: 4px 6px;
  color: #000;
  background: #fff;
  text-align: left;
  vertical-align: top;
}

main th,
main .banzuke-table th,
main .mini-table th {
  font-weight: 700;
  text-transform: none;
}

main .banzuke-table-wrap,
main .mini-table-wrap,
main .table-wrap {
  overflow: auto;
  border: 0;
}

main .rikishi-photo-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

main .rikishi-tile {
  display: block;
  border: 1px solid #999;
  padding: 4px;
}

main .rikishi-tile h3 {
  min-height: 0;
  font-size: 16px;
  text-align: left;
}

main .rikishi-tile-photo img,
main .rikishi-tile-placeholder {
  width: 100%;
  height: auto;
}

main .rikishi-profile-overlay {
  position: static;
  display: inline;
}

main .rikishi-tile-meta,
main .tile-badge,
main .rank-pill,
main .pill,
main .status-chip,
main .award-marker,
main .rule-indicator,
main .source-line span {
  display: inline;
  border: 0;
  background: transparent;
  color: #000;
  padding: 0;
  font-size: 14px;
  font-weight: 400;
  text-transform: none;
}

main .profile-photo-placeholder,
main .rikishi-thumb-placeholder,
main .rikishi-tile-placeholder {
  background: #eee;
  color: #000;
}

@media (max-width: 820px) {
  main .rikishi-photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  main .rikishi-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* HATO SUMO home page refresh. */
body.home-page {
  --home-bg: #000;
  --home-text: #fff;
  --home-muted: #b8b8b8;
  --home-line: rgba(255, 255, 255, 0.28);
  margin: 0;
  background: var(--home-bg);
  color: var(--home-text);
  font-family: "Alata", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

body.home-page a,
body.home-page a:visited {
  color: var(--home-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

body.home-page a:hover {
  color: var(--home-muted);
}

body.home-page .home-header,
body.home-page .home-main,
body.home-page .site-footer {
  max-width: none;
  margin: 0;
  padding: 0;
  background: var(--home-bg);
  color: var(--home-text);
  font-family: "Alata", Arial, sans-serif;
}

body.home-page .home-brandmark {
  display: block;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #000 url("assets/brand/hato_sumo_brandmark.svg") center center / 100% 100% no-repeat;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100% 100%;
}

body.home-page .home-brandmark img {
  display: none;
}

body.home-page .home-welcome {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 24px 18px;
  color: var(--home-text);
  font-size: clamp(1.35rem, 3.2vw, 3.4rem);
  line-height: 1.08;
  text-align: center;
  text-transform: uppercase;
}

body.home-page .home-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(18px, 5vw, 72px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 26px;
  border-bottom: 1px solid var(--home-line);
  font-size: clamp(1rem, 1.5vw, 1.35rem);
}

body.home-page .home-main {
  display: block;
}

body.home-page .home-status,
body.home-page .home-info-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px;
}

body.home-page .home-status-panel {
  display: grid;
  gap: 24px;
  border: 1px solid var(--home-line);
  background: #000;
  color: var(--home-text);
  padding: clamp(20px, 4vw, 42px);
}

body.home-page .home-status-panel--split {
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.75fr);
  align-items: stretch;
}

body.home-page .home-winner,
body.home-page .home-next {
  min-width: 0;
}

body.home-page .home-next {
  border-left: 1px solid var(--home-line);
  padding-left: clamp(20px, 3vw, 34px);
}

body.home-page .eyebrow,
body.home-page .home-status .eyebrow {
  margin: 0 0 12px;
  color: var(--home-muted);
  font-family: "Alata", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.home-page h1,
body.home-page h2,
body.home-page h3,
body.home-page .home-status h1,
body.home-page .home-status h2 {
  margin: 0;
  color: var(--home-text);
  font-family: "Alata", Arial, sans-serif;
  font-weight: 400;
  line-height: 1.05;
}

body.home-page .home-status h1 {
  font-size: clamp(2rem, 5.4vw, 5.8rem);
}

body.home-page .rikishi-thumb {
  display: none;
}

body.home-page .home-status h2 {
  font-size: clamp(1.65rem, 3.2vw, 3.2rem);
}

body.home-page .home-status p {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--home-text);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
}

body.home-page .home-action-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--home-text);
  font: inherit;
  text-decoration: underline;
  background: transparent;
  border: 0;
  padding: 0;
}

body.home-page .home-top-three {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.home-page .home-top-three li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border-top: 1px solid var(--home-line);
  padding-top: 10px;
}

body.home-page .home-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 64px;
}

body.home-page .home-info-card {
  display: grid;
  gap: 12px;
  min-height: 190px;
  border: 1px solid var(--home-line);
  background: #000;
  color: var(--home-text);
  padding: 20px;
  text-decoration: underline;
}

body.home-page .home-info-card strong,
body.home-page .home-info-card span {
  min-width: 0;
  color: var(--home-text);
  font-family: "Alata", Arial, sans-serif;
  font-weight: 400;
  overflow-wrap: anywhere;
}

body.home-page .home-info-card strong {
  font-size: clamp(1.4rem, 2.5vw, 2.4rem);
  line-height: 1.05;
}

body.home-page .home-info-card span {
  align-self: end;
  color: var(--home-muted);
  font-size: 1rem;
  text-decoration: none;
}

body.home-page .site-footer {
  border-top: 1px solid var(--home-line);
  padding: 24px;
}

body.home-page .end-emblem,
body.site-theme .end-emblem {
  background: #000;
  color: #fff;
}

body.home-page .end-emblem {
  padding-top: 28px;
}

body.home-page .site-footer p {
  margin: 0 0 14px;
  color: var(--home-muted);
  font-family: "Alata", Arial, sans-serif;
  font-size: 0.95rem;
}

body.home-page .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  max-width: 1180px;
}

body.home-page .site-footer a {
  color: var(--home-text);
  font-family: "Alata", Arial, sans-serif;
  text-decoration: underline;
}

@media (max-width: 820px) {
  body.home-page .home-brandmark,
  body.home-page .home-brandmark img {
    height: auto;
  }

  body.home-page .home-brandmark {
    background-image: none;
    padding: 24px 16px 8px;
  }

  body.home-page .home-brandmark::before {
    content: "HATO SUMO";
    display: block;
    color: var(--home-text);
    font-family: "Alata", Arial, sans-serif;
    font-size: clamp(3rem, 16vw, 5rem);
    line-height: 0.95;
    white-space: nowrap;
  }

  body.home-page .home-status-panel--split,
  body.home-page .home-info-grid {
    grid-template-columns: 1fr;
  }

  body.home-page .home-next {
    border-left: 0;
    border-top: 1px solid var(--home-line);
    padding: 20px 0 0;
  }
}

@media (max-width: 520px) {
  body.home-page .home-welcome {
    text-align: left;
  }

  body.home-page .home-nav {
    justify-content: flex-start;
    gap: 18px;
  }

  body.home-page .home-status,
  body.home-page .home-info-grid,
  body.home-page .site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  body.home-page .home-top-three li {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  body.home-page .home-top-three strong {
    grid-column: 2;
  }
}

/* Public HATO SUMO theme for the main browsing pages. */
body.home-page a,
body.home-page a:visited,
body.site-theme a,
body.site-theme a:visited {
  color: #fff;
  text-decoration: none;
}

body.home-page .home-action-link,
body.home-page .home-info-card strong,
body.site-theme main .source-link,
body.site-theme .sortable-table th button {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

body.home-page a:hover,
body.site-theme a:hover {
  color: #b8b8b8;
}

body.home-page .glossary-term,
body.site-theme .glossary-term {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.55);
}

body.home-page .glossary-term::after,
body.site-theme .glossary-term::after {
  border-color: rgba(255, 255, 255, 0.35);
  background: #111;
  color: #fff;
  box-shadow: none;
}

body.site-theme {
  --theme-bg: #000;
  --theme-text: #fff;
  --theme-muted: #b8b8b8;
  --theme-line: rgba(255, 255, 255, 0.28);
  margin: 0;
  background: #000;
  color: #fff;
  font-family: "Alata", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

body.site-theme .page-header,
body.site-theme .site-footer,
body.site-theme main {
  max-width: none;
  margin: 0;
  padding: 0;
  border-color: var(--theme-line);
  background: #000;
  color: #fff;
  font-family: "Alata", Arial, sans-serif;
}

body.site-theme .topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 24px;
}

body.site-theme .brand {
  display: block;
  width: 576px;
  max-width: min(48vw, 576px);
  height: 80px;
  background: url("assets/brand/hato_sumo_brandmark.svg") left center / contain no-repeat;
  overflow: hidden;
  text-decoration: none;
}

body.site-theme .brand::before {
  display: none;
}

body.site-theme .brand span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

body.site-theme .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px 32px;
  color: #fff;
  font-family: "Alata", Arial, sans-serif;
  font-size: 1rem;
}

body.site-theme main .section,
body.site-theme main .compact-section,
body.site-theme main .page-intro {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px;
}

body.site-theme main .page-intro {
  padding-top: 44px;
}

body.site-theme main .tournament-intro {
  display: grid;
  gap: 20px;
}

body.site-theme main h1,
body.site-theme main h2,
body.site-theme main h3,
body.site-theme main p,
body.site-theme main li,
body.site-theme main td,
body.site-theme main th,
body.site-theme main label,
body.site-theme main span,
body.site-theme .site-footer p {
  color: #fff;
  font-family: "Alata", Arial, sans-serif;
}

body.site-theme main h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1.05;
}

body.site-theme main h2 {
  font-weight: 400;
}

body.site-theme main .page-intro p {
  max-width: 760px;
  margin: 14px 0 0;
  color: #b8b8b8;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
}

body.site-theme main a,
body.site-theme main a:visited,
body.site-theme .site-footer a,
body.site-theme .site-footer a:visited {
  color: #fff;
}

body.site-theme .back-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 18px;
  color: #fff;
  font-size: 0.95rem;
  text-decoration: none;
}

body.site-theme .back-link::before {
  content: "<";
  margin-right: 8px;
  color: #b8b8b8;
}

body.site-theme .back-link:hover,
body.site-theme .back-link:focus {
  text-decoration: underline;
}

body.site-theme main .eyebrow {
  color: #b8b8b8;
  font-family: "Alata", Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0;
}

body.site-theme .profile-tools {
  display: grid;
  gap: 18px;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
}

body.site-theme .search-box {
  display: grid;
  gap: 8px;
  max-width: 520px;
  border: 0;
  background: transparent;
  padding: 0;
}

body.site-theme .search-box input {
  width: 100%;
  border: 1px solid var(--theme-line);
  background: #000;
  color: #fff;
  padding: 12px 14px;
  font: inherit;
}

body.site-theme .profile-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.site-theme .profile-filter-group button {
  border: 1px solid var(--theme-line);
  background: #000;
  color: #fff;
  padding: 8px 12px;
  font: inherit;
  cursor: pointer;
}

body.site-theme .profile-filter-group button.is-active {
  background: #fff;
  color: #000;
}

body.site-theme .banzuke-table-wrap,
body.site-theme .directory-table-wrap {
  overflow: auto;
  border: 1px solid var(--theme-line);
  background: #000;
}

body.site-theme .directory-table,
body.site-theme .banzuke-table {
  width: 100%;
  border-collapse: collapse;
  background: #000;
  color: #fff;
  font-family: "Alata", Arial, sans-serif;
  font-size: 1rem;
}

body.site-theme .directory-table {
  min-width: 640px;
}

body.site-theme .tournament-table {
  min-width: 900px;
}

body.site-theme .directory-table th,
body.site-theme .directory-table td,
body.site-theme .banzuke-table th,
body.site-theme .banzuke-table td {
  border: 1px solid var(--theme-line);
  background: #000;
  color: #fff;
  padding: 12px;
  text-align: left;
  vertical-align: middle;
}

body.site-theme .sortable-table th button {
  color: #fff;
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

body.site-theme .rikishi-directory-identity,
body.site-theme .tournament-winner-tag {
  display: inline-flex;
  align-items: stretch;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}

body.site-theme .directory-rikishi-photo {
  display: block;
  width: 72px;
  height: 100px;
  border: 1px solid var(--theme-line);
  background: #111;
  object-fit: cover;
  object-position: top center;
}

body.site-theme .directory-rikishi-photo--placeholder {
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 2rem;
}

body.site-theme .rikishi-name-tag--vert {
  display: block;
  width: auto;
  height: 200px;
}

body.site-theme .tournament-winner-tag {
  align-items: center;
}

body.site-theme .tournament-winner-tag .directory-rikishi-photo {
  width: 64px;
  height: 86px;
}

body.site-theme .tournament-winner-tag .rikishi-name-tag--horz {
  display: block;
  width: auto;
  height: 86px;
}

body.site-theme .winner-record {
  display: inline-block;
  margin-left: 10px;
  color: #b8b8b8;
}

body.site-theme .rikishi-tag-placeholder {
  display: grid;
  place-items: center;
  min-width: 80px;
  min-height: 86px;
  border: 1px solid var(--theme-line);
  color: #fff;
}

body.site-theme .rikishi-directory-identity .rikishi-tag-placeholder {
  min-width: 72px;
  min-height: 100px;
  writing-mode: vertical-rl;
}

body.site-theme main .stat-grid,
body.site-theme main .profile-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--theme-line);
  background: #000;
}

body.site-theme main .stat {
  display: grid;
  align-content: start;
  min-height: 74px;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-right: 1px solid var(--theme-line);
  background: #000;
}

body.site-theme main .stat:last-child {
  border-right: 0;
}

body.site-theme main .stat span {
  color: #b8b8b8;
  font-family: "Alata", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

body.site-theme main .stat strong {
  color: #fff;
  font-family: "Alata", Arial, sans-serif;
  font-size: 0.96rem;
  font-weight: 400;
  line-height: 1.25;
}

body.site-theme .pager {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--theme-line);
}

body.site-theme .pager a,
body.site-theme .pager span {
  flex: 1 1 0;
}

body.site-theme .pager a:nth-child(2) {
  text-align: center;
}

body.site-theme .pager a:last-child {
  text-align: right;
}

body.site-theme .section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

body.site-theme .inline-help {
  max-width: 900px;
  margin: -4px 0 18px;
  color: #b8b8b8;
}

body.site-theme .standings-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(132px, 1fr));
  grid-template-rows: repeat(7, 96px);
  grid-auto-flow: column;
  overflow: hidden;
  border-top: 1px solid var(--theme-line);
  border-left: 1px solid var(--theme-line);
  background: #000;
}

body.site-theme .standing-cell {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 96px;
  min-width: 0;
  padding: 8px;
  border-right: 1px solid var(--theme-line);
  border-bottom: 1px solid var(--theme-line);
  background: #000;
}

body.site-theme .standing-name,
body.site-theme .standing-tag-link {
  display: block;
  min-width: 0;
}

body.site-theme .standing-tag-link .rikishi-name-tag--horz {
  display: block;
  width: auto;
  max-width: 100%;
  height: 38px;
}

body.site-theme .standing-name .rikishi-tag-placeholder {
  min-width: 96px;
  min-height: 38px;
  padding: 0 8px;
  font-size: 0.78rem;
}

body.site-theme .standing-rank,
body.site-theme .standing-number {
  color: #b8b8b8;
}

body.site-theme .standing-record,
body.site-theme .award-marker {
  color: #fff;
}

body.site-theme .bout-matrix-wrap {
  border: 1px solid var(--theme-line);
  background: #000;
}

body.site-theme .bout-matrix {
  display: flex;
  min-width: 1008px;
  background: #000;
}

body.site-theme .bout-label-column,
body.site-theme .bout-column {
  grid-template-rows: 22px 150px 14px 116px 14px 150px;
}

body.site-theme .bout-label-column {
  flex: 0 0 84px;
  border-right: 1px solid var(--theme-line);
  background: #000;
}

body.site-theme .bout-label-cell {
  color: #b8b8b8;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0;
}

body.site-theme .bout-label-cell:nth-child(4),
body.site-theme .rotated-kimarite,
body.site-theme .result-row {
  border-color: var(--theme-line);
}

body.site-theme .bout-column {
  min-width: 44px;
  border-right: 1px solid var(--theme-line);
}

body.site-theme .bout-number {
  background: #111;
  color: #b8b8b8;
}

body.site-theme .rotated-name,
body.site-theme .rotated-kimarite {
  padding: 3px 0;
}

body.site-theme .bout-rikishi-tag,
body.site-theme .bout-kimarite-tag {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

body.site-theme .bout-rikishi-tag .rikishi-name-tag--vert {
  display: block;
  width: auto;
  height: 142px;
  max-width: 34px;
}

body.site-theme .bout-rikishi-tag .rikishi-tag-placeholder {
  min-width: 30px;
  min-height: 140px;
  writing-mode: vertical-rl;
  font-size: 0.64rem;
}

body.site-theme .bout-kimarite-tag .kimarite-name-tag--vert {
  display: block;
  width: auto;
  height: 108px;
  max-width: 34px;
}

body.site-theme .rotated-kimarite .source-link,
body.site-theme .rotated-kimarite .bout-kimarite-tag {
  color: #fff;
  font-size: 0.56rem;
}

body.site-theme .result-row.is-win {
  background: #fff;
}

body.site-theme .site-footer {
  border-top: 1px solid var(--theme-line);
  padding: 24px;
}

body.site-theme .end-emblem {
  padding-top: 34px;
  padding-bottom: 34px;
}

body.site-theme .site-footer p {
  max-width: 1180px;
  margin: 0 auto 14px;
  color: #b8b8b8;
}

body.site-theme .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  max-width: 1180px;
  margin: 0 auto;
}

body.site-theme .two-column-section,
body.site-theme .detail-list {
  color: #fff;
}

body.site-theme.rikishi-profile-page .rikishi-profile-intro {
  padding-bottom: 0;
}

body.site-theme.rikishi-profile-page .profile-hero {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px 38px;
  background: #000;
}

body.site-theme.rikishi-profile-page .profile-photo-wrap {
  overflow: hidden;
  align-self: start;
  border: 1px solid var(--theme-line);
  background: #111;
  padding: 0;
  margin: 0;
}

body.site-theme.rikishi-profile-page .profile-photo-wrap img {
  display: block;
  width: 100%;
  height: auto;
  filter: none !important;
}

body.site-theme.rikishi-profile-page .profile-summary h1 {
  margin: 0;
  color: #fff;
  font-family: "Alata", Arial, sans-serif;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 400;
  line-height: 1.05;
}

body.site-theme.rikishi-profile-page .profile-subtitle,
body.site-theme.rikishi-profile-page .meaning,
body.site-theme.rikishi-profile-page .profile-summary > p:not(.eyebrow):not(.profile-subtitle):not(.meaning) {
  color: #b8b8b8;
  font-family: "Alata", Arial, sans-serif;
}

body.site-theme.rikishi-profile-page .stable-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  max-width: 520px;
  margin: 22px 0 0;
  padding: 0;
  border: 1px solid var(--theme-line);
  background: #000;
}

body.site-theme.rikishi-profile-page .stable-card img {
  width: 132px;
  height: 110px;
  object-fit: cover;
}

body.site-theme.rikishi-profile-page .stable-card--no-image {
  grid-template-columns: 1fr;
}

body.site-theme.rikishi-profile-page .stable-card div {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 12px 14px 12px 0;
}

body.site-theme.rikishi-profile-page .stable-card--no-image div {
  padding: 14px;
}

body.site-theme.rikishi-profile-page .stable-card strong {
  color: #fff;
  font-family: "Alata", Arial, sans-serif;
  font-weight: 400;
}

body.site-theme.rikishi-profile-page .stable-card span:not(.eyebrow) {
  color: #b8b8b8;
  font-size: 0.86rem;
}

body.site-theme.rikishi-profile-page .rank-chart-card {
  border: 1px solid var(--theme-line);
  background: #000;
  padding: 18px;
}

body.site-theme.rikishi-profile-page .chart-axis,
body.site-theme.rikishi-profile-page .rank-line,
body.site-theme.rikishi-profile-page .rank-dot {
  stroke: #fff;
}

body.site-theme.rikishi-profile-page .rank-dot {
  fill: #000;
}

body.site-theme.rikishi-profile-page .rank-hit-area {
  fill: transparent;
  stroke: transparent;
}

body.site-theme.rikishi-profile-page .chart-grid {
  stroke: rgba(255, 255, 255, 0.24);
}

body.site-theme.rikishi-profile-page .chart-y-label,
body.site-theme.rikishi-profile-page .chart-x-label {
  fill: #b8b8b8;
  font-family: "Alata", Arial, sans-serif;
}

body.site-theme.rikishi-profile-page .profile-detail-grid,
body.site-theme.rikishi-profile-page .two-column-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

body.site-theme.rikishi-profile-page .profile-detail-grid article,
body.site-theme.rikishi-profile-page .two-column-section article {
  border: 1px solid var(--theme-line);
  background: #000;
  padding: 18px;
}

body.site-theme .stable-hierarchy-section {
  padding-top: 0;
  padding-bottom: 14px;
}

body.site-theme .stable-hierarchy {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--theme-line);
  border-left: 1px solid var(--theme-line);
}

body.site-theme .stable-hierarchy article {
  min-height: 118px;
  padding: 14px;
  border-right: 1px solid var(--theme-line);
  border-bottom: 1px solid var(--theme-line);
  background: #000;
}

body.site-theme .stable-hierarchy strong {
  display: block;
  color: #fff;
  font-family: "Alata", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
}

body.site-theme .stable-hierarchy span {
  display: block;
  margin-top: 12px;
  color: #b8b8b8;
  font-size: 0.9rem;
  line-height: 1.35;
}

body.site-theme.venues-page .venue-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border-left: 1px solid var(--theme-line);
  border-top: 1px solid var(--theme-line);
}

body.site-theme.venues-page .venue-card {
  display: grid;
  align-content: space-between;
  min-height: 220px;
  padding: 18px;
  border: 0;
  border-right: 1px solid var(--theme-line);
  border-bottom: 1px solid var(--theme-line);
  background: #000;
}

body.site-theme.venues-page .venue-card strong {
  color: #fff;
  font-size: clamp(1.15rem, 2vw, 1.8rem);
  font-weight: 400;
  line-height: 1.1;
}

body.site-theme.venues-page .venue-card span {
  color: #b8b8b8;
}

body.site-theme.venue-page main .profile-stat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.site-theme.kimarite-index-page .kimarite-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-left: 1px solid var(--theme-line);
  border-top: 1px solid var(--theme-line);
}

body.site-theme.kimarite-index-page .kimarite-grid .feature-link {
  display: grid;
  align-content: space-between;
  min-height: 150px;
  padding: 16px;
  border: 0;
  border-right: 1px solid var(--theme-line);
  border-bottom: 1px solid var(--theme-line);
  background: #000;
  text-decoration: none;
}

body.site-theme.kimarite-index-page .kimarite-grid strong {
  color: #fff;
  font-family: "Alata", Arial, sans-serif;
  font-size: clamp(1.1rem, 1.7vw, 1.55rem);
  font-weight: 400;
  line-height: 1.1;
}

body.site-theme.kimarite-index-page .kimarite-grid span {
  margin-top: 18px;
  color: #b8b8b8;
  font-size: 0.9rem;
}

body.site-theme.kimarite-detail-page main .profile-stat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.site-theme.stable-detail-page .stable-detail-layout {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  gap: 22px;
  margin-top: 24px;
  align-items: stretch;
}

body.site-theme.stable-detail-page .stable-detail-layout > div:only-child {
  grid-column: 1 / -1;
}

body.site-theme.stable-detail-page .stable-detail-image {
  margin: 0;
  border: 1px solid var(--theme-line);
  background: #111;
}

body.site-theme.stable-detail-page .stable-detail-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

body.site-theme.stable-detail-page main .profile-stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  height: 100%;
}

body.site-theme.stable-detail-page .stable-official-link {
  margin: 14px 0 0;
}

body.site-theme .venue-yusho-cell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

body.site-theme .venue-yusho-tag {
  display: inline-grid;
  align-items: center;
  text-decoration: none;
}

body.site-theme .venue-yusho-tag .rikishi-name-tag--horz {
  display: block;
  width: auto;
  height: 46px;
  max-width: 180px;
}

body.site-theme .venue-yusho-tag .rikishi-tag-placeholder {
  min-width: 120px;
  min-height: 46px;
  padding: 0 10px;
}

body.site-theme .venue-tournament-table {
  min-width: 760px;
}

body.site-theme.rules-page main .rules-intro {
  padding-bottom: 12px;
}

body.site-theme.rules-page .rules-core {
  padding-top: 10px;
}

body.site-theme.rules-page .rules-ring {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 56px);
  min-height: 260px;
  border-block: 1px solid var(--theme-line);
  padding-block: 24px;
}

body.site-theme.rules-page .rules-ring__circle {
  width: min(260px, 70vw);
  aspect-ratio: 1;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 18px #000,
    inset 0 0 0 19px rgba(255, 255, 255, 0.3);
}

body.site-theme.rules-page .rules-ring h2,
body.site-theme.rules-page .rules-move-card h2,
body.site-theme.rules-page .rules-flow h2,
body.site-theme.rules-page .rules-spirit h2 {
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 3vw, 3rem);
  line-height: 1.05;
}

body.site-theme.rules-page .rules-ring p,
body.site-theme.rules-page .rules-flow p,
body.site-theme.rules-page .rules-spirit p {
  max-width: 720px;
  margin: 10px 0 0;
  color: #fff;
}

body.site-theme.rules-page .rules-move-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

body.site-theme.rules-page .rules-move-card {
  min-height: 420px;
  border: 1px solid var(--theme-line);
  background: #000;
  padding: clamp(18px, 3vw, 32px);
}

body.site-theme.rules-page .rules-move-card + .rules-move-card {
  border-left: 0;
}

body.site-theme.rules-page .rules-move-card--allowed {
  box-shadow: inset 8px 0 0 #fff;
}

body.site-theme.rules-page .rules-move-card--forbidden {
  box-shadow: inset 8px 0 0 #777;
}

body.site-theme.rules-page .rules-move-card ul {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

body.site-theme.rules-page .rules-move-card li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  border-top: 1px solid var(--theme-line);
  color: #fff;
}

body.site-theme.rules-page .rules-move-card li::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border: 1px solid #fff;
  border-radius: 50%;
  flex: 0 0 auto;
}

body.site-theme.rules-page .rules-move-card--forbidden li::before {
  border-radius: 0;
  transform: rotate(45deg);
}

body.site-theme.rules-page .rules-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

body.site-theme.rules-page .rules-flow article {
  min-height: 290px;
  border: 1px solid var(--theme-line);
  border-left: 0;
  padding: 18px;
}

body.site-theme.rules-page .rules-flow article:first-child {
  border-left: 1px solid var(--theme-line);
}

body.site-theme.rules-page .rules-number {
  display: block;
  margin-bottom: 42px;
  color: #b8b8b8;
  font-size: 0.8rem;
}

body.site-theme.rules-page .rules-spirit {
  border-top: 1px solid var(--theme-line);
  border-bottom: 1px solid var(--theme-line);
}

body.site-theme.rules-page .rules-spirit > div {
  max-width: 860px;
}

@media (max-width: 820px) {
  body.site-theme .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  body.site-theme .brand {
    width: 100%;
    max-width: 360px;
    height: 56px;
  }

  body.site-theme .nav-links {
    justify-content: flex-start;
  }

  body.site-theme .directory-rikishi-photo {
    width: 72px;
    height: 100px;
  }

  body.site-theme .rikishi-name-tag--vert {
    height: 100px;
  }

  body.site-theme .rikishi-directory-identity .rikishi-tag-placeholder {
    min-height: 100px;
  }

  body.site-theme main .stat-grid,
  body.site-theme main .profile-stat-grid {
    grid-template-columns: 1fr;
  }

  body.site-theme main .stat {
    border-right: 0;
    border-bottom: 1px solid var(--theme-line);
  }

  body.site-theme main .stat:last-child {
    border-bottom: 0;
  }

  body.site-theme .pager {
    display: grid;
    gap: 10px;
  }

  body.site-theme .pager a,
  body.site-theme .pager a:nth-child(2),
  body.site-theme .pager a:last-child {
    text-align: left;
  }

  body.site-theme .standings-grid {
    grid-template-columns: repeat(2, minmax(132px, 1fr));
    grid-template-rows: repeat(21, 96px);
  }

  body.site-theme .stable-hierarchy {
    grid-template-columns: 1fr;
  }

  body.site-theme.rikishi-profile-page .profile-hero,
  body.site-theme.rikishi-profile-page .profile-detail-grid,
  body.site-theme.rikishi-profile-page .two-column-section {
    grid-template-columns: 1fr;
  }

  body.site-theme.venues-page .venue-grid,
  body.site-theme.venue-page main .profile-stat-grid,
  body.site-theme.kimarite-index-page .kimarite-grid,
  body.site-theme.kimarite-detail-page main .profile-stat-grid,
  body.site-theme.stable-detail-page .stable-detail-layout,
  body.site-theme.stable-detail-page main .profile-stat-grid {
    grid-template-columns: 1fr;
  }

  body.site-theme.rules-page .rules-ring,
  body.site-theme.rules-page .rules-move-section,
  body.site-theme.rules-page .rules-flow {
    grid-template-columns: 1fr;
  }

  body.site-theme.rules-page .rules-move-card + .rules-move-card,
  body.site-theme.rules-page .rules-flow article,
  body.site-theme.rules-page .rules-flow article:first-child {
    border-left: 1px solid var(--theme-line);
  }

  body.site-theme.rules-page .rules-move-card + .rules-move-card,
  body.site-theme.rules-page .rules-flow article + article {
    border-top: 0;
  }

  body.site-theme.rules-page .rules-move-card,
  body.site-theme.rules-page .rules-flow article {
    min-height: auto;
  }
}
