/* Istanbul Guidebook redesign preview
   One stylesheet for all templates. Every class is prefixed igb- so it can be pasted into
   tagDiv Newspaper "Custom CSS" or a child theme without clashing with td- classes.
   Tokens first, then base, then components in page order. */

/* ---------- fonts (self hosted, subset to Latin + Turkish) ---------- */
@font-face { font-family: "Source Serif 4"; src: url(fonts/serif4-latin.op.woff2) format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122, U+2190-2199; }
@font-face { font-family: "Source Serif 4"; src: url(fonts/serif4-latin-ext.op.woff2) format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0100-0130, U+0132-02BA, U+20BA; }
@font-face { font-family: "Source Sans 3"; src: url(fonts/sans3-latin.sub.woff2) format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2190-2199; }
@font-face { font-family: "Source Sans 3"; src: url(fonts/sans3-latin-ext.sub.woff2) format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0100-0130, U+0132-02BA, U+20BA; }

/* ---------- tokens ---------- */
:root {
  /* paper and ink: the book */
  --igb-paper: #F2ECE1;        /* page ground: soft warm beige, easy on the eyes */
  --igb-paper-light: #F8F4EC;  /* lighter sheet for cards on beige */
  --igb-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35  0 0 0 0 0.27  0 0 0 0 0.16  0 0 0 0.07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --igb-paper-2: #E9E2D4;      /* one warm step: cards, key facts, bars */
  --igb-paper-3: #DDD4C3;      /* two warm steps: open bars, label strips */
  --igb-ink: #141B2D;          /* running text: near black navy */
  --igb-ink-soft: #4A5468;     /* secondary notes only, 7:1 on paper */
  /* the one accent: İznik cobalt */
  --igb-accent: #1F4EA8;
  --igb-accent-deep: #183E86;  /* hover/pressed */
  --igb-accent-ink: #FFFFFF;
  /* deep İznik navy: the dark ground the paper sits on */
  --igb-navy: #16264A;
  --igb-navy-ink: #F4F6FA;
  --igb-navy-soft: #C3CDE0;
  /* quiet tints for callouts */
  --igb-tint-tip: #E3E6EC;     /* pro tip, checked note */
  --igb-tint-warn: #FCEFD6;    /* heads up */

  --igb-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --igb-sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  /* five type steps */
  --igb-step-display: clamp(2.125rem, 1rem + 4.6vw, 5.25rem);
  --igb-step-head: clamp(1.875rem, 1.3rem + 1.9vw, 3rem);
  --igb-step-sub: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --igb-step-body: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
  --igb-step-small: 0.9375rem;

  --igb-margin: clamp(16px, 2.4vw, 36px);
  --igb-gutter: clamp(16px, 2vw, 32px);
  --igb-section: clamp(96px, 11vw, 168px);
  --igb-measure: 66ch;
  --igb-radius: 0px;
  --igb-header-h: 68px;

  --igb-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --igb-ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--igb-paper) var(--igb-grain) repeat; background-attachment: fixed; color: var(--igb-ink); font-family: var(--igb-serif); font-size: var(--igb-step-body); line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: "kern", "onum" 0; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; background: var(--igb-paper-3); }
svg { display: block; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 0.06em; }
h1, h2, h3, h4 { font-family: var(--igb-serif); font-weight: 600; letter-spacing: -0.015em; line-height: 1.08; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--igb-accent); outline-offset: 3px; }
::selection { background: var(--igb-accent); color: var(--igb-accent-ink); }
:target { scroll-margin-top: calc(var(--igb-header-h) + 24px); }
.igb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.igb-skip { position: absolute; left: var(--igb-margin); top: -60px; background: var(--igb-ink); color: var(--igb-paper); padding: 10px 16px; z-index: 50; }
.igb-skip:focus { top: 8px; }
.igb-wrap { padding-inline: var(--igb-margin); }
.igb-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--igb-gutter); }
.igb-nums { font-variant-numeric: tabular-nums lining-nums; }
.igb-soft { color: var(--igb-ink-soft); }
.igb-sans { font-family: var(--igb-sans); }
.igb-small { font-size: var(--igb-step-small); line-height: 1.45; }
.igb-head { font-size: var(--igb-step-head); }
.igb-sub { font-size: var(--igb-step-sub); line-height: 1.3; }

/* buttons: square, flat, one fill */
.igb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; min-height: 48px; padding: 0 1.4rem; background: var(--igb-accent); color: var(--igb-accent-ink); font-family: var(--igb-sans); font-weight: 600; font-size: var(--igb-step-body); text-decoration: none; border-radius: var(--igb-radius); transition: background-color 180ms ease, transform 140ms var(--igb-ease); }
.igb-btn:hover { background: var(--igb-accent-deep); }
.igb-btn:active { transform: scale(0.97); }
.igb-link { color: var(--igb-accent); font-family: var(--igb-sans); font-weight: 600; text-decoration: underline; text-decoration-color: transparent; transition: text-decoration-color 180ms ease, color 180ms ease; }
.igb-link:hover { text-decoration-color: currentColor; color: var(--igb-accent-deep); }
.igb-arrow::after { content: "\2192"; display: inline-block; margin-left: 0.35em; transition: transform 180ms var(--igb-ease); }
a:hover > .igb-arrow::after, .igb-arrow:hover::after { transform: translateX(3px); }

/* ---------- header: logo, running head, chapters ---------- */
.igb-header { position: sticky; top: 0; z-index: 30; background: var(--igb-paper) var(--igb-grain) repeat; background-attachment: fixed; }
.igb-header__bar { display: flex; align-items: center; gap: var(--igb-gutter); height: var(--igb-header-h); padding-inline: var(--igb-margin); }
.igb-logo { display: block; flex: none; width: 128px; background: none; }
.igb-logo img { width: 100%; height: auto; background: none; }
.igb-runhead { flex: 1; min-width: 0; font-family: var(--igb-serif); font-style: italic; font-size: var(--igb-step-small); color: var(--igb-ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.igb-nav { display: flex; gap: clamp(14px, 1.6vw, 26px); font-family: var(--igb-sans); font-size: var(--igb-step-small); }
.igb-nav a { position: relative; text-decoration: none; padding: 6px 0; }
.igb-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 220ms var(--igb-ease); }
.igb-nav a:hover::after, .igb-nav a[aria-current="page"]::after { transform: none; }
.igb-menu-btn { display: none; font-family: var(--igb-sans); font-weight: 600; min-height: 44px; padding: 0 14px; background: var(--igb-paper-2); }
.igb-header.is-scrolled { background: var(--igb-paper); }
.igb-drawer { display: none; }
@media (max-width: 1080px) {
  .igb-nav { display: none; }
  .igb-menu-btn { display: inline-flex; align-items: center; }
  .igb-drawer[data-open="true"] { display: block; position: absolute; left: 0; right: 0; top: var(--igb-header-h); background: var(--igb-paper-2); padding: 12px var(--igb-margin) 28px; box-shadow: 0 18px 30px rgba(20, 27, 45, 0.12); } /* taste-skill-ignore: open menu is a real overlay */
  .igb-drawer a { display: block; padding: 12px 0; font-size: var(--igb-step-sub); text-decoration: none; }
}
@media (max-width: 560px) {
  .igb-runhead { font-size: var(--igb-step-small); }
  .igb-logo { width: 104px; }
}

/* ---------- home: cover over a dim room ---------- */
.igb-cover { position: relative; min-height: calc(100svh - var(--igb-header-h)); display: grid; place-items: center; padding: clamp(24px, 4vw, 56px) var(--igb-margin); overflow: clip; background: var(--igb-navy); }
.igb-cover__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.92); background: var(--igb-navy); }
@media (prefers-reduced-motion: no-preference) { .igb-cover__photo { animation: igb-drift 26s ease-in-out infinite alternate; } }
@keyframes igb-drift { from { transform: scale(1.02); } to { transform: scale(1.09) translateX(-1.2%); } }
.igb-book { position: relative; width: min(100%, 840px); min-height: min(64svh, 600px); background: var(--igb-paper); display: grid; grid-template-columns: 26px 1fr; }
.igb-book__spine { background: var(--igb-navy); }
.igb-book__face { display: flex; flex-direction: column; gap: 28px; padding: clamp(24px, 3.4vw, 48px) clamp(22px, 3.6vw, 56px); }
.igb-book__logo { width: 168px; background: none; }
.igb-book h1 { font-size: var(--igb-step-display); line-height: 0.98; letter-spacing: -0.03em; font-weight: 600; }
.igb-book__facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; column-gap: clamp(20px, 3vw, 44px); row-gap: 4px; font-family: var(--igb-sans); font-size: var(--igb-step-small); color: var(--igb-ink-soft); }
.igb-book__facts strong { display: block; font-family: var(--igb-serif); font-size: var(--igb-step-sub); color: var(--igb-ink); font-weight: 600; line-height: 1.2; }
.igb-book__lede { font-size: var(--igb-step-sub); line-height: 1.38; max-width: 34ch; }
.igb-book__foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.igb-book__credit { font-family: var(--igb-sans); font-size: var(--igb-step-small); color: var(--igb-ink-soft); margin-left: auto; }
@media (max-width: 640px) {
  .igb-cover { min-height: calc(100svh - var(--igb-header-h)); padding: 16px 0 0; place-items: end center; }
  .igb-cover__photo { height: 48%; object-position: 50% 62%; }
  .igb-book { grid-template-columns: 10px 1fr; min-height: 0; }
  .igb-book__face { gap: 20px; padding: 24px var(--igb-margin) 28px; }
  .igb-book__logo { width: 120px; }
  .igb-book__facts { grid-template-columns: 1fr 1fr; row-gap: 14px; }
  .igb-book__foot .igb-btn { width: 100%; }
  .igb-book__credit { margin-left: 0; }
}

