:root {
  color-scheme: light;
  font-family: "Segoe UI", "Noto Sans TC", system-ui, sans-serif;
  --ink: #20242a;
  --muted: #6d7480;
  --paper: #f6f2ea;
  --panel: #fffaf2;
  --wood: #d7a85d;
  --wood-dark: #8d5b22;
  --accent: #2d6f6d;
  --black-mark: rgba(18, 22, 28, 0.7);
  --white-mark: rgba(255, 255, 255, 0.88);
  --neutral-mark: rgba(172, 78, 56, 0.72);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
}

button {
  min-height: 42px;
  border: 1px solid rgba(32, 36, 42, 0.18);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

button:hover {
  border-color: var(--accent);
}

button.active,
button[aria-pressed="true"] {
  color: white;
  background: var(--accent);
  border-color: var(--accent);
}

.is-hidden {
  display: none !important;
}

.start-screen {
  min-height: calc(100vh - 78px);
  display: grid;
  place-items: center;
  padding: 18px;
}

.start-panel {
  width: min(760px, 100%);
  padding: 28px;
  background: var(--panel);
  border: 1px solid rgba(32, 36, 42, 0.14);
  border-radius: 8px;
  box-shadow: 0 16px 50px rgba(52, 39, 22, 0.08);
}

.start-kicker {
  margin-bottom: 6px;
  color: var(--accent);
  font-weight: 800;
}

.start-copy {
  margin-top: 8px;
  color: var(--muted);
}

.mode-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}

.mode-choice {
  min-height: 118px;
  padding: 18px;
  text-align: left;
}

.mode-choice strong,
.mode-choice span {
  display: block;
}

.mode-choice strong {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.mode-choice span {
  color: var(--muted);
  line-height: 1.5;
}


.lobby-panel {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(32, 36, 42, 0.12);
}

.lobby-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.lobby-head h2 {
  margin: 0;
  font-size: 1.25rem;
}

.lobby-head p,
.lobby-empty {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}

.lobby-pill {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(45, 111, 109, 0.12);
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 800;
}

.lobby-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.lobby-stats div {
  padding: 12px;
  border: 1px solid rgba(32, 36, 42, 0.12);
  border-radius: 8px;
  background: rgba(237, 228, 214, 0.48);
}

.lobby-stats span,
.lobby-room-meta,
.lobby-field > span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.lobby-stats strong {
  display: block;
  margin-top: 4px;
  font-size: 1.55rem;
}

.lobby-match-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(32, 36, 42, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.42);
}

.lobby-field > span {
  margin-bottom: 8px;
}

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

