:root {
  --bg: #f7f5ef;
  --surface: #ffffff;
  --text: #1f2a1f;
  --muted: #5b665b;
  --line: #d9dccf;
  --accent: #2f6b3a;
  --accent-text: #ffffff;
  --danger: #a3302a;
  --ok: #2f6b3a;
  --notice-bg: #fff6d9;
  --notice-text: #5a4600;
  /* Form controls, scrollbars and date pickers follow light or dark mode. */
  color-scheme: light dark;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151a15;
    --surface: #1e251e;
    --text: #e8ece6;
    --muted: #a3ada3;
    --line: #36402f;
    --accent: #7fc28b;
    --accent-text: #10170f;
    --danger: #ff8a80;
    --ok: #7fc28b;
    --notice-bg: #3a3214;
    --notice-text: #f3e2a6;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

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

/* ---- Keyboard and screen-reader basics ---- */

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

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -3rem;
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  z-index: 10;
}

.skip-link:focus {
  top: 0.5rem;
}

/* ---- Landing page (the rest is in landing.css) ---- */

.lede {
  font-size: 1.2rem;
  margin: 0 0 0.75rem;
}

/* ---- App pages ---- */

.topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.brand {
  font-weight: 700;
  text-decoration: none;
}

.who {
  color: var(--muted);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.page {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1rem 1rem 3rem;
}

h1 {
  font-size: 1.6rem;
  margin: 0.5rem 0 0;
}

h2 {
  font-size: 1.2rem;
  margin: 0 0 0.75rem;
}

.subtitle {
  color: var(--muted);
  margin: 0 0 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  margin: 0 0 1rem;
}

.switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin: 0;
}

/* ---- Tabs ---- */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0 0 1rem;
}

.tabs button {
  border-radius: 999px;
  background: transparent;
}

.tabs button[aria-current="page"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}

/* ---- Forms ---- */

.field {
  margin: 0 0 1rem;
}

label,
.label,
legend {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0 0 1rem;
  padding: 0.75rem;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="number"],
input[type="file"],
select,
textarea {
  width: 100%;
  font: inherit;
  /* 16px or larger stops iPhones zooming in on focus. */
  font-size: max(1rem, 16px);
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
}

.row select {
  width: auto;
}

label.check {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-weight: 400;
  margin: 0 0 0.5rem;
}

label.check input {
  margin-top: 0.3rem;
  width: 1.1rem;
  height: 1.1rem;
}

.hint {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 0.4rem;
}

.notice {
  background: var(--notice-bg);
  color: var(--notice-text);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
}

button {
  font: inherit;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
}

button.danger {
  color: var(--danger);
  border-color: var(--danger);
}

button.link {
  border: none;
  background: none;
  color: var(--accent);
  text-decoration: underline;
  min-height: auto;
  padding: 0.25rem;
}

