@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,600&family=Inter+Tight:wght@400;500;600&display=swap');

:root {
  --bg: #fffbf3;
  --surface: #ffffff;
  --sand: #f4ecdd;
  --sand-2: #efe4d1;
  --ink: #14110d;
  --ink-2: #403a30;
  --muted: #6d6558;
  --line: #e7dbc7;
  --gold: #82602a;
  --gold-2: #a97f3c;
  --gold-soft: #f0e3c9;
  --dark: #0c1119;
  --dark-2: #151c26;
  --radius: 10px;
  --radius-sm: 6px;
  --maxw: 1180px;
  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--gold); }
a:hover { color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.16;
  margin: 0 0 0.5em;
  color: var(--ink);
}

p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin: 0 0 10px;
}

/* ---------------- Navigation ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(12, 17, 25, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  color: #f6f1e7;
}
@supports not ((backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px))) {
  .nav { background: #0c1119; }
}
.nav-in {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fbf6ec;
  font-family: var(--font-head);
  font-size: 20px;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.logo:hover { color: #ffffff; }
.logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 94, 0.7);
  color: #d9b877;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links > a,
.dd-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: rgba(246, 241, 231, 0.82);
  text-decoration: none;
  font-size: 14px;
  font-family: var(--font-body);
  background: transparent;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}
.nav-links > a:hover,
.dd-btn:hover,
.nav-links > a:focus-visible,
.dd-btn:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
  outline: none;
}
.nav-links > a.is-active { color: #ffffff; }
.nav-cta {
  margin-left: 8px;
  background: linear-gradient(180deg, #e0bd7d, #b98f47) !important;
  color: #17120a !important;
  font-weight: 600;
  padding: 9px 18px !important;
  border-radius: 999px !important;
}
.nav-cta:hover { filter: brightness(1.06); }

.dd { position: relative; }
.dd-btn .ri-arrow-down-s-line { font-size: 16px; transition: transform 0.18s ease; }
.dd-btn[aria-expanded='true'] .ri-arrow-down-s-line { transform: rotate(180deg); }
.dd-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 560px;
  background: rgba(12, 17, 25, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 50px rgba(8, 10, 14, 0.34);
}
.dd-panel[hidden] { display: none; }
.dd-panel a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: rgba(246, 241, 231, 0.86);
  text-decoration: none;
  font-size: 13.5px;
  white-space: nowrap;
}
.dd-panel a:hover, .dd-panel a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  outline: none;
}
.dd-panel a i { color: #cba664; font-size: 15px; }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.hero-copy { animation: rise-in 0.6s ease both; }
.cat, .post-card, .step { animation: rise-in 0.5s ease both; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 22px;
  min-height: 44px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.16s ease, filter 0.16s ease, background 0.16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: linear-gradient(180deg, #e2c084, #b9924b); color: #16110a; }
.btn-gold:hover { color: #16110a; filter: brightness(1.05); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fdf8ef;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.18); color: #ffffff; }
.btn-dark { background: var(--ink); color: #fffbf3; }
.btn-dark:hover { background: #241e16; color: #fffbf3; }
.btn-line { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-line:hover { background: var(--sand); color: var(--ink); }
.btn-sm { padding: 8px 14px; min-height: 38px; font-size: 13px; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 350px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0c1119;
  color: #fffaf1;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 50%;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 12, 17, 0.94) 0%, rgba(9, 12, 17, 0.85) 38%, rgba(9, 12, 17, 0.34) 72%, rgba(9, 12, 17, 0.5) 100%);
}
.hero-in {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 44px 24px;
}
.hero-copy { max-width: 560px; }
.hero h1 {
  color: #fffaf1;
  font-size: 40px;
  line-height: 1.1;
  margin-bottom: 12px;
}
.hero h1 em { font-style: italic; color: #e0bd7d; }
.hero-sub {
  color: rgba(255, 250, 241, 0.82);
  font-size: 15px;
  line-height: 1.55;
  max-width: 470px;
  margin-bottom: 20px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hero-note {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: rgba(255, 250, 241, 0.62);
  max-width: 420px;
  line-height: 1.5;
}
.hero-note a { color: rgba(255, 250, 241, 0.85); text-decoration: underline; text-underline-offset: 2px; }

/* ---------------- Section scaffolding ---------------- */
.section { padding: 34px 0; }
.section-sand { background: var(--sand); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: 26px; margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); font-size: 14px; max-width: 620px; }
[id] { scroll-margin-top: 84px; }