/* masked headline lines */
.igb-lines .igb-line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.igb-lines [data-line] { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .js .igb-lines [data-line] { transform: translateY(105%); animation: igb-line 900ms var(--igb-ease-expo) forwards; animation-delay: calc(var(--i, 0) * 110ms + 150ms); }
  .js [data-rise] { opacity: 0; transform: translateY(16px); animation: igb-rise 800ms var(--igb-ease) forwards; animation-delay: calc(var(--i, 0) * 90ms + 420ms); }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--igb-ease), transform 900ms var(--igb-ease); transition-delay: calc(var(--d, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}
@keyframes igb-line { to { transform: none; } }
@keyframes igb-rise { to { opacity: 1; transform: none; } }

/* ---------- section frame ---------- */
.igb-section { padding-block: calc(var(--igb-section) / 2); }
.igb-section--first { padding-top: var(--igb-section); }

/* ---------- home: how this guide works (title, note, facts row) ---------- */
.igb-promise__top { align-items: end; }
.igb-promise h2 { grid-column: 1 / 7; font-size: var(--igb-step-display); font-weight: 400; line-height: 1; letter-spacing: -0.03em; }
.igb-promise__note { grid-column: 8 / 13; max-width: 46ch; }
.igb-promise__note p + p { margin-top: 0.8em; }
.igb-facts { display: flex; justify-content: space-between; gap: var(--igb-gutter); margin-top: clamp(56px, 7vw, 112px); }
.igb-fact { flex: 1; }
.igb-fact strong { display: block; font-size: var(--igb-step-head); font-weight: 400; line-height: 1.05; letter-spacing: -0.02em; }
.igb-fact span { display: block; margin-top: 8px; font-family: var(--igb-sans); font-size: var(--igb-step-small); color: var(--igb-ink-soft); max-width: 24ch; }
.igb-promise__plate { grid-column: 8 / 13; margin-top: clamp(48px, 6vw, 88px); }
.igb-promise__steps { grid-column: 1 / 7; margin-top: clamp(48px, 6vw, 88px); align-self: start; }
.igb-promise__steps h3 { font-size: var(--igb-step-sub); margin-bottom: 14px; }
.igb-promise__steps ol { padding-left: 1.3em; display: grid; gap: 12px; max-width: 52ch; }
.igb-plate img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.igb-plate figcaption, .igb-caption { margin-top: 10px; font-family: var(--igb-sans); font-size: var(--igb-step-small); color: var(--igb-ink-soft); }
@media (max-width: 800px) {
  .igb-promise h2, .igb-promise__note, .igb-promise__plate, .igb-promise__steps { grid-column: 1 / -1; }
  .igb-promise__note { margin-top: 20px; }
  .igb-facts { display: grid; grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .igb-fact strong { font-size: var(--igb-step-sub); }
}

/* ---------- home: contents (giant word, filled bar rows) ---------- */
.igb-contents__word { grid-column: 1 / 6; align-self: start; position: sticky; top: calc(var(--igb-header-h) + 32px); container-type: inline-size; }
.igb-contents__word h2 { font-size: 23cqw; line-height: 0.82; letter-spacing: -0.045em; font-weight: 400; }
.igb-contents__word p { margin-top: 28px; max-width: 40ch; }
.igb-bars { grid-column: 7 / 13; display: grid; gap: 6px; }
.igb-bar { background: var(--igb-paper-2); }
.igb-bar[open] { background: var(--igb-paper-3); }
.igb-bar summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 0 20px; cursor: pointer; font-size: var(--igb-step-sub); font-weight: 600; transition: background-color 180ms ease; }
.igb-bar summary::-webkit-details-marker { display: none; }
.igb-bar summary:hover { background: var(--igb-paper-3); }
.igb-bar summary span:last-child { font-family: var(--igb-sans); font-weight: 400; font-size: var(--igb-step-small); color: var(--igb-ink-soft); }
.igb-bar summary::after { content: "+"; font-family: var(--igb-sans); font-weight: 400; font-size: var(--igb-step-sub); line-height: 1; transition: transform 240ms var(--igb-ease); }
.igb-bar[open] summary::after { transform: rotate(45deg); }
.igb-bar__list { padding: 4px 20px 22px; display: grid; gap: 4px; }
.igb-bar__list a { display: flex; align-items: baseline; gap: 12px; padding: 8px 0; text-decoration: none; }
.igb-bar__list a span:first-child { flex: 1; }
.igb-bar__list a:hover span:first-child { text-decoration: underline; }
.igb-bar__list a span:last-child { font-family: var(--igb-sans); font-size: var(--igb-step-small); color: var(--igb-ink-soft); white-space: nowrap; }
.igb-bar__more { margin-top: 8px; }
@media (max-width: 800px) {
  .igb-contents__word, .igb-bars { grid-column: 1 / -1; }
  .igb-contents__word { position: static; margin-bottom: 28px; }
}

/* ---------- home: neighborhoods (photo tiles with label strips) ---------- */
.igb-tiles__head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 36px; }
.igb-tiles__head h2 { font-size: var(--igb-step-head); }
.igb-tiles__head p { max-width: 44ch; }
.igb-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 12px; }
.igb-tile { display: block; text-decoration: none; }
.igb-tile__img { overflow: hidden; background: var(--igb-paper-3); }
.igb-tile img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 700ms var(--igb-ease); }
.igb-tile:hover img { transform: scale(1.04); }
.igb-tile__strip { min-height: 96px; padding: 12px 14px 14px; display: grid; gap: 4px; align-content: start; }
.igb-tile__row { display: flex; justify-content: space-between; gap: 10px; font-family: var(--igb-sans); font-size: var(--igb-step-small); }
.igb-tile__name { font-family: var(--igb-serif); font-size: var(--igb-step-sub); font-weight: 600; line-height: 1.2; }
.igb-tile:hover .igb-tile__name { text-decoration: underline; text-underline-offset: 0.15em; }
.igb-tile--a .igb-tile__strip { background: var(--igb-paper-3); color: var(--igb-ink); }
.igb-tile--b .igb-tile__strip { background: var(--igb-navy); color: var(--igb-navy-ink); }
.igb-tile--c .igb-tile__strip { background: var(--igb-tint-tip); color: var(--igb-ink); }
.igb-tile--d .igb-tile__strip { background: var(--igb-ink); color: var(--igb-paper); }
.igb-tiles__foot { margin-top: 36px; }
@media (max-width: 900px) { .igb-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 8px; } .igb-tiles__head { display: block; } .igb-tiles__head p { margin-top: 14px; } }
@media (max-width: 480px) { .igb-tile__strip { padding: 10px 10px 12px; } .igb-tile__row--side { display: none; } .igb-tile__name { font-size: var(--igb-step-body); } }