button:disabled {
  opacity: 0.5;
  cursor: default;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.row input[type="text"] {
  flex: 1 1 12rem;
  width: auto;
}

.row.spread {
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: nowrap;
}

.row.spread > div {
  min-width: 0;
  overflow-wrap: anywhere;
}

.status {
  margin: 0.5rem 0 0;
  min-height: 1.5em;
}

.status[data-kind="error"] {
  color: var(--danger);
  font-weight: 600;
}

.status[data-kind="ok"] {
  color: var(--ok);
}

/* ---- Lists ---- */

.list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list > li {
  border-top: 1px solid var(--line);
  padding: 0.75rem 0;
}

.list > li:first-child {
  border-top: none;
}

.list .empty {
  color: var(--muted);
}

.badge {
  display: inline-block;
  font-size: 0.8rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: var(--notice-bg);
  color: var(--notice-text);
  margin: 0;
}

.editor {
  margin-top: 0.75rem;
}

.logo-preview {
  max-width: 160px;
  max-height: 160px;
  display: block;
  margin: 0 0 0.75rem;
  border-radius: 8px;
}

/* ---- Wishlists ---- */

.item-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.item-text {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.item-text p {
  margin: 0.1rem 0 0.25rem;
}

.thumb {
  width: 56px;
  height: 56px;
  flex: none;
  object-fit: cover;
  border-radius: 8px;
  background: var(--bg);
}

.thumb.placeholder {
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  border: 1px solid var(--line);
}

.photo-preview {
  display: block;
  max-width: 100%;
  max-height: 240px;
  border-radius: 8px;
  margin: 0 0 0.75rem;
}

.badge.priority-high {
  background: var(--danger);
  color: var(--surface);
}

details > summary {
  cursor: pointer;
  font-weight: 600;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.history p {
  margin: 0;
}

.row .field {
  flex: 1 1 8rem;
}

/* ---- Public pages ---- */

.pta-header {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin: 0.5rem 0 0.75rem;
}

.pta-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex: none;
  border-radius: 8px;
  background: var(--surface);
}

.pta-header h1 {
  margin: 0;
  font-size: 1.4rem;
}

.pta-header .subtitle {
  margin: 0;
}

.public .lede {
  font-size: 1.05rem;
}

.year-group {
  margin-bottom: 1rem;
}

.year-group > summary {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  font-size: 1.25rem;
  font-weight: 700;
  padding: 0.5rem 0;
  cursor: pointer;
}

.year-group > summary .count {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.9rem;
}

.year-group > .list-section {
  margin-left: 0.5rem;
}

.list-section > summary {
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 1.1rem;
}

.list-section > summary .count {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.9rem;
  white-space: nowrap;
}

.item-grid {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.item-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  height: 100%;
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  background: var(--bg);
}

.item-card:hover,
.item-card:focus-visible {
  border-color: var(--accent);
}

.item-card img,
.item-card .photo-placeholder {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 6px;
  background: var(--surface);
}

.photo-placeholder {
  display: grid;
  place-items: center;
  font-size: 2.5rem;
}

.item-name {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.item-price {
  font-weight: 600;
  color: var(--accent);
}

.item-card .badge {
  align-self: flex-start;
}

.item-detail h1 {
  margin: 0.25rem 0 0.5rem;
}

.item-detail .item-price {
  font-size: 1.4rem;
  margin: 0.5rem 0;
}

.item-photo {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: 8px;
  margin: 0 0 0.75rem;
  background: var(--bg);
}

.site-footer {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1rem 1rem 3rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}

a.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
}

a.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
}

.address {
  white-space: pre-line;
  font-weight: 600;
  background: var(--bg);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
}

p.label {
  margin-bottom: 0.25rem;
}

.item-card .badge:not(.priority-high) {
  background: var(--line);
  color: var(--text);
}

/* ---- Pledges ---- */

.reference {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin: 0 0 0.5rem;
}

.progress {
  margin: 0.5rem 0;
}

.progress .hint {
  margin: 0.25rem 0 0;
}

.progress-bar {
  height: 10px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.progress-bar > span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
}

.item-card .progress {
  margin: 0.15rem 0 0;
}

.item-card .progress .hint {
  font-size: 0.8rem;
}

.badge.funded,
.item-card .badge.funded {
  background: var(--accent);
  color: var(--accent-text);
}

.ref {
  letter-spacing: 0.05em;
}

input[type="search"] {
  width: 100%;
  font: inherit;
  font-size: max(1rem, 16px);
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
}

.funding-summary {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  margin: 0 0 1rem;
}

.funding-summary .row {
  padding: 0.15rem 0;
}

.warning {
  background: var(--notice-bg);
  color: var(--danger);
  border-left: 4px solid var(--danger);
  border-radius: 6px;
  padding: 0.6rem 0.75rem;
  font-weight: 600;
  margin: -0.5rem 0 1rem;
}

/* ---- Bought and timeline ---- */

.indent {
  margin: 0 0 0.75rem 1.6rem;
}

.photo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
}

.photo-row img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
}

input[type="date"] {
  font: inherit;
  font-size: max(1rem, 16px);
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
}






/* ---- Feed ---- */

.feed > * {
  border-top: 1px solid var(--line);
  padding: 0.75rem 0;
}

.feed > *:first-child {
  border-top: none;
  padding-top: 0;
}

.feed-post h3 {
  margin: 0.15rem 0 0.5rem;
  font-size: 1.15rem;
}

.feed-post > .hint {
  margin: 0;
}

.post-body {
  white-space: pre-line;
  margin: 0.5rem 0 0;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.4rem;
  margin: 0.5rem 0;
}

.gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.feed-item > summary,
.feed-group > summary {
  list-style: none;
  cursor: pointer;
}

.feed-item > summary::-webkit-details-marker,
.feed-group > summary::-webkit-details-marker {
  display: none;
}

