/* NES-inspired palette, anchored to the PuffinPack logo
   (charcoal body #4f4c4c, beak #f1511b) */
:root {
  --bg:         #1a1a1a;
  --bg-panel:   #2b2b2b;
  --bg-alt:     #4f4c4c;
  --text:       #f8f8f8;
  --text-muted: #bcbcbc;
  --accent:     #f1511b;
  --gold:       #f8b800;
  --green:      #00b800;
  --ink:        #000000;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-padding-top: 100px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  font-family: 'VT323', monospace;
  background: var(--bg);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1.7;
  position: relative;
}

/* ── Puffin popup animation ── */
@keyframes puffin-popup {
  0%   { opacity: 1; transform: translateY(0);    }
  100% { opacity: 0; transform: translateY(-24px); }
}

/* CRT scanline overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 3px,
    rgba(0, 0, 0, 0.07) 3px,
    rgba(0, 0, 0, 0.07) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Hero (admin title banner) ── */
.hero {
  background: var(--bg-panel);
  padding: 3rem 0 2.5rem;
  text-align: center;
  border-bottom: 4px solid var(--accent);
  box-shadow: 0 6px 0 var(--ink);
}

/* ── Accessibility ── */
.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;
}

/* ── Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg-panel);
  border-bottom: 4px solid var(--accent);
  box-shadow: 0 6px 0 var(--ink);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.6rem 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-wrap {
  position: relative;
  display: inline-flex;
  background: #ffffff;
  padding: 0.4rem 0.6rem;
  border: 4px solid var(--bg-alt);
  box-shadow: 4px 4px 0 var(--ink);
  /* The logo doubles as a hidden game toggle (REQ-EASTER-EGGS-0010) - reset
     button styling and keep the plain cursor so it stays a secret. */
  font: inherit;
  margin: 0;
  cursor: default;
  -webkit-tap-highlight-color: transparent;
}

.logo-wrap:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

/* Tilted sticker on the logo's top-right corner, shown while the game is on. */
.game-badge {
  position: absolute;
  top: -6px;
  right: -44px;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  line-height: 1;
  letter-spacing: 1px;
  white-space: nowrap;
  color: var(--text);
  background: var(--accent);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  padding: 0.3rem 0.4rem;
  transform: rotate(12deg);
  pointer-events: none;
  display: none;
}

.logo-wrap[aria-pressed="true"] .game-badge {
  display: block;
  animation: game-badge-pop 0.25s steps(3) both;
}

