:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f7f5ef;
  --ink: #2f332f;
  --muted: #626862;
  --line: #d8d8cf;
  --primary: #646244;
  --primary-dark: #4d4b34;
  --accent: #786652;
  --blue: #5d85a7;
  --rose: #b96e7e;
  --emotion-nikkori-bg: #eef8e5;
  --emotion-nikkori-text: #3e6f34;
  --emotion-nikkori-border: rgba(108, 151, 72, 0.22);
  --emotion-donnyori-bg: #edf4f7;
  --emotion-donnyori-text: #435f75;
  --emotion-donnyori-border: rgba(90, 122, 142, 0.22);
  --emotion-shikkuri-bg: #f7ecda;
  --emotion-shikkuri-text: #7a5a35;
  --emotion-shikkuri-border: rgba(177, 129, 68, 0.22);
  --shadow: 0 12px 32px rgba(47, 51, 47, 0.06);
  --shadow-soft: 0 6px 20px rgba(47, 51, 47, 0.045);
  --shadow-hover: 0 10px 26px rgba(47, 51, 47, 0.075);
  --radius: 5px;
  --font-serif: "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Noto Serif JP", serif;
  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  --public-container-reading: 720px;
  --public-container-copy: 760px;
  --public-grid-gutter-min: 24px;
  --public-grid-wing: 80px;
  --public-grid-content: 1200px;
  --public-home-gutter: clamp(24px, 3vw, 48px);
  --public-home-content: 1280px;
  --public-home-reading: 1040px;
  --public-hero-copy: 520px;
  --public-hero-copy-image-gap: 64px;
  --public-section-space: clamp(52px, 5vw, 72px);
  --public-home-section-gap: clamp(42px, 4vw, 54px);
  --public-card-padding: clamp(18px, 1.6vw, 21px);
  font-family: var(--font-sans);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: #ffffff;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.88;
  letter-spacing: 0;
  font-weight: 400;
}

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

button {
  cursor: pointer;
}

button:disabled,
.button[aria-disabled="true"] {
  cursor: progress;
  opacity: 0.62;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(150, 125, 95, 0.12);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  box-shadow: 0 6px 18px rgba(70, 60, 45, 0.05);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.site-header-inner {
  display: grid;
  grid-template-columns: 1fr 44px;
  align-items: center;
  width: min(1120px, calc(100% - 32px));
  min-height: 94px;
  margin: 0 auto;
  gap: 12px;
  transition: gap 180ms ease;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 64px;
  color: var(--primary-dark);
}

.brand-mark {
  width: auto;
  height: 66px;
  max-width: 136px;
  flex: 0 0 auto;
  border-radius: 12px;
  object-fit: contain;
}

.menu-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: 1.35rem;
}

.site-nav {
  display: none;
  grid-column: 1 / -1;
  gap: 6px;
  padding: 0 0 14px;
  transition: gap 180ms ease, padding 180ms ease;
}

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

.nav-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  border-radius: var(--radius);
  padding: 9px 12px;
  color: var(--muted);
  font-weight: 700;
}

.nav-link-two-line {
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 1px;
  line-height: 1.12;
  text-align: left;
  transform: translateY(4px);
}

.nav-link-main,
.nav-link-sub {
  display: block;
}

.nav-link-sub {
  font-size: calc(1em - 4px);
  font-weight: 700;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: var(--surface-soft);
  color: var(--primary-dark);
  outline: none;
}

.nav-link-login {
  justify-content: center;
  border: 1px solid rgba(63, 119, 105, 0.38);
  border-radius: 999px;
  color: var(--primary-dark);
  padding-inline: 16px;
}

.nav-link-login:hover,
.nav-link-login:focus-visible {
  background: #edf4e8;
  border-color: rgba(63, 119, 105, 0.58);
}

.main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  background: #ffffff;
  padding: 40px 0 88px;
}

.main-wide {
  width: min(1120px, calc(100% - 32px));
}

.home-page {
  display: grid;
  gap: clamp(38px, 6vw, 72px);
}

.home-section-inner {
  min-width: 0;
  width: 100%;
}

.home-page .button {
  border-radius: 999px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  min-height: 420px;
  margin: -12px 0 10px;
  border: 1px solid rgba(217, 224, 218, 0.86);
  border-radius: 8px;
  padding: 34px 24px;
  overflow: hidden;
  background-color: #fbfaf6;
  background-image:
    linear-gradient(90deg, rgba(251, 250, 246, 0.98) 0%, rgba(251, 250, 246, 0.82) 38%, rgba(251, 250, 246, 0.06) 72%),
    var(--hero-image, url("/home-visual.svg"));
  background-position: center right;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0 18px 44px rgba(45, 65, 60, 0.08);
  color: var(--ink);
}

.hero-image {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 1;
  object-fit: cover;
  object-position: center right;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(251, 250, 246, 0.98) 0%, rgba(251, 250, 246, 0.82) 38%, rgba(251, 250, 246, 0.06) 72%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 70px;
  background: linear-gradient(180deg, rgba(251, 250, 246, 0), rgba(251, 250, 246, 0.92));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(540px, 100%);
}

.hero h1,
.page-heading h1,
.detail-card h1,
.article-page h1 {
  margin: 0;
  line-height: 1.24;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 10em;
  color: #3a2d28;
  font-size: 2.25rem;
}

.hero-lead {
  max-width: 34rem;
  margin: 18px 0 0;
  color: #504641;
  font-size: 1.04rem;
}

.hero-tagline {
  max-width: 32rem;
  margin: 16px 0 0;
  color: var(--accent-strong);
  font-size: clamp(1.12rem, 2.4vw, 1.42rem);
  font-weight: 800;
  line-height: 1.55;
}

.home-section {
  display: grid;
  gap: 14px;
}

.home-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.home-section-head h2 {
  position: relative;
  margin: 0;
  padding-left: 24px;
  color: #3a2d28;
  font-size: 1.24rem;
  line-height: 1.35;
}

.home-section-head h2::before {
  content: "";
  position: absolute;
  top: 0.45em;
  left: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50% 50% 50% 0;
  background: #7f9b74;
  transform: rotate(-35deg);
  box-shadow: 7px -5px 0 -3px #b8c8a8;
}

.home-section-link,
.home-theme-more {
  color: var(--primary-dark);
  font-size: 0.86rem;
  font-weight: 800;
}

.home-section-link::after,
.home-theme-more::after {
  content: ">";
  margin-left: 8px;
}

.home-insight-grid,
.home-blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.home-plan-steps {
  display: grid;
  gap: 22px;
  border: 1px solid rgba(196, 170, 137, 0.42);
  border-radius: 10px;
  background: linear-gradient(135deg, #fffdf9, #fbf5eb);
  padding: clamp(22px, 4vw, 34px);
  box-shadow: 0 14px 34px rgba(65, 55, 45, 0.07);
}

.home-new-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(111, 143, 114, 0.24);
  border-radius: 10px;
  background: #fbfdf8;
  padding: clamp(18px, 3vw, 24px);
  box-shadow: 0 12px 28px rgba(65, 85, 70, 0.06);
}

.home-new-notice h2,
.home-new-notice p {
  margin: 0;
}

.home-new-notice h2 {
  color: #2f2823;
  font-size: clamp(1.1rem, 2vw, 1.36rem);
  line-height: 1.45;
}

.home-new-notice .button {
  flex: 0 0 auto;
}

.home-monthly-topic {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 3vw, 28px);
  border: 1px solid rgba(196, 170, 137, 0.36);
  border-radius: 12px;
  background: linear-gradient(135deg, #fffdf9, #f8f2e8);
  padding: clamp(18px, 3vw, 28px);
  box-shadow: 0 14px 32px rgba(78, 62, 45, 0.07);
}

.home-monthly-topic h2,
.home-monthly-topic h3,
.home-monthly-topic p {
  margin: 0;
}

.home-monthly-topic h2 {
  color: var(--primary-dark);
  font-size: 1rem;
}

.home-monthly-topic h3 {
  margin-top: 6px;
  color: var(--ink);
  font-size: clamp(1.2rem, 2.3vw, 1.7rem);
  line-height: 1.45;
}

.home-monthly-topic h3 + p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.75;
}

.monthly-topic-theme,
.monthly-topic-actions {
  margin-top: 10px;
}

.monthly-topic-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
  min-width: 210px;
}

.home-plan-copy {
  display: grid;
  gap: 12px;
  align-content: start;
}

.home-plan-copy h2,
.home-plan-copy p {
  margin: 0;
}

.home-plan-copy h2 {
  color: #3a2d28;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.35;
}

.home-plan-copy p {
  color: #5d544e;
}

.home-plan-copy .button {
  width: fit-content;
  margin-top: 6px;
}

.home-step-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-step-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 4px 12px;
  align-items: start;
  border: 1px solid rgba(47, 125, 104, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  padding: 14px;
}

.home-step-number {
  grid-row: span 2;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 999px;
  background: #edf4e8;
  color: var(--primary-dark);
  font-weight: 900;
}

.home-step-list strong {
  color: #3a2d28;
  line-height: 1.45;
}

.home-step-list span:last-child {
  color: #665d55;
  font-size: 0.9rem;
  line-height: 1.65;
}

.home-theme-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 136px;
  gap: 12px;
  overflow-x: auto;
  border: 1px solid #eadfd2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  padding: 14px;
  scrollbar-width: thin;
}

.home-theme-tile {
  display: grid;
  grid-template-rows: 88px auto;
  gap: 9px;
  min-height: 126px;
  place-items: center;
  border: 1px solid #eadfd2;
  border-radius: 8px;
  background: #fffdf9;
  color: #493c35;
  padding: 12px 10px 14px;
  font-size: 0.9rem;
  font-weight: 800;
}

.home-theme-tile:hover,
.home-theme-tile:focus-visible {
  border-color: color-mix(in srgb, var(--theme-color) 58%, #ffffff);
  box-shadow: 0 10px 24px rgba(45, 65, 60, 0.08);
  outline: none;
}

.home-theme-icon {
  position: relative;
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border: 1px solid #e7d7c8;
  border-radius: 8px;
  background: #ffffff;
  color: color-mix(in srgb, var(--theme-color) 72%, #3a2d28);
  font-size: 1rem;
  font-weight: 900;
  overflow: hidden;
}

.home-theme-icon-image {
  width: 78px;
  height: 78px;
  border-radius: 6px;
  background: #ffffff;
  object-fit: contain;
  opacity: 0;
}

.home-theme-icon-image.is-loaded {
  opacity: 1;
}

.home-theme-icon-fallback {
  position: absolute;
}

.home-blog-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #eadfd2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 26px rgba(45, 65, 60, 0.07);
}

.home-blog-card-no-media {
  grid-template-columns: 1fr;
}

.home-blog-media {
  position: relative;
  display: grid;
  min-height: 132px;
  place-items: center;
  overflow: hidden;
  background: #f7efe3;
}

.home-blog-media:empty {
  display: none;
}

.home-blog-thumb-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

.home-blog-thumb-image.is-loaded {
  opacity: 1;
}

.home-blog-copy {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: 14px;
}

.home-blog-copy h3,
.home-blog-copy p,
.home-blog-copy time {
  margin: 0;
}

.home-blog-copy h3 {
  font-size: 0.98rem;
  line-height: 1.55;
}

.home-blog-copy p {
  color: #5f5751;
  font-size: 0.84rem;
  line-height: 1.65;
}

.home-blog-copy time {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  max-width: 100%;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 10px 16px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.button-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(36, 89, 77, 0.16);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--primary-dark);
  outline: none;
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 254, 251, 0.9);
  color: var(--primary-dark);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(63, 119, 105, 0.4);
  background: var(--surface-soft);
  outline: none;
}

.button-text {
  min-height: 36px;
  border-color: transparent;
  background: transparent;
  color: var(--primary-dark);
  padding: 6px 4px;
  box-shadow: none;
}

.button-text:hover,
.button-text:focus-visible {
  background: rgba(63, 119, 105, 0.08);
  outline: none;
}

.button-auth {
  width: 100%;
  border-color: var(--line);
  background: #ffffff;
  color: var(--ink);
}

.button-auth:hover,
.button-auth:focus-visible {
  border-color: rgba(63, 119, 105, 0.5);
  background: var(--surface-soft);
  outline: none;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.section {
  margin-top: clamp(56px, 7vw, 92px);
}

.section-heading {
  display: grid;
  gap: 9px;
  max-width: 760px;
  margin-bottom: 24px;
}

.section-heading h2,
.submit-cta h2,
.reaction-section h2,
.placeholder-panel h2,
.theme-summary h2 {
  margin: 0;
  font-size: 1.46rem;
  line-height: 1.42;
  font-weight: 700;
}

.section-heading h2 {
  position: relative;
  padding-left: 22px;
}

.section-heading h2::before {
  content: "";
  position: absolute;
  top: 0.5em;
  left: 2px;
  width: 9px;
  height: 9px;
  border-radius: 50% 50% 50% 0;
  background: #7f9b74;
  transform: rotate(-35deg);
  box-shadow: 6px -4px 0 -3px #b8c8a8;
}

.section-lead,
.page-lead,
.empty-copy,
.small-note,
.muted-label {
  color: var(--muted);
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.eyebrow:empty {
  display: none;
}

.page-heading {
  display: grid;
  gap: 10px;
  margin: 8px 0 28px;
  padding: 24px 0 10px;
}

.page-heading h1 {
  font-size: 2rem;
  overflow-wrap: anywhere;
}

.page-heading,
.page-heading > *,
.complete-panel,
.checkpoint-result-panel {
  min-width: 0;
}

.page-lead {
  max-width: 720px;
  margin: 0;
  font-size: 1.02rem;
}

.card-grid,
.blog-grid,
.theme-grid,
.emotion-grid,
.theme-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.skeleton-grid {
  margin-top: 24px;
}

.skeleton-card {
  display: grid;
  gap: 14px;
  min-height: 188px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 254, 251, 0.96);
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.skeleton-line {
  display: block;
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #eee6db 0%, #f8f3ea 45%, #eee6db 100%);
  background-size: 220% 100%;
}

.skeleton-line-short {
  width: 34%;
}

.skeleton-line-title {
  width: 72%;
  height: 22px;
}

.skeleton-line-medium {
  width: 58%;
}

.insight-card,
.blog-card,
.theme-card,
.detail-card,
.form-panel,
.login-panel,
.placeholder-panel,
.theme-summary,
.reaction-section,
.article-page {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 254, 251, 0.96);
  box-shadow: var(--shadow-soft);
}

.insight-card,
.blog-card,
.theme-card {
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
  padding: 20px;
}

.insight-card {
  gap: 18px;
  padding: clamp(20px, 3vw, 28px);
  border-color: rgba(209, 188, 164, 0.58);
  background: rgba(255, 254, 251, 0.98);
  box-shadow: var(--shadow-soft);
}

.insight-card h3,
.blog-card h3,
.theme-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.45;
}

.insight-card .insight-card-title {
  color: #2f2823;
  font-size: clamp(1.15rem, 2vw, 1.34rem);
  font-weight: 750;
  line-height: 1.6;
  letter-spacing: 0;
}

.insight-card-main-link {
  display: grid;
  gap: 18px;
  min-width: 0;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}

.insight-card-main-link:hover .insight-card-title {
  color: var(--primary-strong);
}

.insight-card-main-link:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 58%, #ffffff);
  outline-offset: 5px;
}

.insight-card p,
.blog-card p,
.theme-card p {
  margin: 0;
}

.home-page .insight-card.compact {
  gap: 15px;
  border-color: rgba(209, 188, 164, 0.54);
  background: rgba(255, 254, 251, 0.97);
  box-shadow: var(--shadow-soft);
  padding: 20px;
}

.home-page .insight-card.compact .insight-card-main-link {
  gap: 15px;
}

.home-page .insight-card.compact .insight-card-title {
  font-size: 1.06rem;
}

.home-page .insight-card.compact .insight-body {
  font-size: 0.93rem;
  line-height: 1.78;
}

.home-page .insight-card.compact .checkpoint-card {
  border-left: 0;
  background: #faf6ee;
}

.home-page .insight-card.compact .text-link {
  display: none;
}

.insight-body {
  color: #5c514a;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.95;
}

.card-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.card-tag-row {
  gap: 7px;
  margin-bottom: -2px;
}

.theme-badge,
.emotion-badge,
.muted-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
}

.theme-badge {
  background: #eef5e9;
  color: var(--primary-dark);
}

.emotion-badge {
  border: 1px solid rgba(120, 104, 84, 0.11);
  background: #f3f1eb;
  color: #425352;
}

.origin-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid #ddd4c4;
  border-radius: 999px;
  background: #fffdf8;
  color: #675f54;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.35;
}

