/* ==========================================================================
   Passbook template — Korean personal-finance magazine
   Visual idea: a bank passbook (통장) — celadon security paper, ledger rows
   with tabular figures, and a red name seal (도장) as the only loud element.
   ========================================================================== */

:root {
  --pb-paper: #f2f5f1;
  --pb-paper-deep: #e4ebe5;
  --pb-white: #ffffff;
  --pb-ink: #1c2733;
  --pb-muted: #4f5c68;
  --pb-blue: #24507a;
  --pb-blue-deep: #1a3c5d;
  --pb-blue-soft: #dfe8f0;
  --pb-rule: #c5d0c8;
  --pb-seal: #c0392b;

  --pb-serif: 'Gowun Batang', 'Nanum Myeongjo', 'AppleMyungjo', serif;
  --pb-sans: 'IBM Plex Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif;

  --pb-wrap: 1120px;
  --pb-read: 700px;
  --pb-gutter: clamp(16px, 4vw, 32px);
}

/* ---------- base ---------- */
.pb-body {
  margin: 0;
  background: var(--pb-paper);
  color: var(--pb-ink);
  font-family: var(--pb-sans);
  font-size: 17px;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.pb-body *, .pb-body *::before, .pb-body *::after { box-sizing: border-box; }
.pb-body img { max-width: 100%; display: block; }
.pb-body a { color: inherit; }
.pb-body h1, .pb-body h2, .pb-body h3 { margin: 0; }

.pb-wrap {
  width: 100%;
  max-width: var(--pb-wrap);
  margin: 0 auto;
  padding: 0 var(--pb-gutter);
}

.pb-main { display: block; min-height: 60vh; padding-bottom: 72px; }

.pb-body :focus-visible {
  outline: 3px solid var(--pb-blue);
  outline-offset: 2px;
  border-radius: 2px;
}

.pb-skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  background: var(--pb-ink);
  color: var(--pb-white) !important;
  padding: 10px 16px;
  text-decoration: none;
}
.pb-skip:focus { top: 12px; }

/* ---------- header ---------- */
.pb-head {
  background:
    repeating-linear-gradient(115deg, rgba(36, 80, 122, 0.035) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(65deg, rgba(36, 80, 122, 0.035) 0 1px, transparent 1px 7px),
    var(--pb-white);
  border-bottom: 1px solid var(--pb-rule);
}

.pb-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 14px;
}

.pb-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

/* the seal — white characters cut out of vermilion, read right to left */
.pb-seal {
  flex: none;
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: stretch;
  gap: 2px;
  width: 52px;
  height: 52px;
  padding: 5px;
  background: var(--pb-seal);
  color: var(--pb-white);
  border-radius: 7px;
  box-shadow: inset 0 0 0 2px var(--pb-seal), inset 0 0 0 3px rgba(255, 255, 255, 0.85);
  font-family: var(--pb-serif);
  font-weight: 700;
  line-height: 1;
  transform: rotate(-4deg);
}
.pb-seal-main {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 50%;
  font-size: 25px;
}
.pb-seal-rest {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 1 50%;
  font-size: 15px;
  text-align: center;
  gap: 2px;
}

.pb-brand-text { display: flex; flex-direction: column; }
.pb-brand-name {
  font-family: var(--pb-serif);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--pb-ink);
}
.pb-brand-tag {
  margin-top: 4px;
  font-size: 14px;
  color: var(--pb-muted);
}

.pb-head-links { display: flex; gap: 18px; font-size: 15px; }
.pb-head-links a { text-decoration: none; color: var(--pb-muted); }
.pb-head-links a:hover { color: var(--pb-blue); text-decoration: underline; text-underline-offset: 4px; }

