/* Public catalog. Admin styles live in admin.css. */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --ink: #1f2430;
  --muted: #5c6573;
  --line: #ebe7e4;
  --soft: #f3efec;
  --header: #f05a48;
  --accent: #e14b3a;
  --sidebar: 248px;
  --page: 1240px;
  --font: Inter, -apple-system, system-ui, "Segoe UI", sans-serif;
  --fs-caption: 14px;
  --fs-menu: 15px;
  --fs-body: 16px;
  --fs-title: 18px;
  --fs-page: 28px;
  --fs-brand: 18px;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-bold: 600;
  --lh-tight: 1.25;
  --lh-menu: 1.35;
  --lh-body: 1.5;
  --radius: 12px;
  --focus: #1d4ed8;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-padding-top: 5rem;
  font-size: 16px;
  overflow-x: clip;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: var(--fs-body) / var(--lh-body) var(--font);
  overflow-x: clip;
  max-width: 100%;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
summary {
  font: inherit;
  color: inherit;
}
button,
summary {
  cursor: pointer;
}
a,
button,
summary {
  touch-action: manipulation;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: var(--lh-tight);
  overflow-wrap: anywhere;
  font-weight: var(--fw-bold);
}
h1 {
  font-size: var(--fs-page);
}
h2 {
  font-size: var(--fs-title);
  font-weight: var(--fw-medium);
}
h3 {
  font-size: var(--fs-menu);
  font-weight: var(--fw-regular);
  line-height: var(--lh-menu);
}
.icon {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
}
.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;
}
.skip-link {
  position: fixed;
  top: -6rem;
  left: 1rem;
  z-index: 80;
  padding: 0.7rem 1rem;
  background: var(--header);
  color: white;
}
.skip-link:focus {
  top: 0.75rem;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgb(255 255 255 / 92%);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.site-header__inner {
  max-width: var(--page);
  margin: 0 auto;
  height: 72px;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-shrink: 1;
  color: var(--ink);
}
.brand__mascot {
  display: block;
  height: 52px;
  width: auto;
  flex-shrink: 0;
}
.brand__name {
  display: block;
  font-size: var(--fs-brand);
  font-weight: var(--fw-bold);
  line-height: 1.1;
  letter-spacing: -0.03em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 18px;
}
.main-nav a {
  height: 32px;
  padding: 0 10px 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #3c434d;
  border-radius: 8px;
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  line-height: 1;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--ink);
  background: #f2f3f5;
}
.main-nav .icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 360px;
  max-width: 40vw;
  height: 44px;
  padding: 0 0.9rem 0 0.75rem;
  background: var(--soft);
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}
.header-search:focus-within {
  background: #fff;
  border-color: #f0c4bd;
}
.header-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font-size: var(--fs-body);
}
.header-search input::placeholder {
  color: #8a8f98;
}
.header-search input:focus {
  outline: none;
}
.header-search button {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8a8f98;
}
.header-search .icon {
  width: 16px;
  height: 16px;
}
.mobile-menu {
  display: none;
  position: relative;
}
.mobile-menu > summary {
  list-style: none;
  height: 32px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  background: #f2f3f5;
  color: var(--ink);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
}
.mobile-menu > summary::-webkit-details-marker {
  display: none;
}
.mobile-menu__panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 0.4rem);
  right: 0;
  width: min(22rem, 90vw);
  max-height: 70vh;
  overflow: auto;
  background: #faf8f6;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.65rem;
  box-shadow: 0 16px 40px rgb(31 36 48 / 14%);
}

.public-layout {
  width: min(var(--page), calc(100% - 2rem));
  max-width: 100%;
  min-width: 0;
  margin: 1.25rem auto 3rem;
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  flex: 1;
}
.site-sidebar,
.public-content {
  min-width: 0;
}
.site-sidebar {
  position: sticky;
  top: 5.5rem;
  max-height: calc(100vh - 6.5rem);
  overflow: auto;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  scrollbar-width: thin;
}
.public-content {
  padding: 0.25rem 0 1.5rem;
}
.page-shell {
  min-width: 0;
}