/* ---------------- Categories ---------------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.cat {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 12px;
  min-height: 46px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-sm);
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.cat:hover { border-color: var(--gold-2); background: #fffdf8; color: var(--ink); }
.cat i { color: var(--gold); font-size: 16px; flex: none; }

/* ---------------- Cards / articles grid ---------------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
.chip:hover { border-color: var(--gold-2); }
.chip[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: #fffbf3; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  counter-reset: guide;
}
.post-card .pc-thumb { display: none; }
.post-card .pc-tag::before {
  counter-increment: guide;
  content: counter(guide, decimal-leading-zero) '  ';
  color: var(--gold-2);
  font-weight: 600;
  letter-spacing: 0.06em;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.16s ease, transform 0.16s ease;
}
.post-card:hover { border-color: var(--gold-2); transform: translateY(-2px); color: inherit; }
.post-card .pc-body { padding: 13px 14px 15px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.post-card .pc-tag {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.post-card h3 {
  font-size: 16.5px;
  line-height: 1.28;
  margin: 0;
  font-family: var(--font-head);
}
.post-card p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.post-card .pc-more {
  margin-top: auto;
  padding-top: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.post-card .pc-thumb { height: 96px; background: var(--sand-2); overflow: hidden; }
.post-card .pc-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------- Tool ---------------- */
.tool {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.tool-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 12.5px;
  color: var(--muted);
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 16px;
  line-height: 1.5;
}
.tool-note i { color: var(--gold); font-size: 15px; line-height: 1.3; }
.field-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field select, .field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fffdf9;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  min-width: 0;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid rgba(130, 96, 42, 0.28);
  border-color: var(--gold-2);
}
.field textarea { resize: vertical; min-height: 64px; }
.act-row { display: flex; flex-wrap: wrap; gap: 8px; }
.act-row label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  background: #fffdf9;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-2);
  font-weight: 500;
}
.act-row input { accent-color: var(--gold); }