/* category tabs — portal-style, scroll sideways on small screens */
.pb-tabs { border-top: 1px solid var(--pb-paper-deep); background: var(--pb-white); }
.pb-tabs-list {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.pb-tabs-list::-webkit-scrollbar { display: none; }
.pb-tabs-list li { flex: none; }
.pb-tabs-list a {
  display: block;
  padding: 12px 12px 10px;
  font-size: 16px;
  font-weight: 500;
  color: var(--pb-muted);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.pb-tabs-list li:first-child a { padding-left: 0; }
.pb-tabs-list a:hover { color: var(--pb-ink); }
.pb-tabs-list a[aria-current="page"] {
  color: var(--pb-blue);
  font-weight: 700;
  border-bottom-color: var(--pb-blue);
}

/* ---------- shared bits ---------- */
.pb-sec-title {
  font-family: var(--pb-serif);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 18px !important;
}

.pb-cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--pb-blue) !important;
  text-decoration: none;
}
.pb-cat:hover { text-decoration: underline; text-underline-offset: 4px; }

.pb-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 0;
  font-size: 14px;
  color: var(--pb-muted);
  font-variant-numeric: tabular-nums;
}

.pb-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--pb-blue);
  color: var(--pb-white) !important;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border-radius: 6px;
}
.pb-btn:hover { background: var(--pb-blue-deep); }

/* ---------- home: lead story ---------- */
.pb-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 48px;
}
.pb-lead-media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--pb-paper-deep);
  border-radius: 4px;
}
.pb-lead-media img { width: 100%; height: 100%; object-fit: cover; }
.pb-lead-text { position: relative; }
.pb-lead-title {
  margin: 12px 0 14px !important;
  font-family: var(--pb-serif);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.32;
  letter-spacing: -0.02em;
}
.pb-lead-title a { text-decoration: none; }
.pb-lead-title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.pb-lead-dek {
  margin: 0 0 18px;
  font-size: 17px;
  color: var(--pb-muted);
}

/* the stamp — the one animated moment on the page */
.pb-stamp {
  position: absolute;
  top: -8px;
  right: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border: 3px solid var(--pb-seal);
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px var(--pb-paper), inset 0 0 0 4px var(--pb-seal);
  color: var(--pb-seal);
  font-family: var(--pb-serif);
  font-weight: 700;
  line-height: 1.1;
  transform: rotate(12deg);
  opacity: 0.88;
  mix-blend-mode: multiply;
  animation: pb-stamp 0.5s cubic-bezier(.2, .9, .3, 1.2) 0.35s both;
}
.pb-stamp-word { font-size: 15px; }
.pb-stamp-date { font-size: 19px; font-variant-numeric: tabular-nums; }
@keyframes pb-stamp {
  from { opacity: 0; transform: rotate(12deg) scale(1.6); }
  to   { opacity: 0.88; transform: rotate(12deg) scale(1); }
}
.pb-lead-text .pb-cat { margin-right: 96px; }
.pb-lead-title { padding-right: 70px; }

/* ---------- ledger table (the passbook page) ---------- */
.pb-ledger-sec { padding-top: 8px; padding-bottom: 40px; }
.pb-ledger {
  width: 100%;
  border-collapse: collapse;
  background: var(--pb-white);
  border: 1px solid var(--pb-rule);
  border-top: 0;
  font-variant-numeric: tabular-nums;
}
.pb-ledger thead th {
  background: var(--pb-blue);
  color: var(--pb-white);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  padding: 10px 16px;
}
.pb-ledger thead th:last-child { text-align: right; }
.pb-ledger td {
  padding: 15px 16px;
  border-bottom: 1px dashed var(--pb-rule);
  vertical-align: baseline;
}
.pb-ledger tbody tr:nth-child(even) td { background: #f7faf7; }
.pb-ledger tbody tr:last-child td { border-bottom: 0; }
.pb-l-date { width: 120px; color: var(--pb-muted); font-size: 15px; white-space: nowrap; }
.pb-l-cat { width: 140px; font-size: 15px; white-space: nowrap; }
.pb-l-cat a { color: var(--pb-blue); text-decoration: none; }
.pb-l-cat a:hover { text-decoration: underline; }
.pb-l-title { font-weight: 600; font-size: 17px; line-height: 1.55; }
.pb-l-title a { text-decoration: none; }
.pb-l-title a:hover { color: var(--pb-blue); text-decoration: underline; text-underline-offset: 4px; }
.pb-l-time { width: 96px; text-align: right; color: var(--pb-muted); font-size: 15px; white-space: nowrap; }

/* ---------- category shelves ---------- */
.pb-shelves-sec { padding-top: 16px; }
.pb-shelves {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
}
.pb-shelf {
  padding: 24px 0 28px;
  border-top: 2px solid var(--pb-ink);
}
.pb-shelf-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}
.pb-shelf-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--pb-blue-soft);
  color: var(--pb-blue);
  font-size: 17px;
}
.pb-shelf-icon--lg { width: 60px; height: 60px; font-size: 25px; }
.pb-shelf-name { font-family: var(--pb-serif); font-size: 21px; font-weight: 700; line-height: 1.3; }
.pb-shelf-name a { text-decoration: none; }
.pb-shelf-name a:hover { color: var(--pb-blue); }
.pb-shelf-hint { margin: 2px 0 0; font-size: 14px; color: var(--pb-muted); line-height: 1.5; }
.pb-shelf-all {
  font-size: 14px;
  color: var(--pb-blue) !important;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid var(--pb-rule);
  border-radius: 999px;
  padding: 4px 12px;
  background: var(--pb-white);
}
.pb-shelf-all:hover { border-color: var(--pb-blue); }