/* —— Left navigation panel —— */
.nav-panel {
  display: grid;
  gap: 0.75rem;
}
.nav-holiday {
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem 0.85rem 0.7rem;
  background:
    linear-gradient(165deg, #fff8f6 0%, #ffffff 48%),
    #fff;
  border: 1px solid #f0ddd8;
  border-radius: 18px;
  box-shadow:
    0 1px 2px rgb(31 36 48 / 4%),
    0 10px 28px rgb(225 75 58 / 6%);
}
.nav-holiday__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  min-height: 3.1rem;
  padding: 0.15rem 0.15rem 0.55rem;
  border-bottom: 1px solid #f3e4e0;
}
.nav-holiday__head:hover,
.nav-holiday__head.is-current {
  color: inherit;
}
.nav-holiday__head > .icon {
  width: 1rem;
  height: 1rem;
  color: var(--accent);
  opacity: 0.75;
  transition:
    transform 0.18s ease,
    opacity 0.18s ease;
}
.nav-holiday__head:hover > .icon {
  opacity: 1;
  transform: translateX(2px);
}
.nav-holiday__badge {
  width: 2.85rem;
  min-height: 2.85rem;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.05rem;
  border-radius: 12px;
  background: linear-gradient(160deg, #f05a48 0%, #e14b3a 100%);
  color: #fff;
  box-shadow: 0 6px 14px rgb(225 75 58 / 28%);
}
.nav-holiday__badge time {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}
.nav-holiday__badge small {
  font-size: 0.62rem;
  font-weight: 500;
  line-height: 1;
  text-transform: lowercase;
  opacity: 0.9;
}
.nav-holiday__copy {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}
.nav-holiday__copy strong {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.nav-holiday__copy span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.2;
}
.nav-holiday__list {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.1rem;
}
.nav-holiday__list a {
  display: grid;
  grid-template-columns: 2.55rem 1.45rem minmax(0, 1fr);
  gap: 0.35rem 0.4rem;
  align-items: center;
  min-height: 1.85rem;
  padding: 0.15rem 0.3rem;
  border-radius: 10px;
  transition: background 0.15s ease;
}
.nav-holiday__list a:hover {
  background: rgb(240 90 72 / 6%);
}
.nav-holiday__list time {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 1.3rem;
  padding: 0 0.25rem;
  border-radius: 7px;
  background: #fff;
  border: 1px solid #f0ddd8;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.nav-holiday__list time.is-today {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.nav-holiday__weekday {
  color: #9aa3af;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  text-align: center;
}
.nav-holiday__list span {
  font-size: 0.84rem;
  line-height: 1.25;
  color: #3a4250;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-holiday__list a:hover span {
  color: var(--ink);
}
.nav-holiday__more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.35rem;
  padding: 0.45rem 0.35rem 0.15rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
}
.nav-holiday__more .icon {
  width: 0.85rem;
  height: 0.85rem;
  transition: transform 0.18s ease;
}
.nav-holiday__more:hover .icon {
  transform: translateX(2px);
}

