/* =====================================================================
   Nautical Breeze — Guides
   Article + hub layout. Builds on the shared design tokens in styles.css
   (colors, fonts, .container, .btn, .display, .eyebrow, .site-header).
   ===================================================================== */

.g-page {
  padding-top: var(--header-h);
}
.g-wrap {
  padding-top: 36px;
  padding-bottom: 80px;
}

/* ---------- Breadcrumb ---------- */
.g-crumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-mute);
  margin-bottom: 28px;
}
.g-crumb a { color: var(--ink-mute); }
.g-crumb a:hover { color: var(--coral); }
.g-crumb__sep { color: var(--line); }
.g-crumb [aria-current="page"] { color: var(--ink-soft); font-weight: 600; }

/* ---------- Article head ---------- */
.g-head { max-width: 820px; margin-bottom: 28px; }
.g-head__title { margin: 0 0 18px; }
.g-head__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-mute);
  margin: 0;
}
.g-dot { color: var(--line); }

.g-herofig {
  margin: 0 0 8px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-alt);
}
.g-herofig img {
  width: 100%;
  height: clamp(240px, 42vw, 520px);
  object-fit: cover;
}

/* ---------- Two-column layout ---------- */
.g-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  margin-top: 44px;
  align-items: start;
}
.g-main { max-width: 740px; }

/* ---------- Prose ---------- */
.g-intro {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 1.9vw, 25px);
  line-height: 1.5;
  color: var(--ink);
  max-width: none;
  margin: 0 0 8px;
}
.g-section { margin-top: 40px; }
.g-section:first-of-type { margin-top: 28px; }
.g-h2 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.15;
  margin: 0 0 16px;
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.g-h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(19px, 1.7vw, 23px);
  margin: 28px 0 10px;
}
.g-main p {
  font-size: 18px;
  line-height: 1.72;
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.g-main p a,
.g-list a {
  color: var(--coral-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1.5px;
  text-decoration-color: color-mix(in srgb, var(--coral) 45%, transparent);
}
.g-main p a:hover,
.g-list a:hover { text-decoration-color: var(--coral); }

.g-list {
  margin: 0 0 20px;
  padding-left: 22px;
}
.g-list li {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 10px;
  padding-left: 6px;
}
.g-list--num { list-style: decimal; }
.g-list li::marker { color: var(--coral); font-weight: 700; }

/* ---------- Callout ---------- */
.g-callout {
  margin: 26px 0;
  padding: 20px 24px;
  background: var(--bg-alt);
  border-left: 4px solid var(--mint-deep);
  border-radius: var(--radius);
}
.g-callout__t {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12px !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint-deep);
  margin: 0 0 6px !important;
}
.g-callout__b { margin: 0 !important; color: var(--ink) !important; }

/* ---------- Figure ---------- */
.g-figure { margin: 28px 0; }
.g-figure img {
  width: 100%;
  border-radius: var(--radius-lg);
  height: clamp(220px, 34vw, 420px);
  object-fit: cover;
}
.g-figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-mute);
  font-style: italic;
}

/* ---------- Quote ---------- */
.g-quote {
  margin: 30px 0;
  padding: 0 0 0 22px;
  border-left: 3px solid var(--coral);
}
.g-quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2vw, 26px) !important;
  line-height: 1.4 !important;
  color: var(--ink) !important;
  margin: 0 0 8px !important;
}
.g-quote cite { font-size: 14px; color: var(--ink-mute); font-style: normal; }

/* ---------- FAQ ---------- */
.g-faq__item {
  border-bottom: 1px solid var(--line);
}
.g-faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 40px 18px 0;
  position: relative;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  color: var(--ink);
}
.g-faq__item summary::-webkit-details-marker { display: none; }
.g-faq__item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 26px;
  line-height: 1;
  color: var(--coral);
  transition: transform .2s ease;
}
.g-faq__item[open] summary::after { content: "−"; }
.g-faq__a { padding: 0 0 18px; }
.g-faq__a p { margin: 0 !important; }

/* ---------- Author ---------- */
.g-author {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin: 48px 0 0;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.g-author__img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}
.g-author__eyebrow {
  font-size: 11px !important;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
  margin: 0 0 4px !important;
}
.g-author__name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px !important;
  color: var(--ink) !important;
  margin: 0 !important;
}
.g-author__role { font-size: 14px !important; color: var(--ink-mute) !important; margin: 2px 0 10px !important; }
.g-author__bio { font-size: 15px !important; line-height: 1.6 !important; margin: 0 !important; }

