.ichingo-guide-single__card { padding: clamp(1.25rem, 3vw, 2.5rem); }
.ichingo-guide-single__head { padding-bottom: 1.25rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--ichingo-border-subtle); }
.ichingo-guide-single__head .ichingo-display { margin: .5rem 0 .15rem; }
.ichingo-guide-single__subtitle { color: var(--ichingo-color-primary); font-weight: 700; font-size: .95rem; margin: 0 0 .6rem; }
.ichingo-guide-single__badges { display: flex; gap: .5rem; flex-wrap: wrap; }

/* Video block — dark header bar + 16:9 embed, matches the prototype's modal video box */
.ichingo-guide-video { border-radius: var(--ichingo-radius-lg); overflow: hidden; border: 1px solid var(--ichingo-border-subtle); margin-block: 1.5rem; box-shadow: var(--ichingo-shadow-sm); }
.ichingo-guide-video__bar { display: flex; justify-content: space-between; align-items: center; padding: .75rem 1rem; background: #0f172a; color: var(--ichingo-color-accent-gold); font-weight: 700; font-size: .8rem; }
.ichingo-guide-video__hd { font-size: .68rem; color: #cbd5e1; font-weight: 600; }
.ichingo-guide-video__frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.ichingo-guide-video__frame iframe, .ichingo-guide-video__frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; }

/* PDF + Official Apps boxes, side by side */
.ichingo-guide-resources { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .9rem; margin-bottom: 1.5rem; }
.ichingo-guide-resource-box { border-radius: var(--ichingo-radius-md); padding: 1rem 1.1rem; border: 1px solid; }
.ichingo-guide-resource-box--pdf { display: flex; align-items: center; justify-content: space-between; gap: .75rem; background: var(--ichingo-color-primary-tint); border-color: color-mix(in srgb, var(--ichingo-color-primary) 35%, transparent); }
.ichingo-guide-resource-box--apps { background: color-mix(in srgb, var(--ichingo-color-accent-gold) 12%, transparent); border-color: color-mix(in srgb, var(--ichingo-color-accent-gold) 40%, transparent); }
.ichingo-guide-resource-box__title { font-size: .8rem; font-weight: 800; margin: 0 0 .15rem; color: var(--ichingo-text-ink); }
.ichingo-guide-resource-box__sub { font-size: .72rem; color: var(--ichingo-text-muted); margin: 0; }
.ichingo-guide-applinks { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .5rem; }
.ichingo-guide-applinks__pill {
	display: inline-flex; align-items: center; gap: .35em;
	background: var(--ichingo-bg-surface); border: 1px solid color-mix(in srgb, var(--ichingo-color-accent-gold) 45%, transparent);
	border-radius: var(--ichingo-radius-pill); padding: .4em .85em; font-size: .74rem; font-weight: 700;
	text-decoration: none; color: var(--ichingo-text-ink);
}
.ichingo-guide-applinks__pill:hover { background: color-mix(in srgb, var(--ichingo-color-accent-gold) 18%, transparent); }

/* Overview */
.ichingo-guide-overview { background: var(--ichingo-bg-surface-alt); border: 1px solid var(--ichingo-border-subtle); border-radius: var(--ichingo-radius-md); padding: 1rem 1.15rem; font-size: .88rem; line-height: 1.7; color: var(--ichingo-text-ink); margin-bottom: 1.75rem; }

/* Step-by-step */
.ichingo-guide-steps__heading { text-transform: uppercase; font-size: .85rem; letter-spacing: .03em; border-bottom: 1px solid var(--ichingo-border-subtle); padding-bottom: .6rem; margin-top: 2.25rem; }
.ichingo-guide-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.ichingo-guide-step { display: flex; align-items: flex-start; gap: 1rem; }
.ichingo-guide-step__num {
	flex-shrink: 0; width: 2rem; height: 2rem; border-radius: 50%;
	background: var(--ichingo-color-primary); color: #fff; font-weight: 800; font-size: .85rem;
	display: flex; align-items: center; justify-content: center; box-shadow: var(--ichingo-shadow-sm);
}
.ichingo-guide-step__body { flex: 1; padding: 1.1rem 1.25rem; }
.ichingo-guide-step__body h3 { margin: 0 0 .3rem; font-size: .95rem; }
.ichingo-guide-step__body p { margin: 0; font-size: .85rem; line-height: 1.65; color: var(--ichingo-text-ink); }
.ichingo-guide-step__body img { max-width: 100%; border-radius: var(--ichingo-radius-md); margin-top: .75rem; display: block; }
.ichingo-guide-step__tip, .ichingo-guide-step__warning { border-radius: var(--ichingo-radius-sm); padding: .6rem .9rem; margin-top: .75rem; font-size: .82rem; line-height: 1.5; }
.ichingo-guide-step__tip { background: color-mix(in srgb, var(--ichingo-color-success) 12%, transparent); border-inline-start: 3px solid var(--ichingo-color-success); }
.ichingo-guide-step__warning { background: color-mix(in srgb, var(--ichingo-color-warning) 14%, transparent); border-inline-start: 3px solid var(--ichingo-color-warning); }

.ichingo-guide-single__footer { text-align: end; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--ichingo-border-subtle); }