.nav-catalog {
  display: grid;
  gap: 0.45rem;
  padding: 0.7rem 0.55rem 0.65rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 1px 2px rgb(31 36 48 / 4%);
}
.nav-catalog__label {
  margin: 0 0.45rem 0.1rem;
  color: #8b939f;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-catalog__list {
  display: grid;
  gap: 0.08rem;
}
.nav-item,
.nav-group > summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
  min-height: 2.35rem;
  padding: 0.35rem 0.5rem;
  border-radius: 11px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.nav-group > summary {
  list-style: none;
}
.nav-group > summary::-webkit-details-marker {
  display: none;
}
.nav-item:hover,
.nav-group > summary:hover {
  background: #f7f5f3;
}
.nav-item[aria-current="page"],
.nav-group.is-current > summary {
  background: #fdecea;
  color: #c93d2e;
  font-weight: 700;
}
.nav-item__icon {
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f4f1ef;
  color: #6b7280;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.nav-item__icon .icon {
  width: 0.95rem;
  height: 0.95rem;
}
.nav-item:hover .nav-item__icon,
.nav-group > summary:hover .nav-item__icon {
  background: #ece7e4;
  color: #4b5563;
}
.nav-item[aria-current="page"] .nav-item__icon,
.nav-group.is-current > summary .nav-item__icon,
.nav-group[open] > summary .nav-item__icon {
  background: #fbd5cf;
  color: var(--accent);
}
.nav-item__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-item__chevron {
  display: grid;
  place-items: center;
  color: #b0b6c0;
  transition:
    transform 0.2s ease,
    color 0.15s ease;
}
.nav-item__chevron .icon {
  width: 0.9rem;
  height: 0.9rem;
}
.nav-group[open] > summary .nav-item__chevron {
  transform: rotate(180deg);
  color: #8b939f;
}
.nav-group[open] > summary {
  background: #f7f5f3;
  font-weight: 600;
}
.nav-group__children {
  display: grid;
  gap: 0.05rem;
  margin: 0.1rem 0 0.35rem 0.85rem;
  padding: 0.15rem 0 0.15rem 0.85rem;
  border-left: 1.5px solid #efe8e4;
}
.nav-group__children a {
  display: flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0.2rem 0.55rem;
  border-radius: 8px;
  color: #5c6573;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.3;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.nav-group__children a:hover {
  background: #f7f5f3;
  color: var(--ink);
}
.nav-group__children a[aria-current="page"] {
  background: #fdecea;
  color: #c93d2e;
  font-weight: 700;
}

.home-board {
  display: grid;
  gap: 1.15rem;
  min-width: 0;
}
.home-board .card-tile__actions {
  display: none;
}
.home-board .card-tile:has(.card-tile__wish) h3 {
  display: none;
}
.shelf {
  display: grid;
  gap: 0.95rem;
  min-width: 0;
  padding: 1.15rem 1.15rem 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 1px 2px rgb(31 36 48 / 4%);
}
.shelf__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}
.shelf__title {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}
.shelf__title h1,
.shelf__title h2 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.shelf__count {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
}
.shelf__all {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 2.2rem;
  padding: 0 0.85rem;
  border-radius: 999px;
  background: #fdecea;
  color: #c93d2e;
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  transition:
    background 0.15s ease,
    transform 0.15s ease;
}
.shelf__all .icon {
  width: 0.9rem;
  height: 0.9rem;
  transition: transform 0.18s ease;
}
.shelf__all:hover {
  background: #fbd5cf;
}
.shelf__all:hover .icon {
  transform: translateX(2px);
}
.shelf__rail {
  position: relative;
  min-width: 0;
  max-width: 100%;
  /* Keep horizontal card rails from expanding the page width on mobile. */
  overflow-x: hidden;
}
.people-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}
.people-links a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  min-height: 3rem;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  background: #f7f5f3;
  font-size: 0.9rem;
  transition: background 0.15s ease;
}
.people-links a:hover {
  background: #fdecea;
}
.people-links b {
  font-weight: 600;
}
.people-links small {
  color: var(--muted);
  font-weight: 500;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
}
.card-grid--rail {
  display: flex;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  gap: 1rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding: 0.2rem 0.1rem 0.35rem;
}
.card-grid--rail::-webkit-scrollbar {
  display: none;
}
.home-board .card-grid--rail .card-tile {
  flex: 0 0 calc((100% - 3rem) / 4);
  width: calc((100% - 3rem) / 4);
  scroll-snap-align: start;
}
.home-board .card-tile {
  gap: 0.65rem;
}
.home-board .card-tile__media {
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  background: #f7f5f3;
  box-shadow: inset 0 0 0 1px rgb(31 36 48 / 4%);
}
.home-board .card-tile__image {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: unset;
  border-radius: 0;
  background: #f7f5f3;
}
.home-board .card-tile__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.home-board .card-tile__body {
  padding: 0 0.2rem;
  text-align: left;
}
.home-board .card-tile h3 {
  min-height: 0;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.home-board .card-tile h3 a:hover {
  color: var(--accent);
}
.home-board .card-tile__wish {
  margin: 0;
  color: #4b5563;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.35;
  -webkit-line-clamp: 3;
}
.home-board .card-tile__wish a {
  color: inherit;
}
.home-board .card-tile__wish a:hover {
  color: var(--accent);
}
.shelf-arrow {
  position: absolute;
  top: calc(50% - 2.4rem);
  z-index: 5;
  width: 2.4rem;
  height: 2.4rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 255 255 / 94%);
  color: var(--ink);
  box-shadow: 0 6px 18px rgb(31 36 48 / 12%);
  backdrop-filter: blur(8px);
  transition:
    background 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}
