/* Field guide — layout on top of the shared styles.css theme */

.guide-hero { text-align: center; padding: 8rem 1.5rem 2.5rem; }
.guide-hero .section-sub { max-width: 40em; margin-inline: auto; }

.guide-index {
  max-width: 1150px; margin: 0 auto 5rem; padding: 0 1.5rem;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.4rem;
}
.guide-card {
  display: block; text-decoration: none; background: #fff;
  border: 1px solid var(--line); padding: 1.4rem 1.5rem;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.guide-card:hover {
  transform: translateY(-3px); border-color: var(--navy);
  box-shadow: 0 16px 32px -20px rgba(20,37,52,.5);
}
.gc-num { font-family: var(--serif); font-size: 1.6rem; color: var(--slate); opacity: .6; }
.gc-title { display: block; font-family: var(--serif); font-size: 1.4rem; color: var(--navy); font-weight: 600; margin: .2rem 0 .4rem; }
.gc-teaser { display: block; font-size: .88rem; color: var(--ink); }

/* article + side nav */
.guide-layout {
  max-width: 1180px; margin: 0 auto; padding: 7rem 1.5rem 3rem;
  display: grid; grid-template-columns: 240px 1fr; gap: 3rem; align-items: start;
}
.guide-nav { position: sticky; top: 6rem; }
.guide-nav-title {
  font-size: .72rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--slate); margin-bottom: .8rem;
}
.guide-nav ol { list-style: none; counter-reset: g; }
.guide-nav li { counter-increment: g; margin: .1rem 0; }
.guide-nav a {
  display: block; text-decoration: none; color: var(--ink);
  font-size: .84rem; padding: .28rem .4rem; border-left: 2px solid transparent;
}
.guide-nav a:hover { color: var(--navy); border-left-color: var(--navy); background: rgba(29,51,72,.04); }
.guide-nav li::before { content: counter(g, decimal-leading-zero) " "; color: var(--slate); opacity: .5; font-size: .72rem; }

.guide-article { min-width: 0; }
.guide-article h1 {
  font-family: var(--serif); font-weight: 600; color: var(--navy);
  font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.12; margin-bottom: 1.2rem;
}
.guide-article h2 {
  font-family: var(--serif); font-weight: 600; color: var(--navy);
  font-size: 1.6rem; margin: 2.2rem 0 .7rem;
  border-bottom: 1px solid var(--line); padding-bottom: .3rem;
}
.guide-article h3 { font-family: var(--serif); color: var(--navy); font-size: 1.25rem; margin: 1.4rem 0 .4rem; }
.guide-article p { margin: .8rem 0; font-size: 1rem; }
.guide-article ul, .guide-article ol { margin: .8rem 0 .8rem 1.4rem; }
.guide-article li { margin: .3rem 0; }
.guide-article img { margin: 1.4rem 0; border: 1px solid var(--line); }
.guide-article a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }

.guide-article table {
  width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .92rem;
  display: block; overflow-x: auto;
}
.guide-article th, .guide-article td {
  border: 1px solid var(--line); padding: .5rem .7rem; text-align: left; vertical-align: top;
}
.guide-article th { background: var(--cream-deep); color: var(--navy); font-weight: 600; }

/* footnotes */
.guide-article .footnote, .guide-article hr + ol { font-size: .8rem; color: var(--slate); }
.guide-article hr { border: none; border-top: 1px solid var(--line); margin: 2.5rem 0 1rem; }
.footnote-ref { text-decoration: none; }

.guide-pager {
  display: flex; justify-content: space-between; margin-top: 3rem;
  border-top: 1px solid var(--line); padding-top: 1.4rem;
}
.guide-pager a { text-decoration: none; color: var(--navy); font-family: var(--serif); font-size: 1.15rem; }
.guide-pager a:hover { text-decoration: underline; }

@media (max-width: 820px) {
  .guide-layout { grid-template-columns: 1fr; padding-top: 6rem; }
  .guide-nav { position: static; border-bottom: 1px solid var(--line); padding-bottom: 1rem; margin-bottom: 1rem; }
  .guide-nav ol { columns: 2; }
}
