:root {
  --lav-50: #fffafd;
  --lav-100: #fbeff8;
  --lav-200: #f3e5f5;
  --lav-300: #e1bee7;
  --lav-500: #ba68c8;
  --pink: #e040fb;
  --pink-deep: #b937d0;
  --ink: #2b2233;
  --muted: #6f667c;
  --line: #eadff0;
  --blue: #0039a6;
  --red: #d52b1e;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(80, 40, 100, 0.1);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 600px at 92% -10%, rgba(225, 190, 231, 0.38), transparent 62%),
    radial-gradient(700px 520px at -12% 22%, rgba(255, 205, 210, 0.36), transparent 58%),
    #fffafc;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

.container {
  width: min(1180px, 100% - 40px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 10px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(224, 64, 251, 0.45);
  outline-offset: 2px;
}

.cat-traditions {
  --cat-color: #f4f1f8;
  --cat-line: #d9cfe3;
  --cat-soft: #f7f3fa;
  --cat-ink: #5c5470;
}

.cat-unity {
  --cat-color: #0039a6;
  --cat-line: #0039a6;
  --cat-soft: #e8efff;
  --cat-ink: #0039a6;
}

.cat-flagship {
  --cat-color: #d52b1e;
  --cat-line: #d52b1e;
  --cat-soft: #ffecec;
  --cat-ink: #b3261e;
}

.tricolor-bar {
  display: flex;
  height: 5px;
  flex-shrink: 0;
}

.tricolor-bar span {
  flex: 1;
}

.tricolor-white {
  background: #fff;
  border-bottom: 1px solid #e7dcea;
}

.tricolor-blue {
  background: var(--blue);
}

.tricolor-red {
  background: var(--red);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 250, 252, 0.84);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(155, 120, 175, 0.14);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 12px 30px rgba(80, 40, 100, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 76px;
  padding-block: 10px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark,
.footer-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(145deg, #fff, var(--lav-200));
  box-shadow: inset 0 0 0 1px rgba(155, 120, 175, 0.18), 0 8px 18px rgba(80, 40, 100, 0.1);
}

.brand-mark::before,
.footer-mark::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 10px;
  background: linear-gradient(
    180deg,
    #fff 0 33.33%,
    var(--blue) 33.33% 66.66%,
    var(--red) 66.66% 100%
  );
  border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.brand-letter {
  position: relative;
  margin-left: 6px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #6d2380;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
  gap: 3px;
}

.brand-title {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand-subtitle {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-left: auto;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.nav-link:hover {
  color: var(--ink);
  background: rgba(225, 190, 231, 0.28);
}

.nav-link.is-active {
  color: var(--ink);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cat-color);
  box-shadow: 0 0 0 1px var(--cat-line);
  flex-shrink: 0;
}

.nav-cat.cat-traditions .nav-dot {
  background: #fff;
  box-shadow: 0 0 0 1px #cfc3da;
}

.admin-entry {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(186, 104, 200, 0.28);
  background: rgba(255, 255, 255, 0.62);
  color: #7b4f8c;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.admin-entry:hover {
  background: #fff;
  border-color: rgba(186, 104, 200, 0.5);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0 58px;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  gap: 48px;
  align-items: center;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-glow-a {
  width: 440px;
  height: 440px;
  right: -90px;
  top: -140px;
  background: radial-gradient(circle, rgba(224, 64, 251, 0.15), transparent 68%);
}

.hero-glow-b {
  width: 380px;
  height: 380px;
  left: -140px;
  bottom: -180px;
  background: radial-gradient(circle, rgba(0, 57, 166, 0.08), transparent 68%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a5a9c;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--red));
  box-shadow: 0 0 0 4px rgba(224, 64, 251, 0.1);
}

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

.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.038em;
  font-weight: 400;
}

.hero-accent {
  background: linear-gradient(100deg, #7b2a8f 10%, #c2185b 60%, #d52b1e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 570px;
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  color: #fff;
  box-shadow: 0 12px 26px rgba(224, 64, 251, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 16px 34px rgba(224, 64, 251, 0.36);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(123, 42, 143, 0.16);
  color: var(--ink);
}

.btn-ghost:hover {
  background: #fff;
  border-color: rgba(123, 42, 143, 0.3);
}

.btn-soft {
  background: var(--lav-100);
  color: #7b2a8f;
  border-color: rgba(186, 104, 200, 0.18);
}

.btn-soft:hover {
  background: var(--lav-200);
}

.btn-danger {
  background: #fff1f0;
  border-color: #f4cfcc;
  color: #b3261e;
}

.btn-danger:hover {
  background: #ffe4e1;
}

.btn-sm {
  padding: 8px 13px;
  font-size: 0.78rem;
}

.btn-block {
  width: 100%;
}

.hero-panel {
  padding: 26px;
  border: 1px solid rgba(155, 120, 175, 0.18);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.hero-total {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 0 6px 20px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.hero-total-number {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, #7b2a8f, #d52b1e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-total-caption {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}

.hero-cats {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-cat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.hero-cat:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateX(2px);
}

.cat-swatch {
  width: 10px;
  height: 34px;
  border-radius: 6px;
  background: var(--cat-color);
  box-shadow: inset 0 0 0 1px var(--cat-line);
  flex-shrink: 0;
}

.hero-cat-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.hero-cat-copy strong {
  font-size: 0.91rem;
}

.hero-cat-copy small {
  font-size: 0.73rem;
  color: var(--muted);
}

.cat-count {
  margin-left: auto;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
}

.filter-section {
  padding: 18px 0 6px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(155, 120, 175, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 8px 24px rgba(80, 40, 100, 0.04);
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.filter-chip:hover {
  color: var(--ink);
  background: rgba(225, 190, 231, 0.25);
}

.filter-chip .chip-count {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.05);
  font-size: 0.7rem;
}

.filter-chip.is-active {
  background: var(--ink);
  color: #fff;
}

.filter-chip.is-active .chip-count {
  background: rgba(255, 255, 255, 0.18);
}

.filter-chip.cat-traditions.is-active {
  background: #fff;
  color: var(--cat-ink);
  border-color: var(--cat-line);
  box-shadow: 0 6px 16px rgba(80, 40, 100, 0.08);
}

.filter-chip.cat-traditions.is-active .chip-count {
  background: var(--cat-soft);
}

.filter-chip.cat-unity.is-active {
  background: var(--blue);
  color: #fff;
}

.filter-chip.cat-flagship.is-active {
  background: var(--red);
  color: #fff;
}

.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cat-color);
  box-shadow: 0 0 0 1px var(--cat-line);
}

.filter-chip.cat-traditions .chip-dot {
  background: #fff;
  box-shadow: 0 0 0 1px #cfc3da;
}

.tag-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px dashed rgba(155, 120, 175, 0.22);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.42);
}

.tag-filter-label {
  margin-right: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.tag-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid rgba(155, 120, 175, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.tag-filter-chip:hover {
  background: #fff;
  border-color: rgba(123, 42, 143, 0.3);
  color: var(--ink);
}

.tag-filter-chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.tag-count {
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.05);
  font-size: 0.68rem;
  font-weight: 700;
}

.tag-filter-chip.is-active .tag-count {
  background: rgba(255, 255, 255, 0.18);
}

.tag-filter-toggle {
  cursor: pointer;
  border-style: dashed;
  background: transparent;
}

.tag-filter-toggle[aria-expanded="true"] {
  border-style: solid;
  border-color: rgba(123, 42, 143, 0.22);
  background: var(--lav-100);
  color: #7b2a8f;
}

.tag-filter-rest {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-filter-rest[hidden] {
  display: none;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #faf7fc;
  color: #6f667c;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

a.tag-chip:hover {
  background: #fff;
  border-color: #cfc0da;
  color: #7b2a8f;
}

.tag-more {
  border-style: dashed;
  background: transparent;
  color: var(--muted);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.article-tags .tag-chip {
  padding: 6px 11px;
  font-size: 0.76rem;
}

.admin-row-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin: 44px 0 8px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.03em;
}

.section-note {
  max-width: 430px;
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--muted);
}

.timeline-section {
  padding: 28px 0 80px;
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(
    180deg,
    rgba(224, 64, 251, 0.3),
    rgba(0, 57, 166, 0.18) 55%,
    rgba(213, 43, 30, 0.24)
  );
}

.timeline-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 40px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 22px;
  z-index: 1;
  width: 16px;
  height: 16px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--cat-color);
  box-shadow: 0 0 0 1px var(--cat-line), 0 6px 14px rgba(70, 40, 90, 0.15);
}

.timeline-date {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-right: 1rem;
  color: var(--ink);
}

.tl-day {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.tl-rest {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--muted);
}

.news-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(155, 120, 175, 0.14);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 40px rgba(80, 40, 100, 0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 52px rgba(80, 40, 100, 0.11);
}

.card-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--cat-soft);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.news-card:hover .card-media img {
  transform: scale(1.03);
}

.card-media-placeholder {
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.95), transparent 52%),
    linear-gradient(135deg, var(--cat-soft) 0%, #fff 78%);
}

.placeholder-rings {
  position: absolute;
  right: -46px;
  bottom: -76px;
  width: 180px;
  height: 180px;
  border: 18px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  box-shadow: 0 0 0 12px rgba(224, 64, 251, 0.05);
}

.placeholder-label {
  position: relative;
  max-width: 82%;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-align: center;
  text-transform: uppercase;
  color: var(--cat-ink);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 24px 24px;
  min-width: 0;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border: 1px solid var(--cat-line);
  border-radius: 999px;
  background: var(--cat-soft);
  color: var(--cat-ink);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge.cat-traditions {
  background: #faf7fc;
}

.card-date {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
}

.card-title {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.card-title a {
  color: var(--ink);
  text-decoration: none;
}

.card-title a:hover {
  color: #7b2a8f;
}

.card-summary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--muted);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  font-size: 0.84rem;
  font-weight: 700;
  color: #7b2a8f;
  text-decoration: none;
}

.card-link span {
  transition: transform 0.2s;
}

.card-link:hover span {
  transform: translateX(4px);
}

.empty-state {
  padding: 70px 24px;
  border: 1px dashed rgba(155, 120, 175, 0.3);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.empty-mark {
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lav-200), #fff);
  box-shadow: inset 0 0 0 1px var(--line);
}

.empty-state h2 {
  margin: 0 0 10px;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

.empty-state p {
  max-width: 470px;
  margin: 0 auto 24px;
  line-height: 1.6;
  color: var(--muted);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.pagination-btn,
.pagination-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(155, 120, 175, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 700;
  font-style: normal;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.pagination-btn:hover,
.pagination-page:hover {
  background: #fff;
  border-color: rgba(123, 42, 143, 0.3);
  color: var(--ink);
}

.pagination-page.is-current {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.pagination-btn.is-disabled {
  border-color: rgba(155, 120, 175, 0.1);
  background: transparent;
  color: var(--muted);
  opacity: 0.45;
  cursor: not-allowed;
}

.pagination-pages {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

.pagination-ellipsis {
  padding: 0 2px;
  color: var(--muted);
}

.article-page {
  min-height: 60vh;
}

.article-hero {
  position: relative;
  overflow: hidden;
  padding: 52px 0 46px;
  border-bottom: 1px solid rgba(155, 120, 175, 0.12);
  background: linear-gradient(
    160deg,
    rgba(243, 229, 245, 0.92),
    rgba(255, 235, 243, 0.55) 55%,
    transparent
  );
}

.article-hero-inner {
  position: relative;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: #7b2a8f;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.article-meta time {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
}

.status-draft {
  padding: 4px 10px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 0.7rem;
  font-weight: 700;
}

.article-hero h1 {
  max-width: 900px;
  margin: 0 0 18px;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.article-lead {
  max-width: 760px;
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--muted);
}

.article-layout {
  display: grid;
  gap: 36px;
  padding: 44px 0 80px;
}

.article-card {
  min-width: 0;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid rgba(155, 120, 175, 0.14);
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow);
}

.article-figure {
  margin: -8px 0 30px;
  overflow: hidden;
  border-radius: 18px;
}

.article-figure img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.article-body {
  max-width: 760px;
  white-space: pre-line;
  font-size: 1.04rem;
  line-height: 1.8;
  color: #403848;
}

.article-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.related h2 {
  margin: 0 0 16px;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.related-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 38px 16px 16px;
  border: 1px solid rgba(155, 120, 175, 0.14);
  border-radius: 16px;
  background: #fff;
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s;
}

.related-item:hover {
  transform: translateX(2px);
  border-color: var(--cat-line);
}

.related-date {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cat-ink);
}

.related-title {
  font-size: 0.91rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.related-arrow {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  color: var(--cat-ink);
}

.not-found {
  padding: 100px 0;
}

.not-found-inner {
  max-width: 580px;
  margin-inline: auto;
  text-align: center;
}

.not-found-code {
  margin: 0;
  font-size: clamp(6rem, 16vw, 11rem);
  font-weight: 800;
  line-height: 0.9;
  background: linear-gradient(135deg, #7b2a8f, #d52b1e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.not-found h1 {
  margin: 10px 0 12px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
}

.not-found p {
  margin: 0 0 28px;
  line-height: 1.65;
  color: var(--muted);
}

.site-footer {
  margin-top: auto;
  padding: 34px 0;
  border-top: 1px solid rgba(155, 120, 175, 0.16);
  background: rgba(255, 247, 251, 0.82);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
}

.footer-school {
  margin: 0;
  font-weight: 800;
}

.footer-address {
  margin: 2px 0 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
  font-size: 0.81rem;
  color: var(--muted);
}

.footer-meta a {
  color: #7b2a8f;
  font-weight: 700;
  text-decoration: none;
}

.footer-meta a:hover {
  text-decoration: underline;
}

.admin-body {
  background:
    radial-gradient(800px 500px at 100% 0%, rgba(225, 190, 231, 0.28), transparent 60%),
    #fdf8fb;
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(155, 120, 175, 0.16);
  background: rgba(255, 250, 252, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.admin-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-block: 12px;
}

.brand-compact .brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-main {
  flex: 1;
  padding: 40px 0 80px;
}

.admin-page {
  max-width: 1120px;
}

.admin-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}

.admin-page-head h1 {
  margin: 4px 0 8px;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  letter-spacing: -0.03em;
}

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

.back-link {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.81rem;
  font-weight: 700;
  color: #7b2a8f;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 14px;
  margin-bottom: 30px;
}

.stat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(155, 120, 175, 0.15);
  border-radius: 18px;
  background: #fff;
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--lav-300);
}

.stat-card.stat-live::before {
  background: var(--blue);
}

.stat-card.stat-draft::before {
  background: #e0a800;
}

.stat-card.stat-cat::before {
  background: var(--cat-line);
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.stat-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
}

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(155, 120, 175, 0.15);
  border-left: 4px solid var(--cat-line);
  border-radius: 18px;
  background: #fff;
  transition: box-shadow 0.2s;
}

.admin-row:hover {
  box-shadow: 0 12px 30px rgba(80, 40, 100, 0.07);
}

.admin-row-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.admin-date {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
}

.admin-row h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  line-height: 1.35;
}

.admin-row p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--muted);
}

.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  max-width: 560px;
}

.status {
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-live {
  border: 1px solid #abefc6;
  background: #ecfdf3;
  color: #067647;
}

.status-draft {
  border: 1px solid #fedf89;
  background: #fffaeb;
  color: #b54708;
}

.inline-form {
  display: inline-flex;
}

.notice {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 0.87rem;
  line-height: 1.5;
}

.notice-success {
  border: 1px solid #abefc6;
  background: #ecfdf3;
  color: #067647;
}

.notice-error {
  border: 1px solid #f4cfcc;
  background: #fff1f0;
  color: #b3261e;
}

.notice ul {
  margin: 6px 0 0;
  padding-left: 20px;
}

.editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
  gap: 22px;
}

.editor-main,
.editor-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.panel {
  padding: 22px;
  border: 1px solid rgba(155, 120, 175, 0.15);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(80, 40, 100, 0.04);
}

.panel h2 {
  margin: 0 0 18px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.field:last-child {
  margin-bottom: 0;
}

.field label {
  font-size: 0.81rem;
  font-weight: 700;
  color: var(--ink);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e3d8ea;
  border-radius: 12px;
  background: #fdfbfe;
  color: var(--ink);
  font-size: 0.93rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: #c77ddb;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(224, 64, 251, 0.12);
}

.field textarea {
  min-height: 90px;
  line-height: 1.6;
  resize: vertical;
}

.field input[type="file"] {
  padding: 10px;
  background: #fff;
}

.tag-editor {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 8px;
  border: 1px solid #e3d8ea;
  border-radius: 12px;
  background: #fdfbfe;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.tag-editor:focus-within {
  border-color: #c77ddb;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(224, 64, 251, 0.12);
}

.tag-editor-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-editor-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px 5px 10px;
  border-radius: 999px;
  background: var(--lav-100);
  color: #7b2a8f;
  font-size: 0.78rem;
  font-weight: 600;
}

.tag-editor-remove {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(123, 42, 143, 0.12);
  color: inherit;
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
}

.tag-editor-remove:hover {
  background: rgba(123, 42, 143, 0.22);
}

.tag-editor input[type="text"] {
  flex: 1;
  min-width: 150px;
  padding: 6px;
  border: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
  font-size: 0.9rem;
}

.tag-editor input[type="text"]:focus {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.hint {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--muted);
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--pink-deep);
}