.shelf-arrow .icon {
  width: 1.05rem;
  height: 1.05rem;
}
.shelf-arrow:hover {
  background: #fff;
  color: var(--accent);
  transform: scale(1.04);
}
.shelf-arrow--prev {
  left: 0.35rem;
}
.shelf-arrow--next {
  right: 0.35rem;
}
.shelf-arrow[hidden] {
  display: none;
}
.shelf-arrow:disabled {
  opacity: 0.35;
}
.card-tile {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.card-tile__image {
  display: block;
  aspect-ratio: 3 / 4;
  background: #f4f5f7;
  border-radius: 12px;
  overflow: hidden;
}
.card-tile__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f4f5f7;
  font-size: 0;
  color: transparent;
}
.card-tile__media {
  position: relative;
}
.card-tile__badge {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  padding: 0.15rem 0.45rem;
  background: rgb(31 36 48 / 88%);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 999px;
}
.card-tile__body {
  padding-top: 0.45rem;
}
.card-tile__wish {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
  margin-top: 0.15rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-tile__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.7rem;
  margin-top: 0.2rem;
}
.media-action {
  min-height: 1.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  color: var(--accent);
  font-weight: 500;
  font-size: 13px;
}
.media-action .icon {
  width: 14px;
  height: 14px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
}
.breadcrumbs a {
  color: var(--accent);
}
.breadcrumbs > span {
  display: inline-flex;
  gap: 0.35rem;
}
.catalog-heading,
.page-intro,
.calendar-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1rem;
}
.catalog-heading h1 .heading-count,
.page-intro h1 .heading-count {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.72em;
  letter-spacing: -0.01em;
}
.related-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}
.related-chips a {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  padding: 0.2rem 0.7rem;
  border: 1px solid #efe4e0;
  border-radius: 999px;
  background: #fff;
  color: #4b5563;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.2;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}
.related-chips a:hover {
  background: #fdecea;
  border-color: #f3c7bf;
  color: #c93d2e;
}
.catalog-intro,
.page-intro p,
.date-note {
  color: var(--muted);
  margin-top: 0.3rem;
}
.count-label {
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}
.search-summary {
  margin-bottom: 0.8rem;
}
.search-summary a,
.text-link {
  color: var(--accent);
  font-weight: 700;
}
.search-starts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem 1.2rem;
}
.search-starts a {
  display: grid;
  gap: 0.15rem;
  min-height: 4.2rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
}
.search-starts span {
  color: var(--muted);
}
.empty-state {
  display: grid;
  gap: 0.55rem;
  justify-items: start;
  padding: 1.5rem 0;
  max-width: 28rem;
}
.empty-state h2 {
  font-size: var(--fs-title);
}
.empty-state p {
  color: var(--muted);
  font-size: var(--fs-body);
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.2rem;
}
.pagination a {
  min-height: 2.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 700;
  color: var(--accent);
}