/* ---------- home: what's on (output slips along the edge) ---------- */
.igb-slips { position: relative; min-height: 96svh; overflow: clip; color: var(--igb-navy-ink); background: var(--igb-navy); display: flex; flex-direction: column; }
.igb-slips__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.85); }
.igb-slips__text { position: relative; margin: clamp(56px, 8vw, 112px) 0 40px 18%; max-width: 40ch; padding: 24px 28px; background: rgba(22, 38, 74, 0.82); }
.igb-slips__text h2 { font-size: var(--igb-step-head); margin-bottom: 14px; }
.igb-slips__text p { font-size: var(--igb-step-sub); line-height: 1.38; }
.igb-slips__text a { color: var(--igb-navy-ink); }
.igb-slips__row { position: relative; margin-top: auto; display: flex; gap: 12px; padding-inline: var(--igb-margin); align-items: flex-end; }
.igb-slip { flex: 1; min-width: 0; background: var(--igb-paper); color: var(--igb-ink); padding: 20px 18px; font-size: var(--igb-step-small); line-height: 1.45; text-decoration: none; display: block; transition: transform 300ms var(--igb-ease); }
.igb-slip:hover { transform: translateY(-10px); }
.igb-slip:nth-child(2) { rotate: -1.2deg; }
.igb-slip:nth-child(4) { rotate: 1.4deg; }
.igb-slip strong { display: block; font-size: var(--igb-step-body); line-height: 1.3; }
.igb-slip .igb-slip__dots { display: block; letter-spacing: 0.3em; color: var(--igb-ink-soft); margin: 6px 0 8px; overflow: hidden; white-space: nowrap; }
.igb-slip p + p { margin-top: 4px; }
.igb-slip .igb-slip__go { margin-top: 10px; color: var(--igb-accent); font-family: var(--igb-sans); font-weight: 600; }
@media (max-width: 800px) {
  .igb-slips { min-height: 100svh; }
  .igb-slips__text { margin: 40px var(--igb-margin) 32px; padding: 18px 18px; }
  .igb-slips__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; }
  .igb-slip { min-height: 0 !important; padding: 16px 14px; }
  .igb-slip:nth-child(n+5) { min-height: 0; }
}

/* ---------- home: trip length sheet and top-up helper ---------- */
.igb-menuband { background: var(--igb-navy); color: var(--igb-navy-ink); padding-block: clamp(72px, 9vw, 136px); }
.igb-menuband__grid { align-items: start; }
.igb-sheet { grid-column: 2 / 7; background: var(--igb-paper); color: var(--igb-ink); padding: clamp(40px, 4vw, 60px) clamp(22px, 3vw, 48px); --z: 10px; clip-path: polygon(0 var(--z), 4% 0, 8% var(--z), 12% 0, 16% var(--z), 20% 0, 24% var(--z), 28% 0, 32% var(--z), 36% 0, 40% var(--z), 44% 0, 48% var(--z), 52% 0, 56% var(--z), 60% 0, 64% var(--z), 68% 0, 72% var(--z), 76% 0, 80% var(--z), 84% 0, 88% var(--z), 92% 0, 96% var(--z), 100% 0, 100% calc(100% - var(--z)), 96% 100%, 92% calc(100% - var(--z)), 88% 100%, 84% calc(100% - var(--z)), 80% 100%, 76% calc(100% - var(--z)), 72% 100%, 68% calc(100% - var(--z)), 64% 100%, 60% calc(100% - var(--z)), 56% 100%, 52% calc(100% - var(--z)), 48% 100%, 44% calc(100% - var(--z)), 40% 100%, 36% calc(100% - var(--z)), 32% 100%, 28% calc(100% - var(--z)), 24% 100%, 20% calc(100% - var(--z)), 16% 100%, 12% calc(100% - var(--z)), 8% 100%, 4% calc(100% - var(--z)), 0 100%); }
.igb-sheet h2 { text-align: center; font-size: var(--igb-step-head); margin-bottom: 36px; }
.igb-sheet h3 { font-size: var(--igb-step-sub); margin: 40px 0 14px; }
.igb-sheet h3:first-of-type { margin-top: 0; }
.igb-leader { display: block; text-decoration: none; padding: 9px 0; }
.igb-leader__row { display: flex; align-items: baseline; gap: 8px; font-size: var(--igb-step-body); }
.igb-leader__row::before { content: ""; order: 2; flex: 1; min-width: 20px; border-bottom: 4px dotted var(--igb-paper-3); transform: translateY(-4px); }
.igb-leader__name { order: 1; }
.igb-leader__val { order: 3; font-family: var(--igb-sans); font-variant-numeric: tabular-nums; white-space: nowrap; }
.igb-leader__desc { display: block; margin-top: 2px; font-size: var(--igb-step-small); color: var(--igb-ink-soft); max-width: 40ch; }
a.igb-leader:hover .igb-leader__name { text-decoration: underline; }
.igb-sheet__note { margin-top: 28px; font-size: var(--igb-step-small); color: var(--igb-ink-soft); text-align: center; }
.igb-helper { grid-column: 8 / 12; position: sticky; top: calc(var(--igb-header-h) + 40px); }
.igb-helper h2 { font-size: var(--igb-step-head); margin-bottom: 16px; }
.igb-helper p { color: var(--igb-navy-ink); }
.igb-helper__form { margin-top: 28px; display: grid; gap: 22px; }
.igb-helper label { display: grid; grid-template-columns: 9.5em 1fr; align-items: center; gap: 12px; font-family: var(--igb-sans); font-weight: 600; }
.igb-helper__control { display: flex; align-items: center; gap: 14px; }
.igb-helper input[type="range"] { flex: 1; accent-color: var(--igb-navy-soft); height: 44px; }
.igb-helper output { min-width: 3ch; font-size: var(--igb-step-sub); font-family: var(--igb-serif); }
.igb-helper__result { margin-top: 24px; background: var(--igb-paper); color: var(--igb-ink); padding: 22px 24px; }
.igb-helper__result .igb-helper__total { margin: 0; color: var(--igb-ink); font-size: var(--igb-step-head); font-weight: 600; line-height: 1.1; }
.igb-helper__result p { color: var(--igb-ink-soft); font-size: var(--igb-step-small); margin-top: 8px; }
@media (max-width: 900px) {
  .igb-sheet, .igb-helper { grid-column: 1 / -1; }
  .igb-helper { position: static; margin-top: 64px; }
}