.pb-shelf-lead {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 16px;
  align-items: start;
  text-decoration: none;
}
.pb-shelf-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; background: var(--pb-paper-deep); }
.pb-shelf-img img { width: 100%; height: 100%; object-fit: cover; }
.pb-shelf-title { font-weight: 600; font-size: 18px; line-height: 1.5; }
.pb-shelf-lead:hover .pb-shelf-title { color: var(--pb-blue); text-decoration: underline; text-underline-offset: 4px; }

.pb-shelf-more {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}
.pb-shelf-more li { border-top: 1px dashed var(--pb-rule); }
.pb-shelf-more a {
  display: block;
  padding: 11px 0;
  font-size: 16px;
  line-height: 1.55;
  text-decoration: none;
}
.pb-shelf-more a:hover { color: var(--pb-blue); text-decoration: underline; text-underline-offset: 4px; }

.pb-empty { padding-top: 56px; padding-bottom: 40px; max-width: var(--pb-read); }
.pb-empty p { color: var(--pb-muted); margin: 0 0 20px; }

/* ---------- category page ---------- */
.pb-cat-head { background: var(--pb-white); border-bottom: 1px solid var(--pb-rule); }
.pb-cat-head-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 32px;
  padding-bottom: 28px;
}
.pb-cat-title {
  font-family: var(--pb-serif);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.pb-cat-sub { margin: 4px 0 0; font-size: 15px; color: var(--pb-muted); }

.pb-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  padding-top: 36px;
  padding-bottom: 40px;
}
.pb-card--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}
.pb-card-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 4px;
  background: var(--pb-paper-deep);
}
.pb-card-media img { width: 100%; height: 100%; object-fit: cover; }
.pb-card:not(.pb-card--wide) .pb-card-text { padding-top: 14px; }
.pb-card-title {
  font-family: var(--pb-serif);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin-bottom: 8px !important;
}
.pb-card--wide .pb-card-title { font-size: clamp(24px, 2.8vw, 32px); line-height: 1.35; }
.pb-card-title a { text-decoration: none; }
.pb-card-title a:hover { text-decoration: underline; text-underline-offset: 5px; }
.pb-card-dek { margin: 0 0 12px; color: var(--pb-muted); font-size: 16px; }

/* ---------- article ---------- */
.pb-post-head { max-width: calc(var(--pb-read) + 2 * var(--pb-gutter)); padding-top: 32px; }
.pb-crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--pb-muted);
  margin-bottom: 18px;
}
.pb-crumbs a { text-decoration: none; }
.pb-crumbs a:last-child { color: var(--pb-blue); font-weight: 600; }
.pb-crumbs a:hover { text-decoration: underline; }
.pb-crumbs i { font-size: 12px; }

.pb-post-title {
  font-family: var(--pb-serif);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.35;
  letter-spacing: -0.02em;
}
.pb-dek {
  margin: 16px 0 0;
  font-size: 18px;
  line-height: 1.7;
  color: var(--pb-muted);
}
.pb-post-meta {
  margin-top: 20px;
  padding: 12px 0;
  border-top: 1px solid var(--pb-rule);
  border-bottom: 1px solid var(--pb-rule);
}
.pb-post-meta span:first-child { color: var(--pb-ink); font-weight: 600; }

