:root {
  --page: #fafaf9;
  --chrome: #f0eeea;
  --surface: #ffffff;
  --surface-muted: #e8edf3;
  --surface-soft: #f8fafc;
  --text: #23242a;
  --text-muted: #52525b;
  --text-soft: #71717a;
  --line: rgba(24, 24, 27, 0.09);
  --primary: #c2473d;
  --primary-soft: rgba(183, 70, 58, 0.08);
  --navy: #1f2a44;
  --ok: #0f766e;
  --warning: #b45309;
  --radius-sm: 8px;
  --radius-md: 12px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 20px;
  --space-section: 24px;
  --font: Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #ffffff;
  color: var(--text);
  font-family: var(--font);
  overflow-x: hidden;
}

button {
  font: inherit;
}

.phone-shell {
  width: 100%;
  max-width: 428px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--page);
  padding: 0 20px 116px;
}

.magazine-header {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0 -20px 24px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(24, 24, 27, 0.06);
  background: var(--chrome);
}

.title-child-icon {
  display: inline-block;
  border-radius: 999px;
  background-image: url("/avatar.png");
  background-size: cover;
  background-position: center;
  background-color: var(--surface-muted);
}

.magazine-title {
  font-size: 24px;
  line-height: 32px;
  font-weight: 800;
}

.status-line {
  min-height: 0;
  margin: 0;
  color: transparent;
  font-size: 0;
  line-height: 0;
}

.feed {
  display: block;
}

.card {
  position: relative;
  margin-bottom: 48px;
}

.cover {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--surface-muted);
  color: var(--text-soft);
}

.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kicker {
  margin: 0 0 8px;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.title {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  color: var(--text);
  text-align: left;
  font-size: 23px;
  line-height: 31px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.title-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: var(--space-sm);
}

.title-child-icon {
  width: 16px;
  height: 16px;
  margin-top: 6px;
  flex: 0 0 auto;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
}

.section-label {
  margin: 0 0 24px;
  color: var(--text);
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  letter-spacing: 1.4px;
}

.section-label.divided {
  margin-top: var(--space-section);
}

.bottom-tabs {
  position: fixed;
  left: 50%;
  bottom: 16px;
  width: min(388px, calc(100vw - 28px));
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 44px rgba(24, 24, 27, 0.08);
  color: #71717a;
  z-index: 5;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.bottom-tabs span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}

.bottom-tabs .active {
  color: var(--primary);
}

.tab-icon {
  width: 26px;
  height: 26px;
}

.reader {
  position: fixed;
  inset: 0;
  overflow-y: auto;
  background: var(--page);
  z-index: 10;
}

.reader.hidden {
  display: none;
}

.reader-shell {
  padding-left: 0;
  padding-right: 0;
}

.reader-shell .magazine-header {
  margin: 0;
  padding: 0 20px;
}

.reader-content {
  padding: 0 20px 112px;
}

.reader-hero {
  width: 100%;
  height: 248px;
  margin-bottom: 56px;
  overflow: hidden;
  background: var(--surface-muted);
}

.reader-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.back-button {
  margin: 0 0 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 22px;
  font-weight: 700;
}

.main-category-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
}

.main-category-label {
  color: var(--text-muted);
  font-weight: 700;
}

.main-category-value {
  color: var(--text);
  font-weight: 700;
}

.icon {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}

.heart-icon {
  color: var(--text-soft);
}

.reader-title {
  margin: 0 0 16px;
  font-size: 32px;
  line-height: 42px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.reader-header {
  display: grid;
  gap: 0;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.admin-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 18px;
}

.admin-actions.card {
  margin-top: 12px;
}

.admin-actions.reader {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.66);
}

.admin-actions.editor {
  margin-top: 0;
  padding-bottom: 6px;
}

.approval-badge {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
}

.approval-badge.approved {
  background: rgba(15, 118, 110, 0.1);
  color: var(--ok);
}

.approval-badge.pending {
  background: rgba(180, 83, 9, 0.1);
  color: var(--warning);
}

.admin-action {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 18px;
  font-weight: 800;
}

.admin-action.primary {
  border-color: transparent;
  background: var(--primary);
  color: var(--surface);
}

.admin-action:disabled {
  opacity: 0.45;
}

.editable-text {
  outline: 1.5px dashed rgba(194, 71, 61, 0.42);
  outline-offset: 3px;
  border-radius: 6px;
  cursor: text;
}

.editable-text:focus {
  outline-style: solid;
  background: rgba(255, 255, 255, 0.42);
}

.reader-approve {
  width: 100%;
  min-height: 48px;
  margin-top: var(--space-xl);
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 15px;
  line-height: 22px;
  font-weight: 800;
}

.reader-approve.primary {
  background: var(--primary);
  color: var(--surface);
}

.reader-approve:disabled {
  opacity: 0.45;
}

.lead {
  margin: 0 0 var(--space-lg);
  color: var(--text-muted);
  font-size: 19px;
  line-height: 33px;
  font-weight: 500;
  letter-spacing: -0.2px;
}

.paragraph {
  margin: 0 0 22px;
  font-size: 18px;
  line-height: 34px;
  font-weight: 400;
  letter-spacing: -0.2px;
}