.origin-note {
  margin: 14px 0;
  padding: 12px 14px;
  border-left: 3px solid #a7b692;
  background: #faf9f4;
  color: #5e594f;
  font-size: 0.9rem;
  line-height: 1.7;
}

.origin-note p {
  margin: 0;
}

.poll-answer-count {
  margin-top: 5px !important;
  font-weight: 700;
}

.admin-origin-fields,
.admin-origin-group {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.admin-origin-group {
  padding: 16px;
  border: 1px solid #ded7ca;
  border-radius: 6px;
  background: #fffdf9;
}

.admin-origin-group[hidden] {
  display: none;
}

@media (max-width: 480px) {
  .origin-badge {
    white-space: normal;
  }

  .admin-origin-group {
    padding: 12px;
  }
}

.emotion-face {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: currentColor;
  overflow: visible;
}

.emotion-face circle:first-child {
  fill: rgba(255, 255, 255, 0.55);
  stroke: currentColor;
  stroke-width: 1.3;
}

.emotion-face circle:not(:first-child) {
  fill: currentColor;
}

.emotion-face path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.emotion-nikkori,
.emotion-panel-nikkori .emotion-badge {
  border-color: var(--emotion-nikkori-border);
  background: var(--emotion-nikkori-bg);
  color: var(--emotion-nikkori-text);
}

.emotion-donnyori,
.emotion-panel-donnyori .emotion-badge {
  border-color: var(--emotion-donnyori-border);
  background: var(--emotion-donnyori-bg);
  color: var(--emotion-donnyori-text);
}

.emotion-shikkuri,
.emotion-panel-shikkuri .emotion-badge {
  border-color: var(--emotion-shikkuri-border);
  background: var(--emotion-shikkuri-bg);
  color: var(--emotion-shikkuri-text);
}

.muted-label {
  background: #f3f1eb;
  color: var(--muted);
}

.new-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid rgba(197, 131, 74, 0.22);
  border-radius: 999px;
  background: #fff6e8;
  color: #9b6531;
  padding: 5px 10px;
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.checkpoint {
  display: grid;
  gap: 4px;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: #fff7eb;
  padding: 10px 12px;
}

.checkpoint span {
  color: #8f5d2b;
  font-size: 0.82rem;
  font-weight: 800;
}

.checkpoint p {
  margin: 0;
}

.checkpoint-card {
  gap: 8px;
  border-left: 0;
  border-radius: 14px;
  background: #faf6ee;
  padding: 14px 16px;
}

.checkpoint-card span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6f8f72;
  font-size: 0.9rem;
  font-weight: 900;
}

.checkpoint-card span::before {
  content: "";
  display: inline-block;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #6f8f72;
  box-shadow: inset 0 0 0 4px #edf4e8;
}

.checkpoint-card .checkpoint-list {
  color: #4e453f;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.7;
}

.checkpoint-card .checkpoint-list li {
  padding-left: 20px;
}

.checkpoint-card .checkpoint-list li::before {
  top: 0.68em;
  width: 9px;
  height: 9px;
  background: #95a66e;
}

.checkpoint-card .checkpoint-list li::after {
  display: none;
}

.checkpoint.large {
  margin-top: 18px;
  padding: 14px 16px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.card-footer-meta {
  margin-top: 2px;
  padding-top: 13px;
  border-top: 1px solid rgba(225, 217, 207, 0.9);
  font-size: 0.85rem;
}

.card-footer-meta .author-avatar {
  width: 30px;
  height: 30px;
}

.card-footer-meta .author-name {
  color: #6a5f58;
  font-weight: 800;
}

.card-footer-meta .author-detail {
  color: #958a80;
  font-size: 0.8rem;
}

.helpful-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 7px 12px;
  border: 1px solid rgba(134, 151, 116, 0.34);
  border-radius: 999px;
  background: rgba(255, 254, 251, 0.92);
  color: #60704f;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}

.helpful-button.is-active {
  border-color: rgba(82, 132, 99, 0.5);
  background: #eef6ea;
  color: #3f7769;
}

.helpful-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.helpful-button.is-feedback {
  animation: helpful-feedback 220ms ease-out;
}

.helpful-icon {
  flex: 0 0 auto;
}

.helpful-count {
  min-width: 1.5em;
  color: inherit;
  font-size: 0.82rem;
  text-align: center;
}

.detail-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
}

.detail-action-row .helpful-button {
  margin-left: 0;
}

@keyframes helpful-feedback {
  0% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.06);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 120% 0;
  }

  100% {
    background-position: -120% 0;
  }
}

.author-summary {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 9px;
}

.author-summary-large {
  width: 100%;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.author-summary-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.author-name {
  color: var(--ink);
  font-weight: 800;
}

.author-detail {
  color: var(--muted);
  font-size: 0.86rem;
}

.author-avatar {
  position: relative;
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(217, 224, 218, 0.95);
  border-radius: 50%;
  background: #f9f7f1;
}

.author-avatar-large {
  width: 54px;
  height: 54px;
}

.author-avatar-hero {
  width: clamp(84px, 18vw, 154px);
  height: clamp(84px, 18vw, 154px);
  align-self: center;
  border-width: 0;
  background: #fff4ec;
}

.author-avatar-image {
  width: 74%;
  height: 74%;
  object-fit: contain;
}

.author-avatar-guest {
  color: #5a3518;
}

.author-avatar-guest-image {
  border-radius: 8px;
  background: #ffffff;
}

.author-avatar-person-image {
  width: 100%;
  height: 100%;
}

.author-avatar-fallback {
  position: absolute;
  width: 54%;
  height: 54%;
  border: 2px solid #8a7f73;
  border-radius: 8px 8px 12px 12px;
}

.author-avatar-fallback::before,
.author-avatar-fallback::after {
  content: "";
  position: absolute;
  background: #8a7f73;
}

.author-avatar-fallback::before {
  top: -8px;
  left: 18%;
  width: 64%;
  height: 2px;
}

.author-avatar-fallback::after {
  right: 18%;
  bottom: -8px;
  width: 34%;
  height: 8px;
  border-radius: 0 0 4px 4px;
}

.author-avatar-account {
  background: #fff1e8;
  color: #d87530;
}

.author-avatar-male {
  background: #edf4fb;
  color: #4f83a7;
}

.author-avatar-neutral {
  background: #eef5f2;
  color: var(--primary);
}

.author-avatar-face {
  position: relative;
  width: 56%;
  height: 56%;
  border: 2px solid currentColor;
  border-radius: 46% 46% 44% 44%;
}

.author-avatar-face::before,
.author-avatar-face::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.author-avatar-face::before {
  top: 32%;
  left: 25%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  box-shadow: 18px 0 0 currentColor;
}

.author-avatar-face::after {
  left: 50%;
  bottom: 18%;
  width: 20px;
  height: 10px;
  border-bottom: 2px solid currentColor;
  border-radius: 0 0 999px 999px;
  background: transparent;
  transform: translateX(-50%);
}

.author-avatar-hero .author-avatar-face::before {
  width: 8px;
  height: 8px;
  box-shadow: 26px 0 0 currentColor;
}

.author-avatar-hero .author-avatar-face::after {
  width: 30px;
  height: 14px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 36px;
  color: var(--primary-dark);
  font-weight: 800;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--accent);
  outline: none;
}

.emotion-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 18px;
}

.emotion-panel-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  object-fit: contain;
}

.emotion-panel h3,
.emotion-panel p {
  margin: 0;
}

.theme-card {
  position: relative;
  overflow: hidden;
}

.theme-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--theme-color);
}

.theme-mark {
  position: relative;
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border: 1px solid #e7d7c8;
  border-radius: var(--radius);
  background: #ffffff;
  color: color-mix(in srgb, var(--theme-color) 78%, black);
  font-weight: 900;
  overflow: hidden;
}

.theme-mark-image {
  width: 64px;
  height: 64px;
  border-radius: 6px;
  background: #ffffff;
  object-fit: contain;
  opacity: 0;
}

.theme-mark-image.is-loaded {
  opacity: 1;
}

.theme-mark-fallback {
  position: absolute;
}

.section-button {
  margin-top: 18px;
}

.submit-cta {
  display: grid;
  gap: 12px;
  margin-top: 56px;
  border-radius: var(--radius);
  border: 1px solid rgba(47, 125, 104, 0.18);
  background: #2f6f5f;
  color: #ffffff;
  padding: 28px;
  box-shadow: 0 12px 30px rgba(47, 96, 83, 0.12);
}

.submit-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.home-submit-cta {
  position: relative;
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: center;
  gap: 16px;
  aspect-ratio: 2000 / 600;
  margin-top: 8px;
  overflow: hidden;
  border: 1px solid rgba(198, 177, 151, 0.56);
  border-radius: 10px;
  background: #fffaf2;
  color: #332a25;
  text-align: center;
  box-shadow: 0 12px 30px rgba(89, 72, 50, 0.08);
}

.home-submit-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("/assets/footer/footer-visual.png") center / 110% auto no-repeat;
  pointer-events: none;
}

.home-submit-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(255, 253, 248, 0.08), rgba(255, 253, 248, 0.34), rgba(255, 253, 248, 0.08));
  pointer-events: none;
}

.home-submit-cta > * {
  position: relative;
  z-index: 2;
}

.home-submit-cta h2 {
  color: #332a25;
  font-size: 1.25rem;
}

.home-cta-copy {
  display: grid;
  gap: 14px;
  justify-items: center;
  transform: translateY(-8%);
}

.home-cta-copy p {
  max-width: 36rem;
  color: #4f4740;
}

.home-cta-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-cta-chips li {
  border: 1px solid rgba(47, 125, 104, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--primary-dark);
  padding: 5px 10px;
  font-size: 0.82rem;
  font-weight: 800;
}

.home-submit-cta .home-cta-chips {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  gap: 10px;
}

.home-submit-cta .button-primary {
  min-height: 69px;
  border-radius: 999px;
  padding: 15px 28px;
  font-size: 1.2rem;
  box-shadow: 0 9px 22px rgba(36, 89, 77, 0.2);
}

.home-cta-illustration,
.home-cta-people {
  display: none !important;
}

.home-cta-plant {
  position: relative;
  display: block;
  width: 44px;
  height: 78px;
  border-bottom: 18px solid #d6c6ad;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
}

.home-cta-plant::before,
.home-cta-plant::after {
  content: "";
  position: absolute;
  bottom: 34px;
  width: 28px;
  height: 38px;
  border: solid var(--primary);
  border-width: 0 0 3px 3px;
  border-radius: 0 0 0 28px;
}

.home-cta-plant::before {
  left: 13px;
  transform: rotate(18deg);
}

.home-cta-plant::after {
  right: 13px;
  transform: scaleX(-1) rotate(18deg);
}

.home-cta-chair {
  position: relative;
  display: block;
  width: 96px;
  height: 74px;
  border: 3px solid #9a8675;
  border-bottom: 0;
  border-radius: 18px 18px 4px 4px;
}

.home-cta-chair::before,
.home-cta-chair::after {
  content: "";
  position: absolute;
  background: #9a8675;
}

.home-cta-chair::before {
  left: -8px;
  right: -8px;
  bottom: -12px;
  height: 3px;
}

.home-cta-chair::after {
  left: 16px;
  bottom: -30px;
  width: 3px;
  height: 31px;
  box-shadow: 57px 0 0 #9a8675;
}

.home-cta-person {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  object-fit: contain;
}

.compact-cta {
  margin-top: 32px;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  padding: 14px;
}

.insight-filter-area {
  display: grid;
  gap: 12px;
  margin: 0 0 22px;
}

.insight-additional-filters {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.insight-additional-filters summary {
  width: fit-content;
  color: var(--primary-dark);
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
}

.insight-additional-filters-body {
  max-width: 320px;
  padding-top: 12px;
}

.insight-filter-submit {
  align-self: end;
}

.insight-active-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  min-height: 34px;
}

.insight-result-count {
  margin: 0;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 800;
}

.insight-active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.insight-active-filter,
.insight-clear-filters {
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 700;
}

.insight-active-filter {
  border: 1px solid rgba(111, 143, 114, 0.35);
  border-radius: 999px;
  background: #f3f7ee;
  padding: 6px 10px;
  text-decoration: none;
}

.insight-active-filter:hover,
.insight-active-filter:focus-visible,
.insight-clear-filters:hover,
.insight-clear-filters:focus-visible {
  outline: 2px solid rgba(63, 119, 105, 0.35);
  outline-offset: 2px;
}

.insights-list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.insights-list-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffefb;
}

.insights-list-card-link {
  display: grid;
  height: 100%;
  min-width: 0;
  gap: 15px;
  padding: clamp(18px, 2.4vw, 26px);
  color: inherit;
  text-decoration: none;
}

.insights-list-card:hover {
  border-color: #aaa68e;
  background: #fffefa;
}

.insights-list-card:focus-within {
  border-color: var(--primary);
}

.insights-list-card-link:focus-visible {
  border-radius: 5px;
  outline: 3px solid color-mix(in srgb, var(--primary) 55%, #ffffff);
  outline-offset: 3px;
}

.insights-list-card-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.insights-list-card-tags .theme-badge,
.insights-list-card-tags .emotion-badge {
  min-height: 27px;
  padding: 5px 10px;
  font-size: 0.78rem;
}

.insights-list-card-title {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(1.18rem, 2vw, 1.42rem);
  font-weight: 700;
  line-height: 1.55;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.insights-list-card-excerpt {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #665c54;
  font-size: 0.96rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.insights-list-card-checkpoint {
  display: grid;
  gap: 7px;
  border-radius: 5px;
  background: #f7f5ed;
  padding: 13px 15px;
}

.insights-list-card-checkpoint > span {
  color: #6b7d5c;
  font-size: 0.78rem;
  font-weight: 800;
}

.insights-list-card-checkpoint p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #403a35;
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1.72;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.insights-list-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 13px;
}

.insights-list-card-support {
  color: var(--muted);
  font-size: 0.78rem;
}

.insights-list-card-more {
  flex: 0 0 auto;
  color: var(--primary-dark);
  font-size: 0.88rem;
  font-weight: 800;
}

.insights-list-card-more::after {
  content: " →";
}

.insights-empty-state .button-row {
  justify-content: center;
}

.theme-filter-panel {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  padding: 12px 14px;
}

.filter-label {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
}

.theme-filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 2px 4px;
  scrollbar-width: thin;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  flex: 0 0 auto;
  border: 1px solid #eadfd2;
  border-radius: 999px;
  background: #fffdf9;
  color: #5c514a;
  padding: 8px 13px;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.filter-chip:hover,
.filter-chip:focus-visible {
  border-color: rgba(63, 119, 105, 0.42);
  background: var(--surface-soft);
  color: var(--primary-dark);
  outline: none;
}

.filter-chip.is-active {
  border-color: rgba(63, 119, 105, 0.72);
  background: #e8f0e8;
  color: var(--primary-dark);
}

.field {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

.field span {
  font-size: 0.9rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  padding: 11px 12px;
}

.field input,
.field select {
  min-height: 46px;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(63, 119, 105, 0.65);
  box-shadow: 0 0 0 3px rgba(63, 119, 105, 0.14);
  outline: none;
}

.compact-field {
  gap: 5px;
}

.list-grid {
  margin-top: 18px;
}

.theme-summary,
.detail-card,
.article-page,
.reaction-section,
.form-panel,
.login-panel,
.placeholder-panel {
  padding: 20px;
}

.theme-summary {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.theme-detail-page {
  display: grid;
  gap: 0;
}

.theme-detail-hero {
  display: grid;
  gap: 20px;
  overflow: hidden;
  border: 1px solid rgba(209, 188, 164, 0.62);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 254, 251, 0.98), rgba(250, 246, 238, 0.92)),
    linear-gradient(90deg, color-mix(in srgb, var(--theme-color) 18%, transparent), transparent 54%);
  padding: clamp(22px, 4vw, 34px);
  box-shadow: var(--shadow-soft);
}

.theme-detail-hero-copy {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.theme-detail-hero h1 {
  margin: 0;
  color: #2f2823;
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1.22;
}

.theme-detail-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.theme-seo-copy {
  max-width: 820px;
  margin: 0;
  color: #4f453e;
  line-height: 2;
}

.theme-check-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.theme-check-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-width: 0;
  border: 1px solid rgba(209, 188, 164, 0.58);
  border-radius: 12px;
  background: rgba(255, 254, 251, 0.96);
  padding: 14px;
  box-shadow: 0 8px 22px rgba(82, 67, 47, 0.045);
}

.theme-check-number {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(63, 119, 105, 0.12);
  color: var(--primary-dark);
  font-size: 0.9rem;
  font-weight: 900;
}

.theme-check-card p {
  margin: 0;
  color: var(--ink);
  line-height: 1.75;
}

.theme-insight-empty {
  display: grid;
  gap: 10px;
  border: 1px dashed rgba(137, 151, 120, 0.58);
  border-radius: var(--radius);
  background: rgba(255, 254, 251, 0.9);
  padding: 20px;
}

.theme-insight-empty p {
  margin: 0;
  color: #5f554e;
}

.theme-faq-list {
  display: grid;
  gap: 10px;
}

.theme-faq-item {
  border: 1px solid rgba(209, 188, 164, 0.62);
  border-radius: 12px;
  background: rgba(255, 254, 251, 0.96);
  padding: 0;
  overflow: hidden;
}

.theme-faq-item summary {
  min-height: 48px;
  cursor: pointer;
  padding: 14px 16px;
  color: #332a25;
  font-weight: 800;
  line-height: 1.55;
}

.theme-faq-item summary:focus-visible {
  outline: 3px solid rgba(63, 119, 105, 0.22);
  outline-offset: -3px;
}

.theme-faq-item p {
  margin: 0;
  border-top: 1px solid rgba(209, 188, 164, 0.48);
  padding: 14px 16px 16px;
  color: #5f554e;
  line-height: 1.85;
}

.theme-detail-cta {
  background:
    linear-gradient(135deg, rgba(47, 111, 95, 0.98), rgba(59, 125, 105, 0.94));
}

.theme-detail-cta .button-secondary {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.94);
  color: var(--primary-dark);
}

.check-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 22px;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.detail-card {
  display: grid;
  gap: 16px;
}

.detail-card h1 {
  font-size: 1.75rem;
  line-height: 1.5;
}

.detail-card-featured {
  overflow: hidden;
  max-width: none;
  border-color: rgba(217, 224, 218, 0.95);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 252, 247, 0.94));
}