/* ---------- home: chapters as stacked folders ---------- */
.igb-folders__head { margin-bottom: 40px; }
.igb-folders__head h2 { font-size: var(--igb-step-head); }
.igb-folders__head p { margin-top: 12px; max-width: 56ch; }
.igb-folder { position: relative; padding-top: 46px; }
.igb-folder + .igb-folder { margin-top: 24px; }
.igb-folder__tab { position: absolute; top: 0; left: 0; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 34px 0 22px; min-width: 240px; font-size: var(--igb-step-sub); font-weight: 600; clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 100%, 0 100%); }
.igb-folder__body { padding: clamp(28px, 3vw, 48px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--igb-gutter); align-items: start; }
.igb-folder__band-note { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; font-family: var(--igb-sans); font-size: var(--igb-step-small); margin: -14px 0 24px; }
.igb-folder__img { grid-column: 1 / 8; }
.igb-folder__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.igb-folder__text { grid-column: 9 / 13; }
.igb-folder__text h3 { font-size: var(--igb-step-head); margin-bottom: 16px; }
.igb-folder__by { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-family: var(--igb-sans); font-size: var(--igb-step-small); }
.igb-folder__by img { width: 52px; height: 52px; border-radius: 50%; }
.igb-folder__links { margin-top: 22px; display: grid; gap: 2px; }
.igb-folder__links a { display: block; padding: 7px 0; text-decoration: none; }
.igb-folder__links a:hover { text-decoration: underline; }
.igb-folder--food .igb-folder__tab, .igb-folder--food .igb-folder__body { background: var(--igb-paper-2); }
.igb-folder--living .igb-folder__tab, .igb-folder--living .igb-folder__body { background: var(--igb-tint-tip); }
.igb-folder--medical .igb-folder__tab, .igb-folder--medical .igb-folder__body { background: var(--igb-paper-light); }
.igb-disclaimer { margin-top: 22px; padding: 16px 18px; background: var(--igb-paper-2); font-size: var(--igb-step-small); line-height: 1.5; }
@media (max-width: 900px) {
  .igb-folder { padding-top: 42px; }
  .igb-folder__tab { height: 42px; min-width: 0; font-size: var(--igb-step-sub); }
  .igb-folder__body { min-height: 0; display: block; padding: 22px 20px 28px; }
  .igb-folder__band-note { margin: 0 0 16px; }
  .igb-folder__img { margin-bottom: 22px; }
  .igb-folder__img img { aspect-ratio: 4 / 3; }
}

/* ---------- home: latest guides (index list) ---------- */
.igb-latest h2 { font-size: var(--igb-step-head); margin-bottom: 36px; }
.igb-latest__list { display: grid; grid-template-columns: 1fr 1fr; gap: 28px var(--igb-gutter); }
.igb-entry { display: grid; grid-template-columns: 148px 1fr; gap: 18px; align-items: start; text-decoration: none; }
.igb-entry img { width: 148px; aspect-ratio: 3 / 2; object-fit: cover; }
.igb-entry h3 { font-size: var(--igb-step-sub); line-height: 1.25; font-weight: 600; }
.igb-entry:hover h3 { text-decoration: underline; text-underline-offset: 0.15em; }
.igb-entry p { margin-top: 6px; font-family: var(--igb-sans); font-size: var(--igb-step-small); color: var(--igb-ink-soft); }
@media (max-width: 800px) { .igb-latest__list { grid-template-columns: 1fr; } .igb-entry { grid-template-columns: 104px 1fr; gap: 14px; } .igb-entry img { width: 104px; } .igb-entry h3 { font-size: var(--igb-step-body); } }

/* ---------- reply card: the free kit ---------- */
.igb-reply { background: var(--igb-navy); color: var(--igb-navy-ink); min-height: 80svh; overflow: clip; padding-top: clamp(64px, 8vw, 120px); }
.igb-reply__grid { align-items: end; min-height: calc(80svh - clamp(64px, 8vw, 120px)); }
.igb-reply__say { grid-column: 1 / 5; padding-bottom: 64px; font-size: var(--igb-step-sub); line-height: 1.4; }
.igb-card { grid-column: 6 / 13; align-self: start; background: var(--igb-paper); color: var(--igb-ink); padding: clamp(28px, 3.4vw, 52px); margin-bottom: -60px; rotate: 2deg; text-align: center; aspect-ratio: 7 / 5; display: flex; flex-direction: column; justify-content: center; }
.igb-card h2 { font-size: var(--igb-step-head); }
.igb-card p { margin: 14px auto 0; max-width: 44ch; }
.igb-card form { margin-top: 26px; display: grid; gap: 10px; text-align: left; }
.igb-card label { font-family: var(--igb-sans); font-weight: 600; font-size: var(--igb-step-small); }
.igb-field { width: 100%; min-height: 52px; padding: 0 16px; background: var(--igb-paper-2); border: 2px solid var(--igb-paper-3); border-radius: var(--igb-radius); font-size: var(--igb-step-body); }
.igb-field:focus { outline: 3px solid var(--igb-accent); outline-offset: 0; border-color: var(--igb-accent); }
.igb-card .igb-bar-btn { min-height: 56px; width: 100%; background: var(--igb-ink); color: var(--igb-paper); font-family: var(--igb-sans); font-weight: 600; font-size: var(--igb-step-body); transition: background-color 180ms ease, transform 140ms var(--igb-ease); }
.igb-card .igb-bar-btn:hover { background: var(--igb-accent); }
.igb-card .igb-bar-btn:active { transform: scale(0.98); }
.igb-card__fine { font-family: var(--igb-sans); font-size: var(--igb-step-small); color: var(--igb-ink-soft); }
.igb-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.igb-card .igb-kit-dl { display: flex; align-items: center; justify-content: center; text-decoration: none; color: var(--igb-paper); background: var(--igb-accent); }
.igb-card .igb-kit-dl:hover { background: var(--igb-accent-deep); }
.igb-card__thanks { font-family: var(--igb-sans); font-weight: 600; color: var(--igb-accent); }
@media (max-width: 900px) {
  .igb-reply__say, .igb-card { grid-column: 1 / -1; }
  .igb-reply__say { padding-bottom: 32px; }
  .igb-card { rotate: 1deg; aspect-ratio: auto; width: 94%; justify-self: center; margin-bottom: -40px; padding: 28px 20px 52px; }
}

/* ---------- about: the letter and the four writers ---------- */
.igb-about { background: var(--igb-paper-2); padding-block: clamp(96px, 11vw, 168px); }
.igb-letter { width: min(100%, 680px); margin-inline: auto; background: var(--igb-paper); padding: clamp(28px, 5vw, 64px); --s: 14px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--s)), 95% 100%, 90% calc(100% - var(--s)), 85% 100%, 80% calc(100% - var(--s)), 75% 100%, 70% calc(100% - var(--s)), 65% 100%, 60% calc(100% - var(--s)), 55% 100%, 50% calc(100% - var(--s)), 45% 100%, 40% calc(100% - var(--s)), 35% 100%, 30% calc(100% - var(--s)), 25% 100%, 20% calc(100% - var(--s)), 15% 100%, 10% calc(100% - var(--s)), 5% 100%, 0 calc(100% - var(--s))); }
.igb-letter__face { width: 64px; height: 64px; border-radius: 50%; }
.igb-letter h2 { margin: 22px 0 18px; font-size: var(--igb-step-head); }
.igb-letter p { margin-top: 1em; max-width: 60ch; }
.igb-letter__sign { margin-top: 28px; }
.igb-letter__sign strong { display: block; font-style: italic; font-weight: 400; font-size: var(--igb-step-sub); }
.igb-letter__sign span { font-family: var(--igb-sans); font-size: var(--igb-step-small); color: var(--igb-ink-soft); }
.igb-letter__stub { margin-top: 36px; padding-top: 22px; border-top: 5px dotted var(--igb-paper-3); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-family: var(--igb-sans); padding-bottom: 18px; }
.igb-writers { width: min(100%, 1180px); margin: clamp(72px, 8vw, 120px) auto 0; }
.igb-writers h2 { font-size: var(--igb-step-head); margin-bottom: 32px; }
.igb-writers__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--igb-gutter); }
.igb-writer img { width: 120px; height: 120px; border-radius: 50%; margin-bottom: 16px; }
.igb-writer h3 { font-size: var(--igb-step-sub); }
.igb-writer p { margin-top: 6px; font-size: var(--igb-step-body); line-height: 1.5; }
.igb-writer .igb-writer__beat { font-family: var(--igb-sans); font-size: var(--igb-step-small); color: var(--igb-ink-soft); margin-top: 2px; }
@media (max-width: 900px) { .igb-writers__list { grid-template-columns: 1fr 1fr; row-gap: 40px; } .igb-writer img { width: 88px; height: 88px; } }
@media (max-width: 520px) { .igb-letter { padding: 26px 22px 44px; } }