.pb-post-head .taboola-placement { margin-top: 20px; }

.pb-post-figure {
  max-width: calc(880px + 2 * var(--pb-gutter));
  margin: 28px auto 8px;
}
.pb-post-figure img { width: 100%; height: auto; border-radius: 4px; }

.pb-post-body {
  max-width: calc(var(--pb-read) + 2 * var(--pb-gutter));
  padding-top: 20px;
  font-size: 18px;
  line-height: 1.9;
}
.pb-post-body p,
.pb-post-body .content-paragraph,
.pb-post-body .intro-paragraph {
  margin: 0 0 1.35em;
  line-height: 1.9;
}
.pb-post-body .intro-paragraph:first-child,
.pb-post-body > p:first-child {
  font-size: 19px;
  color: var(--pb-ink);
}
.pb-post-body h2,
.pb-post-body h3,
.pb-post-body h4 {
  font-family: var(--pb-serif);
  font-weight: 700;
  color: var(--pb-ink);
  letter-spacing: -0.01em;
}
.pb-post-body h2 {
  font-size: 25px;
  line-height: 1.4;
  margin: 2.2em 0 0.8em;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--pb-rule);
}
.pb-post-body h3 { font-size: 21px; line-height: 1.45; margin: 1.8em 0 0.6em; }
.pb-post-body h4 { font-size: 19px; margin: 1.6em 0 0.5em; }
.pb-post-body h2::after { content: none; }

.pb-post-body ul,
.pb-post-body ol {
  margin: 0 0 1.4em;
  padding-left: 1.4em;
}
.pb-post-body li { margin: 0 0 0.55em; line-height: 1.8; }
.pb-post-body ul li::before,
.pb-post-body ol li::before { content: none; }
.pb-post-body ul li::marker { color: var(--pb-blue); }
.pb-post-body ol li::marker { color: var(--pb-blue); font-weight: 700; font-variant-numeric: tabular-nums; }

.pb-post-body a {
  color: var(--pb-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.pb-post-body a:hover { text-decoration-thickness: 2px; }
.pb-post-body strong { font-weight: 700; color: var(--pb-ink); }

.pb-post-body blockquote,
.pb-post-body .content-quote {
  margin: 1.8em 0;
  padding: 18px 22px;
  background: var(--pb-white);
  border: 1px solid var(--pb-rule);
  border-left: 4px solid var(--pb-blue);
  font-style: normal;
  color: var(--pb-ink);
}
.pb-post-body blockquote::before { content: none; }
.pb-post-body blockquote p:last-child { margin-bottom: 0; }

.pb-post-body hr { border: 0; border-top: 1px dashed var(--pb-rule); margin: 2.4em 0; }

.pb-post-body code {
  background: var(--pb-blue-soft);
  color: var(--pb-blue-deep);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.9em;
}

/* tables in articles read like passbook pages too
   (selectors include .content-table to outrank common/post.css) */
.pb-post-body .content-table-wrapper {
  overflow-x: auto;
  margin: 1.8em 0;
  border: 1px solid var(--pb-rule);
  border-radius: 0;
  box-shadow: none;
}
.pb-post-body table,
.pb-post-body .content-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--pb-white);
  font-size: 16px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}