.h2 {
  margin: 42px 0 18px;
  font-size: 24px;
  line-height: 33px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.h3 {
  margin: var(--space-lg) 0 var(--space-xs);
  font-size: 19px;
  line-height: 27px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.quote,
.checklist {
  margin: var(--space-md) 0;
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.calendar-block,
.table-block {
  margin: var(--space-section) 0;
}

.quote {
  border-left: 3px solid var(--primary);
  color: var(--text-muted);
  font-size: 17px;
  line-height: 29px;
}

.reader-faq {
  margin: 48px 0 28px;
  border-top: 1px solid var(--line);
}

.reader-faq h2 {
  margin: 24px 0 14px;
  font-size: 24px;
  line-height: 33px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.reader-faq details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.reader-faq summary {
  cursor: pointer;
  color: var(--text);
  font-size: 17px;
  line-height: 27px;
  font-weight: 700;
}

.reader-faq p {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 30px;
  font-weight: 400;
}

.checklist {
  padding: var(--space-xl);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.list-row,
.check-row {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
  font-size: 16px;
  line-height: 25px;
}

.dot {
  color: var(--primary);
}

.check-box {
  width: 19px;
  height: 19px;
  margin-top: 2px;
  border: 1.5px solid #a1a1aa;
  border-radius: var(--radius-sm);
  flex: 0 0 auto;
}

.empty {
  padding: 48px 0;
  color: var(--text-soft);
  text-align: center;
  font-size: 15px;
  line-height: 22px;
}

.calendar-title {
  margin: 0 0 18px;
  font-size: 28px;
  line-height: 38px;
  font-weight: 800;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.calendar-weekdays span {
  padding-bottom: 16px;
  color: var(--text-soft);
  text-align: center;
  font-size: 15px;
  line-height: 21px;
  font-weight: 600;
}

.calendar-cell {
  aspect-ratio: 1;
  padding: 5px;
}

.calendar-cell-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 16px;
}

.calendar-cell-inner.marked {
  background: var(--surface-muted);
}

.calendar-day {
  color: var(--text);
  font-size: 17px;
  line-height: 23px;
  font-weight: 600;
}

.calendar-dot,
.calendar-legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: transparent;
}

.calendar-dot.a,
.calendar-legend-dot.a {
  background: var(--primary);
}

.calendar-dot.b,
.calendar-legend-dot.b {
  background: #f97316;
}

.calendar-dot.c,
.calendar-legend-dot.c {
  background: #3b82f6;
}

.calendar-legend {
  display: grid;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--line);
}

.calendar-legend-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-muted);
  font-size: 17px;
  line-height: 25px;
}

.table-title {
  margin: 0 0 var(--space-sm);
  font-size: 18px;
  line-height: 24px;
}

.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: scroll;
  overflow-y: hidden;
  border-top: 1px solid var(--line);
  background: transparent;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}

.table-scroll::-webkit-scrollbar {
  display: none;
}

.article-table {
  table-layout: fixed;
  border-collapse: collapse;
  min-width: 100%;
  background: transparent;
}

.article-table th,
.article-table td {
  width: 156px;
  padding: var(--space-md) var(--space-sm);
  border-bottom: 1px solid var(--line);
  color: var(--text-muted);
  text-align: left;
  vertical-align: top;
  font-size: 16px;
  line-height: 25px;
  font-weight: 600;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.article-table th {
  border-bottom: 2px solid var(--text);
  color: var(--text);
  font-weight: 800;
}

.table-note {
  margin: var(--space-sm) 0 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 22px;
}

.editor-panel {
  display: grid;
  gap: 14px;
  margin: 32px 0 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.editor-field {
  display: grid;
  gap: 6px;
}

.editor-label {
  color: var(--text-soft);
  font-size: 12px;
  line-height: 17px;
  font-weight: 800;
}

.editor-title-input,
.editor-field textarea {
  width: 100%;
  border: 1px solid rgba(24, 24, 27, 0.12);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  line-height: 23px;
}

.editor-title-input {
  min-height: 42px;
  padding: 8px 10px;
  font-weight: 800;
}

.editor-field textarea {
  min-height: 72px;
  padding: 10px;
  resize: vertical;
}

.editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.editor-button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 18px;
  font-weight: 800;
}

.editor-button.primary {
  border-color: transparent;
  background: var(--primary);
  color: var(--surface);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: min(390px, calc(100vw - 32px));
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  background: var(--navy);
  color: var(--surface);
  font-size: 13px;
  line-height: 18px;
  z-index: 20;
}

/* Public web: MOMO editorial marketplace */
.public-page {
  --web-paper: #ffffff;
  --web-ink: #1c1a17;
  --web-muted: #6b6761;
  --web-coral: #d85b4c;
  --web-plum: #6b1f4a;
  --web-lime: #d9f36a;
  --web-sky: #cbeef7;
  --web-mint: #d8eee3;
  --web-card: #ffffff;
  --web-line: #e7e5e0;
  background: var(--web-paper);
  color: var(--web-ink);
}

.public-page a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 32px;
  height: 64px;
  border-bottom: 0;
  background: #202020;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand {
  color: #ffffff;
  opacity: 1;
  font-family: var(--font);
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
  text-decoration: none;
}

.site-header .brand,
.site-header .brand:visited {
  color: #ffffff;
}

.site-header nav {
  display: flex;
  gap: 10px;
}

