/* Styles for the static book / category / class pages and the FAQ + directory sections on the home page.
   Uses the design tokens from style.css. */

/* ---------- FAQ and directory (home page) ---------- */
.faq-section { padding: 5rem 0 3rem; }
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 0.75rem; }
.faq-item { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.faq-item[open] { border-color: var(--color-primary); box-shadow: var(--shadow-md, 0 8px 22px -8px rgba(17, 22, 43, 0.15)); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.05rem 3rem 1.05rem 1.25rem; position: relative;
  font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: var(--color-navy); min-height: 48px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 1.1rem; top: 50%; translate: 0 -50%;
  font-size: 1.5rem; line-height: 1; color: var(--color-primary);
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-answer { padding: 0 1.25rem 1.2rem; color: var(--color-text-muted); line-height: 1.7; font-size: 0.96rem; }
.faq-answer a, .directory-section a, .sp-main a:not(.btn) { color: var(--color-primary); }

.directory-section { padding: 3rem 0 5rem; background: var(--color-bg-alt); }
.directory-title { font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: var(--color-navy); margin-bottom: 0.5rem; }
.directory-lead { color: var(--color-text-muted); margin-bottom: 2rem; line-height: 1.7; }
.directory-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.75rem 2rem; }
.directory-col h3 { font-size: 1rem; margin-bottom: 0.6rem; }
.directory-col h3 a { color: var(--color-navy); }
.directory-col ul { list-style: none; display: grid; gap: 0.35rem; }
.directory-col li { font-size: 0.9rem; line-height: 1.45; }
.directory-col li span { display: block; font-size: 0.8rem; color: var(--color-text-muted); }

/* ---------- Static pages ---------- */
.seo-page { background: var(--color-bg); }
.sp-header { background: #fff; border-bottom: 1px solid var(--color-border); }
.sp-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 0.6rem; padding-bottom: 0.6rem; }
.sp-logo { height: 56px; width: auto; }
.sp-nav { display: flex; gap: 0.25rem 1.1rem; flex-wrap: wrap; }
.sp-nav a { color: var(--color-text-main); font-weight: 600; font-size: 0.95rem; padding: 0.55rem 0.2rem; min-height: 44px; display: inline-flex; align-items: center; }
.sp-nav a:hover { color: var(--color-primary); }

.sp-main { padding-top: 1.5rem; padding-bottom: 4rem; }
.sp-breadcrumb { font-size: 0.88rem; color: var(--color-text-muted); margin-bottom: 1.5rem; }
.sp-breadcrumb a { text-decoration: underline; }
.sp-main h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--color-navy); letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 0.5rem; }
.sp-main h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); color: var(--color-navy); margin: 0 0 0.9rem; }
.sp-main h3 { font-size: 1.05rem; color: var(--color-navy); margin: 1.2rem 0 0.5rem; }
.sp-eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: 0.5rem; }
.sp-subtitle { font-size: 1.15rem; color: var(--color-text-muted); margin-bottom: 1rem; }
.sp-answer { font-size: 1.05rem; line-height: 1.7; color: var(--color-text-main); margin-bottom: 1.25rem; max-width: 70ch; }
.sp-section { margin-top: 2.5rem; max-width: 900px; }
.sp-section p, .sp-list { line-height: 1.75; color: var(--color-text-muted); }
.sp-list { padding-left: 1.2rem; display: grid; gap: 0.3rem; }
.sp-more { margin-top: 1rem; }

.sp-book { display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: 2.5rem; align-items: start; }
.sp-book-cover { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.25rem; box-shadow: var(--shadow-lg); }
.sp-book-cover img { width: 100%; height: auto; border-radius: var(--radius-sm); display: block; }
.sp-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0.75rem 1.25rem; margin: 1.25rem 0 1.5rem; }
.sp-facts div { border-top: 1px solid var(--color-border); padding-top: 0.5rem; }
.sp-facts dt { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-muted); }
.sp-facts dd { font-weight: 600; color: var(--color-navy); overflow-wrap: anywhere; }
.sp-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.25rem; margin-top: 1rem; }
.sp-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 0.75rem 0.75rem 1rem; display: flex; flex-direction: column; gap: 0.4rem; }
.sp-card-cover { display: block; background: var(--color-bg-alt); border-radius: var(--radius-sm); overflow: hidden; }
.sp-card-cover img { width: 100%; height: auto; display: block; }
.sp-card h3 { font-size: 0.98rem; margin: 0.4rem 0 0; line-height: 1.3; }
.sp-card h3 a { color: var(--color-navy); }
.sp-card-sub { font-size: 0.84rem; color: var(--color-text-muted); line-height: 1.4; }
.sp-card-meta { display: flex; justify-content: space-between; gap: 0.5rem; margin-top: auto; font-size: 0.84rem; color: var(--color-text-muted); }
.sp-card-meta strong { color: var(--color-navy); font-family: var(--font-display); }

.sp-footer { background: var(--color-navy); color: #cfd6ea; padding: 2.5rem 0; font-size: 0.92rem; line-height: 1.7; }
.sp-footer a { color: #fff; text-decoration: underline; }
.sp-address { font-style: normal; margin-bottom: 1rem; }
.sp-footer-links, .sp-copy { margin-top: 0.5rem; }
.sp-copy { font-size: 0.82rem; opacity: 0.8; }

@media (max-width: 760px) {
  .sp-book { grid-template-columns: 1fr; gap: 1.5rem; }
  .sp-book-cover { max-width: 340px; }
  .sp-grid { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
  .faq-section { padding: 3.5rem 0 2rem; }
}