.lobby-field:nth-child(3) .lobby-segment {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lobby-segment button {
  min-height: 38px;
  padding: 8px 10px;
  font-size: 0.9rem;
}

.lobby-segment button[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.lobby-room-list {
  margin-top: 12px;
}

.lobby-empty {
  padding: 12px;
  border: 1px dashed rgba(32, 36, 42, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.46);
}

.lobby-actions {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.lobby-actions button {
  min-height: 42px;
}

@media (max-width: 640px) {
  .lobby-head {
    flex-direction: column;
  }

  .lobby-stats,
  .lobby-match-card,
  .lobby-actions {
    grid-template-columns: 1fr;
  }
}

.app-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(32, 36, 42, 0.48);
}

.app-dialog {
  width: min(420px, 100%);
  padding: 22px;
  background: var(--panel);
  border: 1px solid rgba(32, 36, 42, 0.18);
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(32, 36, 42, 0.2);
}

.app-dialog p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}


.dialog-copy {
  display: block;
  color: var(--muted);
  line-height: 1.55;
}

.online-room-input {
  width: 100%;
  min-height: 44px;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(32, 36, 42, 0.2);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.online-room-input:focus {
  outline: 2px solid rgba(45, 111, 109, 0.25);
  border-color: var(--accent);
}.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.dialog-actions button {
  min-width: 86px;
  padding: 0 16px;
}

.dialog-actions .primary {
  color: white;
  background: var(--accent);
  border-color: var(--accent);
}

.app-shell {
  width: min(1500px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px;
  display: grid;
  grid-template-columns: 300px minmax(620px, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.board-panel,
.side-panel section {
  background: var(--panel);
  border: 1px solid rgba(32, 36, 42, 0.14);
  border-radius: 8px;
  box-shadow: 0 16px 50px rgba(52, 39, 22, 0.08);
}

.board-panel {
  grid-column: 2;
  grid-row: 1 / span 4;
  padding: 18px;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}

.top-bar > :first-child {
  min-width: 150px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(1.4rem, 2vw, 2rem);
  letter-spacing: 0;
}

h2 {
  font-size: 1rem;
  margin-bottom: 10px;
}

h3 {
  margin: 0 0 8px;
  font-size: 0.94rem;
}

.rules-note p,
#scoreIntro {
  color: var(--muted);
  line-height: 1.55;
}

.board-status {
  margin-top: 12px;
  padding: 10px 12px;
  color: var(--muted);
  line-height: 1.5;
  background: #f1e8d9;
  border: 1px solid rgba(32, 36, 42, 0.1);
  border-radius: 8px;
}
.term-panel {
  margin-top: 10px;
  padding: 10px 12px;
  color: var(--ink);
  line-height: 1.55;
  background: #fbf7ef;
  border: 1px solid rgba(45, 123, 118, 0.22);
  border-radius: 8px;
}

.term-panel strong {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 0.92rem;
}

.term-panel p {
  color: var(--muted);
}

.turn-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 110px;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 8px;
  background: #efe3d0;
  font-weight: 800;
}

.stone {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: inset -3px -4px 7px rgba(0, 0, 0, 0.22), 0 2px 5px rgba(0, 0, 0, 0.18);
}

.stone.black {
  background: radial-gradient(circle at 34% 30%, #5b5f66, #08090b 66%);
}

.stone.white {
  background: radial-gradient(circle at 34% 30%, #fff, #d9dde3 72%);
  border: 1px solid rgba(32, 36, 42, 0.28);
}

.board-wrap {
  width: 100%;
  aspect-ratio: 1;
  max-height: calc(100vh - 132px);
  display: grid;
  place-items: center;
}

#goBoard {
  width: 100%;
  height: 100%;
  display: block;
  background: var(--wood);
  border-radius: 8px;
  border: 2px solid var(--wood-dark);
  touch-action: pan-x pan-y pinch-zoom;
  cursor: crosshair;
}

.side-panel {
  display: contents;
}

.side-panel section {
  padding: 14px;
}

.left-stack {
  grid-column: 1;
  grid-row: 1 / span 4;
  display: grid;
  gap: 18px;
  align-content: start;
}

.controls {
  grid-column: 3;
  grid-row: 1;
}

.ai-side-info {
  display: block;
}

@media (min-width: 1025px) {
  .board-panel > .board-status,
  .board-panel > .term-panel {
    display: none;
  }
}

.rules-note,
.move-log,
.result-panel {
  min-width: 0;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.ai-strength-panel {
  margin-bottom: 14px;
}

.ai-strength-panel h3 {
  color: var(--muted);
}

.ai-model-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(45, 111, 109, 0.22);
  border-radius: 8px;
  background: rgba(45, 111, 109, 0.08);
}

.ai-model-card strong {
  color: var(--accent);
}

.ai-model-card span {
  color: var(--muted);
  font-size: 0.86rem;
  text-align: right;
}


.ai-difficulty-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.ai-difficulty-grid button {
  min-height: 38px;
  padding: 0 6px;
  font-size: 0.92rem;
}

.color-ai-strength-controls {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.color-ai-strength-row {
  display: grid;
  gap: 6px;
}

.color-ai-strength-row > span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.color-ai-strength-row .ai-difficulty-grid {
  margin-top: 0;
}

.ai-difficulty-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}
.ai-hint-panel {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(32, 36, 42, 0.12);
}

.ai-hint-strength {
  margin-top: 10px;
}

.ai-hint-strength > span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.ai-hint-strength .ai-difficulty-grid {
  margin-top: 0;
}

.color-ai-hint-toggles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.color-ai-hint-toggles button {
  min-height: 40px;
  padding: 0 8px;
  font-size: 0.9rem;
}
.ai-hint-count {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.ai-hint-count button {
  min-height: 38px;
  padding: 0 8px;
  font-size: 0.9rem;
}

.ai-hint-count-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.ai-hint-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}.ai-strength-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.ai-strength-grid button {
  min-height: 38px;
  padding: 0 8px;
}

.score-grid,
.button-grid,
.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.score-grid {
  margin-bottom: 14px;
}

.winrate-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.winrate-panel {
  flex: 1 1 280px;
  max-width: 380px;
}

.winrate-bar {
  position: relative;
  height: 28px;
  display: flex;
  overflow: hidden;
  border: 2px solid rgba(32, 36, 42, 0.8);
  border-radius: 4px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.winrate-black {
  width: 50%;
  min-width: 4%;
  max-width: 96%;
  background: linear-gradient(90deg, #050607, #15191d);
  transition: width 220ms ease;
}

.winrate-preview {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 0;
  z-index: 2;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(116, 124, 134, 0.72) 0,
      rgba(116, 124, 134, 0.72) 7px,
      rgba(208, 213, 219, 0.72) 7px,
      rgba(208, 213, 219, 0.72) 14px
    );
  box-shadow: inset 0 0 0 1px rgba(44, 51, 58, 0.45);
  opacity: 0;
  transition: left 180ms ease, width 180ms ease, opacity 120ms ease;
}

.winrate-preview.is-visible {
  opacity: 1;
}

.winrate-white {
  flex: 1;
  background: linear-gradient(90deg, #ffffff, #f5f1e8);
}

.history-strip {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(32, 36, 42, 0.12);
}

.history-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}

.history-heading h2 {
  font-size: 1rem;
}

.history-heading p {
  color: var(--muted);
  font-size: 0.9rem;
}

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

.history-grid.is-scrollable {
  max-height: 1030px;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(45, 126, 121, 0.48) rgba(241, 232, 217, 0.8);
}

.history-grid.is-scrollable::-webkit-scrollbar {
  width: 10px;
}

.history-grid.is-scrollable::-webkit-scrollbar-track {
  background: rgba(241, 232, 217, 0.8);
  border-radius: 999px;
}

.history-grid.is-scrollable::-webkit-scrollbar-thumb {
  background: rgba(45, 126, 121, 0.48);
  border: 2px solid rgba(241, 232, 217, 0.8);
  border-radius: 999px;
}

.history-grid.is-scrollable::-webkit-scrollbar-thumb:hover {
  background: rgba(45, 126, 121, 0.72);
}

.history-card {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(32, 36, 42, 0.14);
  border-radius: 8px;
  background: #fffaf1;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.history-card:hover,
.history-card:focus {
  border-color: rgba(45, 126, 121, 0.45);
  box-shadow: 0 10px 28px rgba(52, 39, 22, 0.1);
  outline: none;
  transform: translateY(-1px);
}

.history-card canvas {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  border: 2px solid rgba(162, 102, 28, 0.85);
  border-radius: 6px;
  background: #d6a04a;
}

.history-title-input {
  width: 100%;
  margin-top: 8px;
  padding: 3px 4px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 800;
  cursor: text;
}

.history-title-input:hover,
.history-title-input:focus {
  border-color: rgba(45, 126, 121, 0.45);
  background: #fff;
  outline: none;
}

.history-card p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.history-toggle {
  width: fit-content;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: center;
  padding: 8px 14px;
  color: var(--accent);
  background: transparent;
  border-color: transparent;
}

.history-actions {
  display: flex;
  justify-content: center;
  padding-top: 10px;
}

.history-toggle:hover,
.history-toggle:focus {
  background: rgba(45, 126, 121, 0.08);
  border-color: rgba(45, 126, 121, 0.18);
}

.history-toggle small {
  color: var(--muted);
  font-size: 0.84rem;
}

.history-toggle-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  line-height: 1;
}

.score-grid div,
.result-grid div {
  padding: 12px;
  border-radius: 8px;
  background: #f1e8d9;
}

.score-grid span,
.result-grid span,
.result-grid small {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.score-grid strong,
.result-grid strong {
  display: block;
  font-size: 1.7rem;
  line-height: 1.1;
  margin: 2px 0;
}

.button-grid .wide {
  grid-column: 1 / -1;
}

.result-grid {
  margin-top: 12px;
}

.winner {
  margin-top: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.margin-text {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mark {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  display: inline-block;
  border: 1px solid rgba(32, 36, 42, 0.22);
}

.black-mark {
  background: var(--black-mark);
}

.white-mark {
  background: var(--white-mark);
}

.neutral-mark {
  background: var(--neutral-mark);
}

.dead-mark {
  position: relative;
  background: transparent;
}

.dead-mark::before,
.dead-mark::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 6px;
  height: 2px;
  background: #b84838;
}

.dead-mark::before {
  transform: rotate(45deg);
}

.dead-mark::after {
  transform: rotate(-45deg);
}

.row-score-wrap {
  margin-top: 14px;
  overflow-x: auto;
}

.row-score-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.82rem;
  text-align: right;
}

.row-score-table th,
.row-score-table td {
  padding: 5px 4px;
  border-bottom: 1px solid rgba(32, 36, 42, 0.1);
}

.row-score-table th:first-child,
.row-score-table td:first-child {
  text-align: left;
}

.row-score-table tbody tr:last-child td {
  border-bottom: 0;
  font-weight: 800;
}

.move-log {
  max-height: 300px;
  overflow: auto;
}

.move-log ol {
  margin: 0;
  padding-left: 1.5rem;
  color: var(--muted);
  line-height: 1.8;
}

@media (max-width: 1280px) {
  .app-shell {
    width: min(1180px, 100%);
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .board-panel {
    grid-column: 1;
    grid-row: 1 / span 4;
  }

  .controls {
    grid-column: 2;
    grid-row: 1;
  }

  .left-stack {
    grid-column: 2;
    grid-row: 2 / span 3;
  }

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

  .history-grid.is-scrollable {
    max-height: 1520px;
  }
}

@media (max-width: 1024px) {
  .mode-choice-grid {
    grid-template-columns: 1fr;
  }

  .app-shell {
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    padding: 8px;
    gap: 10px;
    overflow-x: hidden;
  }

  .app-shell > *,
  .left-stack,
  .side-panel section {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    min-width: 0;
    justify-self: stretch;
  }

  .board-panel,
  .controls,
  .left-stack {
    grid-column: 1;
    grid-row: auto;
  }

  .ai-side-info {
    display: none;
  }

  .board-panel {
    width: 100%;
    min-width: 0;
    padding: 8px;
  }

  .top-bar {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
  }

  h1 {
    font-size: 1.45rem;
  }

  .winrate-panel {
    flex-basis: 100%;
    max-width: none;
    order: 3;
  }

  .board-wrap {
    width: min(100%, calc(100vw - 36px));
    max-height: none;
    margin: 0 auto;
  }

  #goBoard {
    width: 100%;
    height: auto;
    max-width: calc(100vw - 36px);
  }

  .history-heading {
    display: block;
  }

  .history-heading p {
    margin-top: 4px;
  }

  .history-grid {
    grid-template-columns: 1fr;
  }

  .history-grid.is-scrollable {
    max-height: 1710px;
  }
}


.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 5vw, 52px);
  background: rgba(246, 242, 234, 0.94);
  border-bottom: 1px solid rgba(32, 36, 42, 0.1);
  backdrop-filter: blur(12px);
}

.site-brand {
  color: var(--accent);
  font-weight: 850;
  text-decoration: none;
}

.site-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: flex-end;
}

.site-links a,
.site-footer a,
.content-shell a {
  color: var(--accent);
  font-weight: 700;
}

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

.site-footer {
  margin: 28px auto 0;
  padding: 20px clamp(18px, 5vw, 52px) 28px;
  color: var(--muted);
  border-top: 1px solid rgba(32, 36, 42, 0.1);
}

.site-footer p {
  max-width: 980px;
  margin: 0 auto 10px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  max-width: 980px;
  margin: 0 auto;
}

.content-shell {
  width: min(920px, calc(100% - 32px));
  margin: 28px auto 48px;
  padding: 30px;
  background: var(--panel);
  border: 1px solid rgba(32, 36, 42, 0.14);
  border-radius: 8px;
  box-shadow: 0 16px 50px rgba(52, 39, 22, 0.08);
}

.content-shell h1 {
  margin: 6px 0 22px;
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.content-card {
  margin-top: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(32, 36, 42, 0.12);
  border-radius: 8px;
}

.content-card h2 {
  margin-top: 0;
}

.content-card p {
  color: var(--muted);
  line-height: 1.75;
}

.content-muted {
  color: var(--muted);
}

@media (max-width: 700px) {
  .site-nav {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .content-shell {
    width: min(100% - 20px, 920px);
    padding: 20px;
  }
}