.primary-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--web-line);
  border-radius: 999px;
  padding: 0 16px;
  background: var(--web-card);
  color: var(--web-ink);
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
  box-shadow: none;
}

.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 4px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.site-header nav a:hover {
  color: #ffffff;
}

/* ── Site footer ─────────────────────────────────────────── */
.site-footer {
  margin-top: 96px;
  background: #292929;
  color: #f1f1ef;
}

.site-footer-inner {
  width: min(1400px, calc(100% - 128px));
  margin: 0 auto;
  padding: 62px 0 48px;
}

.footer-brand-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 62px;
}

.footer-brand {
  color: #ffffff !important;
  font-size: 38px;
  font-weight: 750;
  letter-spacing: -2.4px;
  text-decoration: none;
}

.footer-brand-row p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  line-height: 1.6;
  text-align: right;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 54px;
}

.footer-links section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.38);
  padding-top: 20px;
}

.footer-links h2 {
  margin: 0 0 4px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 850;
}

.footer-links a,
.footer-links span {
  color: rgba(255, 255, 255, 0.68) !important;
  font-size: 15px;
  line-height: 1.45;
  text-decoration: none;
}

.footer-links a:hover {
  color: #ffffff !important;
}

.footer-store-links {
  display: flex;
  gap: 12px;
  margin-top: 58px;
}

.footer-store-links a {
  display: inline-flex;
  min-width: 280px;
  min-height: 68px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border-radius: 4px;
  background: #ffffff;
  color: #202020 !important;
  text-decoration: none;
}

.footer-store-links svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.footer-store-links a > span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 19px;
  font-weight: 850;
  line-height: 1.04;
}

.footer-store-links small {
  margin-bottom: 3px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .3px;
}

.footer-copy {
  margin: 48px 0 0;
  color: rgba(255, 255, 255, 0.38);
  font-size: 12px;
}
/* ──────────────────────────────────────────────────────────── */

/* ── 모모 앱 다운로드 nav item + QR popover ─────────────────── */
.nav-download {
  position: relative;
}

/* 버튼과 팝오버 사이의 여백에서도 hover가 끊기지 않게 연결한다. */
.nav-download::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 0;
  width: 292px;
  height: 12px;
  pointer-events: none;
}

.nav-download:hover::after,
.nav-download:focus-within::after {
  pointer-events: auto;
}

.nav-download-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 20px;
  border: 0;
  border-radius: 18px;
  background: #ffffff;
  color: #111111 !important;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.5px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
  transition: opacity 0.2s ease;
}

.nav-download:hover .nav-download-trigger,
.nav-download-trigger:focus-visible {
  opacity: 0.88;
}

.nav-download-popover {
  position: absolute;
  top: 100%;
  right: 0;
  left: auto;
  z-index: 999;
  width: 292px;
  margin-top: 12px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(194, 71, 61, 0.1);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0, rgba(242, 190, 176, 0.45), transparent 42%),
    linear-gradient(145deg, #fffaf7 0%, #ffffff 58%);
  box-shadow: 0 18px 50px rgba(61, 38, 32, 0.15);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 15px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

/* arrow — 팝오버 우측에서 36px: 버튼 가로 중앙을 자연스럽게 가리킴 */
.nav-download-popover::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 36px;
  left: auto;
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-radius: 2px;
  transform: rotate(45deg);
  box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.03);
}

.nav-download:hover .nav-download-popover,
.nav-download:focus-within .nav-download-popover {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-download-hint {
  margin: 0;
  color: #6d625e;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 500;
  text-align: left;
  letter-spacing: -0.35px;
}

.nav-download-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-download-app-icon {
  display: block;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  background: #f3e4dc;
  box-shadow: 0 7px 20px rgba(119, 67, 54, 0.16);
}

.nav-download-eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--primary);
  font-size: 9px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 1.2px;
}

.nav-download-card-head strong {
  display: block;
  color: #2d2826;
  font-size: 20px;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: -0.8px;
}

.nav-download-card-cta {
  display: flex !important;
  min-height: 44px !important;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px !important;
  border-radius: 13px;
  background: var(--primary);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(194, 71, 61, 0.22);
  transition: transform 0.18s ease, background 0.18s ease;
}

.nav-download-card-cta:hover {
  background: #ad3e35;
  transform: translateY(-1px);
}

.nav-download-card-cta span {
  font-size: 18px;
  font-weight: 400;
}

.nav-download-stores {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  color: #8b817c;
  font-size: 11px;
  font-weight: 650;
}

.nav-download-stores svg {
  display: block;
  width: 15px;
  height: 15px;
  opacity: 0.7;
}

.nav-download-stores i {
  width: 1px;
  height: 12px;
  margin: 0 3px;
  background: rgba(83, 68, 62, 0.16);
}
/* ──────────────────────────────────────────────────────────── */

.hidden {
  display: none !important;
}

