:root {
  --bg: #f5f7f2;
  --panel: #ffffff;
  --ink: #15251c;
  --muted: #5b6a61;
  --line: #dce4da;
  --primary: #1f6f50;
  --primary-strong: #155f44;
  --accent: #c2410c;
  --danger: #b91c1c;
  --success: #166534;
  --shadow: 0 10px 25px rgba(20, 40, 28, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: var(--primary-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 36px);
  background: #10251b;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  color: #fff;
  display: grid;
  line-height: 1.05;
}

.brand span {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.brand strong {
  font-size: 1rem;
}

.topbar nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 16px;
}

.topbar nav a {
  color: #eef7f0;
  font-size: 0.95rem;
}

.shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.page-head {
  margin: 0 0 18px;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

h2 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 12px;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(22px, 5vw, 40px);
  background: linear-gradient(135deg, #e7f0e6, #fff);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 18px;
}

.hero h2 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  max-width: 760px;
}

.landing-hero h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
}

.landing-intro {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: flex-start;
  justify-content: initial;
}

.landing-intro-copy {
  width: 100%;
}

.landing-association-logo {
  display: block;
  width: 190px;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(20, 40, 28, 0.14);
}

.landing-intro h1 {
  margin-bottom: 8px;
}

.landing-intro h2 {
  color: var(--primary-strong);
}

.landing-new {
  text-align: center;
}

.landing-new p {
  color: var(--muted);
}

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

.landing-role-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.landing-role-card p {
  color: var(--muted);
}

.landing-role-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.landing-role-icon {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.landing-role-button {
  width: 100%;
  min-height: 52px;
  font-size: 1.03rem;
}

.landing-learn-more .actions {
  margin-top: 10px;
}

.hero p {
  color: var(--muted);
  max-width: 720px;
}

.landing-intro p {
  max-width: 980px;
}

.grid {
  display: grid;
  gap: 16px;
}

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

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

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

.card,
.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 16px;
}

.stat {
  margin: 0 0 16px;
}

.stats .stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.stat strong {
  display: block;
  font-size: 2rem;
}

.stats .stat strong {
  order: 2;
  font-size: 1.4rem;
}

.stats .stat span {
  order: 1;
  color: var(--ink);
  font-weight: 800;
}

.stats .stat span::after {
  content: ":";
}

.stat span,
.muted,
.small {
  color: var(--muted);
}

.small {
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.manual {
  counter-reset: manual-page;
}

.guide-page .page-head h1 {
  font-size: clamp(1.45rem, 4.8vw, 2.15rem);
}

.manual [id] {
  scroll-margin-top: 110px;
}

.manual-cover {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 16px;
  text-align: center;
}

.manual-cover h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-bottom: 0;
}

.quick-guide .manual-subtitle {
  font-size: clamp(1rem, 3.5vw, 1.15rem);
}

.quick-guide-chooser {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: min(620px, 100%);
  margin: 0 auto;
}

.quick-guide-chooser .button {
  min-width: 0;
  padding-inline: 10px;
  text-align: center;
}

