@font-face {
  font-display: swap;
  font-family: "Pretendard";
  font-style: normal;
  font-weight: 100 900;
  src: url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/variable/woff2-subset/PretendardVariable.subset.woff2") format("woff2-variations");
}

:root {
  --bg: #fbfbfa;
  --surface: #ffffff;
  --ink: #151515;
  --muted: #696965;
  --line: #e9e6e0;
  --soft: #f4f3f0;
  --accent: #b8875a;
  --accent-dark: #7e5637;
  --shadow: 0 20px 70px rgba(20, 20, 20, 0.08);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-width: 320px;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  background: var(--ink);
  color: var(--surface);
  left: 1rem;
  padding: 0.7rem 0.9rem;
  position: fixed;
  top: 0.7rem;
  transform: translateY(-160%);
  z-index: 20;
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.site-header {
  align-items: center;
  color: #fff;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr auto auto;
  left: 0;
  padding: 1rem;
  position: fixed;
  right: 0;
  top: 0;
  transition: background 220ms ease, color 220ms ease, box-shadow 220ms ease, padding 220ms ease;
  z-index: 10;
}

.site-header.is-solid {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
  color: var(--ink);
  padding-bottom: 0.75rem;
  padding-top: 0.75rem;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 760;
  gap: 0.65rem;
  min-width: 0;
}

.brand-mark {
  background: currentColor;
  display: inline-block;
  height: 1.45rem;
  -webkit-mask: linear-gradient(#000 0 0) center 0 / 0.15rem 100% no-repeat,
    linear-gradient(#000 0 0) center 42% / 0.88rem 0.15rem no-repeat;
  mask: linear-gradient(#000 0 0) center 0 / 0.15rem 100% no-repeat,
    linear-gradient(#000 0 0) center 42% / 0.88rem 0.15rem no-repeat;
  width: 1.45rem;
}

.nav-toggle,
.lang-toggle {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: currentColor;
  cursor: pointer;
  display: inline-flex;
  height: 2.5rem;
  justify-content: center;
}

.site-header.is-solid .nav-toggle,
.site-header.is-solid .lang-toggle {
  background: var(--surface);
  border-color: var(--line);
}

.nav-toggle {
  flex-direction: column;
  gap: 0.22rem;
  width: 2.5rem;
}

.nav-toggle span {
  background: currentColor;
  display: block;
  height: 1px;
  width: 1rem;
}

.lang-toggle {
  font-size: 0.78rem;
  font-weight: 760;
  width: 2.8rem;
}

.nav-links {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  color: var(--ink);
  display: none;
  grid-column: 1 / -1;
  padding: 0.8rem;
}

.nav-links.is-open {
  display: grid;
}

.nav-links a {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  padding: 0.85rem 0.2rem;
}

.nav-links a:last-child {
  border-bottom: 0;
}

.hero {
  align-items: end;
  background: #1d1d1b;
  color: #fff;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  padding: 7rem 1.1rem 4rem;
  position: relative;
}

.hero-slides,
.hero-shade,
.hero-slide {
  inset: 0;
  position: absolute;
}

.hero-slides {
  background: linear-gradient(135deg, #30302d, #111);
}

.hero-slide {
  animation: heroFade 20s infinite;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.03);
}

.hero-slide:nth-child(1) {
  animation-delay: 0s;
}

.hero-slide:nth-child(2) {
  animation-delay: 4s;
}

.hero-slide:nth-child(3) {
  animation-delay: 8s;
}

.hero-slide:nth-child(4) {
  animation-delay: 12s;
}

.hero-slide:nth-child(5) {
  animation-delay: 16s;
}

.hero-shade {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.2) 36%, rgba(0, 0, 0, 0.62));
}

.hero-inner {
  margin: 0 auto;
  max-width: var(--max);
  position: relative;
  width: 100%;
  z-index: 1;
}

.eyebrow,
.section-kicker {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 820;
  margin: 0 0 1rem;
}

.hero .eyebrow {
  color: #e7c6a7;
}

.hero h1 {
  font-size: 2.35rem;
  font-weight: 780;
  line-height: 1.08;
  margin: 0;
  max-width: 16ch;
}

.hero-subtitle {
  font-size: 1rem;
  line-height: 1.75;
  margin: 1.1rem 0 0;
  max-width: 44rem;
}

.hero-en {
  color: rgba(255, 255, 255, 0.72);
  margin-top: 0.18rem;
}

.hero-tagline {
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 1.5rem 0 0;
  max-width: 34rem;
}

.hero-link {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 720;
  margin-top: 2rem;
  min-height: 2.9rem;
  padding: 0 1.05rem;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.hero-link:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.section {
  background: var(--bg);
  padding: 4.8rem 1.1rem;
}

.intro-band {
  background: var(--surface);
}

.section-grid {
  display: grid;
  gap: 1.6rem;
  margin: 0 auto;
  max-width: var(--max);
}

.section-copy h2 {
  font-size: 2rem;
  font-weight: 760;
  line-height: 1.18;
  margin: 0;
}

.section-copy p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.9;
  margin: 1rem 0 0;
  max-width: 46rem;
}

.schedule-list {
  border-top: 1px solid var(--line);
  margin-top: 2.25rem;
  max-width: 42rem;
}

.schedule-item {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 4.4rem;
}

.schedule-item span {
  color: var(--muted);
}

.schedule-item strong {
  color: var(--ink);
  font-size: 1.2rem;
}

.contact-section {
  background: var(--surface);
}

.visit-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  margin-top: 2.2rem;
  max-width: 54rem;
  overflow: hidden;
}

.map-graphic {
  background: #e4ece8;
  min-height: 14rem;
  overflow: hidden;
  position: relative;
}

.map-graphic::before {
  background-image: linear-gradient(rgba(91, 120, 104, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 120, 104, 0.16) 1px, transparent 1px);
  background-size: 2.25rem 2.25rem;
  content: "";
  inset: 0;
  position: absolute;
}

.map-road {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 1px rgba(91, 120, 104, 0.12);
  display: block;
  height: 1.35rem;
  position: absolute;
  transform-origin: center;
}

.map-road-a {
  left: -10%;
  top: 32%;
  transform: rotate(-9deg);
  width: 118%;
}

.map-road-b {
  left: 30%;
  top: -8%;
  transform: rotate(28deg);
  width: 1.1rem;
  height: 130%;
}

.map-road-c {
  bottom: 16%;
  left: 5%;
  transform: rotate(16deg);
  width: 76%;
}

.map-pin {
  background: var(--accent-dark);
  box-shadow: 0 0.6rem 1.8rem rgba(126, 86, 55, 0.28);
  height: 2.3rem;
  left: 53%;
  position: absolute;
  top: 42%;
  transform: translate(-50%, -50%) rotate(-45deg);
  width: 2.3rem;
}

.map-pin,
.map-pin::after {
  border-radius: 50% 50% 50% 0;
}

.map-pin::after {
  background: #fff;
  content: "";
  height: 0.72rem;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 0.72rem;
}

.visit-content {
  display: grid;
  gap: 0.85rem;
  padding: 1.35rem;
}

.section-copy .visit-label {
  color: var(--accent-dark);
  font-size: 0.84rem;
  font-weight: 820;
  line-height: 1.4;
  margin: 0;
}

.section-copy .visit-address {
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 760;
  line-height: 1.35;
  margin: 0;
  max-width: 32rem;
}

.section-copy .visit-note {
  margin: 0;
}

.visit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.55rem;
}

.visit-actions a,
.social-links a {
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 720;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.visit-actions a {
  align-items: center;
  display: inline-flex;
  min-height: 2.8rem;
  padding: 0.78rem 1rem;
}

.visit-actions a:hover,
.social-links a:hover {
  background: #fffaf5;
  border-color: var(--accent);
  color: var(--accent-dark);
  transform: translateY(-1px);
}

.social-section {
  background: var(--bg);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
  max-width: 46rem;
}

.social-links a {
  background: var(--surface);
  display: grid;
  flex: 1 1 10.5rem;
  gap: 0.35rem;
  min-height: 5.25rem;
  min-width: 0;
  padding: 1rem 2.5rem 1rem 1rem;
  position: relative;
}

.social-links a::after {
  border-right: 1px solid currentColor;
  border-top: 1px solid currentColor;
  content: "";
  height: 0.5rem;
  position: absolute;
  right: 1rem;
  top: 1.25rem;
  transform: rotate(45deg);
  width: 0.5rem;
}

.social-link-title {
  align-self: end;
}

.social-link-note {
  align-self: start;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 520;
}

.program-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.85rem;
}

.program-card {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-size: 0.94rem;
  font-weight: 720;
  gap: 0.55rem;
  letter-spacing: -0.01em;
  min-height: 2.6rem;
  padding: 0.5rem 1.1rem;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.program-card.is-link {
  cursor: pointer;
  padding-right: 1rem;
}

.program-card.is-link::after {
  border-right: 1.4px solid currentColor;
  border-top: 1.4px solid currentColor;
  content: "";
  height: 0.42rem;
  margin-left: 0.15rem;
  opacity: 0.65;
  transform: rotate(45deg);
  transition: transform 180ms ease, opacity 180ms ease;
  width: 0.42rem;
}

.program-card.is-link:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  box-shadow: 0 8px 22px rgba(126, 86, 55, 0.18);
  color: #fff;
  transform: translateY(-1px);
}

.program-card.is-link:hover::after {
  opacity: 1;
  transform: rotate(45deg) translate(1px, -1px);
}

.program-card-title {
  white-space: nowrap;
}

.resource-section {
  background: var(--surface);
}

.resource-page {
  background: var(--surface);
}

.resource-page .site-header {
  grid-template-columns: 1fr auto;
}

.resource-page-section {
  min-height: calc(100svh - 5rem);
  padding-top: 7rem;
}

.resource-gate,
.resource-library {
  margin-top: 2rem;
  max-width: 54rem;
}

.resource-form {
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  gap: 1rem;
  padding: 1.1rem;
}

.resource-form label {
  display: grid;
  gap: 0.45rem;
}

.resource-form span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
}