.feed-item > summary {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  font-weight: 400;
}

.feed-item > summary > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.feed-item-body {
  margin: 0.5rem 0 0 calc(56px + 0.75rem);
}

.feed-group > summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  font-weight: 400;
}

.feed-group > summary strong::after {
  content: " ›";
  color: var(--muted);
}

.feed-group[open] > summary strong::after {
  content: " ⌄";
}

.thumb-row {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  margin-top: 0.25rem;
}

.thumb-row img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
}

.thumb-row .more {
  color: var(--muted);
  font-size: 0.9rem;
}

.feed-group-body {
  margin: 0.5rem 0 0 0.75rem;
  border-left: 2px solid var(--line);
  padding-left: 0.75rem;
}

.feed-group-body > .feed-item {
  padding: 0.4rem 0;
}

/* ---- Basket ---- */

.basket-add {
  border-top: 1px solid var(--line);
  margin-top: 1rem;
  padding-top: 0.5rem;
}

label.inline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
}

label.inline select {
  width: auto;
  min-width: 4rem;
}

.basket-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -2px 8px rgb(0 0 0 / 8%);
}

.basket-bar[hidden] {
  display: none;
}

/* Room at the bottom so the bar doesn't cover the footer. */
body:has(.basket-bar:not([hidden])) {
  padding-bottom: 4.5rem;
}

.basket-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.basket-total {
  font-size: 1.2rem;
  font-weight: 700;
}

/* ---- Sharing ---- */

.share-preview {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  margin: 0.75rem 0;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.share-qr {
  display: block;
  width: 180px;
  height: 180px;
  margin: 0.75rem 0;
}

.share-bar {
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.75rem;
  margin-bottom: 0.5rem;
}

/* ---- Importing links ---- */

.import-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.import-row input[type="text"] {
  flex: 1 1 12rem;
}

.import-row input[type="number"] {
  width: 5rem;
}

li.muted {
  opacity: 0.6;
}

/* ---- Item stages ---- */

.badge.stage-paid,
.badge.stage-on-its-way,
.badge.stage-arrived {
  background: var(--accent);
  color: var(--accent-text);
}

.card.stage .stage-label {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: var(--accent);
}

details.more > summary {
  cursor: pointer;
  font-weight: 600;
  margin: 0.5rem 0;
}

details.card.more > .section {
  border-top: 1px solid var(--line);
  margin-top: 1rem;
  padding-top: 0.5rem;
}

.subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin: 0 0 0.75rem;
}

.subtabs button[aria-current="page"] {
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
}

.item-text .badge {
  margin: 0.15rem 0.25rem 0 0;
}

/* =====================================================================
   Design refresh: softer cards, a warm second colour, an app-style tab
   bar on phones, loading placeholders and each PTA's own colour.
   ===================================================================== */

:root {
  --bg: #f6f4ee;
  --warm: #b8502a; /* buttons that help: Buy, Pledge (white text passes AA) */
  --warm-text: #ffffff;
  --warm-soft: #fcebe2;
  --accent-soft: #e6f0e7;
  --shadow: 0 1px 2px rgb(31 42 31 / 6%), 0 4px 14px rgb(31 42 31 / 6%);
  --radius: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151a15;
    --warm: #f0915f;
    --warm-text: #1a0f08;
    --warm-soft: #3a2418;
    --accent-soft: #223024;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%);
  }
}