.detail-hero-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
}

.detail-story {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.detail-insight-title {
  min-width: 0;
  margin: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  line-break: strict;
}

.detail-body {
  margin: 6px 0 0;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 2;
  color: #5c514a;
  white-space: pre-line;
}

.theme-illustration {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border: 2px solid color-mix(in srgb, var(--theme-color) 60%, #ffffff);
  border-radius: 18px;
  background: color-mix(in srgb, var(--theme-color) 14%, #ffffff);
  color: color-mix(in srgb, var(--theme-color) 76%, #243230);
  font-size: 1.4rem;
  font-weight: 900;
}

.checkpoint-featured {
  grid-template-columns: 1fr;
  align-items: center;
  border-left: 0;
  background: #faf5ed;
}

.checkpoint-featured > span {
  color: #d36e5e;
  font-size: 1rem;
}

.checkpoint-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checkpoint-list li {
  position: relative;
  padding-left: 24px;
}

.checkpoint-list li::before {
  content: "";
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e98170;
}

.checkpoint-list li::after {
  content: "";
  position: absolute;
  top: calc(0.58em + 3px);
  left: 4px;
  width: 4px;
  height: 7px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.detail-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px 14px;
  margin: 14px 0;
}

.detail-meta dt {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.detail-meta dd {
  margin: 0 0 8px;
}

.form-panel,
.login-panel,
.placeholder-panel,
.reaction-section {
  display: grid;
  gap: 16px;
}

.form-status {
  min-height: 1.7em;
  margin: 0;
  color: var(--primary-dark);
  font-weight: 800;
}

.preview-form {
  align-items: stretch;
}

.preview-note {
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.preview-note p {
  margin: 0;
}

.post-guidance-copy {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.post-form-panel {
  gap: 18px;
  border-color: rgba(130, 94, 58, 0.14);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 45px rgba(78, 62, 45, 0.08);
  padding: clamp(18px, 4vw, 34px);
}

.post-topic-notice,
.post-nudge-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(111, 143, 114, 0.24);
  border-radius: 12px;
  background: #fbfdf8;
  padding: clamp(16px, 3vw, 22px);
}

.post-topic-notice h2,
.post-topic-notice p,
.post-nudge-card h2,
.post-nudge-card p,
.complete-next-prompt h3,
.complete-next-prompt p {
  margin: 0;
}

.post-topic-notice h2,
.post-nudge-card h2 {
  color: var(--ink);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.5;
}

.post-nudge-card {
  margin-block: clamp(18px, 3vw, 28px);
  background: #fffdf9;
  border-color: rgba(196, 170, 137, 0.34);
  box-shadow: 0 12px 28px rgba(78, 62, 45, 0.06);
}

.post-mode-panel,
.writing-helper,
.writing-examples {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(130, 94, 58, 0.13);
  border-radius: 14px;
  background: #fff;
  padding: 12px;
}

.post-mode-panel p,
.post-mode-panel h2,
.writing-helper p,
.writing-examples p,
.writing-examples h3 {
  margin: 0;
}

.post-mode-panel h2,
.writing-examples h2 {
  color: var(--ink);
  font-size: 1rem;
}

.post-mode-panel {
  border: 0;
  background: transparent;
  padding: 0;
}

.post-mode-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.post-mode-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(91, 123, 85, 0.28);
  border-radius: 999px;
  background: #fff;
  padding: 9px 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.post-mode-option:has(input:checked) {
  border-color: rgba(91, 123, 85, 0.74);
  background: #eef6ed;
  color: var(--primary-dark);
}

.post-mode-option input {
  accent-color: var(--primary);
}

.post-body-field {
  gap: 9px;
}

.post-body-field span {
  font-size: 1rem;
}

.post-body-field textarea {
  min-height: 220px;
  border-color: rgba(91, 123, 85, 0.28);
  border-radius: 18px;
  background: #fffefb;
  padding: 18px;
  font-size: 1.02rem;
  line-height: 1.8;
}

.post-char-count {
  margin: -10px 4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  text-align: right;
}

.writing-helper summary,
.writing-examples summary {
  color: var(--primary-dark);
  font-weight: 900;
  cursor: pointer;
}

.hint-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 1.2em;
  color: var(--ink);
}

.hint-grid,
.example-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.hint-item,
.example-item {
  display: grid;
  gap: 6px;
  border-radius: 12px;
  background: #fbfaf6;
  padding: 12px;
}

.hint-item strong,
.example-item h3 {
  color: var(--primary-dark);
  font-size: 0.95rem;
}

.writing-examples {
  background: #fbfaf6;
}

.compact-example {
  grid-template-columns: auto 1fr;
  align-items: start;
  background: #fff;
}

.quote-mark {
  color: var(--primary);
  font-size: 1.8rem;
  line-height: 1;
}

.post-privacy-note {
  margin: 0;
  border-radius: 12px;
  background: #fbfaf6;
  color: var(--muted);
  padding: 11px 12px;
  font-size: 0.92rem;
  line-height: 1.7;
}

.post-submit-button {
  min-height: 54px;
  min-width: min(100%, 280px);
  border-radius: 999px;
  font-size: 1.02rem;
}

.question-list,
.admin-question-list {
  margin: 0;
  padding-left: 1.2em;
}

.question-list li,
.admin-question-list li {
  margin: 6px 0;
}

.preview-card {
  gap: 14px;
}

.preview-help-summary {
  margin: 0;
  border-radius: 12px;
  background: #f7fbf7;
  color: var(--primary-dark);
  padding: 11px 12px;
  font-weight: 800;
  line-height: 1.7;
}

.confirm-panel {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(63, 119, 105, 0.28);
  border-radius: var(--radius);
  background: #f7fbf7;
  padding: 16px;
}

.confirm-panel[hidden] {
  display: none;
}

.confirm-panel h2,
.confirm-panel p {
  margin: 0;
}

.confirm-panel h2 {
  color: var(--primary-dark);
  font-size: 1.05rem;
}

.complete-panel {
  display: grid;
  gap: 12px;
}

.complete-next-prompt {
  display: grid;
  gap: 8px;
  border-top: 1px solid rgba(196, 170, 137, 0.32);
  padding-top: 12px;
}

.complete-next-prompt h3 {
  color: var(--ink);
  font-size: 1.05rem;
}

.toggle-row {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  color: var(--ink);
  font-weight: 800;
}

.toggle-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.article-page {
  display: grid;
  gap: 14px;
}

.article-page h1 {
  font-size: 1.78rem;
}

.article-excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.article-body {
  display: grid;
  gap: 14px;
}

.article-body p {
  margin: 0;
}

.inline-reaction {
  display: grid;
  gap: 12px;
}

.empty-state {
  display: grid;
  gap: 14px;
  place-items: start;
  border: 1px dashed #b8c7bf;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  padding: 20px;
}

.empty-state p {
  margin: 0;
}

.site-footer {
  position: relative;
  display: grid;
  gap: 12px;
  min-height: 132px;
  align-content: center;
  border-top: 1px solid var(--line);
  overflow: hidden;
  padding: 28px 16px 32px;
  color: var(--muted);
  text-align: center;
  background: #ffffff;
}

.site-footer > * {
  position: relative;
  z-index: 1;
}

.site-footer p {
  margin: 0;
  color: #695f56;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.footer-brand {
  display: inline-grid;
  justify-items: center;
}

.footer-brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: contain;
  background: rgba(255, 254, 251, 0.72);
}

.footer-brand p {
  color: var(--primary-dark);
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin-top: 12px;
  font-size: 0.86rem;
}

.footer-link {
  color: #5e6f60;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.86);
}

.footer-link:hover {
  color: var(--primary-dark);
}

.login-brand {
  display: grid;
  justify-items: center;
  margin-bottom: 4px;
}

.login-brand-logo {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  object-fit: cover;
}

.brand-text-fallback {
  display: inline-flex;
  align-items: center;
  width: auto;
  max-width: 100%;
  color: var(--ink, #453b32);
  font-family: var(--font-serif, serif);
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  white-space: nowrap;
}

.legal-page {
  display: grid;
  gap: 24px;
}

.legal-document {
  display: grid;
  gap: 14px;
  max-width: 880px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  padding: clamp(22px, 5vw, 42px);
  line-height: 1.9;
}

.legal-document h2,
.legal-document h3,
.legal-document p {
  margin: 0;
}

.legal-document h2 {
  margin-top: 14px;
  color: var(--ink);
  font-size: 1.35rem;
}

.legal-document h3 {
  margin-top: 8px;
  color: var(--primary-dark);
  font-size: 1.08rem;
}

.legal-source-note {
  color: var(--muted);
  font-size: 0.86rem;
}

.legal-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.4em;
}

.about-page {
  display: grid;
  gap: clamp(24px, 4vw, 42px);
}

.about-intro,
.about-panel,
.about-cta {
  border: 1px solid rgba(160, 134, 103, 0.18);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.92);
  box-shadow: 0 14px 34px rgba(73, 61, 45, 0.06);
  padding: clamp(22px, 4vw, 38px);
}

.about-intro {
  display: grid;
  gap: 14px;
}

.about-intro h2,
.about-panel h2,
.about-cta h2 {
  margin: 0;
  color: var(--ink);
  line-height: 1.5;
}

.about-intro p,
.about-panel p,
.about-value-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.about-main-copy,
.about-tagline {
  color: var(--ink);
  font-weight: 800;
}

.about-main-copy {
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
}

.about-tagline {
  color: var(--accent-strong);
}

.about-copy-stack {
  display: grid;
  gap: 14px;
}

.about-values-grid {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.about-value-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(103, 130, 86, 0.16);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.about-value-card h3 {
  margin: 0;
  color: var(--primary-dark);
  font-size: 1.02rem;
}

.about-note,
.about-todo {
  border-radius: 8px;
  padding: 14px 16px;
}

.about-note {
  margin-top: 18px !important;
  background: rgba(244, 238, 226, 0.72);
}

.about-todo {
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted) !important;
  font-size: 0.92rem;
}

.about-cta {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 16px;
}

.about-cta .button-row {
  justify-content: center;
}

@media (min-width: 760px) {
  .about-values-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.consent-panel {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.64);
  padding: 14px;
}

.checkpoint-builder-page {
  display: grid;
  gap: 24px;
}

.home-resume-card,
.home-stage-guide,
.checkpoint-resume-panel,
.checkpoint-progress-panel,
.checkpoint-shared-banner {
  border: 1px solid rgba(217, 199, 181, 0.76);
  border-radius: 10px;
  background: rgba(255, 254, 251, 0.96);
  box-shadow: 0 12px 30px rgba(78, 63, 50, 0.052);
}

.home-resume-card,
.home-stage-guide {
  display: grid;
  gap: 16px;
  align-items: center;
  padding: clamp(16px, 3vw, 22px);
}

.home-resume-card h2,
.home-stage-guide h2,
.checkpoint-resume-panel h2 {
  margin: 0;
  color: #3a2d28;
  font-size: clamp(1.2rem, 3vw, 1.55rem);
}

.home-resume-card p,
.home-stage-guide p,
.checkpoint-resume-panel p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.home-stage-actions {
  display: grid;
  gap: 12px;
}

.home-stage-theme-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.checkpoint-resume-root {
  display: grid;
  gap: 12px;
}

.checkpoint-resume-panel {
  display: grid;
  gap: 16px;
  padding: clamp(16px, 4vw, 22px);
}

.checkpoint-shared-banner {
  display: grid;
  gap: 14px;
  padding: clamp(16px, 4vw, 22px);
  background: linear-gradient(135deg, #fffefb, #f2f8f1);
}

.checkpoint-shared-banner h2,
.checkpoint-shared-banner p {
  margin: 0;
}

.checkpoint-shared-banner h2 {
  color: #3a2d28;
  font-size: clamp(1.16rem, 3vw, 1.45rem);
  line-height: 1.45;
}

.checkpoint-shared-banner p {
  color: var(--muted);
  line-height: 1.75;
}

.checkpoint-builder-panel,
.checkpoint-result-panel,
.checkpoint-reflection-panel {
  border: 1px solid rgba(226, 216, 204, 0.86);
  border-radius: 10px;
  background: rgba(255, 254, 251, 0.96);
  box-shadow: 0 12px 30px rgba(78, 63, 50, 0.055);
}

.checkpoint-builder-panel {
  padding: clamp(18px, 4vw, 30px);
}

.checkpoint-builder-form {
  display: grid;
  gap: 24px;
}

.checkpoint-builder-step {
  display: grid;
  gap: 12px;
  min-width: 0;
  margin: 0;
  border: 0;
  border-top: 1px solid rgba(226, 216, 204, 0.78);
  padding: 20px 0 0;
}

.checkpoint-builder-step:first-child {
  border-top: 0;
  padding-top: 0;
}

.checkpoint-builder-step legend {
  margin-bottom: 8px;
  color: #3a2d28;
  font-size: 1.04rem;
  font-weight: 900;
}

.checkpoint-builder-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.checkpoint-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(188px, 1fr));
  gap: 12px;
}

.checkpoint-choice-grid-dense {
  grid-template-columns: repeat(auto-fit, minmax(206px, 1fr));
}

.checkpoint-theme-view-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.checkpoint-theme-view-button {
  min-height: 44px;
  border: 1px solid rgba(217, 199, 181, 0.78);
  border-radius: 999px;
  background: #fffdf9;
  padding: 8px 12px;
  color: #4e453f;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.3;
}

.checkpoint-theme-view-button[aria-pressed="true"] {
  border-color: rgba(63, 119, 105, 0.56);
  background: #eef7e8;
  color: var(--primary-dark);
  box-shadow: inset 0 0 0 1px rgba(63, 119, 105, 0.12);
}

.checkpoint-theme-view-description,
.checkpoint-selected-themes,
.checkpoint-result-group-description {
  margin: 0;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.7;
}

.checkpoint-selected-themes {
  border-radius: 14px;
  background: rgba(244, 240, 232, 0.74);
  padding: 9px 12px;
}

.checkpoint-choice {
  display: grid;
  min-width: 0;
}

.checkpoint-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkpoint-choice-content {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  justify-content: start;
  gap: 10px;
  min-height: 70px;
  border: 1px solid rgba(217, 199, 181, 0.76);
  border-radius: 16px;
  background: #fffdf9;
  padding: 10px 14px 10px 10px;
  color: #4e453f;
  font-size: 0.93rem;
  font-weight: 700;
  text-align: left;
}

.checkpoint-choice-icon-frame {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(214, 190, 165, 0.72);
  border-radius: 12px;
  background: #fffefb;
  box-shadow: 0 1px 5px rgba(91, 72, 54, 0.045);
}

.checkpoint-choice-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 8px;
}

.checkpoint-choice-label {
  min-width: 0;
  line-height: 1.42;
  overflow-wrap: anywhere;
  word-break: keep-all;
  line-break: strict;
  text-wrap: pretty;
}

.checkpoint-choice input:focus-visible + .checkpoint-choice-content {
  outline: 3px solid rgba(63, 119, 105, 0.24);
  outline-offset: 2px;
}

.checkpoint-choice input:checked + .checkpoint-choice-content {
  border-color: rgba(63, 119, 105, 0.5);
  background: #eef7ed;
  color: var(--primary-dark);
  box-shadow: inset 0 0 0 1px rgba(63, 119, 105, 0.08);
}

.checkpoint-choice input:checked + .checkpoint-choice-content .checkpoint-choice-icon-frame {
  border-color: rgba(162, 183, 151, 0.78);
  background: #fffefb;
  box-shadow: 0 2px 7px rgba(77, 105, 82, 0.06);
}

.checkpoint-builder-actions,
.checkpoint-action-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.checkpoint-result-root {
  display: grid;
  gap: 18px;
}

.checkpoint-result-panel {
  display: grid;
  gap: 22px;
  padding: clamp(18px, 4vw, 30px);
}

.checkpoint-result-head {
  display: grid;
  gap: 18px;
  border-top: 1px solid rgba(217, 224, 218, 0.82);
  padding-top: 22px;
}

.checkpoint-result-head h2,
.checkpoint-reflection-panel h2 {
  margin: 0;
  color: #3a2d28;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.35;
}

.checkpoint-result-head p,
.checkpoint-reflection-panel p {
  margin: 8px 0 0;
  color: var(--muted);
}

.checkpoint-result-count {
  display: inline-grid;
  justify-self: start;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: #eef5e8;
  color: var(--primary-dark);
}

.checkpoint-result-count strong {
  font-size: 1.8rem;
  line-height: 1;
}

.checkpoint-result-count span {
  font-size: 0.82rem;
  font-weight: 800;
}

.checkpoint-result-reason {
  margin: 0;
  padding: 13px 15px;
  border-left: 3px solid #9eaf8d;
  background: #faf9f4;
  color: #5d574e;
  font-size: 0.94rem;
  line-height: 1.75;
}

.submission-status {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef5e8;
  color: var(--primary-dark);
  font-size: 0.84rem;
  font-weight: 800;
}

.content-editing-note {
  max-width: 760px;
  margin: 0 auto 18px;
  color: #625d55;
  font-size: 0.92rem;
}

.post-benefit-card {
  display: grid;
  gap: 12px;
  margin-top: 22px;
  padding: 20px;
  border: 1px solid #d9d0bd;
  border-radius: 8px;
  background: #fffefb;
}

.post-benefit-card h3,
.post-benefit-card p {
  margin: 0;
}

.post-benefit-card .button {
  justify-self: start;
}

.post-benefit-checkpoint {
  color: #3f5149;
  font-weight: 700;
}

.post-record-panel {
  margin-top: 18px;
  padding: 16px 18px;
  border-top: 1px solid #e5ded1;
  background: #faf9f5;
}

.post-record-panel h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.post-record-list {
  display: grid;
  gap: 7px;
  margin: 0;
}

.post-record-list > div {
  display: grid;
  grid-template-columns: minmax(110px, 0.7fr) minmax(0, 1.3fr);
  gap: 12px;
}

.post-record-list dt {
  color: #716b61;
}

.post-record-list dd {
  margin: 0;
  color: #312e29;
  font-weight: 700;
}

@media (max-width: 520px) {
  .post-benefit-card {
    padding: 16px;
  }

  .post-record-list > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* Admin workspace: restrained navigation and login layout. */
.admin-public-header .admin-header-inner {
  max-width: 1180px;
}

.admin-brand,
.admin-sidebar-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.admin-brand-name {
  flex: 0 0 auto;
  color: var(--primary-dark);
  font-weight: 900;
  white-space: nowrap;
}

.admin-brand-badge {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 6px;
  background: #eef3ea;
  color: #52604d;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.admin-public-link {
  color: var(--primary-dark);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.admin-login-main {
  display: grid;
  width: min(100% - 32px, 1180px);
  min-height: calc(100vh - 80px);
  place-items: start center;
  padding-top: clamp(42px, 8vh, 88px);
}

.admin-login-card {
  width: min(100%, 500px);
  padding: clamp(22px, 5vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(61, 52, 44, 0.06);
}

.admin-login-card h1 {
  margin: 4px 0 8px;
  font-size: clamp(1.7rem, 5vw, 2.15rem);
}

.admin-login-lead {
  margin: 0 0 20px;
  color: var(--muted);
}

.admin-login-form {
  display: grid;
  gap: 16px;
}

.admin-login-form input,
.admin-login-form .button {
  width: 100%;
}

.admin-dev-login {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.admin-dev-login summary {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
}

.admin-dev-key-form {
  max-width: none;
  margin-top: 12px;
  padding: 14px;
  box-shadow: none;
  background: #faf9f5;
}

.admin-shell {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  min-height: 100vh;
  background: #f8f8f5;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  z-index: 25;
  display: flex;
  height: 100vh;
  min-width: 0;
  flex-direction: column;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: #fff;
  padding: 20px 14px;
}

.admin-sidebar-brand {
  min-height: 48px;
  padding: 0 8px 18px;
  border-bottom: 1px solid var(--line);
}

.admin-side-nav {
  display: grid;
  gap: 19px;
  padding: 20px 0;
}

.admin-nav-group {
  display: grid;
  gap: 5px;
}

.admin-nav-group h2 {
  margin: 0 10px 4px;
  color: #847d72;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.admin-sidebar .admin-nav-link {
  position: relative;
  display: flex;
  min-height: 42px;
  align-items: center;
  border-radius: 6px;
  padding: 8px 10px 8px 13px;
  color: #403c36;
  font-size: 0.91rem;
  font-weight: 700;
  line-height: 1.4;
}

.admin-sidebar .admin-nav-link:hover,
.admin-sidebar .admin-nav-link:focus-visible {
  background: #f3f5ef;
}

.admin-sidebar .admin-nav-link.is-active {
  background: #edf3e9;
  color: var(--primary-dark);
  font-weight: 900;
}

.admin-sidebar .admin-nav-link.is-active::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  width: 3px;
  border-radius: 3px;
  background: var(--primary);
  content: '';
}

.admin-sidebar-actions {
  display: grid;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.admin-logout-button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #6a6259;
  font: inherit;
  font-size: 0.91rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.admin-logout-button:hover,
.admin-logout-button:focus-visible {
  background: #f5f2ed;
}

.admin-workspace {
  min-width: 0;
}

.admin-workspace-header {
  position: sticky;
  top: 0;
  z-index: 15;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, auto);
  min-height: 64px;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  padding: 10px clamp(18px, 3vw, 34px);
}

.admin-workspace-title {
  overflow: hidden;
  color: #3f3a34;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-workspace-account {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: right;
}

.admin-menu-button {
  display: none;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--primary-dark);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.admin-workspace .admin-main {
  width: min(100% - 36px, 1180px);
  max-width: none;
  margin: 0 auto;
  padding: 28px 0 64px;
}

.admin-workspace .admin-page-heading h1 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

@media (max-width: 899px) {
  .admin-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-sidebar {
    position: fixed;
    width: min(86vw, 286px);
    transform: translateX(-105%);
    visibility: hidden;
  }

  .admin-sidebar.is-open {
    transform: translateX(0);
    visibility: visible;
  }

  .admin-workspace-header {
    grid-template-columns: auto minmax(0, 1fr) minmax(120px, auto);
  }

  .admin-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
  }
}

@media (max-width: 560px) {
  .admin-public-header .admin-header-inner {
    display: flex;
    padding: 12px;
  }

  .admin-public-header .admin-brand-logo,
  .admin-sidebar-brand .admin-brand-logo {
    width: 28px;
    height: 28px;
  }

  .admin-public-link {
    font-size: 0.82rem;
  }

  .admin-workspace-header {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    padding: 9px 12px;
  }

  .admin-workspace-account {
    grid-column: 1 / -1;
    text-align: left;
  }

  .admin-workspace .admin-main {
    width: min(100% - 24px, 1180px);
    padding-top: 20px;
  }

  .admin-login-main {
    width: min(100% - 24px, 1180px);
    padding-top: 28px;
  }

  .admin-brand-name {
    font-size: 0.9rem;
  }

  .admin-brand-badge {
    font-size: 0.66rem;
  }
}

.checkpoint-progress-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.checkpoint-progress-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
}

.checkpoint-progress-copy strong {
  color: var(--primary-dark);
}

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

.checkpoint-progress-track {
  overflow: hidden;
  height: 9px;
  border-radius: 999px;
  background: #efe8dc;
}

.checkpoint-progress-bar {
  display: block;
  width: var(--checkpoint-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6f9a6f, #2d8b78);
}

.checkpoint-selection-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  border-radius: 8px;
  background: #faf6ee;
  padding: 12px 14px;
  color: #5b514b;
  font-size: 0.94rem;
}

.checkpoint-selection-summary strong {
  color: var(--primary-dark);
}

.checkpoint-selected-content {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(217, 224, 218, 0.9);
  border-radius: 6px;
  background: #faf9f4;
  padding: clamp(16px, 3vw, 22px);
}

.checkpoint-selected-content h2,
.checkpoint-excluded-section h3,
.checkpoint-excluded-group h4 {
  margin: 0;
  color: #3a2d28;
}

.checkpoint-selected-content h2 {
  font-size: clamp(1.35rem, 3vw, 1.7rem);
}

.checkpoint-selected-content dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.checkpoint-selected-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.3fr) minmax(0, 1fr);
  gap: 14px;
  border-top: 1px solid rgba(217, 224, 218, 0.72);
  padding: 11px 0;
}

