/* Agent D: Guides hub and article page styling refinements
   Improves presentation of /guides/, individual guides, and legal pages (privacy, complaints, accessibility, website-terms).
   No content changes; CSS-only enhancements to readability and visual hierarchy.
*/

/* Guides hub improvements */
.guides-intro {
  padding: 2rem 0;
}

.g-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  padding: 1.8rem;
  color: inherit;
  text-decoration: none;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}

.g-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-deep);
  box-shadow: 0 8px 18px rgba(20, 38, 74, .12);
}

.g-card .h3 {
  font-size: 1.2rem;
  margin-bottom: .5rem;
  line-height: 1.25;
}

.g-card .small {
  flex-grow: 1;
  line-height: 1.6;
  margin-bottom: .8rem;
}

.g-card .more {
  margin-top: auto;
  padding-top: 1rem;
  font-weight: 600;
  color: var(--gold-deep);
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.g-card .more::after {
  content: "→";
  opacity: .6;
  transition: opacity .2s;
}

.g-card:hover .more::after {
  opacity: 1;
}

/* Article page layout */
.article-head {
  padding: 3.5rem 0 2rem;
}

.article-head .kicker {
  margin-bottom: 1rem;
}

.article-head h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.1;
  margin-bottom: .8rem;
}

.article-head .updated {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 400;
}

/* Article body styling */
.article {
  padding-bottom: 3.5rem;
}

.article h2 {
  font-size: clamp(1.4rem, 3vw, 1.7rem);
  margin-top: 2.8rem;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.article h2:first-child {
  margin-top: 0;
}

.article h3 {
  font-size: 1.2rem;
  margin-top: 1.8rem;
  margin-bottom: .8rem;
}

.article > .wrap.narrow {
  max-width: 70ch;
}

.article p {
  margin-bottom: 1.1rem;
  line-height: 1.75;
}

.article img {
  border-radius: var(--rad);
  border: 1px solid var(--line);
  margin: 2rem 0;
  max-width: 100%;
  height: auto;
  display: block;
}

/* Tables in articles */
.article table {
  margin: 1.8rem 0;
  font-size: .95rem;
}

.article table th,
.article table td {
  padding: .8rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.article table th {
  background: var(--cream-2);
  font-weight: 600;
  color: var(--navy);
}

.article table tr:last-child td {
  border-bottom: none;
}

.article .price-table-wrap {
  margin: 1.8rem 0;
  overflow-x: auto;
  border-radius: var(--rad);
  border: 1px solid var(--line);
}

.article .price-table {
  width: 100%;
  min-width: 320px;
}

.article .num {
  text-align: right;
  font-family: var(--sans);
  font-size: .9rem;
}

.article .member {
  font-weight: 600;
  color: var(--navy);
}

/* FAQ styling in articles */
.article .faq {
  margin: 1.5rem 0;
  border: 1px solid var(--line);
  border-radius: var(--rad);
  overflow: hidden;
}

.article .faq summary {
  padding: 1.1rem;
  background: var(--cream-2);
  cursor: pointer;
  font-weight: 500;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: background .2s;
}

.article .faq summary:hover {
  background: var(--gold-pale);
}

.article .faq[open] > summary {
  background: var(--gold-pale);
  border-bottom: 1px solid var(--line);
}

.article .faq .a {
  padding: 1.2rem;
  background: var(--paper);
  line-height: 1.7;
}

.article .faq .a p {
  margin-bottom: .8rem;
}

.article .faq .a p:last-child {
  margin-bottom: 0;
}

/* Notice blocks in articles */
.article .notice {
  padding: 1.2rem;
  background: var(--cream-2);
  border-left: 3px solid var(--gold);
  border-radius: var(--rad);
  margin: 1.8rem 0;
}

.article .notice.warm {
  background: #FFF8F0;
  border-left-color: var(--gold-soft);
}

.article .notice p {
  margin-bottom: 0.6rem;
  line-height: 1.6;
}

.article .notice p:last-child {
  margin-bottom: 0;
}

/* Checklist styling */
.article .checklist {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0;
}

.article .checklist li {
  padding: .6rem 0 .6rem 1.8rem;
  position: relative;
  margin-bottom: .4rem;
  line-height: 1.6;
}

.article .checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold-deep);
  font-weight: bold;
}

/* Breadcrumbs */
.crumbs {
  padding-top: 1rem;
  padding-bottom: 0;
  font-size: .85rem;
  color: var(--muted);
}

.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  padding: 0;
  margin: 0;
}

.crumbs li {
  margin: 0;
  display: flex;
  align-items: center;
}


.crumbs a {
  color: var(--navy);
  text-decoration: none;
  transition: color .2s;
}

.crumbs a:visited {
  color: var(--navy);
}

.crumbs a:hover {
  color: var(--gold-deep);
  text-decoration: underline;
}

.crumbs [aria-current="page"] {
  color: var(--navy);
  font-weight: 500;
}

/* Related guides / CTA sections in articles */
.article .btn-row {
  margin-top: 2rem;
  gap: 1rem;
}

.article .notice + .btn-row {
  margin-top: 1.5rem;
}