.resource-submit {
  align-items: center;
  background: var(--ink);
  border: 1px solid var(--ink);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 740;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0 1rem;
}

.resource-status {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}

.resource-status.is-error {
  color: #a6422e;
}

.resource-library {
  display: grid;
  gap: 2rem;
}

.resource-block {
  display: grid;
  gap: 1rem;
}

.resource-block h2 {
  font-size: 1.15rem;
  margin: 0;
}

.resource-links {
  display: grid;
  gap: 0.75rem;
}

.resource-links a {
  background: var(--bg);
  border: 1px solid var(--line);
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.resource-links a:hover {
  background: #fffaf5;
  border-color: var(--accent);
  color: var(--accent-dark);
  transform: translateY(-1px);
}

.resource-link-title {
  font-weight: 760;
}

.resource-links small {
  color: var(--muted);
  font-size: 0.84rem;
}

.resource-page-layout {
  display: grid;
  gap: 1rem;
}

.resource-page-list {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.35rem 0 0.55rem;
}

.resource-page-list a,
.resource-page-list button {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  flex: 0 0 auto;
  font-weight: 740;
  min-height: 3rem;
  padding: 0.55rem 1rem;
}

.resource-page-list a {
  display: grid;
  gap: 0.25rem;
  line-height: 1.35;
  padding-bottom: 0.6rem;
  padding-top: 0.6rem;
}

.resource-page-list a:hover {
  background: #fffaf5;
  border-color: var(--accent);
  color: var(--accent-dark);
}

.resource-page-list small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 520;
}