.checkpoint-selected-row dt {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.checkpoint-selected-row dd {
  margin: 0;
  color: var(--ink);
  line-height: 1.65;
}

.checkpoint-result-group {
  display: grid;
  gap: 12px;
}

.checkpoint-result-group h3,
.kurashi-plan-section h3,
.checkpoint-overlooked-prompt h3,
.checkpoint-login-panel h3 {
  margin: 0;
  color: #3a2d28;
  font-size: 1.18rem;
}

.kurashi-plan-section {
  display: grid;
  gap: 12px;
}

.kurashi-reference-section {
  gap: 14px;
}

.kurashi-reference-list {
  display: grid;
  gap: 12px;
}

.kurashi-reference-card,
.kurashi-reference-empty {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(103, 130, 86, 0.16);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.9);
  padding: 14px;
}

.kurashi-reference-card strong {
  color: var(--ink);
  line-height: 1.6;
}

.kurashi-reference-card p,
.kurashi-reference-empty p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.kurashi-plan-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kurashi-plan-list li {
  position: relative;
  border: 1px solid rgba(225, 217, 207, 0.86);
  border-radius: 8px;
  background: #fffdf9;
  padding: 12px 14px 12px 34px;
  color: #3d342f;
  line-height: 1.75;
}

.kurashi-plan-list li::before {
  position: absolute;
  top: 18px;
  left: 16px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  content: "";
}

.kurashi-plan-note-section {
  border: 1px dashed rgba(166, 146, 125, 0.55);
  border-radius: 8px;
  background: #fffefa;
  padding: 14px;
}

.kurashi-plan-note-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.checkpoint-item-list {
  display: grid;
  gap: 12px;
}

.checkpoint-builder-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(225, 217, 207, 0.92);
  border-radius: 8px;
  background: #fffdf9;
  padding: clamp(16px, 4vw, 22px);
}

.checkpoint-list-card {
  gap: 10px;
  padding: clamp(12px, 3vw, 16px);
}

.checkpoint-compact-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.checkpoint-exclude-button {
  min-height: 32px;
  padding-inline: 8px;
  color: #776d63;
  font-size: 0.86rem;
}

.checkpoint-compact-check {
  display: inline-grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  border: 2px solid rgba(63, 119, 105, 0.42);
  border-radius: 14px;
  background: #fffefa;
  color: var(--primary-dark);
  font: inherit;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}

.checkpoint-compact-check[aria-pressed="true"] {
  border-color: rgba(45, 139, 120, 0.72);
  background: #eaf5ec;
  box-shadow: inset 0 0 0 1px rgba(45, 139, 120, 0.12);
}

.checkpoint-print-check {
  display: none;
}

.checkpoint-compact-main {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.checkpoint-compact-title {
  margin: 0;
  color: #3d342f;
  font-weight: 800;
  line-height: 1.65;
}

.checkpoint-list-card.is-checked .checkpoint-compact-title {
  color: #746d67;
}

.checkpoint-compact-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.checkpoint-compact-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  background: #f5efe4;
  padding: 4px 10px;
  color: #6b5a4f;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
}

.checkpoint-detail-toggle,
.checkpoint-memo-toggle {
  min-height: 30px;
  font-size: 0.9rem;
}

.checkpoint-detail-panel {
  display: grid;
  gap: 12px;
  border-top: 1px solid rgba(225, 217, 207, 0.76);
  padding-top: 12px;
}

.checkpoint-builder-check {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: #3d342f;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.6;
}

.checkpoint-builder-check input {
  width: 20px;
  height: 20px;
  margin-top: 0.32em;
  accent-color: var(--primary);
}