@keyframes game-badge-pop {
  from { transform: rotate(12deg) scale(0); }
  to   { transform: rotate(12deg) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-wrap[aria-pressed="true"] .game-badge { animation: none; }
}

/* REQ-LOOK-AND-FEEL-0001: logo rendered exactly as provided — no filters or color changes, scaled for layout only */
.logo {
  display: block;
  width: auto;
  height: 3rem;
  image-rendering: auto;
}

.brand-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: 1px;
  text-shadow: 2px 2px 0 var(--ink);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.nav-links a {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.65rem;
  color: var(--text);
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
  min-height: 44px;
  padding: 0 0.25rem;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.tagline {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.68rem;
  color: var(--gold);
  line-height: 2.2;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 0 var(--ink);
}

/* ── Main sections ── */
main {
  padding: 2.5rem 0;
}

section {
  margin-bottom: 2rem;
  background: var(--bg-panel);
  border: 4px solid var(--bg-alt);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 1.5rem;
}

/* ── Hire Us / Join Us ── */
.split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.split-row section {
  margin-bottom: 0;
}

.split-row p {
  margin-bottom: 1rem;
}

.split-row .btn {
  display: block;
  width: fit-content;
  margin: 0 auto;
}

h2 {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.8rem;
  color: var(--accent);
  line-height: 2;
  padding-bottom: 0.75rem;
  border-bottom: 4px solid var(--bg-alt);
  margin-bottom: 1rem;
  text-shadow: 2px 2px 0 var(--ink);
}

.arrow {
  color: var(--green);
  margin-right: 0.5rem;
}

h3 {
  font-size: 1.3rem;
  color: var(--gold);
  margin: 1.25rem 0 0.6rem;
  letter-spacing: 2px;
}

/* ── Tech badge grid ── */
.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin-bottom: 2rem;
}

.tech-list li {
  background: var(--bg-alt);
  color: var(--gold);
  font-size: 1.2rem;
  letter-spacing: 1px;
  /* REQ-COMPATIBILITY-0002: minimum touch target */
  min-height: 44px;
  min-width: 44px;
  padding: 0 0.9rem;
  display: flex;
  align-items: center;
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

/* ── Contact ── */
.contact-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.prompt {
  color: var(--green);
  font-size: 1.35rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  /* REQ-COMPATIBILITY-0002: inline links need adequate tap area */
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
  padding: 0 0.25rem;
}

a:hover {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ── Footer ── */
footer {
  background: var(--bg-alt);
  border-top: 4px solid var(--accent);
  text-align: center;
  padding: 1.25rem 0;
  color: var(--text-muted);
  font-size: 1rem;
  letter-spacing: 2px;
  box-shadow: 0 -4px 0 var(--ink);
}

/* ── News ── */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.news-item {
  border: 3px solid var(--bg-alt);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 1rem;
  background: var(--bg);
}

.news-img {
  display: block;
  width: 100%;
  height: auto;
  border: 3px solid var(--bg-alt);
  margin-bottom: 0.75rem;
}

.news-title {
  color: var(--gold);
  font-size: 1.4rem;
  margin: 0 0 0.25rem;
  letter-spacing: 1px;
}

.news-date {
  color: var(--green);
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.news-body {
  white-space: pre-wrap;
}

.news-more-btn {
  display: block;
  margin: 1.25rem auto 0;
}

/* ── Rich post body (WYSIWYG output) ── */
.news-body--rich {
  white-space: normal;
}
.news-body--rich::after {
  content: '';
  display: table;
  clear: both;
}
.news-body--rich h1 {
  font-family: 'Press Start 2P', monospace;
  font-size: 1rem;
  color: var(--accent);
  line-height: 1.8;
  margin: 1.2rem 0 0.6rem;
  text-shadow: 2px 2px 0 var(--ink);
}
.news-body--rich h2 {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.8rem;
  color: var(--gold);
  line-height: 1.8;
  margin: 1rem 0 0.5rem;
}
.news-body--rich h3 {
  font-size: 1.3rem;
  color: var(--gold);
  margin: 0.9rem 0 0.4rem;
  letter-spacing: 1px;
}
.news-body--rich p {
  margin: 0 0 0.8rem;
}
.news-body--rich ul,
.news-body--rich ol {
  margin: 0 0 0.8rem 1.4rem;
}
.news-body--rich blockquote {
  border-left: 4px solid var(--accent);
  margin: 0 0 0.8rem;
  padding: 0.2rem 0 0.2rem 0.9rem;
  color: var(--text-muted);
}
/* Inline prose links: override the global 44px tap-target rule so links sit
   naturally within sentences. */
.news-body--rich a {
  display: inline;
  min-height: 0;
  line-height: inherit;
  padding: 0;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Post images (shared by public page and editor preview) ── */
.post-img {
  display: block;
  height: auto;
  max-width: 100%;
  border: 3px solid var(--bg-alt);
  margin: 0.75rem 0;
}
.post-img--align-left  { float: left;  margin: 0.4rem 1rem 0.6rem 0; }
.post-img--align-right { float: right; margin: 0.4rem 0 0.6rem 1rem; }
.post-img--align-center { margin-left: auto; margin-right: auto; }
.post-img--size-small  { width: 40%; }
.post-img--size-medium { width: 70%; }
.post-img--size-full {
  width: 100%;
  float: none;
  margin-left: 0;
  margin-right: 0;
}

@media (max-width: 600px) {
  /* REQ-COMPATIBILITY: images go full width on small screens, no floats. */
  .post-img--align-left,
  .post-img--align-right { float: none; margin-left: 0; margin-right: 0; }
  .post-img--size-small,
  .post-img--size-medium { width: 100%; }
}

/* ── News editor (admin) ── */
.editor-hint {
  color: var(--text-muted);
  font-size: 1rem;
  letter-spacing: 0.5px;
  margin: -0.4rem 0 0.2rem;
}
#news-editor {
  background: #ffffff;
}
#news-editor .ql-editor {
  min-height: 240px;
  font-family: 'VT323', monospace;
  font-size: 1.2rem;
  color: #1a1a1a;
}
/* Editor content uses dark ink on the white editor surface. */
#news-editor .ql-editor.ql-blank::before { color: #777; font-style: normal; }
#news-editor .ql-editor h1,
#news-editor .ql-editor h2,
#news-editor .ql-editor h3,
#news-editor .ql-editor blockquote { color: #1a1a1a; }
#news-editor .ql-editor a { color: #0a58ca; }
#news-editor .ql-editor::after {
  content: '';
  display: table;
  clear: both;
}
.news-form-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
#img-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-alt);
  border: 3px solid var(--ink);
  padding: 0.5rem;
  margin-bottom: 0.5rem;
}
.img-controls-label { color: var(--gold); font-size: 1rem; }
.img-controls-sep   { color: var(--text-muted); }
#img-controls [data-align],
#img-controls [data-size] {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.6rem;
  background: var(--bg-panel);
  color: var(--text);
  border: 2px solid var(--ink);
  min-height: 36px;
  min-width: 36px;
  cursor: pointer;
}
#img-controls [data-align].is-active,
#img-controls [data-size].is-active {
  background: var(--gold);
  color: var(--ink);
}
#img-alt {
  flex: 1;
  min-width: 120px;
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
  padding: 0.3rem 0.4rem;
  background: var(--bg);
  color: var(--text);
  border: 2px solid var(--ink);
}