.checkbox-danger {
  margin-top: 12px;
  color: #b3261e;
}

.current-image img {
  width: 100%;
  margin-bottom: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.editor-actions {
  position: sticky;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stack-form {
  display: flex;
  flex-direction: column;
}

.login-body {
  background:
    radial-gradient(800px 600px at 85% 5%, rgba(225, 190, 231, 0.5), transparent 60%),
    radial-gradient(700px 500px at 0% 90%, rgba(255, 205, 210, 0.45), transparent 58%),
    #fff7fb;
}

.login-shell {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 40px 20px 80px;
}

.login-card {
  width: min(430px, 100%);
  padding: 34px;
  border: 1px solid rgba(155, 120, 175, 0.18);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 30px 70px rgba(80, 40, 100, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.login-brand {
  margin-bottom: 30px;
}

.login-heading h1 {
  margin: 0 0 8px;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}

.login-heading > p:last-child {
  margin: 0 0 24px;
  font-size: 0.91rem;
  line-height: 1.55;
  color: var(--muted);
}

.login-back {
  display: inline-block;
  margin-top: 22px;
  font-size: 0.83rem;
  font-weight: 700;
  color: #7b2a8f;
  text-decoration: none;
}

.login-back:hover {
  text-decoration: underline;
}

@media (min-width: 760px) {
  .news-card {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .card-media {
    height: 100%;
    min-height: 210px;
    aspect-ratio: auto;
  }
}

@media (min-width: 960px) {
  .timeline {
    gap: 30px;
  }

  .timeline::before {
    left: 112px;
  }

  .timeline-item {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: start;
    gap: 34px;
    padding-left: 0;
  }

  .timeline-item::before {
    left: 105px;
    top: 34px;
  }

  .timeline-date {
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    padding-top: 26px;
    text-align: right;
  }

  .tl-day {
    font-size: 2.8rem;
  }

  .tl-rest {
    text-align: right;
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: start;
  }

  .related {
    position: sticky;
    top: 104px;
  }
}

@media (max-width: 1080px) {
  .header-inner {
    gap: 12px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    white-space: nowrap;
  }

  .admin-entry {
    margin-left: auto;
  }

  .editor-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-panel {
    max-width: 560px;
  }

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

  .editor-actions {
    position: static;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(1180px, 100% - 28px);
  }

  .hero {
    padding: 52px 0 40px;
  }

  .hero h1 {
    font-size: clamp(2.3rem, 10vw, 3.2rem);
  }

  .hero-lead {
    font-size: 1.02rem;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 36px;
  }

  .filter-row {
    gap: 6px;
    padding: 10px;
    border-radius: 20px;
  }

  .filter-chip {
    padding: 9px 13px;
    font-size: 0.8rem;
  }

  .timeline-section {
    padding-bottom: 60px;
  }

  .article-hero {
    padding: 38px 0 34px;
  }

  .article-layout {
    padding-top: 30px;
  }

  .article-footer {
    flex-direction: column;
  }

  .article-footer .btn {
    width: 100%;
  }

  .admin-main {
    padding: 28px 0 60px;
  }

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

  .admin-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .admin-row-actions {
    justify-content: flex-start;
    max-width: none;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-meta {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .brand-subtitle {
    display: none;
  }

  .admin-entry span {
    display: none;
  }

  .admin-entry {
    padding: 10px;
  }

  .hero-panel {
    padding: 20px;
    border-radius: 22px;
  }

  .hero-total-number {
    font-size: 2.8rem;
  }

  .card-body {
    padding: 18px;
  }

  .card-title {
    font-size: 1.18rem;
  }

  .login-card {
    padding: 26px 20px;
  }

  .admin-page-head {
    align-items: flex-start;
  }

  .admin-page-head > .btn {
    width: 100%;
  }

  .admin-row-actions .btn,
  .admin-row-actions .inline-form {
    flex: 1;
  }

  .admin-row-actions .inline-form .btn {
    width: 100%;
  }

  .panel {
    padding: 18px;
  }

  .pagination {
    gap: 6px;
    margin-top: 32px;
  }

  .pagination-btn,
  .pagination-page {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