/* Each PTA can choose its colour (Settings). All pass contrast checks. */
:root[data-accent="blue"] { --accent: #1f5fa8; --accent-soft: #e3ecf7; }
:root[data-accent="purple"] { --accent: #6b3fa0; --accent-soft: #eee6f6; }
:root[data-accent="red"] { --accent: #a8261e; --accent-soft: #f7e3e1; }
:root[data-accent="teal"] { --accent: #0f6a6a; --accent-soft: #dff0ef; }
:root[data-accent="navy"] { --accent: #22355e; --accent-soft: #e2e7f1; }
:root[data-accent="pink"] { --accent: #a32f6b; --accent-soft: #f6e2ec; }
:root[data-accent="orange"] { --accent: #9a4510; --accent-soft: #f6e6da; }
@media (prefers-color-scheme: dark) {
  :root[data-accent="blue"] { --accent: #8bb8ef; --accent-soft: #1d2a3b; }
  :root[data-accent="purple"] { --accent: #c3a3ea; --accent-soft: #2b2238; }
  :root[data-accent="red"] { --accent: #f1998f; --accent-soft: #3a2220; }
  :root[data-accent="teal"] { --accent: #7fd1cf; --accent-soft: #1b3131; }
  :root[data-accent="navy"] { --accent: #a9bce6; --accent-soft: #1f2635; }
  :root[data-accent="pink"] { --accent: #ef9dc6; --accent-soft: #3a2230; }
  :root[data-accent="orange"] { --accent: #f2ad7c; --accent-soft: #3a2a1d; }
}

body {
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  letter-spacing: -0.01em;
}

h1 {
  font-weight: 750;
}

.card {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem;
}

/* A card inside a card is just a section, not another box. */
.card .card {
  box-shadow: none;
  padding: 0;
  background: transparent;
}

button,
a.button {
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
}

button.primary,
a.button.primary {
  box-shadow: 0 1px 2px rgb(0 0 0 / 12%);
}

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

/* Buttons that help the school (Buy this, Pledge, Donate) are warm. */
.public button.primary,
.public a.button.primary {
  background: var(--warm);
  border-color: var(--warm);
  color: var(--warm-text);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="number"],
input[type="search"],
select,
textarea {
  border-radius: 10px;
}

/* ---- Brand ---- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text);
}

.brand img {
  width: 26px;
  height: 26px;
}

/* ---- Loading placeholders ---- */

.skeleton {
  display: block;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--line) 0%, var(--surface) 50%, var(--line) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  opacity: 0.6;
}

@keyframes shimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton { animation: none; }
}

.skeleton-page { padding-top: 0.5rem; }
.skeleton-page .skeleton { margin: 0 0 0.75rem; }
.sk-title { height: 1.8rem; width: 70%; }
.sk-line { height: 1rem; width: 90%; }
.sk-line.short { width: 55%; }
.sk-card { height: 9rem; border-radius: var(--radius); }
.sk-photo { height: 14rem; border-radius: var(--radius); }

/* ---- Toasts and the "are you sure?" box ---- */

.toasts {
  position: fixed;
  left: 50%;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 50;
  width: min(92vw, 28rem);
  pointer-events: none;
}

body:has(.bottom-nav) .toasts,
body:has(.basket-bar:not([hidden])) .toasts,
body:has(.action-bar:not([hidden])) .toasts {
  bottom: calc(5rem + env(safe-area-inset-bottom));
}

.toast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem 0.75rem 1.1rem;
  border-radius: 14px;
  background: #1f2a1f;
  color: #fff;
  box-shadow: 0 6px 24px rgb(0 0 0 / 22%);
  pointer-events: auto;
  animation: toast-in 0.25s ease-out;
}

.toast.leaving {
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.25s;
}

.toast-undo {
  min-height: 36px;
  padding: 0.3rem 0.9rem;
  background: transparent;
  border-color: rgb(255 255 255 / 50%);
  color: #fff;
  font-weight: 700;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px); }
}

dialog.ask {
  border: none;
  border-radius: var(--radius);
  padding: 1.25rem;
  max-width: min(92vw, 26rem);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 12px 40px rgb(0 0 0 / 25%);
}

dialog.ask::backdrop {
  background: rgb(0 0 0 / 35%);
}

dialog.ask p {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

/* ---- Staff dashboard: app-style bar of tabs at the bottom on phones ---- */

.tabs .icon {
  flex: none;
}

.tabs button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: none;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.tab-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.3rem;
  height: 1.3rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--warm);
  color: var(--warm-text);
  font-size: 0.75rem;
  font-weight: 700;
}

@media (max-width: 720px) {
  .tabs.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    margin: 0;
    padding: 0.3rem 0.25rem calc(0.3rem + env(safe-area-inset-bottom));
    gap: 0;
    flex-wrap: nowrap;
    background: var(--surface);
    box-shadow: 0 -1px 0 var(--line), 0 -6px 18px rgb(0 0 0 / 6%);
  }

  .tabs.bottom-nav button {
    flex: 1 1 0;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
    padding: 0.35rem 0.1rem;
    border-radius: 12px;
    box-shadow: none;
    background: transparent;
    color: var(--muted);
    font-size: 0.72rem;
    position: relative;
  }

  .tabs.bottom-nav button[aria-current="page"] {
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 700;
  }

  .tabs.bottom-nav .tab-count {
    position: absolute;
    top: 0.1rem;
    left: calc(50% + 0.4rem);
  }

  body:has(.bottom-nav) main {
    padding-bottom: 6rem;
  }
}

.dash-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0.25rem 0 0.75rem;
}

.dash-title h1 {
  font-size: 1.3rem;
  margin: 0;
}

/* ---- Getting started ---- */

.checklist {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}

.checklist li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.5rem 0;
  border-top: 1px solid var(--line);
}

.checklist li:first-child {
  border-top: none;
}

.checklist .tick {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  border: 2px solid var(--line);
  color: transparent;
}

.checklist li.done .tick {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}

.checklist li.done .step-text {
  color: var(--muted);
  text-decoration: line-through;
}

.progress-dots {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---- Empty pages with the ant ---- */

.empty-state {
  text-align: center;
  padding: 1.5rem 1rem;
}

.empty-state img {
  width: 150px;
  height: auto;
  margin: 0 auto 0.5rem;
  display: block;
}

.empty-state h2 {
  margin-bottom: 0.25rem;
}

/* ---- Parents' school page ---- */

.public .page {
  padding-top: 0;
}

.school-hero {
  margin: 0 -1rem 1rem;
  padding: 1.25rem 1rem 1rem;
  background: var(--accent-soft);
  border-radius: 0 0 24px 24px;
}

.school-hero .pta-header {
  margin: 0 0 0.6rem;
}

.school-hero .lede {
  margin: 0;
}

.thanks-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow);
}

.most-needed h2 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.strip {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 1rem;
  padding: 0.25rem 0.25rem 0.75rem;
  margin: 0 -1rem 0.5rem;
  padding-left: 1rem;
  padding-right: 1rem;
  list-style: none;
}

.strip > li {
  flex: 0 0 150px;
  scroll-snap-align: start;
}

.item-card {
  border: none;
  box-shadow: var(--shadow);
  background: var(--surface);
}

.list-section {
  padding: 0.25rem 1.1rem;
}

.list-section[open] {
  padding-bottom: 1.1rem;
}

/* ---- Item page: the main action stays in reach ---- */

.action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
  background: var(--surface);
  box-shadow: 0 -1px 0 var(--line), 0 -6px 18px rgb(0 0 0 / 8%);
}

.action-bar[hidden] {
  display: none;
}

.action-bar .price {
  font-weight: 700;
  font-size: 1.1rem;
}

body:has(.action-bar:not([hidden])) {
  padding-bottom: 5rem;
}

.basket-bar {
  box-shadow: 0 -1px 0 var(--line), 0 -6px 18px rgb(0 0 0 / 8%);
  border-top: none;
}

/* ---- A thank-you moment ---- */

.celebrate {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 60;
}

.celebrate span {
  position: absolute;
  top: -2rem;
  font-size: 1.6rem;
  animation: fall 2.6s ease-in forwards;
}

@keyframes fall {
  to { transform: translateY(110vh) rotate(540deg); opacity: 0.2; }
}

@media (prefers-reduced-motion: reduce) {
  .celebrate { display: none; }
}

/* ---- Footer ---- */

.site-footer {
  text-align: center;
}

.site-footer .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.site-footer .footer-brand img {
  width: 20px;
  height: 20px;
}

/* ---- Colour choice in Settings ---- */

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border: none;
  padding: 0;
}

.swatch {
  position: relative;
}

.swatch input {
  position: absolute;
  opacity: 0;
  inset: 0;
}

.swatch span {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px rgb(255 255 255 / 70%);
  cursor: pointer;
}

.swatch input:checked + span {
  outline: 3px solid var(--text);
  outline-offset: 2px;
}

.swatch input:focus-visible + span {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

/* Both bars at once: the basket sits above the item's action bar. */
body:has(.action-bar:not([hidden])) .basket-bar {
  bottom: calc(4.2rem + env(safe-area-inset-bottom));
}

/* Adding an item: pasting a link is the big first step. */
.link-step {
  background: var(--accent-soft);
  border-radius: 12px;
  padding: 0.9rem;
  margin: 0 0 1rem;
}

.link-step .field {
  margin-bottom: 0.6rem;
}

/* ---- School page: Wishlists / Good news tabs ---- */

button.thanks-chip {
  border: none;
  min-height: 40px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
}

.page-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  margin: 0 0 1rem;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow);
  scroll-margin-top: 0.75rem;
}

.page-tabs button {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  box-shadow: none;
}

.page-tabs button[aria-selected="true"] {
  background: var(--accent);
  color: var(--accent-text);
}

/* ---- Good news: a timeline down the middle ---- */

.timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0.25rem 0 0.5rem;
}