.admin-web-toolbar {
  position: fixed;
  top: 76px;
  right: clamp(16px, 4vw, 56px);
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid rgba(28, 26, 23, 0.16);
  background: rgba(255, 255, 255, 0.94);
  color: var(--web-ink);
  font-size: 13px;
  line-height: 18px;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(28, 26, 23, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.admin-web-toolbar + .site-header {
  top: 0;
}

.admin-web-toolbar a,
.admin-web-toolbar button {
  min-height: 32px;
  border: 0;
  background: transparent;
  color: var(--web-ink);
  padding: 0 11px;
  font: inherit;
  line-height: 32px;
  text-decoration: none;
  cursor: pointer;
}

.admin-web-toolbar .active,
.admin-web-toolbar button[data-admin-save] {
  background: var(--web-ink);
  color: #ffffff;
}

.admin-web-toolbar button[data-admin-approve] {
  color: var(--web-coral);
}

.admin-web-toolbar button[data-admin-approve]:hover,
.admin-web-toolbar a:hover,
.admin-web-toolbar button:hover {
  background: rgba(28, 26, 23, 0.06);
}

.admin-web-toolbar .active:hover,
.admin-web-toolbar button[data-admin-save]:hover {
  background: var(--web-ink);
}

.admin-toolbar-home {
  color: var(--web-muted) !important;
}

.admin-toolbar-divider {
  width: 1px;
  height: 18px;
  background: rgba(28, 26, 23, 0.14);
}

.admin-editing [contenteditable="true"] {
  outline: 2px solid rgba(194, 71, 61, 0.46);
  outline-offset: 4px;
}

.admin-web {
  max-width: 1040px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}

.admin-login {
  max-width: 520px;
}

.admin-login h1,
.admin-dashboard-head h1 {
  margin: 0;
  font-size: 42px;
  line-height: 50px;
  font-weight: 900;
}

.admin-login p {
  color: var(--web-muted);
  font-size: 17px;
  line-height: 28px;
}

.admin-login form {
  display: grid;
  gap: 10px;
  margin: 28px 0 10px;
}

.admin-login input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--web-line);
  padding: 0 14px;
  font: inherit;
  font-size: 16px;
}

.admin-login button,
.admin-dashboard-head button {
  min-height: 40px;
  border: 1px solid var(--web-ink);
  background: var(--web-ink);
  color: #ffffff;
  padding: 0 14px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.admin-login #googleLogin {
  display: inline-flex;
  min-height: 40px;
  margin-top: 14px;
  background: #ffffff;
}

.admin-status {
  min-height: 24px;
}

.admin-dashboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
}

.admin-lanes {
  display: grid;
  gap: 44px;
}

.admin-lane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-lane-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.admin-lane h2 {
  margin: 0;
  font-size: 26px;
  line-height: 34px;
}

.admin-category-button {
  min-height: 30px;
  border: 1px solid var(--web-line);
  border-radius: 0;
  padding: 0 10px;
  background: #ffffff;
  color: var(--web-muted);
  font: inherit;
  font-size: 13px;
  line-height: 18px;
  font-weight: 800;
  cursor: pointer;
}

.admin-post-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--web-line);
}

.admin-lane .admin-post-row:last-child {
  border-bottom: 1px solid var(--web-line);
}

.admin-post-row p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  color: var(--web-muted);
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
}

.admin-post-row h3 {
  margin: 0;
  font-size: 18px;
  line-height: 26px;
}