.resource-page-list button.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.resource-page-view {
  background: var(--bg);
  border: 1px solid var(--line);
  min-height: 12rem;
  padding: 1rem;
}

.resource-page-view h3 {
  font-size: 1.35rem;
  margin: 0 0 0.8rem;
}

.resource-page-body {
  color: var(--muted);
  line-height: 1.85;
  white-space: normal;
}

.resource-page-body h4,
.resource-page-body h5,
.resource-page-body h6 {
  color: var(--ink);
  line-height: 1.35;
  margin: 1.3rem 0 0.45rem;
}

.resource-page-body p,
.resource-page-body ul {
  margin: 0 0 1rem;
}

.resource-page-body ul {
  padding-left: 1.2rem;
}

.resource-page-body a {
  color: var(--accent-dark);
  font-weight: 720;
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}

.resource-page-note {
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 720;
  line-height: 1.6;
  margin: 0 0 1rem;
}

.resource-empty {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
  padding: 1rem;
}

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  padding: 2.2rem 1.1rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(1.4rem);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroFade {
  0%,
  18% {
    opacity: 1;
  }

  24%,
  100% {
    opacity: 0;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (min-width: 760px) {
  .site-header {
    gap: 1.8rem;
    grid-template-columns: 1fr auto auto;
    padding: 1.25rem 2rem;
  }

  .resource-page .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-toggle {
    display: none;
  }

  .nav-links {
    background: transparent;
    box-shadow: none;
    color: currentColor;
    display: flex;
    gap: 1.35rem;
    grid-column: auto;
    padding: 0;
  }

  .nav-links a {
    border: 0;
    color: currentColor;
    font-size: 0.88rem;
    opacity: 0.78;
    padding: 0;
    transition: opacity 180ms ease;
  }

  .nav-links a:hover {
    opacity: 1;
  }

  .hero {
    min-height: 100vh;
    min-height: 100svh;
    padding: 8rem 2rem 5rem;
  }

  .hero h1 {
    font-size: 4rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .section {
    padding: 7rem 2rem;
  }

  .section-grid {
    gap: 4rem;
    grid-template-columns: 12rem minmax(0, 1fr);
  }

  .section-copy h2 {
    font-size: 2.7rem;
  }

  .visit-panel {
    grid-template-columns: minmax(16rem, 0.85fr) minmax(0, 1.15fr);
  }

  .map-graphic {
    min-height: 20rem;
  }

  .visit-content {
    align-content: center;
    padding: 2rem;
  }

  .resource-form {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 1.35rem;
  }

  .resource-form .turnstile-box,
  .resource-form .resource-status {
    grid-column: 1 / -1;
  }

  .resource-page-layout {
    align-items: start;
    grid-template-columns: 13rem minmax(0, 1fr);
  }

  .resource-page-list {
    display: grid;
    overflow: visible;
  }
}

@media (min-width: 1120px) {
  .hero h1 {
    font-size: 5rem;
  }

  .section-copy h2 {
    font-size: 3rem;
  }
}

.admin-page {
  background: var(--bg);
  color: var(--ink);
}

.admin-shell {
  margin: 0 auto;
  max-width: 1180px;
  min-height: 100svh;
  padding: 1rem;
}

.login-panel {
  align-items: center;
  display: grid;
  min-height: 100svh;
}

.login-card,
.admin-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.login-card {
  margin: 0 auto;
  max-width: 28rem;
  padding: 1.4rem;
  width: 100%;
}

.login-card h1,
.admin-header h1 {
  font-size: 2rem;
  line-height: 1.15;
  margin: 0;
}

.admin-muted,
.admin-status {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.admin-status.is-error {
  color: #a6422e;
}

.env-badge {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-left: 0.4rem;
  vertical-align: middle;
}

.env-badge.is-prod {
  background: #1f6d3a;
  color: #fff;
}

.env-badge.is-local {
  background: #c2410c;
  color: #fff;
}

.env-target {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
}

.admin-form,
.admin-editor {
  display: grid;
  gap: 1rem;
}

.admin-form label,
.admin-field {
  display: grid;
  gap: 0.45rem;
}

.admin-form span,
.admin-field span,
.localized-field p {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
  margin: 0;
}

input,
select,
textarea {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  min-height: 2.75rem;
  padding: 0.72rem 0.8rem;
  width: 100%;
}

textarea {
  line-height: 1.65;
  min-height: 8rem;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.turnstile-box {
  min-height: 4.4rem;
}

.admin-primary,
.admin-secondary,
.file-picker {
  align-items: center;
  border: 1px solid var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-weight: 740;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1rem;
}

.admin-primary {
  background: var(--ink);
  color: #fff;
}

.admin-secondary,
.file-picker {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.admin-secondary.compact {
  font-size: 0.82rem;
  min-height: 2.2rem;
  padding: 0 0.7rem;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.editor-panel {
  padding: 1rem 0 3rem;
}

.admin-header {
  align-items: start;
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.admin-layout {
  display: grid;
  gap: 1rem;
}

.admin-tabs {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
}

.admin-tabs button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  font-weight: 740;
  min-height: 2.5rem;
  padding: 0 0.9rem;
}

.admin-tabs button.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.admin-tab-panel {
  display: none;
}

.admin-tab-panel.is-active {
  display: grid;
  gap: 1rem;
}

.admin-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.admin-card legend {
  font-size: 1.15rem;
  font-weight: 780;
  padding: 0 0.35rem;
}

.localized-field {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.75rem;
  padding-top: 1rem;
}

.localized-field:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.admin-row {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.75rem;
  padding-top: 1rem;
}

.admin-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.row-actions,
.upload-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.image-row {
  grid-template-columns: 4.5rem minmax(0, 1fr);
}

.image-row img {
  aspect-ratio: 1;
  background: var(--soft);
  border: 1px solid var(--line);
  object-fit: cover;
  width: 4.5rem;
}

.image-row .row-actions {
  grid-column: 1 / -1;
}

.file-picker input {
  height: 1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.resource-page-editor {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1rem;
  padding-top: 1rem;
}

.resource-page-editor:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.markdown-preview {
  background: var(--bg);
  border: 1px solid var(--line);
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}

.markdown-preview > p {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
  margin: 0;
}

.markdown-preview-body {
  color: var(--muted);
  line-height: 1.75;
}

.markdown-preview-body h4,
.markdown-preview-body h5,
.markdown-preview-body h6 {
  color: var(--ink);
  line-height: 1.35;
  margin: 1rem 0 0.4rem;
}

.markdown-preview-body p,
.markdown-preview-body ul {
  margin: 0 0 0.8rem;
}

.markdown-preview-body ul {
  padding-left: 1.2rem;
}

.markdown-preview-body a {
  color: var(--accent-dark);
  font-weight: 720;
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}

[hidden] {
  display: none !important;
}

@media (min-width: 780px) {
  .admin-shell {
    padding: 2rem;
  }

  .login-card {
    padding: 2rem;
  }

  .admin-header {
    align-items: center;
    grid-template-columns: 1fr auto;
  }

  .admin-layout {
    align-items: start;
    grid-template-columns: 11rem minmax(0, 1fr);
  }

  .admin-tabs {
    display: grid;
    overflow: visible;
    position: sticky;
    top: 1rem;
  }

  .admin-card {
    padding: 1.35rem;
  }

  .localized-field,
  .admin-row {
    grid-template-columns: 9rem minmax(0, 1fr) minmax(0, 1fr);
  }

  .localized-field p {
    padding-top: 0.85rem;
  }

  .admin-row {
    align-items: end;
    grid-template-columns: minmax(7rem, 0.8fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  }

  .image-row {
    grid-template-columns: 5rem minmax(0, 1fr) auto;
  }

  .image-row img {
    width: 5rem;
  }

  .image-row .row-actions {
    grid-column: auto;
  }

  .resource-link-row {
    grid-template-columns: minmax(8rem, 0.8fr) minmax(0, 1.2fr) minmax(8rem, 0.8fr) auto;
  }
}