/* ---------- footer: the back cover ---------- */
.igb-footer { background: var(--igb-navy); color: var(--igb-navy-ink); padding: clamp(72px, 8vw, 120px) var(--igb-margin) 36px; }
.igb-footer__logo { width: 200px; margin-bottom: 40px; background: none; }
.igb-back { background: var(--igb-paper); color: var(--igb-ink); display: grid; grid-template-columns: 1fr 1fr; gap: var(--igb-gutter); padding: clamp(28px, 4vw, 56px); position: relative; }
.igb-back h2 { font-size: var(--igb-step-head); }
.igb-back__msg p { margin-top: 14px; max-width: 46ch; }
.igb-back__chapters { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 6px 22px; font-family: var(--igb-sans); }
.igb-back__addr { display: grid; gap: 12px; align-content: start; font-size: var(--igb-step-body); padding-right: 112px; }
.igb-back__addr a { text-decoration: none; }
.igb-back__addr a:hover { text-decoration: underline; }
.igb-stamp { position: absolute; top: clamp(28px, 4vw, 56px); right: clamp(28px, 4vw, 56px); width: 88px; padding: 6px; background: var(--igb-paper-3); rotate: 3deg; }
.igb-stamp img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.igb-imprint { grid-column: 1 / -1; margin-top: 24px; text-align: center; font-family: var(--igb-sans); font-size: var(--igb-step-small); color: var(--igb-ink-soft); }
.igb-credits { margin-top: 28px; max-width: 72ch; font-family: var(--igb-sans); font-size: var(--igb-step-small); line-height: 1.6; color: var(--igb-navy-soft); }
.igb-credits a { color: var(--igb-navy-ink); }
@media (max-width: 800px) { .igb-back { grid-template-columns: 1fr; } .igb-back__addr { padding-right: 0; } .igb-stamp { width: 64px; } .igb-back__msg { padding-right: 76px; } }

/* ---------- article: a chapter of the book ---------- */
.igb-crumbs { font-family: var(--igb-sans); font-size: var(--igb-step-small); color: var(--igb-ink-soft); display: flex; flex-wrap: wrap; gap: 6px; }
.igb-crumbs a { color: var(--igb-ink-soft); }
.igb-crumbs span[aria-hidden] { padding: 0 2px; }
.igb-chapter-open { padding-top: clamp(40px, 6vw, 88px); }
.igb-chapter-open__in { grid-column: 1 / 8; align-self: end; }
.igb-chapter-open .igb-hero-plate { grid-column: 8 / 13; margin-top: 0; }
.igb-chapter-open .igb-hero-plate img { aspect-ratio: 5 / 4; }
@media (max-width: 1000px) { .igb-chapter-open__in, .igb-chapter-open .igb-hero-plate { grid-column: 1 / -1; } .igb-chapter-open .igb-hero-plate { margin-top: 36px; } .igb-chapter-open .igb-hero-plate img { aspect-ratio: 3 / 2; } }
.igb-chapter-open h1 { margin-top: 22px; font-size: var(--igb-step-display); line-height: 1.0; letter-spacing: -0.03em; max-width: 20ch; }
.igb-standfirst { margin-top: 22px; font-size: var(--igb-step-sub); line-height: 1.42; max-width: 52ch; }
.igb-meta { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; font-family: var(--igb-sans); font-size: var(--igb-step-small); }
.igb-meta__by { display: flex; align-items: center; gap: 12px; }
.igb-meta__by img { width: 48px; height: 48px; border-radius: 50%; }
.igb-meta__check { display: inline-flex; align-items: center; gap: 8px; background: var(--igb-tint-tip); padding: 6px 12px; }
.igb-meta__check svg { width: 16px; height: 16px; flex: none; }
.igb-hero-plate { margin-top: clamp(36px, 4vw, 56px); }
.igb-hero-plate img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.igb-article { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(40px, 6vw, 112px); padding-top: clamp(40px, 5vw, 72px); }
.igb-body { max-width: 700px; }
.igb-body > * + * { margin-top: 1.1em; }
.igb-body h2 { font-size: var(--igb-step-head); margin-top: 2.2em; }
.igb-body h3 { font-size: var(--igb-step-sub); margin-top: 1.8em; }
.igb-body h2 + *, .igb-body h3 + * { margin-top: 0.6em; }
.igb-body a { color: var(--igb-accent); }
.igb-body ul { padding-left: 1.2em; }
.igb-body li + li { margin-top: 0.5em; }
.igb-body figure img { width: 100%; }
.igb-body figure { margin-block: 2em; }
.igb-dropcap::first-letter { float: left; font-size: 4.2em; line-height: 0.84; padding: 0.06em 0.1em 0 0; font-weight: 600; }
.igb-keyfacts { background: var(--igb-paper-2); padding: 26px clamp(20px, 3vw, 32px) 28px; }
.igb-keyfacts h2 { font-size: var(--igb-step-sub) !important; margin: 0 0 6px !important; }
.igb-keyfacts > p { color: var(--igb-ink-soft); font-size: var(--igb-step-small); font-family: var(--igb-sans); }
.igb-keyfacts dl { margin-top: 16px; display: grid; grid-template-columns: minmax(130px, 34%) 1fr; gap: 12px 18px; }
.igb-keyfacts dt { font-family: var(--igb-sans); font-weight: 600; }
.igb-callout { padding: 20px 24px; background: var(--igb-tint-tip); }
.igb-callout--warn { background: var(--igb-tint-warn); }
.igb-callout p { margin: 0; }
.igb-callout strong:first-child { font-family: var(--igb-sans); }
.igb-table { width: 100%; overflow-x: auto; margin-block: 1.6em; }
.igb-table table { width: 100%; border-collapse: collapse; font-family: var(--igb-sans); font-size: var(--igb-step-small); line-height: 1.45; min-width: 520px; }
.igb-table th { text-align: left; font-weight: 600; background: var(--igb-paper-2); padding: 12px 14px; }
.igb-table td { padding: 12px 14px; border-bottom: 1px solid var(--igb-paper-3); vertical-align: top; }
@media (max-width: 600px) {
  .igb-table table { min-width: 0; }
  .igb-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .igb-table tr { display: block; background: var(--igb-paper-2); padding: 12px 16px; margin-bottom: 6px; }
  .igb-table td { display: grid; grid-template-columns: 7.5em 1fr; gap: 10px; border: 0; padding: 4px 0; }
  .igb-table td::before { content: attr(data-label); font-weight: 600; }
}
.igb-specs { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-family: var(--igb-sans); font-size: var(--igb-step-small); background: var(--igb-paper-2); padding: 16px 20px; }
.igb-specs dt { font-weight: 600; }
.igb-faq details { background: var(--igb-paper-2); margin-top: 6px; }
.igb-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 16px 20px; font-weight: 600; font-size: var(--igb-step-body); }
.igb-faq summary::-webkit-details-marker { display: none; }
.igb-faq summary::after { content: "+"; font-family: var(--igb-sans); font-size: var(--igb-step-sub); line-height: 1; transition: transform 240ms var(--igb-ease); }
.igb-faq details[open] summary::after { transform: rotate(45deg); }
.igb-faq details p { padding: 0 20px 18px; }
.igb-sources { background: var(--igb-paper-2); padding: 24px clamp(20px, 3vw, 32px); font-size: var(--igb-step-small); }
.igb-sources h2 { font-size: var(--igb-step-sub) !important; margin: 0 0 12px !important; }
.igb-sources ol { padding-left: 1.4em; display: grid; gap: 8px; }
.igb-sources p { margin-top: 14px; font-family: var(--igb-sans); font-size: var(--igb-step-small); }
.igb-share { font-family: var(--igb-sans); font-size: var(--igb-step-small); color: var(--igb-ink-soft); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.igb-share a { color: var(--igb-ink); }
.igb-authorbox { display: grid; grid-template-columns: 96px 1fr; gap: 22px; background: var(--igb-tint-tip); padding: 26px; }
.igb-authorbox img { width: 96px; height: 96px; border-radius: 50%; }
.igb-authorbox h2 { font-size: var(--igb-step-sub) !important; margin: 0 !important; }
.igb-authorbox p { margin-top: 8px; font-size: var(--igb-step-body); }
.igb-toc { position: sticky; top: calc(var(--igb-header-h) + 28px); align-self: start; max-height: calc(100svh - var(--igb-header-h) - 56px); overflow: auto; }
.igb-toc h2 { font-size: var(--igb-step-sub); margin-bottom: 12px; }
.igb-toc ol { list-style: none; padding: 0; display: grid; gap: 2px; font-family: var(--igb-sans); font-size: var(--igb-step-small); }
.igb-toc a { display: flex; gap: 8px; align-items: baseline; padding: 6px 10px; text-decoration: none; color: var(--igb-ink-soft); transition: background-color 180ms ease, color 180ms ease; }
.igb-toc a:hover { color: var(--igb-ink); background: var(--igb-paper-2); }
.igb-toc a.is-current { color: var(--igb-ink); background: var(--igb-paper-2); font-weight: 600; }
.igb-toc__mobile { display: none; }
@media (max-width: 1000px) {
  .igb-article { grid-template-columns: minmax(0, 1fr); }
  .igb-toc { display: none; }
  .igb-toc__mobile { display: block; background: var(--igb-paper-2); }
  .igb-toc__mobile summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; padding: 16px 20px; font-weight: 600; font-size: var(--igb-step-body); min-height: 52px; }
  .igb-toc__mobile summary::-webkit-details-marker { display: none; }
  .igb-toc__mobile summary::after { content: "+"; font-family: var(--igb-sans); font-size: var(--igb-step-sub); line-height: 1; transition: transform 240ms var(--igb-ease); }
  .igb-toc__mobile[open] summary::after { transform: rotate(45deg); }
  .igb-toc__mobile ol { padding: 0 20px 18px 2.2em; display: grid; gap: 8px; font-family: var(--igb-sans); }
  .igb-toc__mobile a { color: var(--igb-ink); }
}
.igb-next { margin-top: var(--igb-section); }
.igb-next h2 { font-size: var(--igb-step-head); margin-bottom: 32px; }
.igb-next__list { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--igb-gutter); align-items: start; }
.igb-next__lead img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.igb-next__lead h3 { margin-top: 16px; font-size: var(--igb-step-sub); }
.igb-next__lead, .igb-next__side a { text-decoration: none; }
.igb-next__lead:hover h3, .igb-next__side a:hover h3 { text-decoration: underline; }
.igb-next__side { display: grid; gap: 24px; }
.igb-next__side p, .igb-next__lead p { margin-top: 6px; font-family: var(--igb-sans); font-size: var(--igb-step-small); color: var(--igb-ink-soft); }
@media (max-width: 800px) { .igb-next__list { grid-template-columns: 1fr; } }