.admin-badge {
  border: 1px solid currentColor;
  padding: 1px 6px;
  font-size: 11px;
  line-height: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.admin-badge.live {
  color: var(--web-ink);
}

.admin-badge.pending {
  color: var(--web-coral);
}

.admin-badge.draft {
  color: var(--web-muted);
}

.admin-mini-button {
  min-height: 28px;
  border: 1px solid var(--web-line);
  border-radius: 0;
  padding: 0 10px;
  background: #ffffff;
  color: var(--web-muted);
  font: inherit;
  font-size: 13px;
  line-height: 18px;
  font-weight: 800;
  cursor: pointer;
}

.admin-mini-button.danger {
  color: var(--web-coral);
}

.admin-mini-button:disabled {
  opacity: 0.45;
  cursor: wait;
}

.admin-category-move {
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-category-move select {
  max-width: 180px;
  min-height: 28px;
  border: 1px solid var(--web-line);
  border-radius: 0;
  padding: 0 24px 0 8px;
  background: #ffffff;
  color: var(--web-ink);
  font: inherit;
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
}

.admin-today {
  margin-top: 8px;
}

.admin-today-edit {
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-today-edit input,
.admin-today-edit button {
  min-height: 28px;
  border: 1px solid var(--web-line);
  border-radius: 0;
  padding: 0 8px;
  background: #ffffff;
  color: var(--web-ink);
  font: inherit;
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
}

.admin-today-edit button {
  cursor: pointer;
  font-weight: 800;
}

.admin-today-edit button:disabled {
  opacity: 0.45;
  cursor: wait;
}

.admin-category-edit {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-category-edit input {
  width: 220px;
  min-height: 34px;
  border: 1px solid var(--web-line);
  border-radius: 0;
  padding: 0 10px;
  background: #ffffff;
  color: var(--web-ink);
  font: inherit;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
}

.admin-category-edit button {
  min-height: 34px;
  border: 1px solid var(--web-line);
  border-radius: 0;
  padding: 0 12px;
  background: #ffffff;
  color: var(--web-ink);
  font: inherit;
  font-size: 14px;
  line-height: 20px;
  font-weight: 800;
  cursor: pointer;
}

.admin-category-button:disabled,
.admin-category-edit button:disabled {
  opacity: 0.45;
  cursor: wait;
}

.admin-post-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-post-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-post-actions a {
  min-height: 0;
  border: 0;
  padding: 0;
  background: none;
  color: var(--web-muted);
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.admin-post-actions a:hover {
  color: var(--web-ink);
}

.admin-post-actions button.primary {
  min-height: 28px;
  border: 1px solid var(--web-ink);
  border-radius: 0;
  padding: 0 12px;
  background: var(--web-ink);
  color: #ffffff;
  font: inherit;
  font-size: 13px;
  line-height: 18px;
  font-weight: 800;
  cursor: pointer;
}

.admin-post-actions button:disabled {
  opacity: 0.45;
  cursor: wait;
}

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

.primary-link:hover {
  box-shadow: none;
}

.hero,
.magazine-web,
.public-section {
  max-width: 1040px;
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
}

.hero {
  padding-top: 64px;
  padding-bottom: 56px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--web-coral);
  font-size: 14px;
  line-height: 1.3;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-heading h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-copy,
.page-heading p {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--web-muted);
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.48;
  font-weight: 650;
}

.hero-actions {
  margin-top: 32px;
}

.public-section {
  padding-top: 36px;
  padding-bottom: 82px;
}

.public-section h2 {
  margin: 0 0 20px;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1;
  font-weight: 950;
}

.feature-grid,
.post-grid {
  display: grid;
  gap: 28px;
}

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

.app-cta {
  border: 1px solid var(--web-line);
  border-radius: 12px;
  background: var(--web-card);
  box-shadow: 0 10px 26px rgba(28, 26, 23, 0.06);
}

.post-card {
  border: 0;
  background: transparent;
  box-shadow: none;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.feature-grid article {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.feature-grid h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.24;
  font-weight: 900;
}

.feature-grid p,
.app-cta p {
  margin: 0;
  color: var(--web-muted);
  font-size: 15px;
  line-height: 1.58;
  font-weight: 560;
}

.magazine-web {
  max-width: none;
  margin-left: clamp(32px, 12vw, 240px);
  margin-right: clamp(20px, 4vw, 56px);
  padding-top: 40px;
  padding-bottom: 80px;
}

.magazine-intro {
  max-width: 720px;
  margin: 0 0 44px;
}

.magazine-intro h1 {
  margin: 0;
  font-size: 30px;
  line-height: 38px;
  font-weight: 750;
  letter-spacing: 0;
}

.magazine-intro p {
  margin: 12px 0 0;
  color: var(--web-muted);
  font-size: 16px;
  line-height: 26px;
  font-weight: 500;
}

.page-heading {
  padding-bottom: 42px;
}

.category-section {
  margin-bottom: 70px;
  margin-right: 0;
}

.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-right: 0;
  margin-bottom: 24px;
}

.category-heading {
  margin: 0;
  font-size: 26px;
  line-height: 32px;
  font-weight: 700;
}

.category-more {
  color: var(--web-muted);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.category-section .post-grid {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 0 24px 18px 0;
  scroll-snap-type: none;
  scrollbar-width: none;
  scroll-behavior: auto;
  cursor: grab;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y pinch-zoom;
  -webkit-overflow-scrolling: touch;
}

.category-section .post-grid::-webkit-scrollbar {
  display: none;
}

.category-section .post-grid.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.category-section .post-card {
  width: 280px;
  min-width: 280px;
  max-width: 280px;
}

.category-section.is-expanded {
  margin-right: 0;
}

.category-section.is-expanded .category-header {
  padding-right: 0;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.category-section.is-expanded .expanded-header {
  display: grid;
  justify-content: start;
  justify-items: start;
  gap: 18px;
  margin-bottom: 34px;
}

.category-back {
  color: var(--web-muted);
  font-size: 16px;
  line-height: 22px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.category-back:hover {
  color: var(--web-ink);
}

.category-section.is-expanded .post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 640px;
  margin: 0 auto;
  overflow: visible;
  padding: 0;
  cursor: default;
}

.category-section.is-expanded .post-card {
  width: 100%;
  min-width: 0;
  max-width: none;
}

.category-section.is-expanded .post-card-link {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  column-gap: 28px;
  align-items: start;
}

.category-section.is-expanded .post-cover {
  width: 140px;
  height: 105px;
  margin: 0;
}

.category-section.is-expanded .post-card h2 {
  margin: 0;
  font-size: 20px;
  line-height: 30px;
  font-weight: 800;
  -webkit-line-clamp: 2;
}

.category-section.is-expanded .post-summary {
  display: none;
}

.post-card {
  overflow: visible;
  padding: 0;
}

.post-card-link {
  display: block;
  text-decoration: none;
  cursor: pointer;
  transition: none;
}

.post-card h2,
.post-summary,
.post-date {
  display: block;
  padding-left: 0;
  padding-right: 0;
}

.post-card h2 {
  margin: 16px 0 8px;
  font-size: 20px;
  line-height: 26px;
  font-weight: 700;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.post-summary {
  margin: 0;
  color: var(--web-ink);
  font-size: 18px;
  line-height: 26px;
  font-weight: 400;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.post-cover {
  display: block;
  width: 100%;
  height: 210px;
  margin-bottom: 14px;
  overflow: hidden;
  background: #f5f5f5;
  text-decoration: none;
  cursor: pointer;
}

.post-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.post-cover span {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--web-muted);
  font-size: 14px;
  font-weight: 850;
}

.post-cover img {
  transition: none;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 620px) 236px;
  column-gap: 72px;
  justify-content: center;
}

.article-web {
  max-width: 620px;
  margin: 0 auto;
  padding: 56px 0 96px;
}

.article-cover {
  width: 100%;
  max-height: 420px;
  display: block;
  object-fit: cover;
  margin-bottom: 42px;
}

.article-web h1 {
  margin: 0 0 24px;
  font-size: 40px;
  line-height: 54px;
  font-weight: 700;
  letter-spacing: 0;
}

.article-meta {
  margin: 0 0 54px;
  color: var(--web-muted);
  font-size: 15px;
  font-weight: 850;
}

.article-body {
  border-top: 0;
  padding-top: 0;
}

.article-body .lead {
  margin: 0 0 52px;
  color: #262626;
  font-size: 18px;
  line-height: 34.2px;
  font-weight: 400;
}

.article-body h2 {
  margin: 96px 0 34px;
  font-size: 30px;
  line-height: 45px;
  font-weight: 700;
}

.article-body h3 {
  margin: 58px 0 18px;
  font-size: 30px;
  line-height: 45px;
  font-weight: 700;
}

.article-body p,
.article-body li {
  color: #262626;
  font-size: 18px;
  line-height: 34.2px;
  font-weight: 400;
}

.article-body p,
.article-body ul,
.article-body blockquote,
.table-public,
.calendar-public,
.checklist-public,
.sources-public {
  margin: 0 0 52px;
}

/* 출처 — 본문 끝 하이라인으로 분리한 원문 링크(앱 articleSources와 같은 톤). */
.sources-public {
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid var(--web-line);
}

.sources-public h3 {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 22px;
  font-weight: 700;
}

.sources-public ul {
  margin: 0;
}

.sources-public a {
  font-size: 15px;
  line-height: 24px;
  color: var(--web-muted);
  text-decoration: underline;
  word-break: break-word;
}

.article-body blockquote {
  border-left: 5px solid var(--web-coral);
  padding: 22px 0 22px 36px;
  background: transparent;
  font-size: 18px;
  line-height: 34.2px;
  font-weight: 700;
}

.article-faq {
  margin: 96px 0 52px;
  border-top: 1px solid var(--web-line);
}

.article-faq h2 {
  margin: 34px 0 22px;
  font-size: 30px;
  line-height: 45px;
  font-weight: 700;
}

.article-faq details {
  border-bottom: 1px solid var(--web-line);
  padding: 18px 0;
}

.article-faq summary {
  cursor: pointer;
  font-size: 18px;
  line-height: 28px;
  font-weight: 700;
}

.article-faq p {
  margin: 14px 0 0;
  color: #262626;
  font-size: 18px;
  line-height: 34.2px;
  font-weight: 400;
}

.article-rail {
  position: sticky;
  top: 96px;
  width: 236px;
  min-height: 520px;
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
  padding: 28px 24px;
  border: 0;
  border-radius: 18px;
  background: var(--web-plum);
  color: #ffffff;
  box-shadow: 0 20px 44px rgba(107, 31, 74, 0.28);
}

.article-rail-eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.4px;
}

.article-rail strong {
  font-size: 25px;
  line-height: 1.28;
  letter-spacing: -0.8px;
}

.article-rail p:not(.article-rail-eyebrow) {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  line-height: 1.65;
}

.article-rail-qr-link {
  display: block;
  width: 164px;
  height: 164px;
  margin-top: 2px;
  border: 0;
  border-radius: 12px;
  background: #ffffff;
  text-decoration: none;
  overflow: hidden;
}

.article-rail-qr-link img {
  display: block;
  width: 164px;
  height: 164px;
}

.article-rail-qr-label {
  width: 100%;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 750;
  text-align: center;
}


.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--web-line);
  background: var(--web-card);
}

.calendar-public {
  border-top: 1px solid var(--web-line);
  padding-top: 26px;
}

.calendar-public .calendar-title {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 34px;
  font-weight: 700;
}

.calendar-month {
  margin: 0 0 22px;
  color: var(--web-muted);
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
}

.calendar-public .calendar-weekdays span {
  color: var(--web-muted);
}

.calendar-public .calendar-cell {
  padding: 4px;
}

.calendar-public .calendar-cell-inner {
  border-radius: 0;
}

.calendar-public .calendar-cell-inner.marked {
  background: rgba(194, 71, 61, 0.12);
}

.calendar-public .calendar-dot.a,
.calendar-public .calendar-legend-dot.a {
  background: #c2473d;
}

.calendar-public .calendar-dot.b,
.calendar-public .calendar-legend-dot.b {
  background: #7a4c38;
}

.calendar-public .calendar-dot.c,
.calendar-public .calendar-legend-dot.c {
  background: #3f5f68;
}

.calendar-public .calendar-legend {
  border-top-color: var(--web-line);
}

/* 표는 읽기 폭(.article-web 620px)에 맞춘다.
   셀에 nowrap·min-width를 걸면 표 폭이 가장 긴 문장을 한 줄로 편 길이가 되어(실측 최대 2,239px)
   내용·열 수와 상관없이 늘 가로 스크롤이 생긴다. 줄바꿈을 허용하고 폭은 내용이 정하게 둔다.
   .table-wrap의 overflow-x는 그래도 안 들어가는 표를 위한 안전장치로 남긴다. */
.table-public table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

.table-public th,
.table-public td {
  border-bottom: 1px solid var(--web-line);
  border-right: 1px solid var(--web-line);
  padding: 18px 22px;
  text-align: left;
  vertical-align: top;
  font-size: 18px;
  line-height: 1.55;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.table-public th {
  background: #f8f8f8;
  font-weight: 950;
}

.table-public th:first-child,
.table-public td:first-child {
  min-width: 140px;
}

/* 4열 이상(지역 프로그램 시리즈의 프로그램·기관·대상·접수 시작·접수 마감·비용 등)은 조밀하게.
   본문 18px·22px 여백 그대로면 6열이 620px에 안 들어간다. 값은 .mobile-preview 표(15/22, 12x8)와 같다.
   .article-body(데스크톱 웹 본문)로 한정한다 — :has()가 .mobile-preview 규칙보다 우선순위가 높아
   스코프를 안 좁히면 폰 리더의 min-width(172px)를 덮어써서 앱과 다르게 보인다. */
.article-body .table-public table:has(th:nth-child(4)) th,
.article-body .table-public table:has(th:nth-child(4)) td {
  padding: 12px 8px;
  font-size: 15px;
  line-height: 22px;
}

.article-body .table-public table:has(th:nth-child(4)) th:first-child,
.article-body .table-public table:has(th:nth-child(4)) td:first-child {
  min-width: 0;
}

.table-note {
  margin-top: 10px;
  color: var(--web-muted);
  font-size: 14px;
}

.mobile-install-bar {
  display: none;
}

.empty-public {
  grid-column: 1 / -1;
  border: 1px solid var(--web-line);
  border-radius: 14px;
  padding: 32px;
  background: var(--web-card);
  font-size: 18px;
  font-weight: 850;
}

@media (max-width: 860px) {
  .site-footer {
    margin-top: 48px;
  }

  .site-footer-inner {
    width: auto;
    margin: 0 20px;
    padding: 44px 0 28px;
  }

  .footer-brand-row {
    display: block;
    padding-bottom: 38px;
  }

  .footer-brand {
    font-size: 29px;
  }

  .footer-brand-row p {
    margin-top: 12px;
    font-size: 14px;
    text-align: left;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-store-links {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 36px;
  }

  .footer-store-links a {
    width: 100%;
    min-width: 0;
    min-height: 56px;
  }

  .footer-copy {
    margin-top: 28px;
  }

  .admin-web-toolbar {
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 12px;
    overflow-x: auto;
    justify-content: flex-start;
    white-space: nowrap;
  }

  .admin-web-toolbar + .site-header {
    top: 0;
  }

  .admin-web {
    padding: 48px 20px 72px;
  }

  .admin-dashboard-head,
  .admin-post-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-lane-head,
  .admin-lane-title {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-category-edit {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-category-edit input,
  .admin-category-edit button {
    width: 100%;
  }

  .admin-post-actions {
    flex-wrap: wrap;
  }

  .admin-category-move select {
    max-width: min(220px, 60vw);
  }

  .hero,
  .magazine-web,
  .public-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .magazine-web {
    margin-left: 0;
    margin-right: 0;
  }

  .magazine-intro {
    margin-bottom: 34px;
  }

  .magazine-intro h1 {
    font-size: 26px;
    line-height: 34px;
  }

  .feature-grid,
  .public-section .post-grid {
    grid-template-columns: 1fr;
  }

  .category-section .post-grid {
    gap: 20px;
    overflow-x: scroll;
    scroll-behavior: auto;
  }

  .category-section .post-card {
    width: 78vw;
    min-width: 78vw;
    max-width: 78vw;
  }

  .post-card-link,
  .post-card-link:hover {
    transition: none;
    transform: none;
  }

  .post-cover img {
    transition: none;
  }

  .post-cover {
    height: calc(78vw * 0.75);
  }

  .category-section.is-expanded .post-grid {
    grid-template-columns: 1fr;
  }

  .category-section.is-expanded .post-card {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .category-section.is-expanded .post-cover {
    width: 112px;
    height: 84px;
  }

  .category-section.is-expanded .post-card-link {
    grid-template-columns: 112px minmax(0, 1fr);
    column-gap: 18px;
  }

  .category-section.is-expanded .post-card h2 {
    font-size: 18px;
    line-height: 26px;
  }

  .site-header {
    align-items: center;
    flex-direction: row;
    gap: 16px;
    height: 60px;
    padding: 0 20px;
  }

  .site-header nav {
    width: auto;
    gap: 12px;
  }

  .site-header nav a {
    flex: none;
    min-height: 32px;
  }

  /* 모바일: QR 팝오버 비활성화 — 터치 시 /download로 직행 */
  .nav-download-popover {
    display: none !important;
  }

  .nav-download-trigger {
    font-size: 13px;
    padding: 7px 14px;
  }

  .article-layout {
    display: block;
  }

  .article-web {
    max-width: none;
    padding: 48px 20px 128px;
  }

  .article-rail {
    display: none;
  }

  .article-web h1 {
    font-size: 34px;
    line-height: 44px;
  }

  .mobile-install-bar {
    position: fixed;
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
    left: 16px;
    z-index: 30;
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--web-coral);
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 850;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(216, 91, 76, 0.42);
    opacity: 0;
    transform: translateY(76px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .mobile-install-bar.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .article-body p,
  .article-body li {
    font-size: 19px;
    line-height: 1.85;
  }

  .article-body .lead {
    font-size: 19px;
    line-height: 1.85;
  }
}

/* ===== 모바일 뷰(?view=mobile) = aimom 앱 매거진 렌더링과 1:1 일치 =====
   값의 단일 출처는 앱 토큰이다: app/src/theme.ts(typeScale·control) + app/src/styles.ts(article*).
   여기 수치를 바꾸려면 앱 토큰을 먼저 바꾸고 그 값을 그대로 옮긴다. 웹에만 있는 값(예: font-weight 950)을
   새로 만들지 않는다 — 같은 글이 폰과 웹에서 다르게 보이면 발행 시 결과를 예측할 수 없다.
   스코프는 .mobile-preview 안으로 한정해 데스크톱 웹 디자인에는 영향을 주지 않는다. */

/* 표 — 앱 articleTableCellText(meta 15/22/500) */
.mobile-preview .table-public th,
.mobile-preview .table-public td {
  padding: 12px 8px;
  border-right: 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 22px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: normal;
  min-width: 172px;
}

/* 표 머리글 — 앱 articleTableHeadText(caption 13/18 + 700). 950은 앱에 없는 값이라 쓰지 않는다. */
.mobile-preview .table-public th {
  background: transparent;
  border-bottom: 1.5px solid var(--text);
  color: var(--text);
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
}

/* 첫 열 = 행 머리글 — 앱 articleTableLabelText(meta + 600, 본문 셀보다 좁게) */
.mobile-preview .table-public th:first-child,
.mobile-preview .table-public td:first-child {
  min-width: 120px;
}

.mobile-preview .table-public td:first-child {
  color: var(--text);
  font-weight: 600;
}

/* 3열 이하는 화면 폭에 맞춘다 — 앱은 4열 이상만 가로 스크롤(BlogScreen: maxColumns >= 4) */
.mobile-preview .table-public table:not(:has(th:nth-child(4))) {
  width: 100%;
  table-layout: fixed;
}

.mobile-preview .table-public table:not(:has(th:nth-child(4))) th,
.mobile-preview .table-public table:not(:has(th:nth-child(4))) td {
  min-width: 0;
}

/* 4열 이상은 폰 폭에 표가 안 들어가(6열이면 980px) 앱처럼 행별로 세운다 —
   첫 열=행 제목, 나머지=라벨(열 제목)/값. 앱 BlogScreen의 articleTableStack*과 같은 모양.
   라벨은 td의 data-label(renderTable이 열 제목으로 채움)에서 가져온다. */
.mobile-preview .table-public table:has(th:nth-child(4)) thead {
  display: none;
}

.mobile-preview .table-public table:has(th:nth-child(4)),
.mobile-preview .table-public table:has(th:nth-child(4)) tbody,
.mobile-preview .table-public table:has(th:nth-child(4)) tr,
.mobile-preview .table-public table:has(th:nth-child(4)) td {
  display: block;
  width: auto;
  min-width: 0;
}

.mobile-preview .table-public table:has(th:nth-child(4)) tr {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.mobile-preview .table-public table:has(th:nth-child(4)) td {
  border: 0;
  padding: 2px 0;
}

/* 앱은 빈 셀을 건너뛴다(articleTableStack) — 미리보기도 같게. */
.mobile-preview .table-public table:has(th:nth-child(4)) td:empty {
  display: none;
}

/* 첫 열 = 행 제목 — 앱 articleTableStackTitle(body + 700) */
.mobile-preview .table-public table:has(th:nth-child(4)) td:first-child {
  margin-bottom: 4px;
  color: var(--text);
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
}

/* 나머지 = 라벨/값 — 앱 articleTableStackLabel(104px caption) + StackValue(meta 600) */
.mobile-preview .table-public table:has(th:nth-child(4)) td:not(:first-child) {
  display: flex;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
}

.mobile-preview .table-public table:has(th:nth-child(4)) td:not(:first-child)::before {
  content: attr(data-label);
  flex: 0 0 104px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 22px;
  font-weight: 500;
}

/* 표 note — 앱 articleTableNote(caption 13/18/500 + textSoft) */
.mobile-preview .table-note {
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
  color: var(--text-soft);
}

/* 목록·체크리스트 — 앱 articleListText·articleCheckText(readBody 18/34/400).
   기존에는 클래스가 없어 브라우저 기본값(16px/normal)으로 떨어져 본문과 리듬이 어긋났다. */
.mobile-preview ul li {
  font-size: 18px;
  line-height: 34px;
  font-weight: 400;
  letter-spacing: -0.2px;
  color: var(--text);
}

/* 체크리스트 제목 — 앱 articleCheckTitle(readH3 19/27/700) */
.mobile-preview .checklist-public h3 {
  font-size: 19px;
  line-height: 27px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

/* 인용 — 앱 articleQuote(meta 15/22 + 600) */
.mobile-preview .quote {
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
}