/* ── Team ── */
.team-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.team-card {
  text-align: center;
  border: 3px solid var(--bg-alt);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 1rem 0.75rem;
  background: var(--bg);
}

.team-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 3px solid var(--bg-alt);
  margin-bottom: 0.6rem;
}

.team-photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Press Start 2P', monospace;
  font-size: 1.5rem;
  color: var(--text-muted);
  background: var(--bg-alt);
}

.team-name {
  color: var(--gold);
  font-size: 1.3rem;
  letter-spacing: 1px;
}

.team-role {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.empty {
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* ── Admin forms ── */
.admin-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.admin-form input,
.admin-form textarea {
  font-family: 'VT323', monospace;
  font-size: 1.25rem;
  color: var(--text);
  background: var(--bg);
  border: 3px solid var(--bg-alt);
  padding: 0.5rem 0.6rem;
  /* REQ-COMPATIBILITY-0002: comfortable tap/typing target */
  min-height: 44px;
}

.admin-form input:focus,
.admin-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.admin-form textarea {
  resize: vertical;
}

/* ── Buttons ── */
.btn {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.7rem;
  color: var(--ink);
  background: var(--gold);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 0 1rem;
  /* REQ-COMPATIBILITY-0002: minimum 44px touch target */
  min-height: 44px;
  min-width: 44px;
  cursor: pointer;
  letter-spacing: 1px;
}

.btn:active {
  transform: translate(4px, 4px);
  box-shadow: none;
}

.btn--small {
  font-size: 0.55rem;
}

.btn--danger {
  background: var(--accent);
  color: var(--text);
}

.btn--google {
  background: #ffffff;
  color: var(--ink);
  width: 100%;
}

.login-hint {
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.form-error {
  color: var(--accent);
  letter-spacing: 1px;
}

.form-status {
  color: var(--green);
  letter-spacing: 1px;
}

.signed-in-as {
  color: var(--green);
}

/* ── Admin existing-item rows ── */
.admin-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 3px solid var(--bg-alt);
  padding: 0.5rem 0.75rem;
  background: var(--bg);
}

.admin-row-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.back-link {
  text-align: center;
  margin-top: 1rem;
}

/* ── Flappy Puffin game ── */
.flappy-stage {
  display: flex;
  justify-content: center;
}

.flappy-canvas {
  display: block;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 320 / 480;
  background: #1a1a1a;
  border: 4px solid var(--bg-alt);
  box-shadow: 6px 6px 0 var(--ink);
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  touch-action: none;
  cursor: pointer;
}

.flappy-hint {
  margin-top: 1rem;
  text-align: center;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* ── Footer game link (index.html) ── */
.footer-game-link {
  margin-top: 0.5rem;
}

.footer-game-link a {
  color: var(--gold);
}

/* ── Recruitment offer page (offer.html) ── */
.container.offer {
  max-width: 1040px;
}

.offer-intro {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.offer-intro strong {
  color: var(--text);
  font-weight: normal;
}

.offer-controls {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 2rem;
  margin-bottom: 1.25rem;
}

.offer-control-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 0.75rem;
}

.offer-control-label {
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.offer-control-value {
  color: var(--text);
}

/* Blocky range slider — REQ-COMPATIBILITY-0002: 44px tall hit area. */
.offer-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 44px;
  background: transparent;
  cursor: pointer;
}

.offer-range::-webkit-slider-runnable-track {
  height: 12px;
  background: var(--bg);
  border: 3px solid var(--bg-alt);
}

.offer-range::-moz-range-track {
  height: 6px;
  background: var(--bg);
  border: 3px solid var(--bg-alt);
}

.offer-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 28px;
  margin-top: -11px;
  background: var(--gold);
  border: 3px solid var(--ink);
  border-radius: 0;
  box-shadow: 3px 3px 0 var(--ink);
}

.offer-range::-moz-range-thumb {
  width: 16px;
  height: 22px;
  background: var(--gold);
  border: 3px solid var(--ink);
  border-radius: 0;
  box-shadow: 3px 3px 0 var(--ink);
}

.offer-range:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.offer-models {
  margin-bottom: 2rem;
}

.offer-model {
  min-width: 0;
}

.offer-model-swatch {
  margin-right: 0.6rem;
  vertical-align: baseline;
}

.offer-model-blurb {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.offer-hero {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 3px solid var(--bg-alt);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.offer-hero-label {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 1px;
}

.offer-hero-value {
  font-family: 'Press Start 2P', monospace;
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text);
  text-shadow: 2px 2px 0 var(--ink);
}

.offer-stats {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 1rem;
  margin-bottom: 1rem;
}

.offer-stats dt {
  color: var(--text-muted);
}

.offer-stats dd {
  text-align: right;
}

.offer-bar-block {
  margin-bottom: 1rem;
}

h3.offer-bar-title {
  font-size: 1.1rem;
  margin: 0.75rem 0 0.4rem;
}

/* Segments are separated by a 2px gap in the panel colour. */
.offer-bar {
  display: flex;
  gap: 2px;
  height: 32px;
  background: var(--bg-panel);
}

.offer-bar-seg {
  min-width: 2px;
  height: 100%;
}

.offer-bar-seg:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

/* Texture so the "unbilled" segment never relies on colour alone. */
.offer-bar-seg--hatched {
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.18) 0 2px,
    transparent 2px 6px
  ) !important;
}

.offer-legend {
  list-style: none;
  margin-top: 0.4rem;
  font-size: 1.15rem;
}

.offer-legend li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.offer-legend-label {
  flex: 1;
  color: var(--text-muted);
}

.offer-legend-value {
  color: var(--text);
  white-space: nowrap;
}

.offer-legend-total {
  border-top: 2px solid var(--bg-alt);
  margin-top: 0.3rem;
  padding-top: 0.2rem;
}

.offer-legend-total .offer-legend-label,
.offer-legend-total .offer-legend-value {
  color: var(--gold);
}

.offer-swatch {
  display: inline-block;
  flex: none;
  width: 14px;
  height: 14px;
  border: 2px solid var(--ink);
}

.offer-note {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin: 0.5rem 0;
}

.offer-details summary {
  color: var(--accent);
  cursor: pointer;
  min-height: 44px;
  line-height: 44px;
  letter-spacing: 1px;
}

.offer-table-wrap {
  overflow-x: auto;
}

.offer-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.15rem;
}

