/* /help/ guides in the v2 design (Tom 27/11/2026), with ideas from the Brainy Lemons guides:
   a navy hero with stats, topic chips, a big lead card then a grid, guides by topic, and posts with an "On this page" index.
   Loaded after css/v2/site.css. Smallest text 16px (Tom: nothing under 12pt). */

/* ---------- Hero (uses the region page head: navy, photo mosaic, coloured strip) ---------- */
.helpHero { --zone: var(--signal); }
.helpTitle { max-width: 18ch; }
.helpStats { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 28px; margin-top: 22px; color: var(--onNavy); font-size: 16px; font-weight: 600; }
.helpStats .num { margin-right: 6px; color: #fff; font-family: var(--display); font-size: 34px; font-weight: 700; line-height: 1; }
.helpStats strong { color: #fff; }

/* ---------- Topic chips ---------- */
.topicChips { padding-top: 28px; }
.topicChips ul { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.topicChips a { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 99px; color: var(--navy); font-size: 16px; font-weight: 600; text-decoration: none; transition: border-color .2s, background .2s, color .2s; }
.topicChips a .num { color: var(--ink2); font-weight: 700; }
.topicChips a:hover { border-color: var(--navy); }
.topicChips a[aria-current] { background: var(--navy); border-color: var(--navy); color: #fff; }
.topicChips a[aria-current] .num { color: #c7d2f2; }

/* ---------- Guide cards ---------- */
.guideList { padding-top: clamp(28px, 3.5vw, 44px); padding-bottom: clamp(40px, 5vw, 64px); }
.guideList .sectionHead { margin-bottom: 24px; padding-top: 22px; border-top: 4px solid var(--navy); }
.cardGrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.guideCard { min-width: 0; }
.guideCardLink { display: flex; flex-direction: column; height: 100%; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; transition: transform .4s var(--ease), border-color .3s; }
.guideCardLink:hover { transform: translateY(-4px); border-color: #b9cde0; }
.guideCardPhoto { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper); }
.guideCardPhoto img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.guideCardLink:hover .guideCardPhoto img { transform: scale(1.05); }
.guideCardBody { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 18px 20px 20px; }
.guideCardTitle { color: var(--navy); font-size: 20px; font-weight: 700; line-height: 1.25; }
.guideCardLink:hover .guideCardTitle { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.guideCardText { flex: 1; color: var(--ink2); font-size: 16px; line-height: 1.5; }
.guideCardMeta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; color: var(--ink2); font-size: 16px; }
.guideCardMeta > :first-child { color: var(--navy); font-weight: 700; }
.guideFeature { grid-column: 1 / -1; }
.guideFeature .guideCardLink { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.guideFeature .guideCardPhoto { aspect-ratio: auto; height: 100%; min-height: 340px; }
.guideFeature .guideCardBody { justify-content: center; gap: 12px; padding: 34px 38px; }
.guideFeature .guideCardTitle { font-family: var(--display); font-size: clamp(30px, 3vw, 44px); line-height: 1; text-transform: uppercase; }
.guideFeature .guideCardText { flex: none; font-size: 17px; }
.guideFeature .textLink { margin-top: 6px; }

/* ---------- Guides by topic ---------- */
.topicBoard { padding-bottom: clamp(40px, 5vw, 64px); }
.topicBoard .sectionHead { margin-bottom: 24px; padding-top: 22px; border-top: 4px solid var(--navy); }
.topicGrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.topicBox { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: 0 0 10px 10px; }
.topicBoxHead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-family: var(--display); font-size: 24px; font-weight: 700; line-height: 1.05; text-transform: uppercase; }
.topicBoxHead a { color: var(--navy); text-decoration: none; }
.topicBoxHead a:hover { color: var(--signalInk); }
.topicBoxHead .num { color: var(--signalInk); font-size: 26px; }
.topicBoxList { flex: 1; }
.topicBoxList li { border-bottom: 1px solid var(--line); }
.topicBoxList a { display: block; padding: 9px 0; color: var(--ink); font-size: 16px; line-height: 1.35; text-decoration: none; }
.topicBoxList a:hover { color: var(--navy); text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: 3px; }

.helpCtaButtons { display: flex; flex-wrap: wrap; gap: 12px; }
.helpCtaButtons .btnPrimary, .helpCtaButtons .btnGhost { min-height: 52px; padding: 0 24px; }

/* ---------- A guide (post) ---------- */
.postHero { position: relative; background: var(--navy); color: #fff; }
.postHero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--signal); }
.postHeroInner { padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(48px, 6vw, 72px); }
.postHero.hasFeature .postHeroInner { padding-bottom: clamp(120px, 13vw, 170px); }
.postHero .crumbs, .postHero .crumbs [aria-current] { color: #eef3fa; }
.postTitle { max-width: 24ch; font-family: var(--display); font-size: clamp(40px, 5vw, 72px); font-weight: 700; line-height: .95; letter-spacing: -.01em; text-transform: uppercase; text-wrap: balance; }
.postHero .pageLead { max-width: 62ch; }
.postMeta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin-top: 24px; color: var(--onNavy); font-size: 16px; }
.postAuthor { display: inline-flex; align-items: center; gap: 10px; }
.postAuthor strong, .postMeta time { color: #fff; font-weight: 600; }
.postAvatar { width: 40px; height: 40px; border: 2px solid rgba(255,255,255,.35); border-radius: 50%; }
.postFeature { position: relative; z-index: 1; max-width: calc(1100px + var(--gutter) * 2); margin: calc(clamp(120px, 13vw, 170px) * -1 + 28px) auto 0; }
.postFeature img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; border-radius: 10px; background: var(--paper); box-shadow: 0 30px 60px -30px rgba(24,36,92,.55); }

.postLayout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(40px, 6vw, 88px); align-items: start; padding-top: clamp(36px, 4.5vw, 56px); padding-bottom: clamp(48px, 6vw, 72px); }
.postLayout.noToc { grid-template-columns: minmax(0, 1fr); }
.postAside { position: sticky; top: 96px; }
.postToc ol { max-height: calc(100vh - 170px); overflow-y: auto; }

.prose.postProse { max-width: 74ch; padding-top: 0; border-top: 0; font-size: 18px; line-height: 1.7; }
.postLayout.noToc .postProse { margin: 0 auto; }
.postProse > :first-child { margin-top: 0; }
.postProse h2 { margin: 52px 0 16px; padding-top: 0; border-top: 0; font-size: clamp(28px, 2.6vw, 36px); scroll-margin-top: 96px; }
.postProse h2::before { content: ""; display: block; width: 48px; height: 4px; margin-bottom: 16px; background: var(--signal); border-radius: 2px; }
.postProse h3 { margin: 32px 0 10px; font-size: 22px; line-height: 1.3; }
.postProse h4 { font-size: 19px; }
.postProse p, .postProse ul, .postProse ol { margin: 0 0 18px; }
.postProse ul > li::before { background: var(--signal); }
.postProse img { width: auto; max-width: 100%; height: auto; border: 0 !important; border-radius: 8px; }
.postProse .aligncenter { display: block; margin-right: auto; margin-left: auto; }
.postProse .alignleft { float: left; max-width: 45%; margin: 6px 24px 12px 0; }
.postProse .alignright { float: right; max-width: 45%; margin: 6px 0 12px 24px; }
.postProse .wp-caption { width: auto !important; max-width: 100%; margin: 26px 0; }
.postProse .wp-caption img { display: block; margin: 0 auto; }
.postProse .wp-caption-text, .postProse figcaption { margin-top: 8px; color: var(--ink2); font-size: 16px; line-height: 1.45; text-align: center; }
.postProse blockquote { margin: 28px 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--signal); color: var(--navy); font-size: 20px; font-style: italic; line-height: 1.55; }
.postProse blockquote p:last-child { margin-bottom: 0; }
.postProse hr { margin: 40px 0; border: 0; border-top: 1px solid var(--line); }
.postProse p.intro { color: var(--navy); font-size: 21px; font-weight: 500; line-height: 1.55; }

/* Content pieces the guides use */
.postProse .factsBox { margin: 28px 0; padding: 14px 24px; background: var(--paper); border-left: 4px solid var(--navy); border-radius: 0 8px 8px 0; font-size: 17px; line-height: 1.6; }
.postProse .factsBox > div { padding: 9px 0; border-bottom: 1px solid var(--line); }
.postProse .factsBox > div:last-child { border-bottom: 0; }
.postProse .factsBox strong { color: var(--navy); }
.postProse .locationAndTripAdvisor { display: flex; align-items: center; gap: 12px; max-width: none !important; margin: 10px 0 16px; }
.postProse .locationAndTripAdvisor img { width: auto; height: 30px; border-radius: 0; }
.postProse .theMap { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; margin: 14px 0 8px; border: 0; border-radius: 8px; background: var(--paper); }
.postProse .infographic { display: block; margin: 30px auto; }
.postProse .niceButtonContainer { margin: 26px 0; text-align: center; }
.postProse a.niceButton, .postProse a.hb-book { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; background: var(--signalInk); border-radius: 4px; color: #fff; font-size: 17px; font-weight: 700; text-decoration: none; transition: background .2s; }
.postProse a.niceButton:hover, .postProse a.hb-book:hover { background: var(--signalDeep); }
.postProse a.niceButton i { display: none; }
.postProse details { border-bottom: 1px solid var(--line); }
.postProse details summary { position: relative; padding: 16px 44px 16px 0; color: var(--navy); font-size: 18px; font-weight: 700; line-height: 1.35; list-style: none; cursor: pointer; }
.postProse details summary::-webkit-details-marker { display: none; }
.postProse details summary::after { content: "+"; position: absolute; top: 50%; right: 6px; color: var(--signalInk); font-family: var(--display); font-size: 30px; line-height: 1; transform: translateY(-50%); }
.postProse details[open] summary::after { content: "\2212"; }
.postProse details > :not(summary) { padding-bottom: 6px; }

/* ---------- More guides from the same topic ---------- */
.moreGuides { padding-bottom: clamp(40px, 5vw, 64px); }
.moreGuides .sectionHead { margin-bottom: 20px; padding-top: 22px; border-top: 4px solid var(--navy); }
.miniGrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 36px; }
.guideMini { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.guideMiniPhoto { flex: none; width: 104px; height: 76px; overflow: hidden; background: var(--paper); border-radius: 6px; }
.guideMiniPhoto img { width: 100%; height: 100%; object-fit: cover; }
.guideMiniText { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.guideMiniTitle { color: var(--navy); font-size: 17px; font-weight: 700; line-height: 1.3; }
.guideMiniMeta { color: var(--ink2); font-size: 16px; }
.guideMini:hover .guideMiniTitle { text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: 3px; }

@media (max-width: 1060px) {
	.cardGrid, .topicGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.guideFeature .guideCardLink { grid-template-columns: 1fr; }
	.guideFeature .guideCardPhoto { aspect-ratio: 16 / 9; min-height: 0; }
	.postLayout { grid-template-columns: minmax(0, 1fr); }
	.postAside { display: none; }
	.postProse { margin: 0 auto; }
}
@media (max-width: 760px) {
	.cardGrid, .topicGrid, .miniGrid { grid-template-columns: minmax(0, 1fr); }
	.guideFeature .guideCardBody { padding: 22px 20px 24px; }
	.helpStats { gap: 6px 20px; }
	.helpStats .num { font-size: 28px; }
	.postHero.hasFeature .postHeroInner { padding-bottom: 96px; }
	.postFeature { margin-top: -70px; }
	.postFeature img { border-radius: 8px; }
	.prose.postProse { font-size: 17px; }
	.postProse .alignleft, .postProse .alignright { float: none; max-width: 100%; margin: 16px 0; }
}

/* ---------- Near Beach listing posts (post-template-beach.php): the park boxes from the child sheet in the v2 type and colours ---------- */
.beachWrap { padding-top: clamp(28px, 3.5vw, 44px); padding-bottom: clamp(40px, 5vw, 64px); }
.beachWrap :is(div, span, a, p, h2, h3, h4, select, option, li, strong) { font-family: var(--font); }
.beachWrap h2.foundNum { font-family: var(--display); color: var(--navy); text-transform: uppercase; }
.beachWrap .accommodationBoxHeader, .beachWrap .accommodationBoxHeader a { color: var(--navy); font-weight: 700; }
.beachWrap a.accommodationBoxLink, .beachWrap .priceAndButtonLink, .beachWrap .loadMore { background: var(--signalInk) !important; border-color: var(--signalInk) !important; color: #fff !important; border-radius: 4px; }
.beachWrap a.accommodationBoxLink:hover, .beachWrap .priceAndButtonLink:hover, .beachWrap .loadMore:hover { background: var(--signalDeep) !important; }
.beachWrap .toolBox select { font-size: 16px; }
.beachWrap .articleOutput { max-width: 74ch; margin: 56px auto 0; }
.beachWrap .articleOutput > h2:first-child { margin-top: 0; }
.beachPage .backToTop { display: none !important; }

/* Near Beach boxes: nothing under 16px (the old sheet went down to 8pt), brand colours for the tabs, prices and rules */
.beachWrap :is(.facts, .facts div, .infoText, .ppwText, .rating5, .shortDesc, .shortDescHeader, .shortDescHeader2, .toolBox select, .toolBox div, .visitorRating, .accommFeatures, .accommFeatures div, .accommodationBoxDistance, .accommodationBoxRight, a.accommodationBoxLink, .accommodationBoxSubHeader, .accommodationBoxSubHeader a, .wasPrice) { font-size: 16px !important; }
.beachWrap .shortDesc { color: var(--ink2); line-height: 1.55; }
.beachWrap .shortDescHeader { background: var(--navy) !important; color: #fff !important; }
.beachWrap .shortDescHeader2 { background: var(--signalInk) !important; color: #fff !important; }
.beachWrap .thisPrice { color: var(--navy) !important; font-family: var(--display); }
.beachWrap .wasPrice { color: var(--ink2) !important; }
.beachWrap hr.accommodationBoxHR { height: 0; border: 0; border-top: 1px solid var(--line) !important; background: none !important; }
.beachWrap .accommFeatures div { border-color: var(--line) !important; color: var(--navy); }
.beachWrap .toolBox { background: var(--paper) !important; border-color: var(--line) !important; }
.beachWrap .toolBox div { color: var(--navy) !important; font-weight: 600; }
.beachWrap h2.foundNum span { background: var(--navy) !important; }