.pb-post-body table th,
.pb-post-body .content-table thead th {
  background: var(--pb-blue);
  color: var(--pb-white);
  font-weight: 600;
  text-align: left;
  padding: 10px 14px;
  white-space: nowrap;
}
.pb-post-body table td,
.pb-post-body .content-table tbody td {
  padding: 11px 14px;
  border-top: 0;
  border-bottom: 1px dashed var(--pb-rule);
  color: var(--pb-ink);
}
.pb-post-body .content-table tbody td:first-child { color: var(--pb-ink); }
.pb-post-body .content-table tbody tr:nth-child(even),
.pb-post-body table tbody tr:nth-child(even) { background: #f7faf7; }
.pb-post-body .content-table tbody tr:hover { background: var(--pb-blue-soft); }
.pb-post-body .content-table tbody tr:last-child td { border-bottom: 0; }

.pb-post-end { max-width: calc(var(--pb-read) + 2 * var(--pb-gutter)); }

/* memo — the "알아두세요" box, like a note slipped into a passbook */
.pb-memo {
  margin: 40px 0 0;
  padding: 20px 22px;
  background: var(--pb-white);
  border: 1px solid var(--pb-rule);
  border-top: 4px solid var(--pb-seal);
}
.pb-memo-title {
  font-family: var(--pb-serif);
  font-size: 18px !important;
  font-weight: 700;
  color: var(--pb-seal);
  margin: 0 0 6px !important;
  padding: 0 !important;
  border: 0 !important;
}
.pb-memo p { margin: 0; font-size: 16px; line-height: 1.75; color: var(--pb-ink); }

.pb-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--pb-rule);
}
.pb-share-label { font-size: 15px; font-weight: 600; margin-right: 6px; }
.pb-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--pb-ink);
  background: var(--pb-white);
  border: 1px solid var(--pb-rule);
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
}
.pb-share-btn:hover { border-color: var(--pb-blue); color: var(--pb-blue); }
.pb-copy { border-color: var(--pb-blue); color: var(--pb-blue); font-weight: 600; }

/* related */
.pb-related { padding-top: 56px; max-width: calc(880px + 2 * var(--pb-gutter)); }
.pb-related-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pb-related-item { display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.pb-related-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; background: var(--pb-paper-deep); }
.pb-related-img img { width: 100%; height: 100%; object-fit: cover; }
.pb-related-title { font-weight: 600; font-size: 17px; line-height: 1.5; }
.pb-related-item:hover .pb-related-title { color: var(--pb-blue); text-decoration: underline; text-underline-offset: 4px; }
.pb-related-time { font-size: 14px; color: var(--pb-muted); }

/* ---------- static pages ---------- */
.pb-page { max-width: calc(var(--pb-read) + 2 * var(--pb-gutter)); padding-top: 40px; }
.pb-page-title {
  font-family: var(--pb-serif);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.pb-page-head { padding-bottom: 20px; border-bottom: 1px solid var(--pb-rule); margin-bottom: 28px; }
.pb-page-body { font-size: 17px; line-height: 1.85; }
.pb-page-body p { margin: 0 0 1.2em; }
.pb-page-body h2 {
  font-family: var(--pb-serif);
  font-size: 22px;
  font-weight: 700;
  margin: 2em 0 0.7em;
}
.pb-page-body ul { padding-left: 1.3em; margin: 0 0 1.3em; }
.pb-page-body li { margin-bottom: 0.6em; }
.pb-page-body li::marker { color: var(--pb-blue); }
.pb-page-body a { color: var(--pb-blue); text-underline-offset: 4px; }

.pb-page-cats {
  list-style: none !important;
  padding: 0 !important;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.pb-page-cats a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--pb-white);
  border: 1px solid var(--pb-rule);
  border-radius: 6px;
  text-decoration: none;
  color: var(--pb-ink) !important;
  line-height: 1.4;
}
.pb-page-cats a:hover { border-color: var(--pb-blue); }
.pb-page-cat-hint { display: block; font-size: 14px; color: var(--pb-muted); margin-top: 2px; }

.pb-dl { margin: 0; border-top: 1px solid var(--pb-rule); }
.pb-dl div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--pb-rule);
}
.pb-dl dt { color: var(--pb-muted); }
.pb-dl dd { margin: 0; }

.pb-contact-mail { margin: 8px 0 28px !important; }

.pb-error { padding-top: 72px; max-width: var(--pb-read); }
.pb-error h1 { font-family: var(--pb-serif); font-size: 32px; margin-bottom: 12px; }
.pb-error p { color: var(--pb-muted); margin: 0 0 24px; }