.card-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(17rem, 0.75fr);
  gap: 1.75rem 1.5rem;
  align-items: start;
}
.card-detail__visual {
  display: grid;
  gap: 1.1rem;
}
.card-detail__frame {
  position: relative;
  background: #f6f7f9;
  border-radius: 4px;
  overflow: hidden;
}
.card-detail__visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.card-detail__nav {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0.35rem;
  pointer-events: none;
}
.card-detail__nav-btn {
  pointer-events: auto;
  width: 2.6rem;
  height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgb(255 255 255 / 92%);
  color: var(--ink);
  box-shadow: 0 1px 4px rgb(20 24 32 / 12%);
  transition:
    background 0.15s ease,
    transform 0.15s ease;
}
.card-detail__nav-btn:hover {
  background: white;
  transform: scale(1.04);
}
.card-detail__nav-btn.is-disabled {
  visibility: hidden;
}
.card-detail__content {
  display: grid;
  gap: 0.8rem;
  align-content: start;
  position: sticky;
  top: 5.25rem;
}
.eyebrow {
  color: var(--muted);
}
.primary-actions {
  display: grid;
  gap: 0.5rem;
}
.button {
  min-height: 3.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border: 0;
  border-radius: 8px;
  font-weight: var(--fw-medium);
  font-size: var(--fs-body);
}
.button--primary {
  background: var(--header);
  color: white;
}
.button--secondary {
  background: white;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px #d7dbe2;
}
.send-hint,
.usage-note,
.muted,
.fine-print {
  color: var(--muted);
}
.send-hint {
  margin-top: -0.25rem;
}
.share-block {
  border-top: 1px solid var(--line);
}
.share-block summary {
  min-height: 2.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.share-block summary::-webkit-details-marker {
  display: none;
}
.share-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.9rem;
  padding-bottom: 0.5rem;
}
.share-links a,
.share-links button {
  min-height: 2.5rem;
  border: 0;
  background: transparent;
  font-weight: 700;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.card-detail__wish {
  margin: 0;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--accent);
  background: #faf7f6;
  font-size: 1.12rem;
  line-height: 1.45;
  font-style: normal;
}
.card-taxonomy {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
}
.card-taxonomy a {
  min-height: 2.1rem;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  color: var(--accent);
}
.continue-section,
.section {
  margin-top: 1.8rem;
}
.continue-section--under-visual {
  margin-top: 0;
}
.continue-section h2 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}
.section--related {
  margin-top: 2.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: 0.75rem;
}

.day-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin-bottom: 0.9rem;
}
.day-nav a {
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  color: var(--muted);
}
.day-nav a[aria-current="page"] {
  color: var(--accent);
}
.occasion-list {
  display: grid;
}
.occasion-row {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  min-height: 3.2rem;
  border-top: 1px solid var(--line);
}
.occasion-row time {
  color: var(--accent);
  font-weight: 800;
}
.hub-grid,
.recipient-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 1.2rem;
}
.hub-grid a,
.recipient-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 3.1rem;
  border-top: 1px solid var(--line);
}
.recipient-grid a span {
  display: none;
}
.recipient-grid small,
.hub-grid small {
  color: var(--muted);
}

.year-switcher {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.3rem;
}
.year-switcher a {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fafafa;
}
.calendar-notes {
  border-top: 1px solid var(--line);
  margin-bottom: 0.7rem;
}
.calendar-notes summary {
  min-height: 2.8rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
}
.calendar-status {
  display: flex;
  gap: 0.55rem;
}
.transfer-summary {
  display: grid;
  gap: 0.4rem;
  margin: 0.4rem 0 0.7rem;
}
.transfer-summary dd {
  margin: 0.15rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
}
.month-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  margin: 0.5rem 0 1rem;
}
.month-nav a {
  min-height: 2.2rem;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  color: var(--muted);
}
.calendar-months {
  display: grid;
  gap: 1.4rem;
}
.calendar-month h2 {
  margin-bottom: 0.25rem;
}
.calendar-month > div {
  display: grid;
}
.calendar-event {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  min-height: 3.15rem;
  border-top: 1px solid var(--line);
}
.calendar-event time {
  font-weight: 800;
  color: var(--accent);
  font-size: 1.15rem;
}
.calendar-event small {
  display: block;
  color: var(--muted);
}
.calendar-explainer {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.5rem;
  max-width: 42rem;
}
.calendar-sources ul {
  margin: 0.25rem 0 0;
  padding-left: 1.1rem;
}
.calendar-sources a,
.prose a {
  color: var(--accent);
}
.prose {
  display: grid;
  gap: 0.7rem;
  max-width: 42rem;
}
.prose ul {
  margin: 0;
  padding-left: 1.2rem;
}
.error-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
  background:
    radial-gradient(circle at top left, #ffe8e3 0%, transparent 42%),
    radial-gradient(circle at bottom right, #fff4ef 0%, transparent 38%),
    var(--bg);
}
.error-page {
  display: grid;
  gap: 0.85rem;
  justify-items: start;
  max-width: 28rem;
}
.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  margin: 0.4rem 0 0;
}