.offer-table th,
.offer-table td {
  text-align: left;
  font-weight: normal;
  padding: 0.2rem 0.5rem 0.2rem 0;
  border-bottom: 2px solid var(--bg-alt);
  vertical-align: top;
}

.offer-table th {
  color: var(--text-muted);
  white-space: pre-wrap;
}

.offer-table thead th {
  color: var(--gold);
}

.offer-table .num {
  text-align: right;
  white-space: nowrap;
}

.offer-notes {
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.offer-costs-total {
  margin-top: 0.75rem;
  color: var(--gold);
  letter-spacing: 1px;
}

.offer-tooltip {
  position: fixed;
  z-index: 100;
  pointer-events: none;
  background: var(--bg);
  border: 3px solid var(--bg-alt);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 0.3rem 0.6rem;
  font-size: 1.1rem;
  line-height: 1.4;
  max-width: 280px;
}

.offer-tooltip-title {
  color: var(--gold);
}

/* ── Admin: recruitment offers ── */
.offer-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.offer-cost-row {
  display: grid;
  grid-template-columns: 1fr 7rem 6rem auto;
  gap: 0.5rem;
  align-items: center;
}

.offer-cost-row input {
  min-width: 0;
}

.offer-cost-head {
  color: var(--text-muted);
  font-size: 1rem;
}

#offer-add-cost {
  align-self: flex-start;
}

.admin-row--wrap {
  flex-wrap: wrap;
}

.admin-row--wrap .admin-row-label {
  flex: 1 1 12rem;
}

.offer-status {
  font-size: 1rem;
  letter-spacing: 1px;
}

.offer-status--open {
  color: var(--green);
}

.offer-status--closed {
  color: var(--text-muted);
}

/* ── Responsive — REQ-COMPATIBILITY-0000, REQ-COMPATIBILITY-0001 ── */
@media (max-width: 480px) {
  html {
    scroll-padding-top: 150px;
  }

  .tagline {
    font-size: 0.52rem;
  }

  h2 {
    font-size: 0.65rem;
  }

  .logo {
    height: 2.25rem;
  }

  .brand-name {
    font-size: 0.7rem;
  }

  .nav-links a {
    font-size: 0.55rem;
  }

  section {
    padding: 1rem;
  }

  .team-list {
    /* Keep cards readable on the narrowest phones. */
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .split-row {
    grid-template-columns: 1fr;
  }

  .offer-controls,
  .offer-admin-grid {
    grid-template-columns: 1fr;
  }

  .offer-cost-row {
    grid-template-columns: 1fr 1fr;
  }

  .offer-cost-row .offer-cost-label {
    grid-column: 1 / -1;
  }

  .offer-cost-head {
    display: none;
  }

  .offer-hero-value {
    font-size: 1rem;
  }
}