/* Legal pages (privacy, complaints, accessibility, website-terms) */
.article-head {
  border-bottom: 1px solid var(--line);
}

.article h2 {
  color: var(--navy);
}

.article h2 em {
  color: var(--gold-deep);
  font-style: italic;
  font-weight: 400;
}

/* Spacing utilities for article content */
.article .mt2 {
  margin-top: 1.4rem;
}

.article .mt3 {
  margin-top: 1.8rem;
}

.article .mb0 {
  margin-bottom: 0;
}

.article .mb1 {
  margin-bottom: .6rem;
}

.article .mt0 {
  margin-top: 0;
}

/* Gap top for sections with many cards */
.gap-top {
  margin-top: 1.5rem !important;
}

/* Responsive adjustments for mobile */
@media (max-width: 719px) {
  .article-head {
    padding: 2.5rem 0 1.5rem;
  }

  .article-head h1 {
    font-size: 1.5rem;
  }

  .article h2 {
    font-size: 1.3rem;
    margin-top: 2rem;
  }

  .article h3 {
    font-size: 1.1rem;
    margin-top: 1.4rem;
  }

  .article table {
    font-size: .9rem;
  }

  .article table th,
  .article table td {
    padding: .6rem .4rem;
  }

  .article img {
    margin: 1.4rem 0;
  }

  .g-card {
    padding: 1.4rem;
  }

  .g-card .h3 {
    font-size: 1.05rem;
  }

  .g-card .small {
    font-size: .9rem;
    margin-bottom: .6rem;
  }

  .crumbs {
    font-size: .8rem;
  }

  .article .btn-row {
    flex-direction: column;
  }

  .article .btn-row .btn {
    width: 100%;
  }
}

/* Membership card, shared with treatment pages */
.member-card{display:grid;gap:2.4rem;background:var(--paper);border:1px solid var(--line);border-top:3px solid var(--gold);border-radius:var(--rad);padding:2.4rem 1.8rem}
@media (min-width:900px){.member-card{grid-template-columns:1fr 1fr;gap:4rem;padding:3rem 3.2rem;align-items:center}}
.member-card h2{margin-bottom:.5em}
.member-rows{list-style:none;margin:0;padding:0;border:1px solid var(--line);border-radius:var(--rad);overflow:hidden}
.member-rows li{display:grid;grid-template-columns:auto 1fr;gap:.15rem 1rem;padding:1rem 1.2rem;margin:0;border-bottom:1px solid var(--line);align-items:baseline}
.member-rows li:last-child{border-bottom:0}
.member-rows li.feat{background:var(--gold-pale)}
.member-rows .nm{font-family:var(--serif);font-weight:500;color:var(--navy);font-size:1.1rem}
.member-rows .pr{font-family:var(--serif);color:var(--navy);text-align:right;white-space:nowrap}
.member-rows .ds{grid-column:1/-1;color:var(--muted);font-size:.9rem}

/* Long-form editorial pages: a confident title and comfortable reading measure. */
.article-head{padding:4rem 0 3rem;border-bottom:0}
.article-head .wrap.narrow,.article>.wrap.narrow{max-width:840px}
.article-head h1{font-size:clamp(2.5rem,4vw,3.6rem);line-height:1.12;letter-spacing:-.035em;margin-bottom:1.5rem;font-weight:400}
.article-head .updated{font-size:.75rem;margin-bottom:0;padding-top:1.5rem;border-top:1px solid var(--line)}
.article{padding-bottom:5rem}
.article .lead{font-size:1.2rem;line-height:1.8;color:var(--ink);margin-bottom:2.5rem}
.article h2{font-size:2rem;line-height:1.2;margin-top:3.5rem;margin-bottom:1.25rem;color:var(--ink)}
.article h3{font-size:1.5rem}
.article p{line-height:1.85;margin-bottom:1.4rem}
.article img{border:0;aspect-ratio:16/10;object-fit:cover;margin:3rem 0}
.article .price-table{min-width:620px}
.article table th{font-size:.68rem;letter-spacing:.06em}
.article .notice{border-left-width:1px;padding:1.5rem}
.article .faq{margin:0;border:0;border-bottom:1px solid var(--line);background:transparent}
.article .faq:first-of-type{border-top:1px solid var(--line)}
.article .faq summary{padding:1.4rem 0;background:transparent;font-weight:400}
.article .faq[open]>summary{background:transparent;border:0}
.article .faq .a{padding:0 0 1.5rem;background:transparent}
.g-card{background:transparent;border:0;border-top:1px solid var(--gold);padding:2rem 0}
.g-card:hover{transform:none;box-shadow:none}
.g-card .h3{font-size:1.5rem}
.g-card .more{font-size:.7rem}
@media(max-width:719px){
 .article-head{padding:2.75rem 0 2rem}
 .article-head h1{font-size:2.5rem}
 .article .lead{font-size:1.08rem;line-height:1.75}
 .article h2{font-size:1.8rem;margin-top:2.5rem}
 .article h3{font-size:1.35rem}
 .article img{margin:2rem 0;aspect-ratio:4/3}
 .article .price-table td,.article .price-table th{padding:.8rem 1rem}
}
