﻿/* =====================================================================
   Golf Empire: articles and guides on the hub layout   /css/ge-guides.css
   The page: /includes/content/guide-start.php and guide-end.php (Nov 2026).
   Uses the region hub's hero, columns and cards (ge-hubs.css); these are the guide-only parts.
   The boxes inside the text (stat blocks, feature cards, tick lists â€¦) still come from
   ge-info.css through each page's old class ('legacy'), until they are gathered here.
   ===================================================================== */

.gd-wrap .rh-main { gap: 20px; }
.gd-wrap .rh-cols { align-items: stretch; }   /* so "On this page" can stay in view down the whole article */

/* ---- Hero ---- */
.gd-hero h1 { font-size: 1.9em; }
.gd-hero .ge-hero__lead { margin-top: 4px !important; font-size: 1.05em; max-width: 60ch; }
.gd-by { display: flex; align-items: center; gap: 10px; margin: 18px 0 0 !important; font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, .85) !important; }
.gd-by__av { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: #fece20; color: #1f2937;
  display: grid; place-items: center; font-size: 13px; font-weight: 700; letter-spacing: .3px; }
.ge-hero .gd-by a { color: #fff; }
.gd-by__sep { margin: 0 7px; color: rgba(255, 255, 255, .45); }
.gd-hero .rh-hero__btns { margin-top: 20px !important; }

/* ---- The article card ---- */
.gd-card { padding: 28px 32px 30px; }
.gd-text { font-size: 16px; color: #1f2937; }
.gd-text p, .gd-text li { font-size: 16px; line-height: 1.7; }
.gd-text p { margin: 0 0 14px; }
.gd-text p, .gd-text > section > ul, .gd-text > section > ol, .gd-text blockquote, .gd-text .ga-opens { max-width: 46rem; }
.gd-text .intro { font-size: 18px; line-height: 1.6; color: #33485c; }
.gd-text > :first-child, .gd-text > section:first-child > :first-child,
.gd-text > section:first-child > .article-heading:first-child h2 { margin-top: 0; }
.gd-text .article-heading h2 { font-size: 22px; line-height: 1.3; }
.gd-text .article-sub-heading { margin-top: 34px; scroll-margin-top: calc(var(--ge-sticky-h, 120px) + 16px); }
.gd-text .article-sub-heading h3 { font-size: 20px; font-weight: 600; }
.gd-text p a, .gd-text ul:not(.cta-list) li a, .gd-text ol li a { text-decoration: underline; text-decoration-color: rgba(37, 78, 113, .35); text-underline-offset: 3px; }
.gd-text p a:hover, .gd-text ul:not(.cta-list) li a:hover, .gd-text ol li a:hover { text-decoration-color: #254e71; }
.gd-text ol { list-style: decimal; margin: 0 0 16px; padding-left: 1.4em; }
.gd-text ol li { margin: 0 0 8px; padding-left: 4px; }
/* Photos in the text: the full width of the card */
.gd-text figure { margin: 22px 0 24px; }
.gd-text figure img { display: block; width: 100%; max-width: none; height: auto; border-radius: 10px; }
.gd-text figcaption { margin: 8px 0 0; font-size: 13.5px; color: #5b6b7a; }
/* In-content ads (only where ge_ad_rules() switches them on): a light band across the card once filled */
.gd-card .incontent:has(iframe) { margin: 24px -32px; padding: 10px 16px 14px; background: #f6f8fb;
  border-top: 1px solid #e3e8ed; border-bottom: 1px solid #e3e8ed; overflow: hidden; }

/* ---- On this page ---- */
.gd-toc { position: sticky; top: calc(var(--ge-sticky-h, 120px) + 16px); }
.gd-toc h3 { display: flex; align-items: center; gap: 8px; }
.gd-toc h3 i { color: #254e71; }
.gd-toc ol { list-style: none; margin: 0; padding: 0; max-height: calc(100vh - var(--ge-sticky-h, 120px) - 120px); overflow-y: auto; }
.gd-toc li a { display: block; padding: 7px 0 7px 12px; border-left: 2px solid #e3e8ed; font-size: 14px; font-weight: 600; line-height: 1.35;
  color: #33485c; text-decoration: none; }
.gd-toc li a:hover { color: #254e71; border-left-color: #b0cde5; text-decoration: underline; }
.gd-toc li a.is-on { color: #254e71; border-left-color: #254e71; }
/* Phones: the same list, folded, at the top of the article */
.gd-toc-m { display: none; margin: 0 0 18px; border: 1px solid #e3e8ed; border-radius: 10px; background: #f6f8fb; }
.gd-toc-m summary { display: flex; align-items: center; gap: 8px; padding: 11px 14px; font-weight: 700; color: #254e71; cursor: pointer; list-style: none; }
.gd-toc-m summary::-webkit-details-marker { display: none; }
.gd-toc-m summary::after { content: "\25BE"; margin-left: auto; font-size: 12px; transition: transform .15s ease; }
.gd-toc-m[open] summary::after { transform: rotate(180deg); }
.gd-toc-m ol { list-style: none; margin: 0; padding: 0 14px 8px; }
.gd-toc-m li a { display: block; padding: 8px 0; border-top: 1px solid #e3e8ed; font-size: 14.5px; font-weight: 600; color: #254e71; text-decoration: none; }

/* ---- Keep reading ---- */
.gd-related .gh-grid { margin: 0; }
.gd-related .gh-card__img { aspect-ratio: 16 / 8; }
.gd-related .gh-card__title { font-size: 15.5px; color: #254e71; line-height: 1.3; }
.gd-related .gh-card__meta { font-size: 13.5px; line-height: 1.45; color: #5b6b7a; }
.gd-label { display: block; margin: 0 0 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6b7280; }
.gd-also { margin: 16px 0 0 !important; font-size: 14px; line-height: 1.7; color: #5b6b7a; }
.gd-also > span:first-child { margin-right: 6px; font-weight: 600; color: #33485c; }
.gd-also a { font-weight: 600; color: #254e71; text-decoration: none; }
.gd-also a:hover { text-decoration: underline; }
.gd-also__sep { margin: 0 6px; color: #b5c0ca; }

/* ---- Narrower screens ---- */
@media (max-width: 900px) {
  .gd-toc { display: none; }
  .gd-toc-m { display: block; }
}
@media (max-width: 640px) {
  .gd-hero h1 { font-size: 1.5em; }
  .gd-by { margin-top: 14px !important; font-size: 13px; }
  .gd-card { padding: 18px 16px 20px; }
  .gd-card .incontent:has(iframe) { margin-left: -16px; margin-right: -16px; padding: 8px 8px 12px; }
  .gd-text p, .gd-text li { font-size: 15.5px; }
  .gd-text .intro { font-size: 16.5px; }
  .gd-text .article-heading h2 { font-size: 19px; }
  .gd-text .article-sub-heading h3 { font-size: 18px; }
  .gd-wrap .rh-main { gap: 14px; }
}

/* The photo beside the hero takes the hero's height, whatever the photo's own shape
   (so a taller photo, like the Lake District's, doesn't push the hero text down) */
.gd-wrap .rh-top .gd-photo { position: relative; overflow: hidden; border-radius: 12px; }
.gd-wrap .rh-top .gd-photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
@media (max-width: 900px) { .gd-wrap .rh-top .gd-photo { aspect-ratio: 708 / 349; } }

/* ---- Closed golf courses: one light card per course, and a box to find one ---- */
.gd-closed { margin: 0 0 12px; padding: 14px 18px; background: #f6f8fb; border: 1px solid #e3e8ed; border-radius: 10px; }
.gd-closed[hidden] { display: none; }
.gd-closed p { max-width: none; margin: 0; }
.gd-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 22px 0 16px; padding: 12px 14px;
  background: #fff; border: 1px solid #d8e2ec; border-radius: 10px; position: sticky; top: calc(var(--ge-sticky-h, 120px) + 8px); z-index: 3; }
.gd-filter label { font-size: 14px; font-weight: 700; color: #254e71; }
.gd-filter input { flex: 1 1 220px; min-width: 0; padding: 9px 12px; font: inherit; font-size: 15px; border: 1px solid #cfd8e1; border-radius: 8px; }
.gd-filter__n { font-size: 13.5px; font-weight: 600; color: #5b6b7a; }

/* ---- Hero figures (the statistics page, closed courses) ---- */
.gd-hero .gd-stats { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }

/* A short note at the top of an article (about the author, the sources) */
.gd-note { margin: 0 0 18px !important; padding: 12px 14px; background: #f6f8fb; border: 1px solid #e3e8ed; border-radius: 10px; font-size: 14.5px !important; color: #33485c; max-width: none !important; }

/* ---- Articles & Guides index (/articles/articles.htm) ---- */
.ag-feat { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: #fff; border: 1px solid #e9edf0; border-radius: 12px;
  color: inherit; text-decoration: none !important; transition: box-shadow .15s ease, border-color .15s ease; }
.ag-feat:hover { border-color: #b0cde5; box-shadow: 0 8px 20px rgba(0, 0, 0, .08); }
.ag-feat img { display: block; width: 100%; max-width: none; height: auto; aspect-ratio: 708 / 349; object-fit: cover; border-radius: 0; }
.ag-feat__body { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px 16px; }
.ag-feat__title { font-size: 20px; font-weight: 700; line-height: 1.25; color: #254e71; }
.ag-feat__text { font-size: 14px; line-height: 1.5; color: #374151; }
.ag-feat__cta { margin-top: 6px; font-size: 14px; font-weight: 700; color: #254e71; }
.ag-feat:hover .ag-feat__cta { text-decoration: underline; }
.ag-intro { margin: -2px 0 14px !important; font-size: 14.5px; line-height: 1.5; color: #5b6b7a; max-width: 70ch; }
.ag-wrap .art-subhead { margin: 20px 0 10px; }
.ag-wrap .art-subhead:first-of-type { margin-top: 6px; }
.ag-wrap [id] { scroll-margin-top: calc(var(--ge-sticky-h, 120px) + 16px); }

/* ---- The information pages' sidebar (About Golf Empire) ---- */
.gd-info .gd-info__h { margin: 12px 0 2px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8a97a3; }
.gd-info h3 + .gd-info__h { margin-top: 4px; }
.gd-info .cs-list a, .gd-info__on { padding: 7px 2px; font-size: 14px; }
.gd-info__on { display: block; font-weight: 700; color: #1f2937; }

/* Press: the boilerplate boxes are several paragraphs of copy, not a quote with its author under it,
   so every paragraph keeps the same type (ge-info.css shrinks the 2nd onwards for testimonials) */
.gd-text.press-page blockquote:not(.pull-quote) p + p { display: block; margin-top: 10px; font-size: 16px; color: inherit; }
.gd-text.press-page blockquote:not(.pull-quote) strong { display: inline; margin: 0; font-size: inherit; color: inherit; }
