/* Bali Guides — public index and article (TASK-077, PAGE-PUB-009/010).
   Builds on explore.css (page-intro, crumbs, chips, ent-card, state-panel, concierge-band, pager). */

/* Index */
.guide-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.guide-card { position: relative; height: 100%; display: flex; flex-direction: column; background: var(--color-surface-clean); border: var(--border-subtle); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow var(--motion-fast) var(--motion-ease, ease), transform var(--motion-fast) var(--motion-ease, ease); }
.guide-card:hover { box-shadow: var(--shadow-subtle); transform: translateY(-2px); }
.guide-card-media { position: relative; aspect-ratio: 16 / 10; background: var(--color-bg-sand); }
.guide-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.guide-card-body { display: flex; flex-direction: column; flex: 1; gap: var(--space-2); padding: var(--space-5); }
.guide-card-meta { margin: 0; font-size: var(--type-caption); letter-spacing: .04em; text-transform: uppercase; color: var(--color-text-secondary); }
.guide-card h3 { font-family: var(--font-editorial); font-weight: 400; font-size: 1.4rem; line-height: 1.22; margin: 0; color: var(--color-brand-navy); }
.guide-card h3 a { color: inherit; text-decoration: none; }
.guide-card h3 a::after { content: ""; position: absolute; inset: 0; }
.guide-card h3 a:focus-visible { outline: none; }
.guide-card:focus-within { outline: var(--focus-ring); outline-offset: 2px; }
.guide-card p.guide-card-excerpt { margin: 0; color: var(--color-text-secondary); font-size: var(--type-body-small); line-height: 1.6; }
.guide-card-foot { margin-top: auto; padding-top: var(--space-2); font-size: var(--type-caption); color: var(--color-text-secondary); }
.chip.is-on { background: var(--color-brand-navy); border-color: var(--color-brand-navy); color: #fff; }
.chip-n { min-width: 22px; padding: 1px 7px; border-radius: var(--radius-pill); background: var(--color-bg-sand); font-size: var(--type-caption); font-weight: 600; color: var(--color-text-secondary); text-align: center; }
.chip.is-on .chip-n { background: rgba(255, 255, 255, 0.18); color: #fff; }

/* The newest Guide, large, on the plain first page. */
.lead-guide { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); margin-bottom: var(--space-12); background: var(--color-surface-clean); border: var(--border-subtle); border-radius: var(--radius-2xl); overflow: hidden; }
.lead-guide-media { position: relative; min-height: 360px; background: var(--color-bg-sand); overflow: hidden; }
.lead-guide-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--motion-image-slow) var(--motion-ease); }
.lead-guide:hover .lead-guide-media img { transform: scale(1.04); }
.lead-guide-body { display: flex; flex-direction: column; justify-content: center; gap: var(--space-3); padding: clamp(24px, 4vw, 48px); }
.lead-guide h2 { font-family: var(--font-editorial); font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.12; margin: 0; color: var(--color-brand-navy); text-wrap: balance; overflow-wrap: anywhere; }
.lead-guide h2 a { color: inherit; text-decoration: none; }
.lead-guide h2 a::after { content: ""; position: absolute; inset: 0; }
.lead-guide h2 a:focus-visible { outline: none; }
.lead-guide:focus-within { outline: var(--focus-ring); outline-offset: 3px; }
.lead-guide-excerpt { margin: 0; font-size: 1.05rem; line-height: 1.6; color: var(--color-text-secondary); }
.lead-guide-go { margin-top: var(--space-2); font-weight: 600; color: var(--color-accent-ochre-deep); }
.guide-list-head { font-family: var(--font-ui); font-size: 1.3rem; font-weight: 600; margin: 0 0 var(--space-6); color: var(--color-text-primary); }
.band-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* Article */
.guide-head { padding: var(--space-12) 0 var(--space-6); background: var(--color-bg-paper); }
.guide-col { width: min(100% - 2 * var(--page-gutter-sm, 20px), var(--container-panel)); margin-inline: auto; }
.guide-head h1 { font-family: var(--font-editorial); font-weight: 400; font-size: clamp(2.1rem, 4.4vw, 3.3rem); line-height: 1.1; margin: 0 0 var(--space-4); color: var(--color-brand-navy); overflow-wrap: anywhere; }
.guide-lead { margin: 0 0 var(--space-4); font-size: 1.15rem; line-height: 1.6; color: var(--color-text-secondary); }
.guide-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; font-size: var(--type-body-small); color: var(--color-text-secondary); }
.guide-meta a { color: inherit; text-underline-offset: 3px; }
.guide-by { display: inline-flex; align-items: center; gap: 8px; }
.guide-by b { font-weight: 600; color: var(--color-text-primary); }
.guide-av { width: 28px; height: 28px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--color-brand-navy); font-size: 0.68rem; font-weight: 600; letter-spacing: .03em; color: #fff; }
.guide-meta { align-items: center; }
.guide-hero { width: min(100% - 2 * var(--page-gutter-sm, 20px), 980px); margin: 0 auto var(--space-10); }
.guide-hero figcaption { margin-top: var(--space-2); font-size: var(--type-body-small); color: var(--color-text-secondary); text-align: center; }
.guide-hero img { width: 100%; height: auto; max-height: 560px; object-fit: cover; border-radius: var(--radius-xl); display: block; }
.guide-body { font-size: 1.08rem; line-height: 1.8; color: var(--color-text-primary); overflow-wrap: anywhere; padding-bottom: var(--space-8); }
.guide-body > :first-child { margin-top: 0; }
.guide-body p, .guide-body ul, .guide-body ol, .guide-body blockquote, .guide-body figure { margin: 0 0 1.25em; }
.guide-body h2 { font-family: var(--font-editorial); font-weight: 400; font-size: 1.85rem; line-height: 1.2; margin: 1.9em 0 .55em; color: var(--color-brand-navy); }
.guide-body h3 { font-family: var(--font-editorial); font-weight: 400; font-size: 1.45rem; line-height: 1.25; margin: 1.7em 0 .5em; color: var(--color-brand-navy); }
.guide-body h4 { font-family: var(--font-ui); font-weight: 600; font-size: 1.05rem; margin: 1.6em 0 .4em; }
.guide-body ul, .guide-body ol { padding-left: 1.4em; }
.guide-body li + li { margin-top: .35em; }
.guide-body li > ul, .guide-body li > ol { margin: .35em 0 0; }
.guide-body blockquote { padding: 4px 0 4px 20px; border-left: 3px solid var(--color-accent-ochre, #C49A4A); font-family: var(--font-editorial); font-size: 1.3rem; line-height: 1.5; color: var(--color-brand-navy); }
.guide-body blockquote p:last-child { margin-bottom: 0; }
.guide-body a { color: var(--color-brand-navy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.guide-body a:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }
.guide-body figure img { max-width: 100%; height: auto; border-radius: var(--radius-md); display: block; }
.guide-body figcaption { margin-top: 8px; font-size: var(--type-body-small); color: var(--color-text-secondary); }
.guide-tags { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0 0 var(--space-10); padding: 0; }

/* At a glance (IMP-ISSUE-020) */
.guide-glance { margin: 0 0 var(--space-8); padding: clamp(18px, 3vw, 26px); background: var(--color-bg-sand); border-radius: var(--radius-xl); }
.guide-glance h2 { font-family: var(--font-ui); font-size: var(--type-caption); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 var(--space-3); color: var(--color-accent-ochre-deep); }
.guide-glance dl { margin: 0; display: grid; gap: var(--space-3); }
.guide-glance dl > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: var(--space-3); }
.guide-glance dt { font-size: var(--type-body-small); font-weight: 600; color: var(--color-brand-navy); }
.guide-glance dd { margin: 0; font-size: var(--type-body-small); line-height: 1.55; color: var(--color-text-primary); overflow-wrap: anywhere; }
@media (max-width: 640px) { .guide-glance dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* The Guide's main action, as a card at the end of the article. */
.guide-cta { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0 0 var(--space-12); background: var(--color-bg-sand); border-radius: var(--radius-xl); overflow: hidden; }
.guide-cta.has-media { grid-template-columns: 200px minmax(0, 1fr); }
.guide-cta-media { position: relative; min-height: 200px; background: var(--color-brand-navy); }
.guide-cta-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.guide-cta-body { padding: clamp(20px, 3vw, 32px); }
.guide-cta-k { font-size: var(--type-caption); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--color-accent-ochre-deep); }
.guide-cta h2 { font-family: var(--font-editorial); font-weight: 400; font-size: 1.7rem; line-height: 1.2; margin: 6px 0 8px; color: var(--color-brand-navy); overflow-wrap: anywhere; }
.guide-cta p { margin: 0 0 var(--space-5); color: var(--color-text-secondary); line-height: 1.6; }
.guide-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); }
.guide-cta-alt { font-weight: 600; color: var(--color-brand-navy); text-underline-offset: 3px; }
.guide-cta-alt:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }

.guide-next { padding: var(--space-12) 0; background: var(--color-bg-sand); }
.guide-next h2 { font-family: var(--font-editorial); font-weight: 400; font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 0 0 var(--space-2); color: var(--color-brand-navy); }
.guide-next > .container-wide > p { margin: 0 0 var(--space-6); color: var(--color-text-secondary); max-width: 60ch; }
.guide-next .chip-row { margin-top: var(--space-6); }
.guide-next .svc-grid + .chip-row { margin-top: var(--space-6); }
.guide-related { padding: var(--space-12) 0 var(--space-16); }
.guide-related-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--space-3); margin-bottom: var(--space-6); }
.guide-related h2 { font-family: var(--font-editorial); font-weight: 400; font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 0; color: var(--color-brand-navy); }
.guide-related-head a { font-weight: 600; color: var(--color-brand-navy); text-underline-offset: 3px; }

@media (max-width: 1000px) { .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 800px) { .lead-guide { grid-template-columns: minmax(0, 1fr); } .lead-guide-media { min-height: 0; aspect-ratio: 16 / 10; } }
@media (max-width: 640px) {
    .guide-cta.has-media { grid-template-columns: minmax(0, 1fr); } .guide-cta-media { min-height: 0; aspect-ratio: 16 / 9; }
    .guide-cta-actions .btn { width: 100%; }
    .band-actions, .band-actions .btn { width: 100%; }
    .guide-grid { grid-template-columns: 1fr; gap: var(--space-5); }
    .guide-head { padding-top: var(--space-8); }
    .guide-body { font-size: 1.02rem; }
    .guide-hero { width: 100%; } .guide-hero img { border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) { .guide-card, .lead-guide-media img { transition: none; } .guide-card:hover, .lead-guide:hover .lead-guide-media img { transform: none; } }

/* Revision 2026-10-14 (prototype 01 public editorial): open, unboxed cards; the lead as photo + text without a frame;
   "More guides" bar with the count, and the topic chips under it. */
.guides-kicker { display: block; margin-bottom: 10px; font-size: .9rem; font-weight: 600; color: var(--color-accent-ochre-deep); }
.lead-guide { background: transparent; border: 0; border-radius: 0; overflow: visible; gap: clamp(24px, 4vw, 48px); align-items: center; padding-bottom: var(--space-10); border-bottom: var(--border-subtle); }
.lead-guide-media { border-radius: 26px; min-height: 380px; }
.lead-guide-body { padding: 0; }
.lead-guide .guide-card-meta, .guide-card-meta { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--color-accent-ochre-deep); }
.lead-guide-go { color: var(--color-brand-navy); text-decoration: underline; text-underline-offset: 4px; }
.guide-list-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; margin-bottom: var(--space-4); }
.guide-list-bar .guide-list-head { margin: 0; font-size: 1.15rem; }
.guide-list-count { margin: 0; font-size: var(--type-caption); color: var(--color-text-secondary); }
.results .chip-row { margin-bottom: var(--space-6); }
.guide-grid { gap: 36px 24px; }
.guide-card { background: transparent; border: 0; border-radius: 0; overflow: visible; }
.guide-card:hover { box-shadow: none; transform: none; }
.guide-card-media { border-radius: 18px; overflow: hidden; }
.guide-card-media img { transition: transform var(--motion-image-slow, .8s) var(--motion-ease, ease); }
.guide-card:hover .guide-card-media img { transform: scale(1.04); }
.guide-card-body { padding: 14px 0 0; gap: 6px; }
.guide-card h3 { font-size: 1.3rem; }
.guide-card:hover h3 a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.guide-card p.guide-card-excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.guide-card:focus-within { outline-offset: 6px; border-radius: 18px; }
@media (max-width: 760px) {
    .lead-guide { grid-template-columns: 1fr; }
    .lead-guide-media { min-height: 0; aspect-ratio: 4 / 3; }
}
