/* Guide-only presentation: shared site and media styles remain authoritative. */
.guide-rendered-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.guide-rendered-content th, .guide-rendered-content td { border: 1px solid var(--line); padding: 0.5rem; text-align: left; }
.guide-detail-page { max-width: 1180px; margin: 0 auto; }
.guide-detail-page .guide-detail-shell { display: block; }
.guide-detail-page .guide-detail-hero { display: block; padding: 32px 0 24px; margin-bottom: 32px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.guide-detail-page .guide-detail-hero h1 { margin: 12px 0; }
.guide-detail-page .guide-detail-hero .hero-summary { margin: 12px 0; }
.guide-detail-page .guide-detail-hero h1 { max-width: 850px; font-size: clamp(2.1rem, 4vw, 3.6rem); font-weight: 500; line-height: 1.12; overflow-wrap: anywhere; }
.guide-detail-page .hero-summary { max-width: 70ch; font-size: .95rem; line-height: 1.65; overflow-wrap: anywhere; }
.guide-detail-page .guide-meta-strip { gap: 10px 18px; font-size: .75rem; color: var(--muted); }
.guide-detail-page .guide-tag-row { margin: 16px 0; }
.guide-reading-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: start; }
.guide-contents { position: sticky; top: 24px; min-width: 0; }
.guide-contents[hidden] { display: none; }
.guide-reading-layout:has(.guide-contents[hidden]) { grid-template-columns: minmax(0, 800px); }
.guide-contents h2 { font: inherit; text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; color: var(--muted); margin: 10px 0 18px; }
#guideContentsLinks { display: grid; gap: 2px; max-height: 70vh; overflow-y: auto; padding: 4px; }
#guideContentsLinks a { display: block; color: var(--muted); font-size: .84rem; line-height: 1.4; min-height: 44px; padding: 12px 10px; border-left: 1px solid var(--line); text-decoration: none; overflow-wrap: anywhere; }
#guideContentsLinks a:hover, #guideContentsLinks a[aria-current] { color: var(--gold); border-left-color: var(--gold); background: color-mix(in srgb, var(--gold) 5%, transparent); }
.guide-contents-mobile { display: none; }
.guide-detail-page .guide-content-panel { min-width: 0; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.guide-detail-page .guide-post { padding: 0 0 30px; margin: 0 0 30px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; min-width: 0; }
.guide-detail-page .guide-post-head { font-size: .75rem; color: var(--muted); gap: 8px 14px; flex-wrap: wrap; padding: 0; margin-bottom: 18px; }
.guide-detail-page .guide-post-text { font-size: .96rem; line-height: 1.8; overflow-wrap: anywhere; min-width: 0; }
.guide-detail-page .guide-post-text h3 { font-size: 1.65rem; font-weight: 500; margin-top: 24px; }
.guide-detail-page .guide-post-text > :first-child { margin-top: 0; }
.guide-detail-page [id^='guide-section-'] { scroll-margin-top: 26px; }
.guide-section-target { display: block; height: 0; }
.guide-detail-page .guide-post-assets { grid-template-columns: minmax(0, 1fr); }
.guide-detail-page .guide-post-image-button img, .guide-detail-page .guide-asset-strip img { width: 100%; height: auto; max-height: none; object-fit: contain; }
.guide-detail-page .guide-post-image-button { width: 100%; max-width: 100%; }
.guide-detail-page .guide-post-video { max-width: 100%; margin: 24px 0; }
.guide-detail-page .guide-post-video video { width: 100%; height: auto; object-fit: contain; }
.guide-detail-page .guide-post-video-load-failed .guide-post-video-frame,
.guide-detail-page .guide-post-video-no-poster .guide-post-video-frame { min-height: 250px; }
.guide-detail-page .guide-post-video .guide-post-video-fallback-link,
.guide-detail-page .guide-post-video .guide-media-source-link { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 6px; }
.guide-detail-page .guide-post-embed, .guide-detail-page .guide-post-video-source-note { overflow-wrap: anywhere; min-width: 0; }
@media (max-width: 767px) {
  .guide-detail-page .guide-detail-hero { padding: 24px 0; margin-bottom: 20px; }
  .guide-reading-layout { display: flex; flex-direction: column; gap: 24px; }
  .guide-reading-layout > * { width: 100%; }
  .guide-contents { position: static; }
  .guide-contents-desktop { display: none; }
  .guide-contents-mobile { display: grid; gap: 8px; font-size: .8rem; color: var(--muted); }
  .guide-detail-page .guide-post-head { display: flex; }
  .guide-detail-page .guide-post-text h3 { font-size: 1.4rem; }
}
.guides-directory { max-width: 1180px; margin: 0 auto; }
.guide-directory-heading { padding: 48px 0 30px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.guide-directory-heading h1 { font-family: var(--font-display, 'Boska', Georgia, serif); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 500; line-height: 1.1; margin: 12px 0; }
.guide-directory-heading > p:last-child { color: var(--muted); margin: 0; }
.guide-directory-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
.guide-category-sidebar h2 { font: inherit; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; margin: 8px 12px 18px; }
.guide-category-sidebar .guide-filter-row { display: grid; gap: 5px; }
.guides-directory .guide-channel-filter { width: 100%; min-height: 46px; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 11px 12px; border: 1px solid transparent; border-radius: 6px; background: transparent; text-align: left; color: var(--muted); }
.guides-directory .guide-channel-filter small { color: inherit; }
.guides-directory .guide-channel-filter[aria-pressed='true'] { color: var(--gold); background: color-mix(in srgb, var(--gold) 8%, transparent); border-color: color-mix(in srgb, var(--gold) 25%, transparent); }
.guide-directory-results, .guide-row-main { min-width: 0; }
.guide-directory-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto 170px; gap: 12px; align-items: end; }
.guide-directory-controls label { display: grid; gap: 7px; min-width: 0; font-size: .78rem; color: var(--muted); }
.guide-directory-controls input, .guide-directory-controls select, .guide-contents-mobile select { width: 100%; min-width: 0; min-height: 46px; border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; background: var(--surface); color: var(--text); font: inherit; }
.guide-directory-controls .btn { min-height: 46px; border-radius: 6px; }
.guide-directory-controls .guide-mobile-category { display: none; }
.guide-results-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 26px 0 14px; }
.guide-results-heading h2 { font: inherit; font-size: .92rem; margin: 0; scroll-margin-top: 24px; }
.guide-results-heading p { color: var(--muted); font-size: .78rem; margin: 0; }
.guides-directory .guide-grid { display: grid; gap: 0; border-top: 1px solid var(--line); }
.guides-directory .guide-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 19px 4px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; transform: none; text-decoration: none; }
.guides-directory .guide-card:hover { background: color-mix(in srgb, var(--gold) 4%, transparent); }
.guides-directory .guide-card-head { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 12px; margin: 0 0 6px; }
.guides-directory .guide-card-head span { color: var(--gold); font-size: .69rem; letter-spacing: .08em; text-transform: uppercase; }
.guides-directory .guide-card-head small { color: var(--muted); font-size: .69rem; font-weight: 400; }
.guides-directory .guide-card h3 { font-family: 'Boska', Georgia, serif; font-size: 1.5rem; font-weight: 500; line-height: 1.25; margin: 0 0 5px; overflow-wrap: anywhere; }
.guides-directory .guide-card p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; font-size: .84rem; line-height: 1.5; margin: 0; color: var(--muted); }
.guide-row-arrow { color: var(--gold); flex: 0 0 auto; font-size: 1.1rem; }
.guide-pagination { display: flex; justify-content: center; align-items: center; gap: 4px; margin: 24px 0 32px; flex-wrap: wrap; }
.guide-pagination button { min-width: 44px; min-height: 44px; background: transparent; border: 1px solid transparent; border-radius: 5px; color: var(--muted); cursor: pointer; font: inherit; }
.guide-pagination button[aria-current='page'] { border-color: var(--gold); color: var(--gold); background: color-mix(in srgb, var(--gold) 8%, transparent); }
.guide-pagination button:disabled { opacity: .35; cursor: default; }
.guide-pagination[hidden], .guides-directory [hidden] { display: none; }
.guides-directory :focus-visible, .guide-detail-page :focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
@media (max-width: 767px) {
  .guide-directory-heading { padding: 24px 0; margin-bottom: 22px; }
  .guide-directory-layout { display: block; }
  .guide-category-sidebar { display: none; }
  .guide-directory-controls { grid-template-columns: minmax(0, 1fr) auto; gap: 12px 8px; }
  .guide-directory-controls .guide-mobile-category { display: grid; }
  .guide-directory-controls .guide-sort-field { grid-column: 2; max-width: 160px; }
  .guides-directory .guide-card { padding: 18px 0; gap: 10px; }
  .guides-directory .guide-card h3 { font-size: 1.35rem; }
  .guide-results-heading { margin-top: 24px; }
  .guide-pagination { gap: 0; }
  .guide-pagination button { min-width: 44px; padding: 4px; }
  .guide-pagination .guide-page-neighbor { display: none; }
  .guide-pagination span { font-size: .7rem; }
}