/* ---------- category hub ---------- */
.igb-hub-open { padding-top: clamp(40px, 6vw, 88px); }
.igb-hub-open__grid { align-items: end; margin-top: 22px; }
.igb-hub-open__grid > div:first-child { grid-column: 1 / 8; }
.igb-hub-open h1 { font-size: var(--igb-step-display); line-height: 1; letter-spacing: -0.03em; }
.igb-hub-open__intro { grid-column: 8 / 13; }
.igb-hub-open__intro p + p { margin-top: 0.8em; }
.igb-hub-open__meta { margin-top: 14px; font-family: var(--igb-sans); font-size: var(--igb-step-small); color: var(--igb-ink-soft); }
.igb-picks { margin-top: clamp(56px, 7vw, 104px); }
.igb-picks h2 { font-size: var(--igb-step-head); margin-bottom: 28px; }
.igb-picks__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--igb-gutter); }
.igb-pick { text-decoration: none; display: block; }
.igb-pick img { width: 100%; object-fit: cover; aspect-ratio: 3 / 2; transition: transform 700ms var(--igb-ease); }
.igb-pick__img { overflow: hidden; }
.igb-pick:hover img { transform: scale(1.03); }
.igb-pick h3 { margin-top: 16px; font-size: var(--igb-step-sub); }
.igb-pick:hover h3 { text-decoration: underline; text-underline-offset: 0.15em; }
.igb-pick p { margin-top: 6px; }
.igb-pick__meta { font-family: var(--igb-sans); font-size: var(--igb-step-small); color: var(--igb-ink-soft); }
.igb-picks__side { display: grid; gap: 28px; }
.igb-picks__side .igb-pick { display: grid; grid-template-columns: 44% 1fr; gap: 18px; align-items: start; }
.igb-picks__side .igb-pick h3 { margin-top: 0; }
.igb-picks__side img { aspect-ratio: 4 / 3; }
@media (max-width: 860px) { .igb-hub-open__grid > div:first-child, .igb-hub-open__intro { grid-column: 1 / -1; } .igb-hub-open__intro { margin-top: 20px; } .igb-picks__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .igb-picks__side .igb-pick { grid-template-columns: 1fr; } }
.igb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.igb-filter__lead { margin-top: 24px; }
.igb-chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; background: var(--igb-paper-2); font-family: var(--igb-sans); font-size: var(--igb-step-small); text-decoration: none; transition: background-color 180ms ease; }
.igb-chip:hover { background: var(--igb-paper-3); }
.igb-filter { margin-top: clamp(56px, 7vw, 104px); }
.igb-filter__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; }
.igb-filter__head h2 { font-size: var(--igb-step-head); }
.igb-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.igb-seg button { min-height: 44px; padding: 0 18px; background: var(--igb-paper-2); font-family: var(--igb-sans); font-weight: 600; transition: background-color 180ms ease, color 180ms ease, transform 140ms var(--igb-ease); }
.igb-seg button:hover { background: var(--igb-paper-3); }
.igb-seg button:active { transform: scale(0.97); }
.igb-seg button[aria-pressed="true"] { background: var(--igb-ink); color: var(--igb-paper); }
.igb-count { margin-top: 18px; font-family: var(--igb-sans); color: var(--igb-ink-soft); }
.igb-hublist { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 36px var(--igb-gutter); }
.igb-hubrow { display: grid; grid-template-columns: 200px 1fr; gap: 20px; text-decoration: none; align-items: start; }
.igb-hubrow[hidden] { display: none; }
.igb-hubrow img { width: 200px; aspect-ratio: 3 / 2; object-fit: cover; }
.igb-hubrow h3 { font-size: var(--igb-step-sub); line-height: 1.25; }
.igb-hubrow:hover h3 { text-decoration: underline; text-underline-offset: 0.15em; }
.igb-hubrow p { margin-top: 6px; font-size: var(--igb-step-body); line-height: 1.5; }
.igb-hubrow .igb-pick__meta { margin-top: 8px; }
@media (max-width: 900px) { .igb-hublist { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .igb-hubrow { grid-template-columns: 112px 1fr; gap: 14px; } .igb-hubrow img { width: 112px; } .igb-hubrow h3 { font-size: var(--igb-step-body); } .igb-hubrow p { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}

/* cover sits left of centre on wide screens so the photo's subject stays visible */
@media (min-width: 901px) {
  .igb-cover { place-items: center start; padding-left: clamp(36px, 6vw, 96px); }
  .igb-book { width: min(100%, 840px); }
  .igb-cover__photo { object-position: 70% 50%; }
}

/* ==========================================================================
   WordPress theme layer (igb-book): menus, content transforms, archives, core
   ========================================================================== */

/* menus: header shows top level only, the drawer shows two levels */
.igb-nav__list, .igb-drawer__list, .igb-footer-menu, .igb-drawer__list .sub-menu { list-style: none; margin: 0; padding: 0; }
.igb-nav__list { display: flex; gap: clamp(14px, 1.6vw, 26px); }
.igb-nav a { white-space: nowrap; display: inline-block; }
.igb-nav .current-menu-item > a::after, .igb-nav .current-menu-ancestor > a::after, .igb-nav .current-category-ancestor > a::after { transform: none; }
.igb-drawer__list .sub-menu { padding-left: 18px; margin-bottom: 8px; border-left: 2px solid var(--igb-paper-3); }
.igb-drawer__list .sub-menu a { font-size: var(--igb-step-body); padding: 8px 0; font-family: var(--igb-sans); }
.igb-drawer__search { margin-top: 18px; }
@media (max-width: 1360px) {
  .igb-nav-long .igb-nav { display: none; }
  .igb-nav-long .igb-menu-btn { display: inline-flex; align-items: center; }
  .igb-nav-long .igb-drawer[data-open="true"] { display: block; position: absolute; left: 0; right: 0; top: var(--igb-header-h); background: var(--igb-paper-2); padding: 12px var(--igb-margin) 28px; box-shadow: 0 18px 30px rgba(20, 27, 45, 0.12); max-height: calc(100svh - var(--igb-header-h)); overflow: auto; }
  .igb-nav-long .igb-drawer a { display: block; padding: 12px 0; font-size: var(--igb-step-sub); text-decoration: none; }
}
/* JS adds igb-nav-overflow on <html> when the menu does not fit on one line */
  .igb-nav-overflow .igb-nav { display: none; }
  .igb-nav-overflow .igb-menu-btn { display: inline-flex; align-items: center; }
  .igb-nav-overflow .igb-drawer[data-open="true"] { display: block; position: absolute; left: 0; right: 0; top: var(--igb-header-h); background: var(--igb-paper-2); padding: 12px var(--igb-margin) 28px; box-shadow: 0 18px 30px rgba(20, 27, 45, 0.12); max-height: calc(100svh - var(--igb-header-h)); overflow: auto; }
  .igb-nav-overflow .igb-drawer a { display: block; padding: 12px 0; font-size: var(--igb-step-sub); text-decoration: none; }

@media (max-width: 1080px) { .igb-drawer[data-open="true"] { max-height: calc(100svh - var(--igb-header-h)); overflow: auto; } }
@media (min-width: 900px) { .igb-drawer__list { columns: 2; column-gap: var(--igb-gutter); } .igb-drawer__list > li { break-inside: avoid; } }

/* image placeholder when a post has no featured image */
.igb-noimg { display: block; width: 100%; aspect-ratio: 3 / 2; background: var(--igb-paper-3) linear-gradient(135deg, var(--igb-paper-2) 0 50%, var(--igb-paper-3) 50% 100%); }
.igb-tile .igb-noimg { aspect-ratio: 4 / 5; }
.igb-hubrow .igb-noimg { width: 200px; }
.igb-next__lead .igb-noimg { aspect-ratio: 16 / 10; }
.igb-picks__side .igb-noimg { aspect-ratio: 4 / 3; }
@media (max-width: 520px) { .igb-hubrow .igb-noimg { width: 112px; } .igb-hubrow p.igb-pick__meta { display: block; margin-top: 4px; font-size: 0.875rem; } }

/* avatars */
.igb-avatar { border-radius: 50%; object-fit: cover; background: var(--igb-paper-3); }
.igb-writer__link { text-decoration: none; }
.igb-writer__link:hover h3 { text-decoration: underline; }

/* article content: the theme wraps the_content in .igb-content */
.igb-content > * + * { margin-top: 1.1em; }
.igb-content > h2 + *, .igb-content > h3 + * { margin-top: 0.6em; }
.igb-content ol { padding-left: 1.4em; }
.igb-content li + li { margin-top: 0.5em; }
.igb-content blockquote { margin-inline: 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--igb-paper-3); font-style: italic; }
.igb-content img { height: auto; }
.igb-content iframe, .igb-content video { max-width: 100%; }
.igb-content hr { border: 0; border-top: 1px solid var(--igb-paper-3); margin-block: 2.4em; }
.igb-content code { font-size: 0.9em; background: var(--igb-paper-2); padding: 0 4px; }
.igb-content .price-disclaimer { font-family: var(--igb-sans); font-size: var(--igb-step-small); color: var(--igb-ink-soft); }
.igb-article--solo { grid-template-columns: minmax(0, 1fr); }
.igb-article--solo .igb-body { margin-inline: auto; }

.igb-quick { display: block; }
.igb-keyfacts > .igb-quick__label { display: block; font-family: var(--igb-serif); font-weight: 600; font-size: var(--igb-step-sub); line-height: 1.2; letter-spacing: -0.015em; color: var(--igb-ink); margin-bottom: 10px; }
.igb-keyfacts.igb-quick > .igb-quick__text { margin: 0; font-family: var(--igb-serif); font-size: var(--igb-step-body); line-height: 1.6; color: var(--igb-ink); }
.igb-callout__text { margin: 0; }
.igb-callout__text + .igb-callout__text, .igb-callout p + p { margin-top: 0.7em; }
.igb-callout ul { margin: 0.6em 0 0; }
.igb-callout { font-style: normal; border: 0; }
.igb-mednote { background: var(--igb-tint-warn); padding: 18px 22px; font-family: var(--igb-sans); font-size: var(--igb-step-small); line-height: 1.5; margin-top: 26px; max-width: 70ch; }
.igb-mednote strong { display: block; font-size: var(--igb-step-body); margin-bottom: 4px; }
.igb-mednote a { color: var(--igb-ink); }
.igb-checked-line { display: flex; gap: 10px; align-items: center; font-family: var(--igb-sans); font-size: var(--igb-step-small); color: var(--igb-ink-soft); background: var(--igb-tint-tip); padding: 12px 16px; }
.igb-checked-line svg { width: 16px; height: 16px; flex: none; }
.igb-checked-line strong { font-weight: 600; color: var(--igb-ink); }

/* FAQ blocks built from H2 FAQ + H3 questions */
.igb-faq > h2 { margin-bottom: 14px; }
.igb-faq__item summary h3.igb-faq__q, .igb-faq summary .igb-faq__q { font-size: inherit; margin: 0; font-weight: 600; line-height: 1.35; font-family: var(--igb-serif); letter-spacing: 0; }
.igb-faq__a { padding: 0 20px 18px; }
.igb-faq__a > * + * { margin-top: 0.8em; }
.igb-faq__a p { padding: 0 !important; }
.igb-faq__a ul { padding-left: 1.2em; }

/* sources and useful links as footnotes */
.igb-sources__title { font-family: var(--igb-sans); font-weight: 600; font-size: var(--igb-step-small); text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 10px; color: var(--igb-ink-soft); }
.igb-footnotes ol, .igb-sources--section ol, .igb-sources--section ul { margin: 0; padding-left: 1.4em; display: grid; gap: 8px; }
.igb-sources--section > * + * { margin-top: 0.8em; }
.igb-sources--section li + li, .igb-footnotes li + li { margin-top: 0; }
.igb-sources a { color: var(--igb-accent); overflow-wrap: anywhere; }
.igb-sources .igb-sources { padding: 0; background: none; }

/* tables */
.igb-table--plain td, .igb-table--plain th { vertical-align: top; }
.igb-table { overflow-x: auto; }
@media (max-width: 600px) { .igb-table { overflow: visible; } }

/* chapter opening without a photo */
.igb-chapter-open--noimg { padding-bottom: 8px; }

/* search form */
.igb-search label { display: block; font-family: var(--igb-sans); font-weight: 600; font-size: var(--igb-step-small); margin-bottom: 8px; }
.igb-search__row { display: flex; gap: 8px; }
.igb-search__row .igb-field { flex: 1; min-width: 0; }
.igb-search__row .igb-btn { flex: none; }
.igb-search q { quotes: "\201C" "\201D"; }

/* author box and author page */
.igb-authorbox__links { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 20px; font-family: var(--igb-sans); font-size: var(--igb-step-small); }
.igb-authorbox__links a { color: var(--igb-accent); }
.igb-writer-open__head { display: flex; align-items: end; gap: clamp(18px, 2.4vw, 32px); }
.igb-writer-open__face { width: clamp(96px, 11vw, 160px); height: clamp(96px, 11vw, 160px); flex: none; }
.igb-filter__title { font-size: var(--igb-step-head); }
@media (max-width: 520px) { .igb-writer-open__head { flex-direction: column; align-items: start; } }

/* related list thumbs, 404, empty states */
.igb-next__thumb { width: 100%; }
.igb-next__side img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.igb-empty { margin-top: 24px; font-size: var(--igb-step-sub); max-width: 46ch; }
.igb-404__num { font-family: var(--igb-sans); font-weight: 600; letter-spacing: 0.2em; color: var(--igb-ink-soft); margin-bottom: 10px; }
.igb-404__chips { margin-top: 36px; }
.igb-404 .igb-standfirst { max-width: 44ch; }

/* pages */
.igb-page__open { max-width: calc(700px + 2 * var(--igb-margin)); margin-inline: auto; padding-top: clamp(40px, 6vw, 88px); }
.igb-page__open h1 { font-size: var(--igb-step-head); line-height: 1.05; margin-top: 22px; }
.igb-page__plate { max-width: calc(700px + 2 * var(--igb-margin)); margin: 32px auto 0; }
.igb-page__plate img { width: 100%; }
.igb-page__wrap { max-width: calc(700px + 2 * var(--igb-margin)); margin-inline: auto; padding-top: clamp(32px, 4vw, 56px); padding-bottom: var(--igb-section); }
.igb-pages { margin-top: 32px; display: flex; gap: 8px; font-family: var(--igb-sans); }

/* pagination */
.igb-pagination { margin-top: 56px; font-family: var(--igb-sans); }
.igb-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.igb-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; background: var(--igb-paper-2); text-decoration: none; font-weight: 600; }
.igb-pagination a.page-numbers:hover { background: var(--igb-paper-3); }
.igb-pagination .page-numbers.current { background: var(--igb-ink); color: var(--igb-paper); }
.igb-pagination .page-numbers.dots { background: none; }