/* Simplified authoring path: pasted source-site HTML (links, paragraphs,
   headings, image galleries, buttons) — styled to match the site without
   the author needing to fill any separate structured fields. */
.ichingo-guide-prose { font-size: .92rem; line-height: 1.75; color: var(--ichingo-text-ink); }
.ichingo-guide-prose h2, .ichingo-guide-prose h3, .ichingo-guide-prose h4 { margin: 1.75rem 0 .6rem; line-height: 1.35; }
.ichingo-guide-prose p { margin: 0 0 1rem; }
.ichingo-guide-prose ul, .ichingo-guide-prose ol { margin: 0 0 1rem; padding-inline-start: 1.4em; }
.ichingo-guide-prose li { margin-bottom: .35em; }
.ichingo-guide-prose a { color: var(--ichingo-color-primary); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.ichingo-guide-prose img { max-width: 100%; height: auto; border-radius: var(--ichingo-radius-md); display: block; margin: .5rem 0 1rem; box-shadow: var(--ichingo-shadow-sm); }
.ichingo-guide-prose video, .ichingo-guide-prose iframe { max-width: 100%; border-radius: var(--ichingo-radius-lg); margin: 1rem 0; }
.ichingo-guide-prose figure { margin: 0 0 1rem; }
.ichingo-guide-prose .wp-block-gallery, .ichingo-guide-prose .ichingo-guide-prose__gallery {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .6rem; margin: 0 0 1rem; list-style: none; padding: 0;
}
.ichingo-guide-prose .wp-block-gallery img, .ichingo-guide-prose .ichingo-guide-prose__gallery img { margin: 0; }
.ichingo-guide-prose .wp-block-buttons, .ichingo-guide-prose .ichingo-guide-prose__buttons { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 1.25rem; list-style: none; padding: 0; }
.ichingo-guide-prose .wp-block-button__link, .ichingo-guide-prose .ichingo-guide-prose__buttons a {
	display: inline-block; background: var(--ichingo-color-primary); color: #fff; font-weight: 700; font-size: .82rem;
	padding: .6em 1.1em; border-radius: var(--ichingo-radius-pill); text-decoration: none;
}
.ichingo-guide-prose strong { color: var(--ichingo-color-primary-dark); }

/* ==========================================================================
   Rich pasted-content helpers, permanently available inside .ichingo-guide-prose.
   These give authors the "platforms / summary / gallery / tip / warning /
   pdfs / lightbox" layout WITHOUT ever pasting a <style> or <script> tag
   into a guide again — one shared stylesheet + one shared script (see
   guides-lightbox.js) instead of duplicating ~200 lines of CSS and a
   lightbox script into every single guide. Besides being far less content
   to paste, this also keeps guides from tripping any WAF/security-plugin
   pattern match on <script> tags in submitted post content, and keeps
   every guide's lightbox/gallery visually consistent site-wide. Just use
   these class names directly in the pasted HTML — no <style>/<script> needed.
   ========================================================================== */

/* Official platform/app download links grid */
.ichingo-guide-prose .ichingo-platforms {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
	margin: 1.5rem 0; background: var(--ichingo-color-primary-tint); padding: 1.5rem;
	border-radius: var(--ichingo-radius-lg); border: 1px solid color-mix(in srgb, var(--ichingo-color-primary) 30%, transparent);
}
@media (max-width: 768px) { .ichingo-guide-prose .ichingo-platforms { grid-template-columns: repeat(2, 1fr); padding: 1rem; } }
.ichingo-guide-prose .ichingo-platform-link {
	display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem;
	background: var(--ichingo-bg-surface); border: 1px solid var(--ichingo-border-subtle); border-radius: var(--ichingo-radius-md);
	text-decoration: none; color: var(--ichingo-text-ink); font-weight: 700; font-size: .88rem; transition: all .2s ease;
}
.ichingo-guide-prose .ichingo-platform-link:hover { border-color: var(--ichingo-color-primary); transform: translateY(-2px); box-shadow: var(--ichingo-shadow-sm); }
.ichingo-guide-prose .ichingo-icon { font-size: 1.2rem; }

/* Overview / summary callout */
.ichingo-guide-prose .ichingo-summary {
	background: var(--ichingo-bg-surface-alt); border-inline-start: 4px solid var(--ichingo-color-primary);
	padding: 1.15rem 1.25rem; border-radius: 0 var(--ichingo-radius-md) var(--ichingo-radius-md) 0;
	margin: 1.5rem 0; font-size: .9rem; color: var(--ichingo-text-ink);
}

/* Screenshot gallery grid + single centered screenshot */
.ichingo-guide-prose .ichingo-gallery {
	display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; margin: 1.25rem 0;
}
@media (min-width: 640px) { .ichingo-guide-prose .ichingo-gallery { grid-template-columns: repeat(3, 1fr); } }
.ichingo-guide-prose .ichingo-gallery img {
	width: 100%; height: auto; aspect-ratio: 9/16; object-fit: cover; margin: 0;
	border-radius: var(--ichingo-radius-md); border: 1px solid var(--ichingo-border-subtle); cursor: zoom-in; transition: transform .2s ease;
}
.ichingo-guide-prose .ichingo-gallery img:hover { transform: scale(1.03); box-shadow: var(--ichingo-shadow-md); }
.ichingo-guide-prose .ichingo-single-img {
	max-width: 400px; margin: 1.25rem auto; cursor: zoom-in; transition: transform .2s ease;
}
.ichingo-guide-prose .ichingo-single-img:hover { transform: scale(1.02); }

/* Pro-tip / warning callouts */
.ichingo-guide-prose .ichingo-tip, .ichingo-guide-prose .ichingo-warning {
	padding: 1rem; border-radius: var(--ichingo-radius-md); margin: 1rem 0; font-size: .88rem;
	display: flex; gap: .7rem; align-items: flex-start;
}
.ichingo-guide-prose .ichingo-tip { background: color-mix(in srgb, var(--ichingo-color-success) 12%, transparent); border: 1px solid color-mix(in srgb, var(--ichingo-color-success) 35%, transparent); color: var(--ichingo-text-ink); }
.ichingo-guide-prose .ichingo-warning { background: color-mix(in srgb, var(--ichingo-color-warning) 14%, transparent); border: 1px solid color-mix(in srgb, var(--ichingo-color-warning) 40%, transparent); color: var(--ichingo-text-ink); }

/* Multi-language PDF download buttons */
.ichingo-guide-prose .ichingo-pdfs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .7rem; margin: 1.75rem 0; }
.ichingo-guide-prose .ichingo-pdf-btn {
	display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .8rem 1rem;
	background: var(--ichingo-color-primary); color: #fff; text-decoration: none; border-radius: var(--ichingo-radius-md);
	font-weight: 700; font-size: .86rem; transition: background .2s ease;
}
.ichingo-guide-prose .ichingo-pdf-btn:hover { background: var(--ichingo-color-primary-dark); }