/* The line. */
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  margin-left: -1.5px;
  border-radius: 3px;
  background: var(--accent-soft);
}

.tl-month {
  position: relative;
  text-align: center;
  margin: 0.75rem 0;
}

.tl-month span {
  display: inline-block;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 0.85rem;
  font-weight: 700;
}

.tl-row {
  position: relative;
  display: flex;
  margin: 0 0 0.9rem;
}

.tl-left {
  justify-content: flex-start;
}

.tl-right {
  justify-content: flex-end;
}

.tl-left > *,
.tl-right > * {
  width: calc(50% - 1rem);
}

/* The dot on the line for each thing bought. */
.tl-left::after,
.tl-right::after {
  content: "";
  position: absolute;
  top: 1.1rem;
  left: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--accent);
}

.tl-card,
.tl-post {
  position: relative;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 0.65rem 0.7rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* A little pointer from each card towards the line. */
.tl-left .tl-card::after,
.tl-right .tl-card::after {
  content: "";
  position: absolute;
  top: 1.15rem;
  width: 10px;
  height: 10px;
  background: var(--surface);
  transform: rotate(45deg);
}

.tl-left .tl-card::after {
  right: -5px;
}

.tl-right .tl-card::after {
  left: -5px;
}

.tl-center {
  justify-content: center;
}

.tl-center > .tl-post {
  width: 100%;
  border-top: 4px solid var(--warm);
}

.tl-post h3 {
  margin: 0.1rem 0 0.4rem;
}

.tl-date {
  margin: 0 0 0.3rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tl-head {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.tl-head .thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
}

.tl-head .thumb.placeholder {
  font-size: 2rem;
}

.tl-head > span {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.tl-head .hint {
  font-size: 0.8rem;
  margin: 0;
}

.tl-card > summary {
  display: block;
  list-style: none;
  cursor: pointer;
  min-height: 0;
  font-weight: 400;
}

.tl-card > summary::-webkit-details-marker {
  display: none;
}

/* Make it obvious a card opens. */
.tl-toggle {
  display: inline-block;
  margin-top: 0.45rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
}

.tl-card > summary:hover .tl-toggle,
.tl-card > summary:focus-visible .tl-toggle {
  background: var(--accent);
  color: var(--accent-text);
}

.tl-toggle .when-open,
.tl-card[open] > summary .tl-toggle .when-closed {
  display: none;
}

.tl-card[open] > summary .tl-toggle .when-open {
  display: inline;
}

.tl-more {
  margin-top: 0.6rem;
}

.tl-more .gallery {
  grid-template-columns: 1fr;
}

.tl-group > summary strong {
  display: block;
}

.tl-group .thumb-row {
  margin-top: 0.35rem;
}

/* Inside an opened group, each thing is a plain row, not another card. */
.tl-group .tl-more .tl-card {
  box-shadow: none;
  padding: 0.5rem 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
}

.tl-group .tl-more .tl-card::after {
  display: none;
}

@media (min-width: 640px) {
  .tl-left > *,
  .tl-right > * {
    width: calc(50% - 1.5rem);
  }

  .tl-center > .tl-post {
    width: 85%;
  }
}

.news-section h2 {
  text-align: center;
  margin: 0.25rem 0 0.5rem;
}

/* Stagger the two sides, so the cards tuck in beside each other. */
.tl-left + .tl-right,
.tl-right + .tl-left {
  margin-top: -4rem;
}

/* No photo: a small party popper rather than a big empty box. */
.tl-head .thumb.placeholder {
  aspect-ratio: auto;
  height: 2.6rem;
  font-size: 1.4rem;
}

/* Inside an opened group: compact rows with a small picture. */
.tl-group .tl-more .tl-head {
  flex-direction: row;
  align-items: center;
}

.tl-group .tl-more .tl-head .thumb {
  width: 44px;
  height: 44px;
  aspect-ratio: 1;
  flex: none;
}

.tl-group .tl-more .tl-date {
  margin-bottom: 0.2rem;
}

/* Once a card is open its photos show in full, so hide the small one. */
.tl-card[open] > summary .tl-head img.thumb {
  display: none;
}

/* Only break a word if it's too long for the card on its own. */
.tl-card,
.tl-post {
  overflow-wrap: break-word;
  hyphens: auto;
}

.tl-group .tl-more .tl-head .thumb {
  width: 36px;
  height: 36px;
}

/* ---- Year groups: a preview when folded away ---- */

.year-group > summary {
  display: block;
  list-style: none;
  font-size: 1rem;
  font-weight: 400;
  padding: 0.75rem 0.9rem;
  margin: 0 0 0.75rem;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.year-group > summary::-webkit-details-marker {
  display: none;
}

.group-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.group-top .list-title {
  flex: 1;
  font-size: 1.25rem;
  font-weight: 700;
}

.group-top .count {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.group-top .tl-toggle {
  margin-top: 0;
  flex: none;
}

.year-group .tl-toggle .when-open,
.year-group[open] > summary .tl-toggle .when-closed {
  display: none;
}

.year-group[open] > summary .tl-toggle .when-open {
  display: inline;
}

.year-group > summary:hover .tl-toggle,
.year-group > summary:focus-visible .tl-toggle {
  background: var(--accent);
  color: var(--accent-text);
}

/* ---- Settings > Classes: classes under their year groups ---- */

.class-section h2 {
  margin: 0;
}

.section-head {
  align-items: center;
  margin-bottom: 0.25rem;
}

.class-list {
  margin: 0.25rem 0 0.5rem;
}

.class-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.class-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.class-text .hint {
  margin: 0;
}

.class-row .row {
  flex-wrap: nowrap;
  gap: 0.25rem;
}

button.icon-button {
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border: none;
  background: var(--bg);
  box-shadow: none;
}

.edit-box {
  margin-top: 0.6rem;
  padding: 0.75rem;
  border-radius: 12px;
  background: var(--bg);
}

.add-inline {
  font-weight: 700;
  text-decoration: none;
}

.add-box {
  margin-top: 0.4rem;
}

.toast[data-kind="error"] {
  background: var(--danger);
}

/* ---- Superadmin: wider, with a data table and the activity list ---- */

.super .page {
  max-width: 72rem;
}

.super .tabs button {
  border-radius: 999px;
}

.super .tabs button[aria-current="page"] {
  background: var(--accent);
  color: var(--accent-text);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0 0.75rem;
}

.table-wrap {
  padding: 0;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th,
.data-table td {
  padding: 0.55rem 0.7rem;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}

.data-table td:nth-child(2) {
  white-space: normal;
  min-width: 12rem;
}

.data-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.data-table thead th {
  position: sticky;
  top: 0;
  background: var(--surface);
}

.data-table tbody tr:nth-child(even) {
  background: var(--bg);
}

.data-table tfoot th,
.data-table tfoot td {
  font-weight: 700;
  border-top: 2px solid var(--text);
  border-bottom: none;
  background: var(--accent-soft);
}

button.sort {
  min-height: 0;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
  font-weight: 700;
  color: var(--text);
}

.activity-day h2 {
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.activity-row {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.activity-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--bg);
}

.activity-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.activity-text .hint {
  margin: 0.1rem 0 0;
}

/* ---- Feed: choosing the kind of post ---- */

.type-choices {
  display: grid;
  gap: 0.5rem;
  border: none;
  padding: 0;
}

.type-choice {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.75rem;
  border: 2px solid var(--line);
  border-radius: 12px;
  font-weight: 400;
  cursor: pointer;
}

.type-choice:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.type-choice input {
  margin-top: 0.25rem;
}

.type-choice > span {
  display: flex;
  flex-direction: column;
}

.type-choice .hint {
  margin: 0.1rem 0 0;
}

.badge.type-news {
  background: var(--warm-soft);
  color: var(--warm);
}

.badge.type-got {
  background: var(--accent-soft);
  color: var(--accent);
}

/* ---- Good news, take two: every card full width, line on the left ---- */

.timeline::before {
  left: 0.85rem;
  margin-left: -1.5px;
}

.tl-month {
  text-align: left;
}

.tl-row {
  display: block;
  padding-left: 2.1rem;
}

.tl-row::after {
  content: "";
  position: absolute;
  top: 1rem;
  left: 0.85rem;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--accent);
}

.tl-row.tl-news::after {
  border-color: var(--warm);
}

.tl-row > * {
  width: 100%;
}

.tl-row .tl-post {
  border-top: 4px solid var(--warm);
}

.tl-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem 0.75rem;
  margin-bottom: 0.4rem;
}

.tl-top .tl-date {
  margin: 0;
}

.tl-type {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.tl-type.type-news {
  background: var(--warm-soft);
  color: #8a3a1c;
}

.tl-type.type-got {
  background: var(--accent-soft);
  color: var(--accent);
}

@media (prefers-color-scheme: dark) {
  .tl-type.type-news {
    color: var(--warm);
  }
}

/* The amount raised, big and bold. */
.raised {
  margin: 0.2rem 0 0.4rem;
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  background: var(--warm-soft);
  color: #8a3a1c;
  font-size: 1.05rem;
  font-weight: 700;
}

.raised strong {
  display: block;
  font-size: 2.1rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

@media (prefers-color-scheme: dark) {
  .raised {
    color: var(--warm);
  }
}

/* Full-width cards: picture beside the words. */
.tl-head {
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
}

.tl-head .thumb {
  width: 72px;
  height: 72px;
  aspect-ratio: 1;
  flex: none;
}

.tl-head .thumb.placeholder {
  height: 72px;
}

/* ---- Photos you can tap to see bigger ---- */

.gallery-photo {
  display: block;
  min-height: 0;
  padding: 0;
  border: none;
  border-radius: 8px;
  overflow: hidden;
  background: none;
  box-shadow: none;
  cursor: zoom-in;
}

.gallery-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

dialog.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: none;
  background: rgb(10 12 10 / 96%);
  display: grid;
  place-items: center;
}

dialog.lightbox:not([open]) {
  display: none;
}

dialog.lightbox::backdrop {
  background: transparent;
}

.lightbox-img {
  max-width: 94vw;
  max-height: 82dvh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close,
.lightbox-nav {
  position: fixed;
  min-height: 0;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgb(255 255 255 / 15%);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  box-shadow: none;
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
}

.lightbox-nav.prev {
  left: 0.75rem;
  top: 50%;
}

.lightbox-nav.next {
  right: 0.75rem;
  top: 50%;
}

.lightbox-count {
  position: fixed;
  bottom: 1rem;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  color: #fff;
}

/* ---- Waiting list ---- */

.waitlist-row p {
  margin: 0.15rem 0;
}

.wl-note {
  font-style: italic;
}

.badge.wl-waiting {
  background: var(--warm-soft);
  color: #8a3a1c;
}

.badge.wl-set-up {
  background: var(--notice-bg);
  color: var(--notice-text);
}

.badge.wl-active {
  background: var(--accent);
  color: var(--accent-text);
}

.badge.wl-declined {
  background: var(--line);
  color: var(--text);
}

.waitlist-done h3 {
  margin-top: 0;
}

/* Year groups are dragged into order by their handle. */
.drag-handle {
  cursor: grab;
  touch-action: none;
  user-select: none;
  padding: 0.2rem 0.4rem;
  margin-left: -0.4rem;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--muted);
}

.class-section.dragging {
  opacity: 0.85;
  box-shadow: 0 8px 24px rgb(0 0 0 / 18%);
  outline: 2px solid var(--accent);
}

.class-section.dragging .drag-handle {
  cursor: grabbing;
}

/* Seven tabs on a phone: keep the labels on one line. */
@media (max-width: 700px) {
  .tabs.bottom-nav button span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
}

/* An open bundle lists every item, so its preview pictures aren't needed. */
.tl-group[open] > summary .thumb-row {
  display: none;
}

/* Checkboxes and radio buttons in the PTA's colour, not the phone's blue. */
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--accent);
}

/* Seven tabs on a phone: the chosen one isn't bolder, so "Wishlists" fits. */
@media (max-width: 700px) {
  .tabs.bottom-nav button {
    font-size: clamp(0.6rem, 2.75vw, 0.72rem);
    padding-inline: 0;
  }
  .tabs.bottom-nav button[aria-current="page"] {
    font-weight: 600;
  }
}

/* A post with just one photo: smaller, and centred in the card. */
.timeline .gallery:has(> .gallery-photo:only-child) {
  grid-template-columns: 60%;
  justify-content: center;
}