.tbl-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 640px;
}
table.data th, table.data td {
  text-align: left;
  padding: 8px 9px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
table.data th {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  background: var(--sand);
  white-space: nowrap;
}
table.data td input, table.data td select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 6px 7px;
  font-family: var(--font-body);
  font-size: 13px;
  background: #fffdf9;
  color: var(--ink);
  box-sizing: border-box;
  min-width: 0;
}
table.data tr.is-bought td { background: #fbf6ea; color: var(--muted); }
.icon-btn {
  width: 30px; height: 30px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 4px;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-btn:hover { color: #8a2a1d; border-color: #d9b4aa; }

.tool-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
}
.tool-bar .spacer { flex: 1; }
.summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.stat {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  background: #fffdf9;
}
.stat span { display: block; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.stat strong { font-family: var(--font-head); font-size: 21px; font-weight: 600; }
.msg {
  margin-top: 12px;
  font-size: 13px;
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  display: none;
}
.msg.show { display: block; }
.msg.error { background: #fbeee9; border: 1px solid #e2bfb2; color: #7d2b18; }
.msg.ok { background: #f0f4e9; border: 1px solid #cfdcc0; color: #3c5227; }

/* ---------------- Steps ---------------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.step {
  border-top: 2px solid var(--gold);
  padding-top: 12px;
}
.step span.num {
  font-family: var(--font-head);
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.1em;
}
.step h3 { font-size: 17px; margin: 4px 0 6px; }
.step p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* ---------------- FAQ ---------------- */
.faq-list { border-top: 1px solid var(--line); }
details.faq {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
details.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 26px 14px 0;
  font-family: var(--font-head);
  font-size: 17px;
  position: relative;
  color: var(--ink);
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: '+';
  position: absolute;
  right: 2px;
  top: 12px;
  font-size: 20px;
  color: var(--gold);
}
details.faq[open] summary::after { content: '–'; }
details.faq p { font-size: 14px; color: var(--ink-2); padding-right: 30px; margin: 0 0 16px; }

/* ---------------- Footer ---------------- */
.footer {
  background: var(--sand-2);
  border-top: 1px solid var(--line);
  padding: 34px 0 26px;
  margin-top: 20px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(130, 96, 42, 0.2);
}
.footer h3 { font-size: 19px; margin-bottom: 8px; }
.footer p { font-size: 13px; color: var(--muted); max-width: 380px; }
.footer .fcol h4 {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer ul a { font-size: 13px; color: var(--ink-2); text-decoration: none; }
.footer ul a:hover { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.cat-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(130, 96, 42, 0.2);
}
.cat-list a {
  font-size: 12.5px;
  color: var(--ink-2);
  text-decoration: none;
  padding: 3px 0;
}
.cat-list a:hover { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  font-size: 12px;
  color: var(--muted);
}
.footer-bottom a { color: var(--ink-2); }

/* ---------------- Mobile tab bar + sheet ---------------- */
.tabbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  background: rgba(12, 17, 25, 0.94);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.tabbar a, .tabbar button {
  flex: 1;
  min-height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: transparent;
  border: 0;
  color: rgba(246, 241, 231, 0.78);
  font-family: var(--font-body);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border-radius: 6px;
}
.tabbar i { font-size: 19px; }
.tabbar a:hover, .tabbar button:hover, .tabbar button[aria-expanded='true'] { color: #ffffff; background: rgba(255, 255, 255, 0.08); }
.tabbar .tb-wrap { display: flex; width: 100%; max-width: 560px; margin: 0 auto; }

.sheet-wrap { position: fixed; inset: 0; z-index: 120; display: flex; align-items: flex-end; }
.sheet-wrap[hidden] { display: none; }
.sheet-scrim {
  position: absolute;
  inset: 0;
  background: rgba(9, 12, 17, 0.55);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.sheet-wrap.is-open .sheet-scrim { opacity: 1; }
.sheet {
  position: relative;
  width: 100%;
  max-height: 85dvh;
  background: #fffbf3;
  border-radius: 18px 18px 0 0;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.24s cubic-bezier(0.32, 0.72, 0, 1);
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.sheet-wrap.is-open .sheet { transform: translateY(0); }
.sheet-grab {
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: #d8cbb4;
  margin: 8px auto 0;
  flex: none;
}
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px 8px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.sheet-head h2 { font-size: 19px; margin: 0; }
.sheet-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
}
.sheet-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 16px calc(24px + env(safe-area-inset-bottom));
}
.sheet-body a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
}
.sheet-body a:hover { color: var(--gold); }
.sheet-body a i { color: var(--gold); font-size: 16px; flex: none; }
.sheet-body .sheet-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  padding: 14px 4px 6px;
}

/* ---------------- Article ---------------- */
.crumbs {
  padding: 14px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.crumbs span { margin: 0 6px; opacity: 0.6; }

.post-head { padding: 18px 0 22px; border-bottom: 1px solid var(--line); }
.post-head h1 { font-size: 34px; max-width: 820px; margin-bottom: 12px; }
.post-head .lede { font-size: 16.5px; color: var(--ink-2); max-width: 760px; line-height: 1.6; margin: 0; }
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}
.post-meta .pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  background: var(--surface);
}

.post-cover { margin: 22px 0 0; }
.post-cover img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(130, 96, 42, 0.18);
}
.post-layout { display: grid; grid-template-columns: minmax(0, 760px) 260px; gap: 40px; padding: 26px 0 40px; }
.prose { max-width: 760px; font-size: 16px; line-height: 1.72; color: var(--ink-2); }
.prose h2 { font-size: 24px; margin: 30px 0 10px; color: var(--ink); }
.prose h3 { font-size: 18px; margin: 22px 0 8px; font-family: var(--font-body); font-weight: 600; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 20px; }
.prose li { margin-bottom: 7px; }
.prose li::marker { color: var(--gold); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose figure { margin: 0 0 22px; }
.prose figure img { border-radius: var(--radius); width: 100%; height: auto; }
.prose figcaption { font-size: 12.5px; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 6px 0 18px; min-width: 520px; }
.prose table th, .prose table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose table th { background: var(--sand); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 18px; }
.callout {
  background: var(--gold-soft);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 16px;
  font-size: 14.5px;
  color: #4a3a1d;
  margin: 0 0 18px;
}
.callout strong { color: #3a2c11; }
.checklist { list-style: none; padding: 0; margin: 0 0 18px; }
.checklist li {
  position: relative;
  padding: 7px 0 7px 26px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 13px;
  height: 13px;
  border: 1px solid var(--gold-2);
  border-radius: 3px;
}
.post-aside { position: sticky; top: 84px; align-self: start; }
.post-aside .box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--surface);
  margin-bottom: 14px;
}
.post-aside h2 { font-size: 15px; font-family: var(--font-body); font-weight: 600; letter-spacing: 0.02em; margin-bottom: 8px; }
.post-aside ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.post-aside ul a { font-size: 13.5px; text-decoration: none; color: var(--ink-2); line-height: 1.4; display: block; }
.post-aside ul a:hover { color: var(--gold); }
.post-aside .box p { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: var(--surface); margin-bottom: 24px; }
.toc h2 { font-family: var(--font-body); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin: 0 0 8px; }
.toc ol { margin: 0; padding-left: 18px; font-size: 14px; }
.toc li { margin-bottom: 4px; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.related {
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding-top: 20px;
}
.related h2 { font-size: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.related-grid a {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 12px 13px;
  text-decoration: none;
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.4;
}
.related-grid a:hover { border-color: var(--gold-2); }
.related-grid a span { display: block; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 5px; }
.back-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

/* ---------------- Utility ---------------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: #fffbf3;
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 6px;
  z-index: 200;
}
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid #c9a25e; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1080px) {
  .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .post-aside { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .post-aside .box { margin-bottom: 0; }
}

@media (max-width: 820px) {
  .wrap { padding: 0 18px; }
  .nav-in { padding: 0 16px; height: 58px; gap: 10px; }
  .nav-links { display: none; }
  .tabbar { display: block; }
  body { padding-bottom: 66px; }
  .hero { min-height: 330px; }
  .hero-in { padding: 34px 18px; }
  .hero h1 { font-size: 28px; }
  .hero-sub { font-size: 14px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .section { padding: 26px 0; }
  .section-head h2 { font-size: 22px; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cat { font-size: 12.5px; padding: 10px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .post-card h3 { font-size: 15px; }
  .post-card p { display: none; }
  .post-card .pc-thumb { height: 78px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .tool { padding: 16px; }
  .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 20px; }
  .cat-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-head h1 { font-size: 26px; }
  .post-cover img { height: 200px; }
  .post-head .lede { font-size: 15.5px; }
  .prose { font-size: 15.5px; }
  .related-grid { grid-template-columns: 1fr; }
  .post-aside { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .card-grid { grid-template-columns: 1fr; }
  .post-card { flex-direction: row; }
  .post-card .pc-thumb { width: 92px; height: auto; flex: none; }
  .post-card p { display: block; }
}

@media (min-width: 821px) {
  .sheet-wrap { display: none !important; }
}