/* Lightbox overlay — markup is injected once per page by guides-lightbox.js,
   authors only ever add class="ichingo-zoomable" (+ optional data-caption)
   to an <img>; no lightbox HTML/CSS/JS needs to be pasted per guide. */
/* Body-scroll lock while the lightbox is open — deliberately just
   `overflow: hidden` on <html>, nothing else. No `position: fixed` /
   `width: 100%` trick on <body> (that pattern is what caused the "large
   blank gap below the footer" bug in an earlier per-guide script: if the
   fixed state is ever left on, scrolling gets clipped to one viewport
   height while the real page — including the footer — is still there
   underneath it). This rule can never get "stuck" in a way that changes
   page layout/height, only whether the page scrolls. */
html.ichingo-lightbox-open { overflow: hidden; }

.ichingo-lightbox {
	display: none; position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 99999;
	justify-content: center; align-items: center; flex-direction: column; padding: 1rem; backdrop-filter: blur(5px);
}
.ichingo-lightbox.is-active { display: flex; }
.ichingo-lightbox img { max-width: 100%; max-height: 85vh; border-radius: var(--ichingo-radius-md); box-shadow: 0 20px 25px -5px rgba(0,0,0,.5); }
.ichingo-lightbox-close {
	position: absolute; top: 1.5rem; inset-inline-end: 1.5rem; background: rgba(255,255,255,.12); color: #fff;
	border: none; width: 44px; height: 44px; border-radius: 50%; font-size: 1.5rem; cursor: pointer;
	display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.ichingo-lightbox-close:hover { background: rgba(255,255,255,.3); }
.ichingo-lightbox-caption { color: #fff; margin-top: 1rem; font-size: .88rem; text-align: center; background: rgba(0,0,0,.5); padding: .5rem 1rem; border-radius: 2rem; }

/* ==========================================================================
   MASTER GUIDE TEMPLATE — the "hero / platforms / summary / step cards /
   gallery / callouts / pdfs" system every guide should use going forward.
   Superset of the earlier simpler set (ichingo-platforms, ichingo-summary,
   ichingo-gallery, ichingo-single-img, ichingo-tip/warning, ichingo-pdfs,
   ichingo-pdf-btn are still supported below for older guides) — this
   richer set adds .ichingo-hero, .ichingo-step, the gallery-item hover/zoom/
   counter treatment, .ichingo-single-img-wrapper / .ichingo-wide-img-wrapper,
   and the .ichingo-callout tip/warning/info variants. Colors come from the
   site's own design tokens (Core's design-tokens.css) instead of hard-coded
   hex values, so a guide pasted with these classes automatically matches
   the site's palette (light AND dark mode) rather than carrying its own
   fixed teal/amber scheme that can drift from the rest of the site.
   As with the section above: NO <style> or <script> tag ever needs to be
   pasted into a guide for this — just use these class names directly.
   ========================================================================== */

/* ---- Hero header ---- */
.ichingo-guide-prose .ichingo-hero {
	background: linear-gradient(145deg, var(--ichingo-color-primary-dark) 0%, var(--ichingo-color-primary) 55%, #0f172a 100%);
	color: #fff; padding: clamp(1.75rem, 5vw, 3rem) clamp(1.5rem, 5vw, 2.5rem);
	border-radius: var(--ichingo-radius-lg); margin: 0 0 1.75rem; position: relative;
	overflow: hidden; box-shadow: var(--ichingo-shadow-md);
}
.ichingo-guide-prose .ichingo-hero-badge {
	display: inline-block; background: rgba(255,255,255,.12); color: var(--ichingo-color-accent-gold);
	font-size: .68rem; font-weight: 800; padding: 6px 16px; border-radius: var(--ichingo-radius-pill);
	letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; border: 1px solid rgba(255,255,255,.15);
	position: relative; z-index: 1;
}
.ichingo-guide-prose .ichingo-hero h1 {
	color: #fff; font-size: clamp(1.5rem, 4vw, 2.2rem); margin: 0 0 .6rem; font-weight: 900;
	line-height: 1.2; position: relative; z-index: 1;
}
.ichingo-guide-prose .ichingo-hero p {
	color: rgba(255,255,255,.85); margin: 0; font-size: clamp(.92rem, 1.5vw, 1.05rem);
	font-weight: 500; position: relative; z-index: 1; max-width: 44em;
}
.ichingo-guide-prose .ichingo-hero-icon {
	position: absolute; inset-inline-end: 2rem; bottom: 1.5rem; font-size: 4rem; opacity: .14; z-index: 0;
}

/* Platform / app download grid: see the shared .ichingo-platforms rule above
   (fixed 4-column grid, 2 columns under 768px) — this later duplicate block
   used to redeclare it with `repeat(auto-fit, minmax(180px,1fr))`, which is
   exactly what caused the "3 buttons in a row + 1 orphaned centered button"
   layout bug: auto-fit only fits as many equal columns as the container
   width allows, so a 4th item wraps alone instead of forming a clean 2x2 or
   1x4 grid. Removed here so the fixed-column rule above is the only one. */

/* ---- Summary callout ---- */
.ichingo-guide-prose .ichingo-summary {
	background: var(--ichingo-bg-surface-alt); border-inline-start: 4px solid var(--ichingo-color-primary);
	padding: 1.15rem 1.4rem; border-radius: 0 var(--ichingo-radius-md) var(--ichingo-radius-md) 0;
	margin: 1.5rem 0; font-size: .9rem; color: var(--ichingo-text-ink);
}

/* ---- Numbered step cards ---- */
.ichingo-guide-prose .ichingo-step {
	background: var(--ichingo-bg-surface); border: 1px solid var(--ichingo-border-subtle);
	border-radius: var(--ichingo-radius-lg); padding: 1.4rem; margin: 1.25rem 0; box-shadow: var(--ichingo-shadow-sm);
}
.ichingo-guide-prose .ichingo-step-header { display: flex; align-items: flex-start; gap: .85rem; margin-bottom: .5rem; }
.ichingo-guide-prose .ichingo-step-num {
	flex-shrink: 0; width: 32px; height: 32px; background: var(--ichingo-color-primary); color: #fff;
	border-radius: var(--ichingo-radius-sm, 8px); display: flex; align-items: center; justify-content: center;
	font-weight: 800; font-size: .85rem;
}
.ichingo-guide-prose .ichingo-step-title { font-size: 1.02rem; font-weight: 700; color: var(--ichingo-text-ink); margin: 0 0 .4rem; }
.ichingo-guide-prose .ichingo-step p:last-child { margin-bottom: 0; }

/* ---- Screenshot gallery with hover-zoom overlay + counter badge ---- */
.ichingo-guide-prose .ichingo-gallery-label {
	font-size: .72rem; font-weight: 700; color: var(--ichingo-text-muted); text-transform: uppercase;
	letter-spacing: .05em; margin: 1.25rem 0 .6rem;
}
.ichingo-guide-prose .ichingo-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; margin: .75rem 0; }
.ichingo-guide-prose .ichingo-gallery.wide { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.ichingo-guide-prose .ichingo-gallery-item {
	position: relative; aspect-ratio: 9/16; border-radius: var(--ichingo-radius-md); overflow: hidden;
	border: 2px solid var(--ichingo-border-subtle); background: var(--ichingo-bg-surface-alt); cursor: zoom-in; transition: all .25s ease;
}
.ichingo-guide-prose .ichingo-gallery-item:hover { transform: translateY(-3px); box-shadow: var(--ichingo-shadow-md); border-color: var(--ichingo-color-primary); }
.ichingo-guide-prose .ichingo-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; border-radius: 0; box-shadow: none; transition: transform .4s ease; }
.ichingo-guide-prose .ichingo-gallery-item:hover img { transform: scale(1.06); }
.ichingo-guide-prose .ichingo-gallery-counter {
	position: absolute; bottom: 8px; inset-inline-end: 8px; background: rgba(0,0,0,.75); color: #fff;
	font-size: .62rem; font-weight: 700; padding: 2px 9px; border-radius: var(--ichingo-radius-pill); pointer-events: none;
}
.ichingo-guide-prose .ichingo-gallery-zoom {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	background: rgba(0,0,0,0); transition: background .25s ease; pointer-events: none;
}
.ichingo-guide-prose .ichingo-gallery-item:hover .ichingo-gallery-zoom { background: rgba(0,0,0,.25); }
.ichingo-guide-prose .ichingo-gallery-zoom-icon { opacity: 0; color: #fff; font-size: 1.6rem; transform: scale(.85); transition: all .25s ease; }
.ichingo-guide-prose .ichingo-gallery-item:hover .ichingo-gallery-zoom-icon { opacity: 1; transform: scale(1); }

/* ---- Single / wide image wrappers (richer version of ichingo-single-img) ---- */
.ichingo-guide-prose .ichingo-single-img-wrapper, .ichingo-guide-prose .ichingo-wide-img-wrapper {
	display: block; margin: 1.25rem auto; border-radius: var(--ichingo-radius-md); overflow: hidden;
	border: 2px solid var(--ichingo-border-subtle); cursor: zoom-in; transition: all .25s ease;
}
.ichingo-guide-prose .ichingo-single-img-wrapper { max-width: 320px; }
.ichingo-guide-prose .ichingo-wide-img-wrapper { max-width: 100%; }
.ichingo-guide-prose .ichingo-single-img-wrapper:hover, .ichingo-guide-prose .ichingo-wide-img-wrapper:hover { transform: scale(1.01); box-shadow: var(--ichingo-shadow-md); border-color: var(--ichingo-color-primary); }
.ichingo-guide-prose .ichingo-single-img-wrapper img, .ichingo-guide-prose .ichingo-wide-img-wrapper img { width: 100%; height: auto; display: block; margin: 0; border-radius: 0; box-shadow: none; }

/* ---- Callouts: tip / warning / info (kept as top-level modifiers so the
   older bare .ichingo-tip / .ichingo-warning from simpler guides keep working) ---- */
.ichingo-guide-prose .ichingo-callout {
	padding: 1rem 1.25rem; border-radius: var(--ichingo-radius-md); margin: 1rem 0; font-size: .88rem;
	display: flex; gap: .65rem; align-items: flex-start; line-height: 1.6;
}
.ichingo-guide-prose .ichingo-callout-icon { flex-shrink: 0; font-size: 1.1rem; }
.ichingo-guide-prose .ichingo-callout strong { display: block; margin-bottom: 2px; }
.ichingo-guide-prose .ichingo-callout.ichingo-tip, .ichingo-guide-prose .ichingo-tip {
	background: color-mix(in srgb, var(--ichingo-color-success) 12%, transparent);
	border: 1px solid color-mix(in srgb, var(--ichingo-color-success) 35%, transparent); color: var(--ichingo-text-ink);
}
.ichingo-guide-prose .ichingo-callout.ichingo-warning, .ichingo-guide-prose .ichingo-warning {
	background: color-mix(in srgb, var(--ichingo-color-warning) 14%, transparent);
	border: 1px solid color-mix(in srgb, var(--ichingo-color-warning) 40%, transparent); color: var(--ichingo-text-ink);
}
.ichingo-guide-prose .ichingo-callout.ichingo-info {
	background: color-mix(in srgb, var(--ichingo-color-indigo) 10%, transparent);
	border: 1px solid color-mix(in srgb, var(--ichingo-color-indigo) 30%, transparent); color: var(--ichingo-text-ink);
}

/* ---- PDF download grid (richer card version of ichingo-pdfs) ---- */
.ichingo-guide-prose .ichingo-pdfs {
	background: color-mix(in srgb, var(--ichingo-color-accent-gold) 10%, var(--ichingo-bg-surface));
	border: 2px solid color-mix(in srgb, var(--ichingo-color-accent-gold) 45%, transparent);
	border-radius: var(--ichingo-radius-lg); padding: 1.5rem; margin: 1.75rem 0 0;
}
.ichingo-guide-prose .ichingo-pdfs-title { font-size: 1.05rem; font-weight: 800; color: var(--ichingo-text-ink); margin: 0 0 .3rem; display: flex; align-items: center; gap: .5rem; }
.ichingo-guide-prose .ichingo-pdfs-sub { font-size: .85rem; color: var(--ichingo-text-muted); margin: 0 0 1.1rem; }
.ichingo-guide-prose .ichingo-pdfs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .6rem; }
.ichingo-guide-prose .ichingo-pdf-btn {
	display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .75rem 1rem;
	background: var(--ichingo-bg-surface); border: 2px solid color-mix(in srgb, var(--ichingo-color-accent-gold) 50%, transparent);
	border-radius: var(--ichingo-radius-md); color: var(--ichingo-text-ink); font-size: .82rem; font-weight: 700;
	text-decoration: none; transition: all .2s ease;
}
.ichingo-guide-prose .ichingo-pdf-btn:hover { border-color: var(--ichingo-color-accent-gold); transform: translateY(-2px); box-shadow: var(--ichingo-shadow-sm); text-decoration: none; }
.ichingo-guide-prose .ichingo-pdf-btn .flag { font-size: 1.15rem; flex-shrink: 0; }
.ichingo-guide-prose .ichingo-pdf-btn .lang { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ichingo-guide-prose .ichingo-pdf-btn .arrow { flex-shrink: 0; }

@media (max-width: 640px) {
	.ichingo-guide-prose .ichingo-hero { padding: 1.5rem 1.25rem; }
	.ichingo-guide-prose .ichingo-platforms { grid-template-columns: repeat(2, 1fr); }
	.ichingo-guide-prose .ichingo-step { padding: 1.1rem; }
	.ichingo-guide-prose .ichingo-pdfs-grid { grid-template-columns: 1fr 1fr; }
}

/* Safety net: nothing inside pasted guide content should ever be able to
   affect page height beyond its own box (decorative hero blobs, hover
   transforms, etc.) — this is what actually protects against a "gap after
   the footer" symptom, regardless of what a future guide's markup contains. */
.ichingo-guide-prose { overflow: hidden; }

/* Related Guides — always auto-generated, never hand-written. */
.ichingo-related-guides { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .9rem; }
.ichingo-related-guides__card { padding: 0; overflow: hidden; text-decoration: none; color: var(--ichingo-text-ink); display: flex; flex-direction: column; }
.ichingo-related-guides__card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.ichingo-related-guides__card span { padding: .7rem .85rem; font-size: .82rem; font-weight: 700; line-height: 1.4; }


@media (max-width: 640px) {
	.ichingo-guide-resources { grid-template-columns: 1fr; }
	.ichingo-guide-resource-box--pdf { flex-direction: column; align-items: flex-start; }
}