/* ---------- footer ---------- */
.pb-foot {
  background: var(--pb-blue-deep);
  color: #dbe5ee;
  padding: 48px 0 32px;
  font-size: 15px;
  line-height: 1.7;
}
.pb-foot a { color: var(--pb-white); text-decoration: none; }
.pb-foot a:hover { text-decoration: underline; text-underline-offset: 4px; }
.pb-foot-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.pb-foot-name { font-family: var(--pb-serif); font-weight: 700; font-size: 24px; }
.pb-foot-brand p { margin: 8px 0 0; max-width: 420px; }
.pb-foot-cats { display: flex; flex-wrap: wrap; gap: 10px 22px; align-content: flex-start; }
.pb-foot-note { margin: 24px 0; max-width: 820px; color: #c3d1de; font-size: 14px; }
.pb-foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}
.pb-foot-house { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.pb-foot-legal { margin: 0; color: #c3d1de; font-size: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .pb-lead { grid-template-columns: 1fr; gap: 22px; padding-top: 24px; padding-bottom: 36px; }
  .pb-lead-media { aspect-ratio: 16 / 10; }
  .pb-stamp { top: -54px; right: 4px; width: 74px; height: 74px; background: rgba(255, 255, 255, 0.82); }
  .pb-stamp-date { font-size: 17px; }
  .pb-lead-text .pb-cat { margin-right: 0; }
  .pb-lead-title { padding-right: 0; }
  .pb-shelves { grid-template-columns: 1fr; }
  .pb-related-list { grid-template-columns: 1fr; gap: 0; }
  .pb-related-item {
    display: grid;
    grid-template-columns: 112px 1fr;
    grid-template-rows: auto auto;
    column-gap: 14px;
    row-gap: 4px;
    padding: 14px 0;
    border-top: 1px dashed var(--pb-rule);
  }
  .pb-related-img { grid-row: 1 / 3; }
  .pb-foot-top { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .pb-body { font-size: 16px; }
  .pb-head-row { padding-top: 14px; padding-bottom: 10px; }
  .pb-seal { width: 44px; height: 44px; padding: 4px; }
  .pb-seal-main { font-size: 21px; }
  .pb-seal-rest { font-size: 13px; }
  .pb-brand-name { font-size: 23px; }
  .pb-brand-tag { font-size: 13px; }
  .pb-head-links { display: none; }

  /* ledger collapses into stacked entries */
  .pb-ledger, .pb-ledger tbody, .pb-ledger tr, .pb-ledger td { display: block; width: auto; }
  .pb-ledger thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pb-ledger { border-top: 3px solid var(--pb-blue); }
  .pb-ledger tr {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: baseline;
    gap: 2px 12px;
    padding: 14px 16px;
    border-bottom: 1px dashed var(--pb-rule);
  }
  .pb-ledger tbody tr:nth-child(even) { background: #f7faf7; }
  .pb-ledger tbody tr:nth-child(even) td { background: transparent; }
  .pb-ledger tbody tr:last-child { border-bottom: 0; }
  .pb-ledger td { padding: 0; border: 0; }
  .pb-l-date, .pb-l-cat, .pb-l-time { font-size: 13px !important; }
  .pb-l-date { grid-column: 1; grid-row: 1; }
  .pb-l-cat { grid-column: 2; grid-row: 1; }
  .pb-l-time { grid-column: 3; grid-row: 1; text-align: right; }
  .pb-l-title { grid-column: 1 / -1; grid-row: 2; font-size: 16px; }
  .pb-ledger--nocat .pb-l-time { grid-column: 2 / -1; }

  .pb-shelf-lead { grid-template-columns: 112px 1fr; gap: 14px; }
  .pb-shelf-title { font-size: 17px; }

  .pb-cards { grid-template-columns: 1fr; gap: 28px; padding-top: 24px; }
  .pb-card--wide { grid-template-columns: 1fr; gap: 0; }
  .pb-card--wide .pb-card-text { padding-top: 14px; }

  .pb-post-body { font-size: 17px; }
  .pb-post-body .intro-paragraph:first-child,
  .pb-post-body > p:first-child { font-size: 18px; }
  .pb-post-body h2 { font-size: 22px; }
  .pb-dek { font-size: 17px; }
  .pb-page-cats { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .pb-stamp { animation: none; }
}