/* footer menu */
.igb-footer-menu { display: grid; gap: 10px; }
.igb-footer-menu a { color: var(--igb-ink); text-decoration: none; }
.igb-footer-menu a:hover { text-decoration: underline; }

/* WordPress core classes */
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
.screen-reader-text:focus { clip: auto !important; clip-path: none; height: auto; width: auto; margin: 0; padding: 10px 16px; background: var(--igb-ink); color: var(--igb-paper); z-index: 60; left: 8px; top: 8px; }
.alignleft { float: left; margin: 0.3em 1.4em 1em 0; }
.alignright { float: right; margin: 0.3em 0 1em 1.4em; }
.aligncenter { margin-inline: auto; display: block; }
.alignwide, .alignfull { width: 100%; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .wp-element-caption, figcaption { font-family: var(--igb-sans); font-size: var(--igb-step-small); color: var(--igb-ink-soft); margin-top: 8px; }
.wp-block-image img { width: auto; max-width: 100%; }
@media (max-width: 600px) { .alignleft, .alignright { float: none; margin: 1em 0; } }
.igb-caption, figcaption, .igb-credits, .igb-content a, .igb-content td { overflow-wrap: anywhere; }

/* bullets: middle dots instead of dashes or discs (1.0.9) */
.igb-body ul:not([class]), .igb-faq__a ul:not([class]), .igb-callout ul:not([class]) { list-style: none; padding-left: 1.3em; }
.igb-body ul:not([class]) > li, .igb-faq__a ul:not([class]) > li, .igb-callout ul:not([class]) > li { position: relative; }
.igb-body ul:not([class]) > li::before, .igb-faq__a ul:not([class]) > li::before, .igb-callout ul:not([class]) > li::before { content: "\00B7"; position: absolute; left: -0.85em; top: -0.12em; font-weight: 700; font-size: 1.5em; line-height: 1.2; color: var(--igb-accent); }

/* Topics: tag buttons and the topic browser */
.igb-tag { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; background: var(--igb-paper-2); color: var(--igb-ink); font-family: var(--igb-sans); font-size: var(--igb-step-small); font-weight: 600; text-decoration: none; border: 1px solid transparent; border-radius: var(--igb-radius); transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 140ms var(--igb-ease); }
.igb-tag:hover { background: var(--igb-paper-3); }
.igb-tag:active { transform: scale(0.97); }
.igb-tag[aria-pressed="true"] { background: var(--igb-ink); color: var(--igb-paper); }
.igb-tag[aria-disabled="true"] { opacity: 0.42; pointer-events: none; }
.igb-tag__n { font-weight: 400; font-size: 0.8125rem; color: var(--igb-ink-soft); font-variant-numeric: tabular-nums; }
.igb-tag[aria-pressed="true"] .igb-tag__n { color: inherit; opacity: 0.75; }
.igb-topics__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.igb-topics__panel { display: grid; gap: 26px; padding: clamp(20px, 3vw, 32px); background: rgba(233, 226, 212, 0.45); border-top: 2px solid var(--igb-ink); }
.igb-topics__how { font-family: var(--igb-sans); color: var(--igb-ink-soft); }
.igb-topics__group { border: 0; margin: 0; padding: 0; min-width: 0; }
.igb-topics__group legend { padding: 0; margin-bottom: 10px; font-family: var(--igb-serif); font-size: var(--igb-step-sub); font-weight: 600; }
.igb-topics__bar { position: sticky; top: var(--igb-header-h, 64px); z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; margin-top: 18px; padding: 12px 0; background: var(--igb-paper); border-bottom: 1px solid var(--igb-paper-3); }
.igb-topics__bar .igb-count { margin: 0; font-weight: 600; color: var(--igb-ink); }
.igb-topics .igb-hublist { margin-top: 24px; }
.igb-topics .igb-empty { margin-top: 24px; }
.igb-posttags { margin-top: clamp(40px, 5vw, 56px); padding-top: 22px; border-top: 1px solid var(--igb-paper-3); }
.igb-posttags__label { margin-bottom: 12px; font-family: var(--igb-sans); font-weight: 600; font-size: var(--igb-step-small); text-transform: uppercase; letter-spacing: 0.08em; color: var(--igb-ink-soft); }
.igb-posttags__all { align-self: center; margin-left: 6px; font-size: var(--igb-step-small); }
@media (max-width: 520px) { .igb-tag { min-height: 44px; } .igb-topics__panel { padding: 18px 16px; } }