/* ---------- CTA band ---------- */
.g-cta {
  margin: 48px 0 0;
  background: var(--ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.g-cta__inner { padding: 40px 36px; text-align: center; }
.g-cta__h {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 34px);
  color: #fff;
  margin: 0 0 12px;
}
.g-cta__p {
  color: #c7d0d8 !important;
  font-size: 17px !important;
  max-width: 56ch;
  margin: 0 auto 22px !important;
}
.g-cta__fine { color: #7d8a96 !important; font-size: 13px !important; margin: 16px 0 0 !important; }

/* ---------- Sidebar ---------- */
.g-side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 20px; }
.g-toc {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  background: #fff;
}
.g-toc__h {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 12px;
}
.g-toc ul { list-style: none; margin: 0; padding: 0; }
.g-toc li { margin: 0 0 2px; }
.g-toc a {
  display: block;
  padding: 7px 10px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink-soft);
  border-left: 2px solid transparent;
}
.g-toc a:hover { background: var(--bg-alt); color: var(--ink); }
.g-toc a.is-active {
  color: var(--coral-deep);
  font-weight: 600;
  border-left-color: var(--coral);
  background: var(--bg-alt);
}

.g-book {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  background: linear-gradient(180deg, var(--peach) 0%, #fff 100%);
}
.g-book__h { font-family: var(--serif); font-weight: 600; font-size: 19px; margin: 0 0 6px; }
.g-book__p { font-size: 14px; color: var(--ink-soft); margin: 0 0 14px; }
.g-book__fine { font-size: 12px; color: var(--ink-mute); margin: 10px 0 0; text-align: center; }

/* ---------- Related ---------- */
.g-related { margin-top: 72px; }
.g-related .g-h2 { margin-bottom: 24px; }

/* ---------- Cards / grid ---------- */
.g-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.g-grid--hub { margin-top: 40px; }
.g-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.g-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(20,20,20,.08); }
.g-card__media { display: block; aspect-ratio: 16 / 10; background: var(--bg-alt); overflow: hidden; }
.g-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.g-card:hover .g-card__media img { transform: scale(1.04); }
.g-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.g-card__cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral);
  margin: 0 0 8px;
}
.g-card__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.2;
  margin: 0 0 10px;
}
.g-card__title a:hover { color: var(--coral-deep); }
.g-card__excerpt { font-size: 15px; line-height: 1.55; color: var(--ink-soft); margin: 0 0 16px; }
.g-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: auto 0 0;
  font-size: 13px;
  color: var(--ink-mute);
}
.g-card__link { color: var(--coral-deep); font-weight: 600; }
.g-card__link:hover { color: var(--coral); }

/* ---------- Hub head + feature ---------- */
.g-hubhead { max-width: 760px; margin-bottom: 8px; }
.g-hubhead__title { margin: 0 0 18px; }
.g-hubhead__intro { max-width: 64ch; }

.g-feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  margin-top: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease;
}
.g-feature:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(20,20,20,.10); }
.g-feature__media { overflow: hidden; min-height: 280px; }
.g-feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.g-feature:hover .g-feature__media img { transform: scale(1.04); }
.g-feature__body { padding: clamp(28px, 4vw, 48px); align-self: center; }
.g-feature__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.12;
  margin: 6px 0 14px;
}
.g-feature__excerpt { font-size: 17px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 18px; max-width: 48ch; }
.g-feature__link { font-weight: 700; color: var(--coral-deep); letter-spacing: 0.02em; }

/* ---------- Footer extras ---------- */
.g-foot__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.g-foot__nav { display: flex; flex-wrap: wrap; gap: 22px; }
.g-foot__nav a { color: #b9c2cb; font-size: 14px; font-weight: 500; }
.g-foot__nav a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .g-layout { grid-template-columns: 1fr; gap: 36px; }
  .g-side { position: static; order: 2; }
  .g-toc { display: none; }
  .g-grid { grid-template-columns: repeat(2, 1fr); }
  .g-feature { grid-template-columns: 1fr; }
  .g-feature__media { min-height: 220px; max-height: 320px; }
}
@media (max-width: 600px) {
  .g-grid { grid-template-columns: 1fr; }
  .g-author { flex-direction: column; }
  .g-main p, .g-list li { font-size: 17px; }
  .g-cta__inner { padding: 32px 22px; }
}
