:root {
  --shelter-ink: #17201c;
  --shelter-muted: #58665f;
  --shelter-accent: #315f49;
  --shelter-soft: #f1f5f2;
  --shelter-line: #d8e1dc;
}

.shelter-page { margin: 0; color: var(--shelter-ink); background: #fff; }
.shelter-page .topbar { border-bottom: 1px solid var(--shelter-line); }
.shelter-article { width: min(900px, calc(100% - 40px)); padding-top: 54px; padding-bottom: 96px; }
.shelter-article > h1 { max-width: 850px; margin: 8px 0 22px; font-size: clamp(40px, 5vw, 66px); line-height: 1.03; letter-spacing: 0; }
.shelter-article > h2 { margin: 72px 0 20px; font-size: clamp(28px, 3vw, 40px); line-height: 1.14; letter-spacing: 0; scroll-margin-top: 110px; }
.shelter-article > h3 { margin: 34px 0 10px; font-size: 23px; line-height: 1.25; scroll-margin-top: 110px; }
.shelter-article > p,
.shelter-article > ul,
.shelter-article > ol { max-width: 780px; font-size: 18px; line-height: 1.72; }
.shelter-article > p { margin: 0 0 19px; }
.shelter-article > ul,
.shelter-article > ol { padding-left: 24px; margin: 18px 0 28px; }
.shelter-article li { margin: 7px 0; }
.shelter-article a { color: var(--shelter-accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.shelter-article .detail-button { color: #fff; text-decoration: none; }
.shelter-article .detail-button-ghost { color: var(--shelter-accent); background: #fff; border-color: var(--shelter-accent); }
.shelter-kicker { color: var(--shelter-accent); }
.shelter-lead { max-width: 850px !important; margin-bottom: 26px !important; color: #26352e; font-size: clamp(20px, 2vw, 25px) !important; line-height: 1.46 !important; }
.shelter-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 24px; }
.shelter-author,
.shelter-updated { color: var(--shelter-muted); font-size: 15px !important; }
.shelter-facts { max-width: 900px !important; padding: 22px 24px; border: 1px solid var(--shelter-line); background: var(--shelter-soft); border-radius: 6px; line-height: 1.75 !important; }
.shelter-toc-list { max-width: 900px !important; columns: 2; column-gap: 42px; padding: 28px 30px 28px 52px !important; border-top: 1px solid var(--shelter-line); border-bottom: 1px solid var(--shelter-line); }
.shelter-toc-list li { break-inside: avoid; margin: 0 0 10px; }
.shelter-table-wrap { max-width: 900px; margin: 28px 0 36px; overflow-x: auto; border: 1px solid var(--shelter-line); border-radius: 6px; }
.shelter-table-wrap table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.shelter-table-wrap th,
.shelter-table-wrap td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--shelter-line); }
.shelter-table-wrap th { background: var(--shelter-soft); font-weight: 700; }
.shelter-table-wrap tr:last-child td { border-bottom: 0; }
.shelter-case-links { margin: 76px 0 4px; padding: 40px 0; border-top: 1px solid var(--shelter-line); border-bottom: 1px solid var(--shelter-line); }
.shelter-case-links h2 { margin: 6px 0 24px; font-size: clamp(28px, 3vw, 40px); }
.shelter-case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.shelter-case-grid > a { display: flex; min-height: 250px; padding: 26px; flex-direction: column; color: var(--shelter-ink); text-decoration: none; border: 1px solid var(--shelter-line); border-radius: 6px; background: #fff; }
.shelter-case-grid span { color: var(--shelter-accent); font-size: 13px; font-weight: 700; text-transform: uppercase; }
.shelter-case-grid strong { margin: 14px 0 12px; font-size: 24px; line-height: 1.25; }
.shelter-case-grid p { color: var(--shelter-muted); line-height: 1.55; }
.shelter-case-grid b { margin-top: auto; color: var(--shelter-accent); font-size: 14px; }
.shelter-page--case .shelter-article { max-width: 920px; }
.shelter-page--case .shelter-article > h1 { font-size: clamp(38px, 4.6vw, 60px); }
.shelter-case-action { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--shelter-line); }

@media (max-width: 700px) {
  .shelter-article { width: min(100% - 28px, 900px); padding-top: 30px; padding-bottom: 68px; }
  .shelter-article > h1,
  .shelter-page--case .shelter-article > h1 { font-size: 36px; line-height: 1.08; }
  .shelter-article > h2 { margin-top: 52px; font-size: 28px; }
  .shelter-article > h3 { font-size: 21px; }
  .shelter-article > p,
  .shelter-article > ul,
  .shelter-article > ol { font-size: 17px; line-height: 1.66; }
  .shelter-lead { font-size: 20px !important; }
  .shelter-toc-list { columns: 1; padding: 22px 20px 22px 42px !important; }
  .shelter-case-grid { grid-template-columns: 1fr; }
  .shelter-case-grid > a { min-height: 220px; }
  .shelter-actions { flex-direction: column; }
  .shelter-actions .detail-button { width: 100%; justify-content: center; }
}