.checkpoint-builder-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.checkpoint-builder-labels span {
  border-radius: 999px;
  background: #eaf3e5;
  padding: 4px 9px;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.checkpoint-builder-note {
  margin: 0;
  color: var(--muted);
}

.checkpoint-ask-box {
  display: grid;
  gap: 4px;
  border-radius: 8px;
  background: #faf6ee;
  padding: 12px 14px;
}

.checkpoint-ask-box strong {
  color: #8f5d2b;
  font-size: 0.86rem;
}

.checkpoint-ask-box p {
  margin: 0;
  color: #4e453f;
  font-weight: 700;
}

.checkpoint-memo {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.checkpoint-memo textarea {
  min-height: 68px;
  resize: vertical;
  border: 1px dashed rgba(166, 146, 125, 0.75);
  border-radius: 8px;
  background: #fffefa;
  padding: 10px;
}

.checkpoint-card-actions {
  display: flex;
  justify-content: flex-end;
}

.checkpoint-excluded-section {
  display: grid;
  gap: 16px;
  border: 1px solid rgba(166, 146, 125, 0.42);
  border-radius: 6px;
  background: #faf8f3;
  padding: clamp(16px, 3vw, 22px);
}

.checkpoint-excluded-section > div > p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.checkpoint-excluded-group {
  display: grid;
  gap: 8px;
}

.checkpoint-excluded-group h4 {
  font-size: 0.9rem;
}

.checkpoint-excluded-group ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checkpoint-excluded-group li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(217, 224, 218, 0.72);
  padding-top: 8px;
}

.checkpoint-restore-button {
  min-height: 36px;
  white-space: nowrap;
}

.checkpoint-overlooked-prompt,
.checkpoint-login-panel,
.checkpoint-reflection-panel {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(217, 199, 181, 0.82);
  border-radius: 8px;
  background: #fbf6ec;
  padding: clamp(16px, 4vw, 22px);
}

.checkpoint-overlooked-prompt p,
.checkpoint-login-panel p {
  margin: 0;
  color: #5b514b;
}

.checkpoint-action-panel {
  border-top: 1px solid rgba(217, 224, 218, 0.82);
  padding-top: 18px;
}

.checkpoint-copy-fallback {
  flex: 1 1 100%;
  width: 100%;
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffefa;
  padding: 12px;
  color: #3d342f;
}

.checkpoint-reflection-panel {
  background: linear-gradient(135deg, #fbf6ec, #eef5e8);
}

.my-ai-panel {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(154, 188, 166, 0.7);
  border-radius: 10px;
  background: linear-gradient(135deg, #f5fbf5, #fffdf8);
  padding: clamp(16px, 4vw, 24px);
}

.my-ai-panel[hidden] {
  display: none;
}

.my-ai-panel h3,
.my-ai-panel p {
  margin: 0;
}

.my-ai-panel h3 {
  color: #3a2d28;
  font-size: 1.22rem;
}

.my-ai-panel p {
  color: var(--muted);
  line-height: 1.75;
}

.my-ai-panel .my-ai-privacy-note {
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.86);
  padding: 10px 12px;
  color: #6b5a4f;
  font-size: 0.9rem;
}

.my-ai-copy-text {
  min-height: 280px;
  font-family: inherit;
  line-height: 1.7;
}

@media print {
  body {
    background: #ffffff;
  }

  .site-header,
  .site-footer,
  .checkpoint-builder-panel,
  .no-print,
  .checkpoint-login-panel,
  .page-heading .section-kicker {
    display: none !important;
  }

  .main {
    width: 100%;
    padding: 0;
  }

  .checkpoint-result-panel,
  .checkpoint-builder-card,
  .checkpoint-reflection-panel {
    box-shadow: none;
    break-inside: avoid;
  }

  .checkpoint-print-check {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 1px solid #666;
    border-radius: 6px;
    font-weight: 900;
  }

  .checkpoint-result-panel {
    border: 0;
    padding: 0;
  }

  .checkpoint-memo textarea {
    min-height: 84px;
  }
}

@media (min-width: 700px) {
  .site-header-inner {
    grid-template-columns: auto 1fr;
    min-height: 106px;
    gap: 34px;
  }

  .menu-button {
    display: none;
  }

  .site-nav,
  .site-nav.is-open {
    display: flex;
    grid-column: auto;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 0;
    gap: 4px;
  }

  .nav-link {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 0.92rem;
  }

  .main {
    padding-top: 48px;
  }

  .hero {
    margin-top: -40px;
    min-height: 390px;
    padding: 42px 36px;
    background-position: center right;
    background-size: cover;
  }

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

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

  .hero-tagline {
    font-size: 1.5rem;
  }

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

  .home-plan-steps {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: center;
  }

  .home-resume-card,
  .home-stage-guide,
  .checkpoint-resume-panel {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .home-stage-guide {
    grid-template-columns: minmax(0, 0.88fr) minmax(300px, 1.12fr);
  }

  .checkpoint-builder-stage .checkpoint-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .insight-card {
    padding: 24px;
  }

  .insight-card .insight-card-title {
    font-size: 1.36rem;
  }

  .home-theme-row {
    grid-auto-flow: column;
    grid-auto-columns: 136px;
    overflow-x: auto;
  }

  .home-submit-cta {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }

  .home-cta-illustration,
  .home-cta-people {
    display: none !important;
  }

  .page-heading h1 {
    font-size: 2.55rem;
  }

  .card-grid,
  .blog-grid,
  .theme-grid,
  .emotion-grid,
  .theme-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
  }

  .theme-detail-hero {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

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

  .detail-meta {
    grid-template-columns: max-content 1fr;
  }

  .detail-hero-row {
    grid-template-columns: 92px minmax(0, 1fr) minmax(96px, 160px);
  }

  .checkpoint-featured {
    grid-template-columns: 160px 1fr;
  }

  .checkpoint-result-head {
    grid-template-columns: minmax(0, 1fr) 96px;
    align-items: start;
  }

  .checkpoint-builder-stage .checkpoint-choice-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .detail-meta dd {
    margin-bottom: 0;
  }

  .theme-summary,
  .detail-card,
  .article-page,
  .reaction-section,
  .form-panel,
  .login-panel,
  .placeholder-panel,
  .submit-cta {
    padding: 28px;
  }
}

@media (max-width: 520px) {
  .site-header-inner {
    width: min(100% - 24px, 1120px);
    min-height: 90px;
  }

  .brand-link {
    min-height: 62px;
  }

  .brand-mark {
    height: 58px;
    max-width: 120px;
  }

  .site-footer {
    min-height: 146px;
    padding: 28px 14px 30px;
  }

  .footer-links {
    gap: 8px 12px;
  }

  .checkpoint-choice-grid,
  .checkpoint-choice-grid-dense,
  .checkpoint-builder-stage .checkpoint-choice-grid {
    grid-template-columns: 1fr;
  }

  .home-resume-card,
  .home-stage-guide,
  .checkpoint-resume-panel {
    align-items: start;
  }

  .home-new-notice {
    align-items: flex-start;
  }

  .home-new-notice .button {
    width: 100%;
  }

  .home-monthly-topic {
    grid-template-columns: 1fr;
  }

  .monthly-topic-actions {
    justify-items: stretch;
    min-width: 0;
  }

  .checkpoint-compact-row {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 9px;
  }

  .checkpoint-selected-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .checkpoint-excluded-group li {
    grid-template-columns: 1fr;
  }

  .checkpoint-restore-button {
    justify-self: start;
  }

  .checkpoint-choice-content {
    grid-template-columns: 44px minmax(0, 1fr);
    min-height: 68px;
    padding-right: 11px;
    font-size: 0.9rem;
  }

  .checkpoint-choice-icon-frame {
    width: 44px;
    height: 44px;
  }

  .checkpoint-choice-icon {
    width: 33px;
    height: 33px;
  }
}

@media (min-width: 980px) {
  .nav-link {
    padding-inline: 12px;
  }

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

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

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

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

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

  .hero {
    min-height: 410px;
    padding: 48px 44px;
  }

  .checkpoint-builder-stage .checkpoint-choice-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .home-theme-row {
    grid-auto-columns: 136px;
  }

  .home-blog-card {
    grid-template-columns: 132px 1fr;
  }

  .home-blog-card-no-media {
    grid-template-columns: 1fr;
  }

  .detail-card,
  .article-page,
  .form-panel,
  .login-panel,
  .placeholder-panel,
  .reaction-section {
    max-width: 820px;
  }

  .detail-card-featured {
    max-width: 960px;
  }
}

@media (min-width: 720px) {
  .insights-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-bar {
    grid-template-columns: minmax(220px, 1.4fr) minmax(170px, 1fr) minmax(170px, 1fr) auto;
  }
}

@media (max-width: 719px) {
  .insight-filter-area {
    margin-bottom: 18px;
  }

  .insight-additional-filters:not([open]) .insight-additional-filters-body {
    display: none;
  }

  .insight-active-filter-row,
  .insights-list-card-footer {
    align-items: flex-start;
  }

  .insights-list-card-link {
    gap: 13px;
    padding: 18px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes gentle-result-reveal {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .checkpoint-result-reveal,
  .post-complete-reveal {
    animation: gentle-result-reveal 300ms ease-out both;
  }

  .button,
  .insight-card,
  .blog-card,
  .theme-card,
  .checkpoint-choice-content {
    transition:
      transform 160ms ease,
      border-color 160ms ease,
      background-color 160ms ease,
      box-shadow 160ms ease;
  }

  .button:hover,
  .button:focus-visible,
  .insight-card:hover,
  .blog-card:hover,
  .theme-card:hover {
    transform: translateY(-1px);
  }

  .insight-card:hover,
  .blog-card:hover,
  .theme-card:hover {
    box-shadow: var(--shadow-hover);
  }

  .checkpoint-choice-content:hover {
    border-color: rgba(165, 139, 112, 0.58);
    box-shadow: 0 8px 20px rgba(78, 63, 50, 0.055);
  }

  .skeleton-line {
    animation: skeleton-shimmer 1400ms ease-in-out infinite;
  }
}

/* Blog authoring and article-specific eye-catch images */
.blog-card-image,
.article-eyecatch-image,
.admin-current-eyecatch {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  background: #f7f5ef;
}

.blog-card-image {
  aspect-ratio: 16 / 9;
  margin: -1px -1px 16px;
  width: calc(100% + 2px);
  border-radius: 5px 5px 0 0;
}

.article-eyecatch-image {
  aspect-ratio: 16 / 9;
  margin: 24px 0;
  border-radius: 4px;
}

.article-body h2,
.article-body h3 {
  margin: 2em 0 0.7em;
  color: #332d28;
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.article-body h2 { font-size: clamp(1.55rem, 3.4vw, 2.05rem); }
.article-body h3 { margin-top: 1.55em; font-size: clamp(1.2rem, 2.6vw, 1.48rem); }

.article-body strong { color: #2f2a25; font-weight: 800; }

.article-body ul,
.article-body ol {
  margin: 0.8em 0 1.4em;
  padding-inline-start: 1.75em;
}

.article-body li {
  padding-inline-start: 0.25em;
  overflow-wrap: anywhere;
}

.article-body blockquote {
  margin: 1.5em 0;
  padding: 0.6em 1.2em;
  border-left: 3px solid var(--primary);
  background: #f8f6f0;
}

.article-body li + li { margin-top: 0.45em; }
.article-body a { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 0.2em; }
.article-body a:hover { text-decoration-thickness: 2px; }
.article-body a:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 2px; }
.article-body hr { width: 100%; margin: 2em 0; border: 0; border-top: 1px solid var(--line); }
.article-inline-image {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  margin: 1.75em auto;
  border-radius: 5px;
  background: #f7f5ef;
}
.article-inline-image-missing {
  margin: 1.5em 0;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 5px;
  color: var(--muted);
  background: #faf9f6;
}
.home-blog-title-link { color: inherit; text-decoration: none; }
.home-blog-title-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

.admin-blog-editor-form,
.admin-blog-preview-wrap,
.admin-fieldset,
.admin-related-insights {
  display: grid;
  gap: 14px;
}

.admin-fieldset {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.admin-related-insights {
  max-height: 520px;
  overflow: auto;
}

.admin-related-insight-row,
.admin-list-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}

.admin-related-insight-row label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  min-width: 0;
}

.admin-inline-actions,
.admin-form-actions,
.admin-heading-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-current-eyecatch { max-width: 560px; max-height: 315px; }
.admin-blog-preview { margin-top: 24px; }

.admin-markdown-paste-guide,
.admin-markdown-analysis {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #d8d5c6;
  border-radius: 7px;
  background: #fbfaf4;
  line-height: 1.75;
}

.admin-markdown-analysis {
  display: grid;
  gap: 8px;
  margin: 16px 0 24px;
  font-size: 0.9rem;
}

.admin-markdown-analysis p { margin: 0; }

.admin-markdown-example pre {
  max-width: 100%;
  overflow: auto;
  padding: 14px;
  border-radius: 6px;
  background: #f5f3ec;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.admin-inline-image-fieldset,
.admin-inline-image-details,
.admin-inline-image-upload {
  display: grid;
  gap: 12px;
}

.admin-inline-image-card {
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}

.admin-inline-image-thumbnail {
  display: block;
  width: 100%;
  height: auto;
  max-height: 140px;
  object-fit: contain;
  border-radius: 4px;
  background: #f7f5ef;
}

.admin-inline-image-markdown {
  display: block;
  max-width: 100%;
  padding: 10px;
  overflow-wrap: anywhere;
  border-radius: 4px;
  background: #f7f5ef;
  color: #443d35;
}

.admin-danger-zone {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid #ead6cf;
}

.button-danger {
  border-color: #b76552;
  background: #fff7f4;
  color: #8e3825;
}

.button-danger:hover { background: #fbe9e4; }

@media (max-width: 699.98px) {
  .admin-related-insight-row,
  .admin-list-card { align-items: stretch; flex-direction: column; }
  .admin-inline-actions .button { flex: 1; }
  .admin-inline-image-card { grid-template-columns: 1fr; }
  .admin-inline-image-thumbnail { max-width: 240px; }
  .article-eyecatch-image { margin-inline: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .helpful-button.is-feedback {
    animation: none;
  }

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

.brand-mark.brand-text-fallback,
.footer-brand-logo.brand-text-fallback,
.login-brand-logo.brand-text-fallback {
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: initial;
  transform: none;
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.admin-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.admin-brand,
.admin-nav,
.admin-nav-link,
.admin-account {
  display: flex;
  align-items: center;
}

.admin-brand {
  gap: 8px;
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 800;
}

.admin-brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
}

.admin-brand strong {
  padding: 4px 8px;
  border-radius: 6px;
  background: #eef3ea;
  color: #394633;
  font-size: 0.8rem;
}

.admin-nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-account {
  gap: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  white-space: nowrap;
}

.admin-hero-current {
  display: grid;
  gap: 14px;
  align-items: center;
}

.admin-hero-preview {
  width: 100%;
  aspect-ratio: 16 / 7;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf6;
  object-fit: cover;
}

.admin-hero-current h3,
.admin-hero-current p {
  margin: 0;
}

.admin-warning {
  margin: 0;
  border: 1px solid #e7cba4;
  border-radius: 8px;
  background: #fff8eb;
  color: #7b5526;
  padding: 10px 12px;
  font-weight: 800;
}

.admin-radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.admin-radio-row label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 800;
}

.admin-hero-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  gap: 10px;
}

.admin-hero-image-option {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
  padding: 8px;
  cursor: pointer;
}

.admin-hero-image-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.admin-hero-image-option img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  background: #fbfaf6;
  object-fit: cover;
}

.admin-hero-image-option span {
  color: #4d433d;
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-hero-image-option.is-selected {
  border-color: rgba(63, 119, 105, 0.78);
  box-shadow: 0 0 0 3px rgba(63, 119, 105, 0.13);
}

.admin-hero-upload,
.admin-hero-uploaded-list {
  display: grid;
  gap: 12px;
}

.admin-hero-uploaded-card {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fffdf9;
  padding: 12px;
}

.admin-hero-uploaded-card img {
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: 7px;
  background: #fbfaf6;
  object-fit: cover;
}

.admin-hero-uploaded-card h4,
.admin-hero-uploaded-card p {
  margin: 0;
}

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

.button-danger-quiet {
  background: transparent;
  color: #8d3f31;
}

.admin-danger-zone {
  margin-top: 28px;
  border-color: #e1bdb5;
  background: #fffaf8;
}

.admin-nav-link {
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
}

.admin-nav-link:hover {
  background: #f3f6ef;
}

.admin-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}

.admin-page {
  display: grid;
  gap: 18px;
}

.admin-page-heading h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.admin-page-heading p {
  max-width: 720px;
  color: var(--muted);
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.admin-meta-item,
.admin-panel,
.admin-row,
.admin-key-panel {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.admin-meta-item {
  padding: 16px;
  display: grid;
  gap: 6px;
}

.admin-meta-item span,
.admin-muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-meta-item strong {
  font-size: 1.5rem;
  overflow-wrap: anywhere;
}

.admin-meta-stack strong,
.admin-meta-stack ul {
  font-size: 1rem;
}

.analysis-tags-panel {
  display: grid;
  gap: 12px;
}

.analysis-tags-panel .admin-meta-item strong {
  font-size: 1rem;
}

.analysis-tag-editor {
  display: grid;
  gap: 16px;
  border: 1px solid rgba(91, 123, 85, 0.22);
  border-radius: 8px;
  background: #fbfaf6;
  padding: 16px;
}

.analysis-tag-editor legend {
  color: var(--primary-dark);
  font-size: 1.08rem;
  font-weight: 900;
  padding: 0 6px;
}

.analysis-checkbox-group,
.analysis-question-editor {
  display: grid;
  gap: 10px;
}

.field-label {
  color: var(--ink);
  font-weight: 900;
}

.tag-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.tag-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid rgba(130, 94, 58, 0.16);
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
  font-weight: 800;
}

.tag-checkbox input {
  accent-color: var(--primary);
}

.analysis-readonly-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.admin-panel,
.admin-key-panel {
  padding: 18px;
}

.admin-link-panel,
.admin-actions,
.admin-row-actions,
.admin-filter,
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.admin-toolbar {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.admin-notice,
.admin-empty {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.admin-notice-success {
  border-color: #b8d7ad;
  background: #eff8eb;
  color: #426b35;
}

.admin-notice-error {
  border-color: #efb7a9;
  background: #fff2ee;
  color: #9a3e28;
}

.admin-empty {
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.admin-search-results {
  display: grid;
  gap: 10px;
}

.admin-filter {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-row {
  padding: 14px;
  display: grid;
  gap: 12px;
}

.admin-row-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.admin-row-main p,
.admin-row-title strong,
.admin-muted {
  overflow-wrap: anywhere;
}

.admin-row-title {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-pill {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid #d9ded3;
  background: #f7f8f4;
  color: #46513e;
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-pill-high,
.admin-pill-flagged {
  border-color: #efb7a9;
  background: #fff2ee;
  color: #9a3e28;
}

.admin-pill-medium,
.admin-pill-draft {
  border-color: #ead3a5;
  background: #fff8e8;
  color: #755822;
}

.admin-pill-published,
.admin-pill-resolved,
.admin-pill-reviewed,
.admin-pill-promoted {
  border-color: #b8d7ad;
  background: #eff8eb;
  color: #426b35;
}

.admin-pill-hidden,
.admin-pill-ignored,
.admin-pill-closed {
  border-color: #c9c9c9;
  background: #f4f4f4;
  color: #555;
}

.admin-pill-needs_review,
.admin-pill-in_progress {
  border-color: #ead3a5;
  background: #fff8e8;
  color: #755822;
}

.admin-subrow {
  display: grid;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.admin-text-block {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-width: 100%;
  margin: 0;
  padding: 14px;
  border-radius: 8px;
  background: #faf8f2;
  color: var(--ink);
  font-family: inherit;
  line-height: 1.8;
}

.admin-edit-form {
  display: grid;
  gap: 14px;
}

.admin-backfill-form,
.admin-top-checkpoint-editor,
.admin-backfill-result,
.admin-backfill-summary {
  display: grid;
  gap: 14px;
}

.admin-backfill-form {
  grid-template-columns: minmax(240px, 1fr) minmax(180px, 0.42fr) minmax(180px, 0.42fr) auto;
  align-items: end;
}

.admin-backfill-form > div:first-child,
.admin-backfill-result {
  grid-column: 1 / -1;
}

.admin-backfill-form h2,
.admin-backfill-summary h3 {
  margin: 0 0 6px;
}

.admin-backfill-summary dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin: 0;
}

.admin-top-checkpoint-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.admin-top-checkpoint-compare > div,
.admin-top-checkpoint-original {
  min-width: 0;
  border: 1px solid rgba(91, 123, 85, 0.2);
  border-radius: 8px;
  background: #fbfaf6;
  padding: 12px;
}

.admin-top-checkpoint-compare p,
.admin-top-checkpoint-original p {
  margin: 8px 0 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.admin-top-checkpoint-editor textarea {
  min-height: 96px;
}

.admin-key-panel {
  max-width: 560px;
}

@media (min-width: 820px) {
  .admin-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

@media (max-width: 720px) {
  .admin-header {
    position: static;
  }

  .admin-header-inner {
    padding: 12px 14px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .admin-brand {
    min-width: 0;
  }

  .admin-nav {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .admin-nav-link {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 8px 11px;
    white-space: nowrap;
  }

  .admin-account {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    white-space: normal;
  }

  .admin-account .button {
    width: 100%;
  }

  .admin-main {
    width: min(100% - 24px, 1180px);
    padding: 22px 0 48px;
  }

  .admin-page {
    gap: 14px;
  }

  .admin-page-heading h1 {
    font-size: clamp(1.75rem, 9vw, 2.4rem);
    line-height: 1.25;
  }

  .admin-page-heading p {
    margin-bottom: 0;
    font-size: 0.94rem;
  }

  .admin-toolbar,
  .admin-filter,
  .admin-link-panel,
  .admin-actions,
  .admin-row-actions {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .admin-backfill-form,
  .admin-top-checkpoint-compare {
    grid-template-columns: 1fr;
  }

  .admin-backfill-form > * {
    grid-column: 1;
  }

  .admin-toolbar .button,
  .admin-toolbar a,
  .admin-filter .button,
  .admin-link-panel .button,
  .admin-actions .button,
  .admin-row-actions .button {
    width: 100%;
    min-height: 42px;
  }

  .admin-filter .field,
  .admin-edit-form .field,
  .admin-edit-form .checkbox-row {
    min-width: 0;
  }

  .admin-filter select,
  .admin-edit-form input,
  .admin-edit-form select,
  .admin-edit-form textarea {
    font-size: 16px;
  }

  .admin-panel,
  .admin-row,
  .admin-key-panel {
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(70, 60, 45, 0.06);
  }

  .admin-panel,
  .admin-key-panel {
    padding: 15px;
  }

  .admin-row {
    padding: 15px;
    gap: 14px;
  }

  .admin-row-title {
    gap: 7px;
  }

  .admin-row-title strong {
    flex-basis: 100%;
    line-height: 1.55;
  }

  .admin-pill {
    min-height: 28px;
    padding: 5px 10px;
    font-size: 0.84rem;
  }

  .admin-muted {
    font-size: 0.84rem;
    line-height: 1.7;
  }

  .admin-meta-item {
    padding: 13px;
  }

  .admin-meta-item strong {
    font-size: 1.12rem;
  }

  .admin-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .admin-text-block {
    max-height: 46vh;
    overflow: auto;
    padding: 12px;
    font-size: 0.94rem;
    line-height: 1.75;
  }

  .admin-subrow {
    gap: 10px;
  }

  .admin-subrow .button {
    width: 100%;
  }

  .admin-edit-form {
    gap: 12px;
  }

  .analysis-tag-editor {
    padding: 13px;
  }

  .tag-checkbox-grid,
  .analysis-readonly-meta {
    grid-template-columns: 1fr;
  }

  .admin-hero-current {
    grid-template-columns: 1fr;
  }

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

  .admin-hero-uploaded-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .card-footer-meta {
    align-items: flex-start;
  }

  .card-footer-meta .helpful-button {
    margin-left: 0;
  }

  .admin-header-inner {
    padding-inline: 12px;
  }

  .admin-brand span {
    font-size: 0.95rem;
  }

  .admin-main {
    width: min(100% - 20px, 1180px);
  }

  .admin-metrics,
  .admin-hero-image-grid {
    grid-template-columns: 1fr;
  }

  .admin-panel,
  .admin-row,
  .admin-key-panel,
  .admin-filter,
  .admin-toolbar {
    border-radius: 9px;
  }

  .admin-page-heading h1 {
    font-size: 1.8rem;
  }
}

/* Admin alignment system -------------------------------------------------- */

.admin-shell,
.admin-login-main {
  --admin-control-height: 46px;
  --admin-gap-sm: 8px;
  --admin-gap-md: 14px;
  --admin-gap-lg: 20px;
  --admin-card-padding: 18px;
  --admin-filter-padding: 16px;
  --admin-page-gap: 20px;
  --admin-heading-gap: 8px;
}

.admin-shell .admin-page {
  gap: var(--admin-page-gap);
}

.admin-shell .admin-page-heading {
  display: grid;
  gap: var(--admin-heading-gap);
}

.admin-shell .admin-page-heading > * {
  margin: 0;
}

.admin-shell .admin-list {
  gap: var(--admin-gap-md);
}

.admin-shell .admin-panel,
.admin-shell .admin-key-panel,
.admin-shell .admin-row,
.admin-shell .admin-list-card {
  padding: var(--admin-card-padding);
}

.admin-shell .admin-row,
.admin-shell .admin-list-card {
  gap: var(--admin-gap-lg);
}

.admin-shell .admin-filter {
  align-items: flex-end;
  gap: var(--admin-gap-md);
  padding: var(--admin-filter-padding);
}

.admin-shell .admin-filter > .field {
  flex: 1 1 180px;
  min-width: min(100%, 180px);
}

.admin-shell .field input,
.admin-shell .field select {
  min-height: var(--admin-control-height);
  height: var(--admin-control-height);
}

.admin-shell .button,
.admin-login-main .button {
  min-height: var(--admin-control-height);
}

.admin-shell .admin-filter > .button,
.admin-shell .admin-actions .button,
.admin-shell .admin-row-actions .button,
.admin-shell .admin-blog-list-actions .button,
.admin-shell .admin-form-actions .button,
.admin-shell .admin-heading-actions .button,
.admin-shell .admin-inline-actions .button,
.admin-shell .admin-empty .button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.admin-shell .admin-row-actions,
.admin-shell .admin-blog-list-actions,
.admin-shell .admin-form-actions,
.admin-shell .admin-heading-actions,
.admin-shell .admin-inline-actions {
  align-items: center;
  gap: var(--admin-gap-sm);
}

.admin-shell .admin-empty {
  gap: var(--admin-gap-sm);
  padding: var(--admin-card-padding);
}

.admin-shell .admin-empty > * {
  margin: 0;
}

.admin-shell .admin-empty .button {
  width: max-content;
  max-width: 100%;
  justify-self: start;
}

@media (min-width: 820px) {
  .admin-shell .admin-row,
  .admin-shell .admin-list-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .admin-shell .admin-row-actions,
  .admin-shell .admin-blog-list-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 720px) {
  .admin-shell,
  .admin-login-main {
    --admin-card-padding: 15px;
    --admin-filter-padding: 15px;
    --admin-page-gap: 16px;
  }

  .admin-shell .admin-filter {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .admin-shell .admin-filter > .field {
    width: 100%;
    min-width: 0;
  }

  .admin-shell .admin-filter > .button {
    width: min(100%, 220px);
    justify-self: start;
  }

  .admin-shell .admin-row-actions,
  .admin-shell .admin-blog-list-actions,
  .admin-shell .admin-form-actions,
  .admin-shell .admin-heading-actions,
  .admin-shell .admin-inline-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  .admin-shell .admin-row-actions .button,
  .admin-shell .admin-blog-list-actions .button,
  .admin-shell .admin-form-actions .button,
  .admin-shell .admin-inline-actions .button {
    width: auto;
    flex: 1 1 140px;
  }

  .admin-shell .admin-heading-actions .button {
    width: auto;
  }
}

/* Design refresh v0.1: image-independent foundation ----------------------- */

body {
  background: #ffffff;
  font-family: var(--font-sans);
  line-height: 1.8;
  color: var(--ink);
}

.main h1,
.main h2,
.main .hero-tagline,
.main .article-page h1,
.main .detail-card h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.035em;
}

.main h3,
.main h4,
.main button,
.main input,
.main select,
.main textarea {
  font-family: var(--font-sans);
}

.main h1[tabindex="-1"]:focus {
  outline: none;
}

.site-header {
  border-bottom-color: rgba(92, 88, 65, 0.18);
  background: rgba(255, 255, 255, 0.975);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.site-header-inner {
  width: min(1240px, calc(100% - 32px));
  min-height: 72px;
}

.brand-link {
  min-height: 56px;
}

.brand-mark {
  height: 50px;
  max-width: 150px;
  border-radius: 0;
  transform: scale(1.5);
  transform-origin: left center;
}

.menu-button {
  border-color: var(--line);
  border-radius: 3px;
  color: var(--primary-dark);
  box-shadow: none;
}

.nav-link {
  border-radius: 3px;
  color: #44463f;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.035em;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: #f7f5ef;
  color: var(--primary-dark);
}

.nav-link-login {
  border-color: var(--primary);
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
  padding-inline: 22px;
}

.nav-link-login:hover,
.nav-link-login:focus-visible {
  border-color: var(--primary-dark);
  background: var(--primary-dark);
  color: #ffffff;
}

.main,
.main-wide {
  width: min(1240px, calc(100% - 32px));
  padding-top: 44px;
}

.main .button {
  min-height: 44px;
  border-radius: 4px;
  padding: 10px 22px;
  box-shadow: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.main .button-primary {
  border-color: var(--primary);
  background: var(--primary);
}

.main .button-primary:hover,
.main .button-primary:focus-visible {
  border-color: var(--primary-dark);
  background: var(--primary-dark);
  outline: 3px solid rgba(23, 107, 135, 0.18);
  outline-offset: 2px;
}

.main .button-secondary {
  border-color: #a9a58d;
  background: #ffffff;
  color: #4d4b34;
}

.main .button-secondary:hover,
.main .button-secondary:focus-visible,
.main .button-text:hover,
.main .button-text:focus-visible {
  border-color: var(--primary);
  background: #f7f5ef;
  outline: 3px solid rgba(23, 107, 135, 0.14);
  outline-offset: 2px;
}

.page-heading {
  gap: 14px;
  margin: 0 0 42px;
  padding: 18px 0 8px;
}

.page-heading h1 {
  max-width: 20em;
  color: #332d28;
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1.38;
  overflow-wrap: normal;
}

.page-heading h1:focus {
  outline: none;
}

.page-lead {
  max-width: 42rem;
  font-size: 0.98rem;
  line-height: 1.9;
}

.eyebrow {
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.section {
  margin-top: clamp(64px, 8vw, 104px);
}

.section-heading,
.home-section-head {
  margin-bottom: 22px;
}

.section-heading h2,
.home-section-head h2 {
  padding-left: 0;
  color: #332d28;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: 500;
}

.section-heading h2::before,
.home-section-head h2::before {
  display: none;
}

.home-page {
  gap: clamp(56px, 7vw, 88px);
}

.home-page .button {
  border-radius: 4px;
}

.hero {
  min-height: 470px;
  margin: -8px 0 0;
  border-color: rgba(92, 88, 65, 0.18);
  border-radius: 0;
  background-color: #f8f6f0;
  background-image:
    linear-gradient(
      90deg,
      rgba(255, 253, 248, 0.98) 0%,
      rgba(255, 253, 248, 0.94) 28%,
      rgba(255, 253, 248, 0.72) 42%,
      rgba(255, 253, 248, 0.24) 54%,
      rgba(255, 253, 248, 0) 62%
    ),
    var(--hero-image, url("/home-visual.svg"));
  box-shadow: none;
}

.hero::before {
  background: linear-gradient(
    90deg,
    rgba(255, 253, 248, 0.98) 0%,
    rgba(255, 253, 248, 0.94) 28%,
    rgba(255, 253, 248, 0.72) 42%,
    rgba(255, 253, 248, 0.24) 54%,
    rgba(255, 253, 248, 0) 62%
  );
}

.hero::after {
  display: none;
}

.hero-content {
  width: min(650px, 100%);
}

.hero h1 {
  max-width: 11em;
  color: #342c27;
  font-size: clamp(2.65rem, 4.1vw, 3.4rem);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: 0.06em;
}

.hero-tagline {
  color: #423c34;
  font-size: clamp(1.05rem, 1.8vw, 1.34rem);
  font-weight: 500;
}

.hero-lead {
  color: #54544c;
  font-size: 0.98rem;
  line-height: 1.9;
}

.hero-actions {
  gap: 14px;
  margin-top: 30px;
}

.hero-actions .button {
  min-width: 158px;
}

.home-plan-steps,
.home-monthly-topic,
.home-new-notice,
.home-resume-card,
.home-stage-guide {
  border-color: var(--line);
  border-radius: 5px;
  background: #ffffff;
  box-shadow: none;
}

.home-plan-steps {
  padding: clamp(28px, 5vw, 52px);
}

.home-plan-copy h2,
.home-new-notice h2,
.home-monthly-topic h3 {
  color: #332d28;
  font-family: var(--font-serif);
  font-weight: 500;
}

.home-step-list li {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 18px 0;
}

.home-step-number {
  border: 1px solid #aaa68e;
  background: #ffffff;
  color: var(--primary-dark);
}

.home-theme-row {
  border: 0;
  border-block: 1px solid var(--line);
  border-radius: 0;
  background: #ffffff;
  padding: 18px 4px;
}

.home-theme-tile {
  min-height: 118px;
  border-color: transparent;
  border-radius: 4px;
  background: #ffffff;
  font-size: 0.84rem;
  font-weight: 600;
}

.home-theme-tile:hover,
.home-theme-tile:focus-visible {
  border-color: var(--line);
  background: #faf9f5;
  box-shadow: none;
}

.home-theme-icon {
  border: 0;
  border-radius: 0;
  background: #ffffff;
  color: var(--primary-dark);
}

.home-theme-icon-image {
  border-radius: 0;
  filter: saturate(0.45) sepia(0.14);
}

.home-insight-grid,
.home-blog-grid,
.card-grid,
.blog-grid,
.theme-grid {
  gap: 16px;
}

.main .insight-card,
.main .blog-card,
.main .theme-card,
.home-blog-card {
  border-color: var(--line);
  border-radius: 5px;
  background: #ffffff;
  box-shadow: none;
}

.main .insight-card:hover,
.main .blog-card:hover,
.main .theme-card:hover,
.home-blog-card:hover {
  border-color: #aaa68e;
  box-shadow: var(--shadow-soft);
}

.home-blog-media,
.blog-card-media {
  background: #f7f5ef;
}

.home-submit-cta {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #f8f6f0;
  box-shadow: none;
}

.home-submit-cta::before,
.home-submit-cta::after {
  opacity: 0.25;
}

.main .form-panel,
.main .login-panel,
.main .placeholder-panel,
.main .reaction-section,
.main .article-page,
.main .detail-card,
.checkpoint-builder-panel,
.checkpoint-result-panel,
.checkpoint-reflection-panel {
  border-color: var(--line);
  border-radius: 5px;
  background: #ffffff;
  box-shadow: none;
}

.main .form-panel,
.checkpoint-builder-panel,
.checkpoint-result-panel {
  padding: clamp(22px, 4vw, 38px);
}

.main .field {
  gap: 7px;
}

.main .field > span,
.main legend {
  color: #41433e;
  font-size: 0.9rem;
  font-weight: 600;
}

.main input,
.main select,
.main textarea {
  border-color: #cbc9bf;
  border-radius: 3px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: none;
}

.main input:focus,
.main select:focus,
.main textarea:focus {
  border-color: var(--primary);
  outline: 3px solid rgba(23, 107, 135, 0.14);
  outline-offset: 1px;
}

.post-mode-panel,
.post-topic-notice,
.post-nudge-card,
.post-privacy-note,
.consent-panel {
  border-color: var(--line);
  border-radius: 4px;
  background: #f9f8f4;
  box-shadow: none;
}

.post-mode-option,
.checkpoint-choice-content {
  border-color: var(--line);
  border-radius: 4px;
  background: #ffffff;
  box-shadow: none;
}

.post-form-panel {
  max-width: 960px;
}

.post-mode-option:has(input:checked),
.checkpoint-choice input:checked + .checkpoint-choice-content {
  border-color: var(--primary);
  background: #f5f4ec;
  box-shadow: inset 0 0 0 1px var(--primary);
}

.article-page {
  max-width: 720px;
  padding: clamp(24px, 4vw, 44px);
}

.article-page h1 {
  color: #332d28;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.4;
}

.article-body {
  max-width: 42rem;
  font-size: 1rem;
  line-height: 2;
}

.site-footer {
  min-height: 190px;
  border-top-color: var(--line);
  background: #ffffff;
  padding-block: 42px;
}

.footer-brand-logo {
  width: 68px;
  height: 68px;
  border-radius: 0;
  background: transparent;
}

.site-footer p,
.footer-link {
  color: #55574f;
  text-shadow: none;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--primary-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (min-width: 700px) {
  .site-header-inner {
    grid-template-columns: 190px 1fr;
    min-height: 76px;
    gap: 28px;
  }

  .site-nav,
  .site-nav.is-open {
    align-items: center;
    gap: 8px;
  }

  .main {
    padding-top: 44px;
  }

  .home-plan-steps {
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
  }

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

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

@media (min-width: 1024px) {
  .hero {
    min-height: 500px;
    padding: 58px 64px;
  }

  .hero-image { object-position: center top; }

  .hero::before {
    background: linear-gradient(
      90deg,
      rgba(255, 253, 248, 0.98) 0%,
      rgba(255, 253, 248, 0.94) 28%,
      rgba(255, 253, 248, 0.72) 42%,
      rgba(255, 253, 248, 0.24) 54%,
      rgba(255, 253, 248, 0) 62%
    );
  }

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

  .article-page,
  .main .form-panel {
    max-width: 860px;
  }

  .main .post-form-panel {
    max-width: 960px;
  }
}

@media (max-width: 699.98px) {
  .site-header-inner {
    min-height: 68px;
  }

  .brand-mark {
    height: 46px;
  }

  .site-nav {
    padding-bottom: 12px;
  }

  .nav-link-login {
    width: 100%;
  }

  .main,
  .main-wide {
    width: min(100% - 24px, 1240px);
    padding: 28px 0 64px;
  }

  .hero {
    min-height: 560px;
    align-items: end;
    padding: 300px 22px 32px;
    background-image:
      linear-gradient(180deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.94) 64%, #ffffff 82%),
      var(--hero-image, url("/home-visual.svg"));
    background-position: center top;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 12vw, 3.6rem);
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .button {
    width: 100%;
  }

  .home-theme-row {
    grid-auto-columns: 112px;
  }

  .home-theme-tile {
    grid-template-rows: 72px auto;
  }

  .home-theme-icon {
    width: 72px;
    height: 72px;
  }

  .home-theme-icon-image {
    width: 64px;
    height: 64px;
  }

  .page-heading h1 {
    font-size: clamp(2rem, 9vw, 2.55rem);
  }

  .main .form-panel,
  .checkpoint-builder-panel,
  .checkpoint-result-panel {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .main .button,
  .main .insight-card,
  .main .blog-card,
  .main .theme-card,
  .main .checkpoint-choice-content {
    transition:
      border-color 180ms cubic-bezier(.2, .7, .2, 1),
      background-color 180ms cubic-bezier(.2, .7, .2, 1),
      box-shadow 180ms cubic-bezier(.2, .7, .2, 1),
      transform 180ms cubic-bezier(.2, .7, .2, 1);
  }
}

/* Home-only reading tiles. Blog index and article cards keep their own layouts. */
.home-blog-grid {
  grid-template-columns: 1fr;
  gap: 18px;
  width: min(100%, 880px);
}

.home-blog-card {
  display: grid;
  grid-template-columns: minmax(0, 40%) minmax(0, 60%);
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
  box-shadow: none;
}

.home-blog-card:hover {
  border-color: #aaa68e;
  box-shadow: var(--shadow-soft);
}

.home-blog-card:focus-visible {
  border-color: var(--primary);
  outline: 3px solid rgba(23, 107, 135, 0.22);
  outline-offset: 3px;
}

.home-blog-media {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 0;
  aspect-ratio: 3 / 2;
  place-items: stretch;
  overflow: hidden;
  background: #f4f2e9;
}

.home-blog-media:empty {
  display: grid;
}

.home-blog-thumb-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.home-blog-placeholder {
  display: grid;
  height: 100%;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 20px;
  background:
    radial-gradient(circle at 72% 24%, rgba(145, 169, 128, 0.18), transparent 32%),
    linear-gradient(135deg, #faf8f1, #f0eee3);
  color: #66664f;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.home-blog-placeholder-mark {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.home-blog-copy {
  display: grid;
  min-width: 0;
  align-content: center;
  justify-items: start;
  gap: 11px;
  padding: clamp(20px, 3.2vw, 34px);
}

.home-blog-copy h3,
.home-blog-copy time {
  margin: 0;
}

.home-blog-category {
  display: inline-flex;
  width: fit-content;
  border: 1px solid #dce4d4;
  border-radius: 999px;
  background: #f0f5eb;
  color: #525b45;
  padding: 4px 10px;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
}

.home-blog-copy h3 {
  display: -webkit-box;
  overflow: hidden;
  color: #332d28;
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 2.2vw, 1.42rem);
  font-weight: 600;
  line-height: 1.55;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.home-blog-copy time {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

@media (max-width: 699.98px) {
  .home-blog-grid {
    gap: 16px;
  }

  .home-blog-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-blog-media {
    aspect-ratio: 16 / 9;
  }

  .home-blog-copy {
    gap: 10px;
    padding: 18px;
  }

  .home-blog-copy h3 {
    font-size: clamp(1.125rem, 5.4vw, 1.32rem);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .home-blog-card {
    transition:
      border-color 180ms cubic-bezier(.2, .7, .2, 1),
      box-shadow 180ms cubic-bezier(.2, .7, .2, 1),
      transform 180ms cubic-bezier(.2, .7, .2, 1);
  }

  .home-blog-card:hover {
    transform: translateY(-1px);
  }
}

/* Home-only insight discovery rail. Full list and detail cards remain unchanged. */
.home-insight-discovery {
  display: grid;
  min-width: 0;
  gap: 12px;
}

.home-insight-tools {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.home-insight-scroll-controls {
  display: inline-flex;
  gap: 6px;
}

.home-insight-scroll-button,
.home-insight-swap-button {
  min-height: 44px;
  border: 1px solid #c9c8b9;
  border-radius: 999px;
  background: #ffffff;
  color: #555744;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.home-insight-scroll-button {
  width: 44px;
  padding: 0;
  font-size: 1rem;
}

.home-insight-swap-button {
  padding: 7px 15px;
}

.home-insight-scroll-button:hover:not(:disabled),
.home-insight-swap-button:hover:not(:disabled) {
  border-color: #96977f;
  background: #f7f6f0;
}

.home-insight-scroll-button:focus-visible,
.home-insight-swap-button:focus-visible {
  outline: 3px solid rgba(23, 107, 135, 0.22);
  outline-offset: 2px;
}

.home-insight-scroll-button:disabled,
.home-insight-swap-button:disabled {
  cursor: default;
  opacity: 0.42;
}

.home-insight-rail {
  display: flex;
  min-width: 0;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 3px 4px 12px;
  scroll-padding-inline: 4px;
  scroll-snap-type: x proximity;
  scrollbar-color: #b8b8a5 #f2f1eb;
  scrollbar-width: thin;
  touch-action: pan-x pan-y;
}

.home-insight-rail::-webkit-scrollbar {
  height: 7px;
}

.home-insight-rail::-webkit-scrollbar-track {
  border-radius: 999px;
  background: #f2f1eb;
}

.home-insight-rail::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #b8b8a5;
}

.home-insight-card {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  min-width: 0;
  height: 100%;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #ffffff;
  color: inherit;
  padding: clamp(20px, 2.5vw, 28px);
  text-decoration: none;
  box-shadow: none;
  scroll-snap-align: start;
  flex: 0 0 calc((100% - 16px) / 1.1);
  max-width: 400px;
}

.home-insight-card:hover {
  border-color: #aaa68e;
  background: #fffefa;
}

.home-insight-card:focus-visible {
  border-color: var(--primary);
  outline: 3px solid rgba(23, 107, 135, 0.22);
  outline-offset: 3px;
}

.home-insight-theme {
  display: inline-flex;
  width: fit-content;
  border: 1px solid #dce4d4;
  border-radius: 999px;
  background: #f0f5eb;
  color: #525b45;
  padding: 4px 10px;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
}

.home-insight-checkpoint {
  display: grid;
  align-content: start;
  gap: 7px;
}

.home-insight-checkpoint-label {
  color: #747365;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.home-insight-checkpoint p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #332d28;
  font-family: var(--font-serif);
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
  font-weight: 700;
  line-height: 1.62;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.home-insight-excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #66645d;
  font-size: 0.82rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-insight-more {
  justify-self: end;
  color: var(--primary-dark);
  font-size: 0.84rem;
  font-weight: 700;
}

.home-insight-more::after {
  content: ">";
  margin-left: 8px;
}

@media (max-width: 699.98px) {
  [data-home-section="insights"] {
    gap: 10px;
  }

  [data-home-section="insights"] .home-section-head {
    display: contents;
  }

  [data-home-section="insights"] .home-section-head h2 {
    order: 1;
    margin-bottom: 2px;
    font-size: clamp(1.5rem, 6.8vw, 1.75rem);
    line-height: 1.42;
  }

  [data-home-section="insights"] .home-mode-section-lead {
    order: 2;
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.72;
  }

  [data-home-section="insights"] .home-section-link {
    display: inline-flex;
    width: fit-content;
    min-height: 44px;
    order: 3;
    align-items: center;
    font-size: 0.9rem;
  }

  [data-home-section="insights"] .home-new-notice {
    order: 4;
  }

  [data-home-section="insights"] .home-insight-discovery {
    order: 5;
    gap: 8px;
  }

  .home-insight-tools {
    min-height: 44px;
    justify-content: flex-start;
  }

  .home-insight-scroll-controls {
    display: none;
  }

  .home-insight-swap-button {
    min-height: 44px;
    padding: 8px 16px;
    font-size: 0.88rem;
  }

  .home-insight-rail {
    gap: 14px;
    padding: 2px 2px 4px;
    scroll-padding-inline: 2px;
    scrollbar-width: none;
  }

  .home-insight-rail::-webkit-scrollbar {
    display: none;
  }

  .home-insight-card {
    grid-template-rows: auto auto auto;
    flex-basis: calc(100% - 40px);
    max-width: none;
    gap: 12px;
    padding: 20px;
  }

  .home-insight-theme,
  .home-insight-checkpoint-label {
    font-size: 0.8125rem;
  }

  .home-insight-checkpoint p {
    font-size: clamp(1.125rem, 5vw, 1.25rem);
    line-height: 1.55;
    overflow-wrap: break-word;
    word-break: normal;
    line-break: strict;
  }

  .home-insight-excerpt {
    display: none;
  }
}

@media (min-width: 700px) {
  .home-insight-card {
    flex-basis: calc((100% - 16px) / 2.1);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .home-insight-card {
    transition:
      border-color 180ms cubic-bezier(.2, .7, .2, 1),
      background-color 180ms cubic-bezier(.2, .7, .2, 1),
      transform 180ms cubic-bezier(.2, .7, .2, 1);
  }

  .home-insight-rail {
    transition: opacity 180ms ease;
  }

  .home-insight-rail.is-updating {
    opacity: 0.68;
  }

  .home-insight-card:hover {
    transform: translateY(-1px);
  }
}

/* Visitor-mode navigation: priority links plus a complete secondary menu. */
.site-header-inner {
  grid-template-columns: minmax(160px, 184px) minmax(0, 1fr) 44px auto;
}

.brand-mark {
  width: clamp(160px, 15.2vw, 184px);
  height: auto;
  max-width: 100%;
  border-radius: 0;
  object-fit: contain;
  transform: none;
}

.site-primary-nav {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.menu-button {
  display: inline-grid;
  grid-column: auto;
  cursor: pointer;
}

.site-menu-backdrop {
  position: fixed;
  z-index: 1000;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  justify-content: flex-end;
  overflow: hidden;
  background: rgba(45, 42, 34, 0.28);
}

.site-menu-backdrop[hidden] {
  display: none;
}

.site-menu-panel {
  position: fixed;
  z-index: 1001;
  top: 0;
  right: 0;
  bottom: 0;
  display: grid;
  width: min(420px, 90vw);
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  align-content: start;
  gap: 22px;
  overscroll-behavior: contain;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #fffefb;
  padding: 24px clamp(20px, 4vw, 34px) 40px;
  box-shadow: -16px 0 40px rgba(55, 49, 40, 0.12);
  animation: site-menu-slide-in 240ms cubic-bezier(.2, .7, .2, 1) both;
}

@keyframes site-menu-slide-in {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.site-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.site-menu-head > strong {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-weight: 600;
}

.site-menu-close {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #ffffff;
  color: var(--ink);
  padding: 7px 12px;
  font: inherit;
  cursor: pointer;
}

.site-menu-group {
  display: grid;
  gap: 8px;
}

.site-menu-group h2 {
  margin: 0;
  color: #747262;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.site-menu-group nav {
  display: grid;
}

.site-menu-link {
  display: flex;
  min-height: 44px;
  align-items: center;
  border-bottom: 1px solid rgba(216, 212, 198, 0.68);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.site-menu-link:hover,
.site-menu-link:focus-visible,
.site-menu-close:hover,
.site-menu-close:focus-visible {
  color: var(--primary-dark);
  outline: 2px solid rgba(63, 119, 105, 0.36);
  outline-offset: 2px;
}

.site-menu-settings {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #f7f5ed;
  padding: 14px 16px;
}

.site-menu-status {
  margin: 0;
  color: #4f5148;
  font-weight: 700;
}

.site-menu-change-link {
  border-bottom: 0;
  color: var(--primary-dark);
}

body.site-menu-open {
  position: fixed;
  top: var(--site-menu-scroll-offset, 0);
  left: 0;
  width: 100%;
  overflow: hidden;
}

.footer-nav-groups {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}

.footer-nav-group {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-nav-group h2 {
  margin: 0;
  color: var(--ink);
  font-size: 0.88rem;
}

.footer-nav-group nav {
  display: grid;
  gap: 8px;
}

@media (max-width: 699.98px) {
  .site-header-inner {
    grid-template-columns: 1fr 44px;
  }

  .site-primary-nav {
    display: none;
  }

  .brand-mark {
    width: min(152px, calc(100vw - 112px));
    height: auto;
  }

  .menu-button {
    grid-column: 2;
  }

  .site-account-link {
    display: none;
  }

  .site-menu-panel {
    width: min(100vw, 420px);
    max-width: 100vw;
  }

  .footer-nav-groups {
    grid-template-columns: 1fr;
  }
}

.footer-brand-logo {
  width: min(210px, calc(100vw - 48px));
  height: auto;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
}

.login-brand-logo {
  width: min(220px, calc(100vw - 72px));
  height: auto;
  border-radius: 0;
  object-fit: contain;
}

@media (min-width: 900px) {
  .footer-nav-groups {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1180px) {
  .footer-nav-groups {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

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

.visitor-mode-status-panel,
.home-my-posts-card,
.home-planning-auxiliary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #faf9f4;
  padding: clamp(18px, 3vw, 28px);
}

.visitor-mode-status-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  justify-content: initial;
  gap: 14px 22px;
  background: #fbfaf5;
  padding: clamp(16px, 2.4vw, 22px);
}

.visitor-mode-status-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #edf2e7;
  color: var(--primary-dark);
  font-family: var(--font-serif);
  font-size: 1.25rem;
}

.visitor-mode-status-copy h2 {
  margin: 0 0 3px;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.5;
}

.visitor-mode-status-copy p {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.65;
}

.visitor-mode-status-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.visitor-mode-status-actions .button {
  white-space: nowrap;
}

.visitor-mode-status-actions .text-link {
  white-space: nowrap;
  font-size: 0.84rem;
}

.visitor-mode-status-panel p,
.home-my-posts-card p,
.home-planning-auxiliary p {
  margin: 0;
}

.visitor-mode-chooser {
  display: grid;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fffefb;
  padding: clamp(22px, 4vw, 38px);
}

.visitor-mode-heading {
  max-width: 720px;
}

.visitor-mode-heading h2,
.visitor-mode-heading p {
  margin-block: 0 10px;
}

.visitor-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.visitor-mode-card {
  display: grid;
  align-content: start;
  gap: 12px;
  border: 1px solid #d8d4c6;
  border-radius: 5px;
  background: #f8f7f1;
  padding: clamp(18px, 3vw, 28px);
}

.visitor-mode-card h2,
.visitor-mode-card p {
  margin: 0;
}

.visitor-mode-card h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.55;
}

.visitor-mode-card .button {
  justify-self: start;
  margin-top: 4px;
}

.home-mode-section-lead {
  max-width: 760px;
  margin: -4px 0 18px;
  color: var(--muted);
  line-height: 1.8;
}

.home-submit-cta.is-auxiliary {
  background: #faf9f5;
}

.home-submit-cta.is-auxiliary .home-cta-copy {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.lived-post-guide {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  align-items: center;
  gap: clamp(20px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #f7f5ed;
  padding: clamp(24px, 4vw, 42px);
}

.lived-post-flow {
  --lived-post-flow-gap: clamp(18px, 2vw, 24px);
  display: grid;
  gap: var(--lived-post-flow-gap);
}

.lived-post-flow .home-my-posts-card {
  border-color: rgba(126, 133, 91, 0.42);
  background: #fbfaf5;
}

.lived-post-guide h2 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.55;
}

.lived-post-guide p {
  line-height: 1.8;
}

.lived-post-examples {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lived-post-examples li {
  border-bottom: 1px solid rgba(190, 186, 168, 0.6);
  padding: 7px 0;
}

.lived-post-guide > .button {
  grid-column: 1 / -1;
  justify-self: start;
}

.home-my-posts-card h2,
.home-planning-auxiliary h2 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
}

.post-experience-page {
  display: grid;
  gap: 26px;
}

.post-experience-gate {
  display: grid;
  max-width: 860px;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fffefb;
  padding: clamp(24px, 5vw, 46px);
}

.post-experience-gate h2,
.post-experience-gate p {
  margin: 0;
}

.post-experience-gate h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.65;
}

.post-experience-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.post-experience-guidance {
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.post-experience-guidance[hidden] {
  display: none;
}

@media (max-width: 699.98px) {
  .visitor-mode-grid,
  .lived-post-guide {
    grid-template-columns: 1fr;
  }

  .visitor-mode-card .button,
  .lived-post-guide > .button,
  .post-experience-actions .button {
    width: 100%;
  }

  .post-experience-actions {
    display: grid;
  }

  .visitor-mode-status-panel {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .visitor-mode-status-mark {
    display: none;
  }

  .visitor-mode-status-actions {
    display: grid;
    width: 100%;
  }

  .visitor-mode-status-actions .button {
    width: 100%;
  }
}

/* Public mobile density: keep desktop comparison layouts intact while making
   small screens sequential, readable and comfortable to operate one-handed. */
@media (max-width: 699.98px) {
  .site-header-inner {
    width: calc(100% - 24px);
    min-height: 60px;
    gap: 8px;
  }

  .brand-link { min-height: 52px; }
  .brand-mark { width: min(136px, calc(100vw - 100px)); }
  .menu-button { width: 44px; height: 44px; }

  .main,
  .main-wide {
    width: calc(100% - 24px);
    padding-block: 20px 48px;
  }

  .main input,
  .main select,
  .main textarea { font-size: 16px; }

  .main .button,
  .home-insight-swap-button,
  .home-section-link,
  .filter-chip { min-height: 44px; }

  .main .button {
    padding: 8px 16px;
    font-size: 0.875rem;
  }

  .home-page { gap: 32px; }

  .hero {
    min-height: min(62svh, 390px);
    margin-top: -4px;
    padding: clamp(72px, 22vw, 92px) 16px 18px;
    background-position: 62% top;
  }

  .hero-image { object-position: 62% top; }

  .hero h1 {
    max-width: 10em;
    font-size: clamp(1.82rem, 8vw, 2.2rem);
    line-height: 1.3;
    letter-spacing: 0.035em;
  }

  .hero-tagline {
    margin-top: 10px;
    font-size: 1rem;
    line-height: 1.55;
  }

  .hero-lead {
    display: none;
  }

  .hero-actions {
    gap: 6px;
    margin-top: 18px;
  }

  .hero-actions .button + .button {
    width: fit-content;
    justify-self: start;
    border-color: transparent;
    background: rgba(255, 255, 255, 0.78);
    padding-inline: 6px;
    text-decoration: underline;
    text-underline-offset: 4px;
  }

  .section { margin-top: 48px; }

  .page-heading {
    gap: 10px;
    margin-bottom: 28px;
    padding: 10px 0 4px;
  }

  .page-heading h1 {
    font-size: clamp(1.8rem, 8vw, 2.15rem);
    line-height: 1.42;
  }

  .page-lead,
  .section-lead,
  .home-mode-section-lead {
    font-size: 0.9375rem;
    line-height: 1.72;
  }

  .section-heading,
  .home-section-head { margin-bottom: 12px; }

  .section-heading h2,
  .home-section-head h2 {
    font-size: clamp(1.38rem, 6vw, 1.55rem);
    line-height: 1.42;
  }

  .home-section { gap: 10px; }

  .home-plan-steps,
  .home-monthly-topic,
  .home-new-notice,
  .home-resume-card,
  .home-stage-guide,
  .visitor-mode-card,
  .visitor-mode-status-panel,
  .home-my-posts-card,
  .home-planning-auxiliary,
  .lived-post-guide { padding: 16px; }

  .home-plan-steps,
  .home-monthly-topic,
  .lived-post-guide { gap: 10px; }

  .home-monthly-topic { grid-template-columns: minmax(0, 1fr); }

  .home-monthly-topic h3 {
    margin-top: 4px;
    font-size: clamp(1.1rem, 5.2vw, 1.28rem);
    line-height: 1.42;
  }

  .home-monthly-topic h3 + p,
  .home-monthly-topic .monthly-topic-actions .small-note {
    display: none;
  }

  .home-monthly-topic .monthly-topic-theme,
  .home-monthly-topic .monthly-topic-actions { margin-top: 6px; }

  .monthly-topic-actions {
    min-width: 0;
    justify-items: start;
  }

  .home-step-list li { padding-block: 14px; }

  .lived-post-guide h2 {
    margin-bottom: 8px;
    font-size: clamp(1.4rem, 6.5vw, 1.65rem);
    line-height: 1.48;
  }

  .lived-post-guide p {
    margin-block: 0;
    font-size: 0.9375rem;
    line-height: 1.72;
  }

  .lived-post-examples { gap: 4px; }
  .lived-post-examples li { padding-block: 6px; }

  .home-theme-row {
    grid-auto-columns: 100px;
    gap: 8px;
    padding-block: 12px;
  }

  .home-theme-tile {
    grid-template-rows: 60px auto;
    min-height: 100px;
    gap: 6px;
    padding: 8px 6px 10px;
    font-size: 0.8125rem;
  }

  .home-theme-icon,
  .home-theme-icon-image { width: 60px; height: 60px; }

  .main .insight-card,
  .main .blog-card,
  .main .theme-card,
  .skeleton-card {
    gap: 12px;
    padding: 16px;
  }

  .insight-card-main-link { gap: 12px; }

  .insight-card .insight-card-title {
    font-size: clamp(1.1rem, 5vw, 1.25rem);
    line-height: 1.55;
  }

  .insight-body {
    font-size: 0.9375rem;
    line-height: 1.75;
  }

  .filter-bar,
  .theme-filter-panel { gap: 10px; padding: 12px; }

  .home-blog-grid { gap: 14px; }
  .home-blog-media { aspect-ratio: 16 / 8.5; }

  .home-blog-copy {
    gap: 8px;
    padding: 16px;
  }

  .home-blog-copy h3 {
    font-size: clamp(1.08rem, 5vw, 1.25rem);
    line-height: 1.5;
  }

  [data-home-section="insights"] .home-section-head h2 {
    font-size: clamp(1.38rem, 6vw, 1.55rem);
  }

  .home-insight-card { gap: 8px; padding: 16px; }

  .home-insight-checkpoint-label { font-size: 0.75rem; }

  .home-insight-checkpoint p {
    font-size: clamp(1.0625rem, 4.5vw, 1.16rem);
    line-height: 1.5;
  }

  .site-footer {
    min-height: 0;
    gap: 10px;
    padding-block: 32px;
  }

  .footer-nav-groups { gap: 18px; padding-top: 20px; }
  .footer-nav-group,
  .footer-nav-group nav { gap: 8px; }
}

/* Public desktop grid: one shared set of outer gutters, wings and content lines.
   Long-form reading widths remain independent inside the shared center track. */
@media (min-width: 768px) {
  .page-grid {
    display: grid;
    grid-template-columns:
      minmax(var(--public-grid-gutter-min), 1fr)
      minmax(0, var(--public-grid-wing))
      minmax(0, var(--public-grid-content))
      minmax(0, var(--public-grid-wing))
      minmax(var(--public-grid-gutter-min), 1fr);
    column-gap: 0;
  }

  .main-wide {
    width: 100%;
  }

  .main:not(.main-wide) {
    width: min(
      var(--public-grid-content),
      calc(100% - var(--public-grid-gutter-min) - var(--public-grid-gutter-min))
    );
  }

  .site-header-inner {
    grid-column: 2 / 5;
    width: 100%;
    min-height: 68px;
    grid-template-columns: minmax(148px, 172px) minmax(0, 1fr) 44px auto;
    gap: clamp(14px, 2vw, 24px);
  }

  .brand-link { min-height: 52px; }
  .brand-mark { width: clamp(148px, 13.4vw, 172px); }

  .main,
  .main-wide {
    padding-top: 32px;
    padding-bottom: 56px;
  }

  .main .button {
    min-height: 44px;
    padding: 8px 18px;
    font-size: 0.875rem;
  }

  .hero {
    grid-template-columns:
      minmax(0, var(--public-grid-wing))
      minmax(0, var(--public-grid-content))
      minmax(0, var(--public-grid-wing));
    min-height: clamp(400px, 32vw, 420px);
    padding: clamp(38px, 4vw, 50px) 0;
  }

  .hero-image { object-position: 62% top; }

  .hero::before {
    background: linear-gradient(
      90deg,
      rgba(255, 253, 248, 0.98) 0,
      rgba(255, 253, 248, 0.94) calc(
        var(--public-grid-wing) + 300px
      ),
      rgba(255, 253, 248, 0.72) calc(
        var(--public-grid-wing) + 440px
      ),
      rgba(255, 253, 248, 0.24) calc(
        var(--public-grid-wing) + var(--public-hero-copy)
      ),
      rgba(255, 253, 248, 0) calc(
        var(--public-grid-wing) + var(--public-hero-copy) + var(--public-hero-copy-image-gap)
      )
    );
  }

  .hero-content {
    grid-column: 2;
    width: min(var(--public-hero-copy), 100%);
    margin-left: 0;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 3.4vw, 3rem);
    line-height: 1.25;
  }

  .hero-tagline { font-size: clamp(1.02rem, 1.45vw, 1.2rem); }
  .hero-lead { max-width: 38rem; line-height: 1.75; }
  .hero-actions { gap: 10px; margin-top: 22px; }
  .hero-actions .button { min-width: 144px; }

  .home-page {
    width: 100%;
    row-gap: clamp(52px, 5vw, 68px);
  }
  .section { margin-top: var(--public-section-space); }

  .home-page > .home-section-rail {
    grid-column: 2 / 5;
    width: 100%;
  }

  .home-section-inner--reading {
    width: min(100%, var(--public-home-reading));
    margin-inline: auto;
  }

  .visitor-mode-status-panel {
    grid-template-columns: auto minmax(0, 720px) max-content;
    justify-content: center;
  }

  .visitor-mode-status-copy { max-width: 720px; }

  .page-heading {
    gap: 12px;
    margin-bottom: 34px;
    padding-top: 12px;
  }

  .page-heading h1 { font-size: clamp(2rem, 2.7vw, 2.45rem); }

  .section-heading,
  .home-section-head { margin-bottom: 18px; }

  .section-heading h2,
  .home-section-head h2 { font-size: clamp(1.45rem, 2.1vw, 1.85rem); }

  .home-plan-steps,
  .home-monthly-topic,
  .home-new-notice,
  .home-resume-card,
  .home-stage-guide,
  .visitor-mode-card,
  .visitor-mode-status-panel,
  .home-my-posts-card,
  .home-planning-auxiliary,
  .lived-post-guide {
    padding: clamp(22px, 2.5vw, 32px);
  }

  .home-plan-steps,
  .home-monthly-topic,
  .lived-post-guide { gap: clamp(18px, 2.5vw, 30px); }

  .home-step-list li { padding-block: 14px; }

  .home-insight-card {
    gap: 12px;
    width: 100%;
    max-width: none;
    padding: var(--public-card-padding);
  }

  .home-insight-rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
    padding: 3px 0 4px;
    scroll-padding-inline: 0;
    scroll-snap-type: none;
    scrollbar-width: none;
  }

  .home-insight-rail::-webkit-scrollbar { display: none; }

  .home-blog-grid { width: 100%; }
  .home-blog-copy { padding: var(--public-card-padding); }
  .home-blog-grid { gap: 14px; }

  .site-footer {
    min-height: 168px;
    padding-block: 34px;
  }
}

/* The desktop home uses equal flexible gutters around a stable content rail.
   Header and long-form reading layouts deliberately keep their independent
   containers while the home background remains visually continuous. */
@media (min-width: 1024px) {
  .home-page.page-grid {
    grid-template-columns:
      minmax(var(--public-home-gutter), 1fr)
      minmax(0, var(--public-home-content))
      minmax(var(--public-home-gutter), 1fr);
    row-gap: var(--public-home-section-gap);
    background: #ffffff;
  }

  .home-page > .home-section-rail {
    grid-column: 2;
    width: 100%;
    max-width: var(--public-home-content);
    justify-self: center;
  }

  .hero {
    min-height: clamp(370px, 28vw, 380px);
    padding-block: clamp(34px, 3.2vw, 44px);
  }

  .hero h1 {
    font-size: clamp(2.2rem, 3vw, 2.7rem);
  }

  .home-page .home-section-head h2 {
    font-size: clamp(1.32rem, 1.85vw, 1.65rem);
  }

  .home-page .button {
    padding-inline: 16px;
  }

  .home-page .home-plan-steps,
  .home-page .home-monthly-topic,
  .home-page .home-new-notice,
  .home-page .home-resume-card,
  .home-page .home-stage-guide,
  .home-page .visitor-mode-card,
  .home-page .visitor-mode-status-panel,
  .home-page .home-my-posts-card,
  .home-page .home-planning-auxiliary,
  .home-page .lived-post-guide {
    padding: clamp(20px, 2vw, 28px);
  }

  .home-page .home-plan-steps,
  .home-page .home-monthly-topic,
  .home-page .lived-post-guide {
    gap: clamp(16px, 2vw, 24px);
  }

  .site-footer {
    grid-template-columns:
      minmax(var(--public-grid-gutter-min), 1fr)
      minmax(0, var(--public-grid-wing))
      minmax(0, var(--public-grid-content))
      minmax(0, var(--public-grid-wing))
      minmax(var(--public-grid-gutter-min), 1fr);
  }

  .site-footer > * {
    grid-column: 2 / 5;
  }
}

/* Bridge the compact mobile and desktop density without exposing the older
   700px layout values at tablet widths. */
@media (min-width: 700px) and (max-width: 1023.98px) {
  .home-page {
    row-gap: clamp(40px, 5vw, 50px);
  }

  .home-page .hero {
    min-height: 380px;
    padding-block: clamp(34px, 4vw, 42px);
  }

  .home-page .hero h1 {
    font-size: clamp(2.2rem, 4vw, 2.35rem);
  }

  .home-page .home-section-head h2 {
    font-size: clamp(1.38rem, 2.2vw, 1.45rem);
  }
}

/* Narrow public reading, form and placeholder surfaces stay centered in the
   shared public rail; their internal text alignment remains unchanged. */
@media (min-width: 768px) {
  .article-page,
  .public-form-page,
  .public-placeholder-page,
  .post-experience-page,
  .main .post-form-panel {
    width: 100%;
    margin-inline: auto;
    justify-self: center;
  }

  .public-form-page,
  .post-experience-page {
    max-width: 860px;
  }

  .public-placeholder-page {
    max-width: 820px;
  }
}

/* Blog article follow-up content keeps one center axis while retaining the
   width appropriate to reading, discovery and short-form contribution. */
.article-detail-page {
  min-width: 0;
}

.article-detail-page > .article-page,
.article-detail-page > .article-related-section,
.article-detail-page > .article-after-content,
.article-detail-page > .article-reaction-form {
  box-sizing: border-box;
  margin-inline: auto;
}

.article-detail-page > .article-related-section,
.article-detail-page > .article-after-content {
  width: min(100%, 1120px);
}

.article-detail-page > .article-related-section.is-empty,
.article-detail-page > .article-reaction-form {
  width: min(100%, 860px);
}

.article-detail-page > .article-related-section {
  margin-top: clamp(48px, 5vw, 72px);
}

.article-detail-page > .article-after-content,
.article-detail-page > .article-reaction-form {
  margin-top: clamp(24px, 3vw, 36px);
}

.article-detail-page > .article-after-content {
  margin-bottom: 0;
}