.site-footer {
  margin-top: auto;
}
.site-footer__inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0.4rem 1.25rem 1.2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}
.site-footer a {
  color: var(--ink);
  font-weight: 700;
}
.site-footer span {
  display: block;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  padding: 0.3rem 0.8rem;
  background: var(--ink);
  color: white;
  border-radius: 8px;
}
.toast:empty {
  display: none;
}

@media (max-width: 1100px) {
  .people-links,
  .hub-grid,
  .recipient-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .public-layout {
    grid-template-columns: 1fr;
    width: min(var(--page), calc(100% - 1.25rem));
    margin-top: 0.85rem;
  }
  .site-sidebar {
    display: none;
  }
  .mobile-menu {
    display: block;
  }
  .card-detail {
    grid-template-columns: 1fr;
  }
  .card-detail__content {
    position: static;
  }
  .card-detail__nav-btn {
    width: 2.35rem;
    height: 2.35rem;
  }
  .header-search {
    min-width: 0;
    flex: 1;
    max-width: none;
  }
}
@media (max-width: 700px) {
  .site-header__inner {
    height: auto;
    min-height: 92px;
    padding-block: 7px;
    flex-wrap: wrap;
    row-gap: 6px;
  }
  .header-search {
    order: 5;
    flex: 1 1 100%;
    max-width: none;
    height: 36px;
  }
  .people-links,
  .hub-grid,
  .recipient-grid,
  .search-starts {
    grid-template-columns: 1fr;
  }
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 0.6rem;
  }
  .home-board .card-grid--rail .card-tile {
    flex-basis: calc((100% - 1rem) / 2.15);
    width: calc((100% - 1rem) / 2.15);
  }
  .shelf {
    padding: 0.95rem 0.85rem 1.05rem;
    border-radius: 16px;
  }
  .shelf__head {
    flex-direction: column;
    align-items: flex-start;
  }
  .occasion-row {
    grid-template-columns: 1fr;
  }
  .catalog-heading,
  .page-intro,
  .calendar-hero,
  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .home-board .card-tile__actions {
    display: flex;
  }
}
@media (max-width: 420px) {
  .public-layout {
    width: calc(100% - 0.75rem);
    margin-top: 0.4rem;
  }
  .public-content {
    padding: 0.75rem 0.65rem 1.2rem;
  }
  .site-header__inner {
    padding: 0 0.65rem;
  }
  .brand__mascot {
    height: 42px;
  }
  .main-nav {
    margin-left: auto;
  }
  .main-nav a {
    padding: 0 0.35rem;
  }
  .main-nav a span {
    display: none;
  }
  .mobile-menu > summary {
    padding: 0 0.5rem;
  }
  .home-board .card-grid--rail .card-tile {
    flex-basis: calc((100% - 0.85rem) / 2.1);
    width: calc((100% - 0.85rem) / 2.1);
  }
}
/* Iменные открытки: компактный индекс и крупное изображение без обрезки. */
.names-filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0 0 14px;
}
.names-filter label {
  font-weight: 600;
}
.names-filter input {
  width: min(100%, 260px);
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #d5d9df;
  border-radius: 8px;
  background: #fff;
}
.names-filter span,
.names-empty {
  color: var(--muted);
}
.names-empty {
  margin: 0 0 16px;
}
.names-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}
.names-grid a {
  display: block;
  padding: 13px 16px;
  border: 1px solid #e7e2e0;
  border-radius: 10px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}
.names-grid a:hover,
.names-grid a:focus-visible {
  border-color: #be284e;
  color: #9f3151;
}
.name-card {
  width: min(100%, 560px);
  margin: 0 auto 24px;
}
.name-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.name-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.name-card__actions a {
  text-decoration: none;
}