.manual-kicker {
  color: var(--primary-strong);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.manual-subtitle {
  color: var(--muted);
  font-size: 1.15rem;
}

.manual-cover .actions {
  justify-content: center;
}

.manual-meta,
.term-list,
.compact-details {
  display: grid;
  gap: 10px;
}

.manual-meta div,
.term-list div {
  display: grid;
  grid-template-columns: minmax(140px, 0.35fr) 1fr;
  gap: 10px;
  text-align: left;
}

.manual-meta {
  width: min(520px, 100%);
  margin: 0 auto;
}

.manual dt,
.manual dd {
  margin: 0;
}

.manual dt {
  font-weight: 800;
}

.manual-page {
  counter-increment: manual-page;
  position: relative;
}

.manual-page::after {
  content: "Page " counter(manual-page);
  position: absolute;
  right: 18px;
  bottom: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.manual-page h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.manual h3 {
  margin-top: 18px;
}

.toc ol {
  display: grid;
  gap: 8px;
  padding-left: 24px;
}

.toc li {
  padding-right: 12px;
}

.toc li span {
  float: right;
  color: var(--muted);
}

.callout,
.example-box,
.screenshot-placeholder {
  border: 1px solid var(--line);
  border-left: 6px solid var(--primary);
  border-radius: 8px;
  padding: 14px;
  margin: 16px 0;
  background: #f8fbf7;
}

.callout strong,
.example-box strong {
  display: block;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

.callout.warning {
  border-left-color: var(--danger);
  background: #fff7f7;
}

.callout.note {
  border-left-color: #2563eb;
  background: #f7fbff;
}

.callout.tip {
  border-left-color: var(--success);
}

.screenshot-placeholder {
  border-left-color: var(--accent);
  display: grid;
  gap: 8px;
}

.screenshot-placeholder div {
  min-height: 120px;
  display: grid;
  place-items: center;
  text-align: center;
  background: repeating-linear-gradient(135deg, #f7f4ef, #f7f4ef 10px, #efe7dd 10px, #efe7dd 20px);
  border: 1px dashed #c9b9a7;
  border-radius: 6px;
  padding: 16px;
}

.screenshot-placeholder span,
.screenshot-placeholder small {
  display: block;
}

.screenshot-placeholder figcaption {
  color: var(--muted);
}

.flowchart {
  display: grid;
  gap: 8px;
  justify-items: center;
  margin: 18px 0;
}

.flowchart span {
  width: min(520px, 100%);
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 800;
  text-align: center;
}

.flowchart b {
  color: var(--primary-strong);
}

.flowchart.horizontal {
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
}

.flowchart.horizontal span {
  width: auto;
}

.big-steps li {
  margin-bottom: 8px;
  font-weight: 700;
}

.instructions-page .page-head h1 {
  font-size: clamp(1.7rem, 6vw, 2.5rem);
}

.instructions-intro {
  display: grid;
  gap: 18px;
}

.instruction-section {
  scroll-margin-top: 120px;
}

.instruction-section h2 {
  font-size: clamp(1.35rem, 4.5vw, 1.85rem);
}

.instruction-section p {
  max-width: 760px;
}

.instruction-shot {
  margin: 18px 0 0;
}

.instruction-shot a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.instruction-shot div,
.instruction-lightbox-panel div {
  min-height: 180px;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 22px;
  border: 1px dashed #c9b9a7;
  border-radius: 8px;
  background: repeating-linear-gradient(135deg, #f7f4ef, #f7f4ef 10px, #efe7dd 10px, #efe7dd 20px);
  text-align: center;
}

.instruction-shot strong,
.instruction-lightbox-panel strong {
  display: block;
  color: var(--primary-strong);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.instruction-shot span,
.instruction-lightbox-panel span {
  display: block;
  font-size: clamp(1.1rem, 4vw, 1.4rem);
  font-weight: 800;
}

.instruction-shot small,
.instruction-lightbox-panel small {
  color: var(--muted);
}

.instruction-shot figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.instruction-lightbox {
  display: none;
}

.instruction-lightbox:target {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(10, 20, 14, 0.82);
}

.instruction-lightbox-panel {
  width: min(920px, 100%);
  max-height: min(760px, 88vh);
  overflow: auto;
  padding: 16px;
  border-radius: 8px;
  background: #fff;
}

.instruction-lightbox-panel div {
  min-height: min(520px, 68vh);
}

.instruction-lightbox-panel p {
  margin: 12px 0 0;
  color: var(--muted);
}

.instruction-lightbox-close {
  position: fixed;
  top: 14px;
  right: 14px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.instruction-links {
  margin-top: 16px;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.button.primary,
button.primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.button.danger,
button.danger {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}

.start-hunting-button {
  width: 100%;
  min-height: 54px;
  font-size: 1.05rem;
}

.success-text {
  color: var(--success);
  font-weight: 800;
}

.button:hover,
button:hover {
  text-decoration: none;
  border-color: var(--primary);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.form {
  display: grid;
  gap: 14px;
}

.form.narrow {
  max-width: 480px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cbd6cc;
  border-radius: 7px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.check,
.checks .check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.check input {
  width: auto;
  min-height: auto;
}

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

.filters {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  gap: 12px;
  align-items: end;
}

.leaderboard-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
}

.leaderboard-filters label {
  width: max-content;
}

.leaderboard-filters input,
.leaderboard-filters select {
  width: auto;
}

.leaderboard-filters select[name="period"] {
  min-width: 13ch;
}

.leaderboard-filters input[type="date"] {
  min-width: 12.5ch;
}

.leaderboard-filters select[name="transmitter_id"] {
  max-width: 22ch;
}

.leaderboard-filters input[name="callsign"] {
  width: 10ch;
}

.leaderboard-filters input[name="hunter_name"] {
  width: 14ch;
}

.table-wrap {
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
}

.leaderboard-phone-note {
  font-weight: 800;
  margin-bottom: 12px;
}

.leaderboard-panel {
  padding: 12px;
}

.leaderboard-scroll {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.leaderboard-table {
  min-width: 900px;
}

.leaderboard-table th,
.leaderboard-table td {
  white-space: nowrap;
}

.leaderboard-table th:nth-child(2),
.leaderboard-table td:nth-child(2) {
  min-width: 150px;
  white-space: normal;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.88rem;
  text-transform: uppercase;
}

.list {
  display: grid;
  gap: 10px;
}

.row,
.row-link {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfdfb;
}

.row-link:hover {
  text-decoration: none;
  border-color: var(--primary);
}

.compact .row {
  padding: 10px;
}

.row span,
.row-link span {
  color: var(--muted);
  font-size: 0.94rem;
}

.finder-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: baseline;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfdfb;
}

.finder-row time {
  color: var(--muted);
  font-size: 0.94rem;
}

.hunt-side-stack {
  display: grid;
  gap: 16px;
}

.logsheet-link-panel {
  text-align: center;
}

.logsheet-link-panel .button {
  width: 100%;
}

.leader-mini {
  display: grid;
  gap: 8px;
  padding-left: 20px;
}

.award-list {
  display: grid;
  gap: 9px;
  padding-left: 24px;
}

.award-note {
  display: inline-block;
  margin-left: 6px;
  color: var(--muted);
  font-size: 0.94rem;
}

.leader-mini li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.8rem;
  font-weight: 800;
  background: #e9efe9;
  color: #244434;
}

.badge-active {
  background: #dcfce7;
  color: #14532d;
}

.badge-upcoming {
  background: #fef9c3;
  color: #854d0e;
}

.badge-paused {
  background: #ffedd5;
  color: #9a3412;
}

.badge-closed {
  background: #e0f2fe;
  color: #075985;
}

.badge-cancelled,
.badge-retired {
  background: #fee2e2;
  color: #991b1b;
}

.notice,
.error,
.success,
.error-box,
.device-permissions-notice,
.permission-error {
  border-radius: 8px;
  padding: 12px;
}

.notice {
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.error,
.error-box {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: var(--danger);
}

.success {
  background: #dcfce7;
  border-color: #bbf7d0;
}

.device-permissions-notice {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.device-permissions-notice h3 {
  margin-bottom: 6px;
}

.permission-error {
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.permission-error .actions {
  margin-bottom: 0;
}

.gps-panel {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #bed6c4;
  border-radius: 8px;
  background: #edf8ef;
}

.map {
  width: 100%;
  min-height: 420px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.map-planner {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
}

.event-type-picker {
  display: grid;
  gap: 14px;
}

.event-type-picker [hidden] {
  display: none !important;
}

.event-type-description p {
  margin-bottom: 0;
}

.map-planner h3 {
  margin: 0;
}

.hunt-planning-editor {
  min-height: 460px;
}

.map-point-controls,
.map-point-row {
  display: grid;
  grid-template-columns: minmax(170px, 0.8fr) minmax(220px, 1.4fr) auto;
  gap: 10px;
  align-items: end;
}

.map-coordinate-controls {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) repeat(3, auto);
  gap: 10px;
  align-items: end;
}

.map-coordinate-controls input {
  min-width: 0;
}

.map-coordinate-error {
  margin: 0;
}

.map-point-list {
  display: grid;
  gap: 8px;
}

.map-point-row {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.map-point-row input,
.map-point-row select {
  min-width: 0;
}

.map-popup-coordinates {
  margin: 6px 0 0;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.map-popup-photo {
  display: block;
  width: min(240px, 100%);
  height: auto;
  margin-top: 8px;
  border-radius: 6px;
}

.hunt-map-actions {
  margin-top: 12px;
}

.small-map {
  min-height: 260px;
  margin-top: 12px;
}

.qr-card {
  text-align: center;
}

.qr svg {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
}

.qr canvas {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
}

.radio-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.radio-card legend {
  font-weight: 800;
  padding: 0 6px;
}

.read-only-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
}

.exclusive-location-fields {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
}

.exclusive-location-fields input:disabled {
  background: #eef1ed;
  color: var(--muted);
  cursor: not-allowed;
}

.hunt-type-detail .small {
  margin-left: 6px;
}

.responsive-photo {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.hunt-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 456px));
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}

.hunt-photo-card {
  width: 100%;
  margin-bottom: 0;
}

.row-placement {
  background: #dcfce7;
}

.row-ftf {
  background: #dbeafe;
}

.row-retrieval {
  background: #fee2e2;
}

.sort-icon {
  min-height: 24px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--primary);
  font-size: 0.78rem;
}

.mini-form textarea {
  min-height: 70px;
}

.json-box {
  min-height: 520px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.matrix-title {
  text-align: center;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.matrix-phone-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: 0;
}

.matrix-heading {
  text-align: center;
  font-weight: 800;
}

.matrix-table th,
.matrix-table td {
  text-align: center;
}

.heat-0,
.heat-1 {
  background: #dcfce7;
}

.heat-2 {
  background: #fef9c3;
}

.heat-3 {
  background: #fed7aa;
}

.heat-4 {
  background: #fecaca;
}

.tx-tag {
  width: min(440px, 100%);
  margin: 20px auto;
  padding: 24px;
  text-align: center;
  background: #fff;
  border: 3px solid #111;
  border-radius: 8px;
}

.tx-tag h1 {
  font-size: 2rem;
}

.hider-key-tag {
  border-color: var(--accent);
}

.tag-kicker {
  color: var(--accent);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.inline-actions button {
  min-height: 34px;
  padding: 6px 9px;
  font-size: 0.85rem;
}

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

.hider-workflow {
  display: grid;
  gap: 16px;
}

.upcoming-hunts-panel {
  display: grid;
  gap: 12px;
}

.hunt-status-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.coordinator-control-list {
  display: grid;
  gap: 16px;
}

.coordinator-control-card {
  margin-bottom: 0;
}

.coordinator-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.coordinator-checklist legend {
  padding: 0 6px;
  font-weight: 800;
}

.upcoming-hunt-list {
  display: grid;
  gap: 12px;
}

.upcoming-hunt {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
}

.upcoming-hunt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.upcoming-hunt-head h3 {
  margin: 0;
}

.upcoming-transmitter-hunts {
  margin: 0 0 16px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.upcoming-transmitter-hunts summary {
  color: var(--primary-strong);
  cursor: pointer;
  font-weight: 800;
  margin-bottom: 10px;
}

.compact-details {
  display: grid;
  gap: 7px;
  margin: 0;
}

.compact-details div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
}

.compact-details dt {
  color: var(--muted);
  font-weight: 800;
}

.compact-details dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.transmitter-stack {
  display: grid;
  gap: 16px;
}

.transmitter-panel {
  display: grid;
  gap: 14px;
}

.transmitter-panel h2 {
  margin-bottom: 0;
}

.transmitter-details {
  display: grid;
  gap: 8px;
  margin: 0;
}

.transmitter-details div {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.transmitter-details dt {
  color: var(--muted);
  font-weight: 800;
  flex: 0 0 auto;
}

.transmitter-details dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.description-block h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.hunt-detail-multiline {
  white-space: pre-wrap;
}

.hunt-log-selector {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
}

.hunt-log-selector label {
  width: min(100%, 520px);
}

.hunt-log-table th {
  text-align: center;
}

.hunt-log-summary {
  display: grid;
  gap: 8px;
}

.hunt-log-summary p {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
  margin: 0;
}

.hunt-log-summary strong {
  flex: 0 0 auto;
}

.hunt-log-summary span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.hunter-summary-lines {
  display: grid;
  gap: 8px;
}

.hunter-summary-lines p {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
  margin: 0;
}

.hunter-summary-lines h2 {
  margin-top: 12px;
  margin-bottom: 2px;
}

.hunter-directory {
  display: grid;
  gap: 10px;
}

.hunter-directory-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
}

.hunter-directory-row div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.hunter-directory-row span {
  color: var(--muted);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.hunter-directory-row .button {
  flex: 0 0 auto;
}

.private-coords {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  background: #f1f5f9;
  padding: 8px;
  border-radius: 6px;
  overflow-wrap: anywhere;
}

.footer {
  padding: 24px;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero,
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .grid.two,
  .grid.three,
  .grid.four,
  .landing-role-grid,
  .checks {
    grid-template-columns: 1fr;
  }

  .filters:not(.leaderboard-filters) {
    grid-template-columns: 1fr;
  }

  .topbar nav {
    justify-content: flex-start;
  }

  .read-only-grid {
    grid-template-columns: 1fr;
  }

  .leaderboard-panel {
    padding: 8px;
  }

  .leaderboard-table {
    min-width: 820px;
    font-size: 0.92rem;
  }

  .leaderboard-table th,
  .leaderboard-table td {
    padding: 8px;
  }

  .stats.grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .stats .stat {
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    padding: 8px 5px;
    text-align: center;
  }

  .stats .stat strong {
    font-size: 1.1rem;
    line-height: 1;
  }

  .stats .stat span {
    font-size: 0.7rem;
    line-height: 1.05;
    overflow-wrap: anywhere;
  }

  .stats .stat span::after {
    content: "";
  }

  .hunter-directory-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .hunter-directory-row .button {
    width: 100%;
  }

  .upcoming-hunt-head {
    align-items: stretch;
    flex-direction: column;
  }

  .upcoming-hunt-head .button {
    width: 100%;
  }

  .hunt-status-tabs .button {
    flex: 1 1 120px;
  }

  .coordinator-checklist {
    grid-template-columns: 1fr;
  }

  .map-point-controls,
  .map-point-row,
  .map-coordinate-controls {
    grid-template-columns: 1fr;
  }

  .landing-learn-more .button {
    width: 100%;
  }

  .landing-intro {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 16px;
  }

  .landing-association-logo {
    width: 120px;
  }

  .responsive-photo {
    max-width: none;
  }

  .hunt-photo-grid {
    grid-template-columns: 1fr;
  }

  .manual-meta div,
  .term-list div {
    grid-template-columns: 1fr;
  }

  .flowchart.horizontal {
    grid-template-columns: 1fr;
  }

  .quick-guide-chooser {
    grid-template-columns: 1fr;
  }

  .quick-guide .manual-cover {
    padding: 16px;
  }

  .quick-guide .manual-kicker {
    font-size: 0.78rem;
  }

  .manual [id] {
    scroll-margin-top: 190px;
  }

  .instruction-section {
    padding: 16px;
    scroll-margin-top: 190px;
  }

  .instruction-shot div {
    min-height: 140px;
    padding: 16px;
  }

  .instruction-links .button {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .landing-intro {
    grid-template-columns: 1fr;
  }

  .landing-association-logo {
    width: 112px;
  }
}

@media print {
  .topbar,
  .footer,
  .no-print {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .shell {
    width: 100%;
    padding: 0;
  }

  .tx-tag {
    box-shadow: none;
    page-break-inside: avoid;
  }

  .manual .card {
    border: 0;
    box-shadow: none;
  }

  .manual-page,
  .manual-cover {
    break-before: page;
    page-break-before: always;
    min-height: 9in;
  }

  .manual-cover:first-child {
    break-before: auto;
    page-break-before: auto;
  }

  .manual-page::after {
    bottom: 0;
  }

  .callout,
  .example-box,
  .screenshot-placeholder,
  .flowchart span {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .hunt-map-actions {
    display: none !important;
  }

  body.print-hunt-map .shell > *:not(.hunt-map-section) {
    display: none !important;
  }

  body.print-hunt-map .hunt-map-section {
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .map,
  .hunt-planning-editor {
    min-height: 6in;
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
