/*!
 * CheckrideReady Marketing/Doc Layer
 * ==================================
 * Shared partial for the checkride-prep / ACS guide article pages
 * (private-pilot-checkride-prep.html, instrument-rating-checkride-prep.html,
 * commercial-pilot-checkride-prep.html, faa-acs-guide.html).
 *
 * Requires tokens.css, base.css and components.css loaded first (see the
 * README in this folder for the full load order). This file adds:
 *   1. the mobile nav panel behavior for `.site-nav-toggle` / `.site-nav-links`
 *      (components.css defines their base/desktop styles but not the
 *      open/closed mobile panel -- that lives here since it's specific to
 *      how these four pages wire up their toggle)
 *   2. the article/doc content styles (breadcrumb, answer box, headings,
 *      FAQ accordion, cross-link cards, code callout, CTA box)
 *
 * These four pages previously carried four byte-identical copies of a
 * 60-line <style> block that redefined :root tokens already owned by
 * tokens.css. This file replaces all four copies with one.
 */


/* =========================================================================
   PAGE SHELL
   ========================================================================= */
.doc-main {
  padding-top: calc(64px + var(--space-10));
  padding-bottom: var(--space-20);
}

@media (max-width: 767.98px) {
  .doc-main {
    padding-top: calc(64px + var(--space-6));
    padding-bottom: var(--space-16);
  }
}

/* =========================================================================
   FOOTER WORDMARK
   components.css's site-footer covers the row/links/copy layout but not a
   class for the small wordmark that sits alongside them.
   ========================================================================= */
.site-footer-logo {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--amber);
  letter-spacing: 0.15em;
}

/* =========================================================================
   BREADCRUMB
   ========================================================================= */
.breadcrumb {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: var(--space-6);
}

.breadcrumb a {
  color: var(--text-dim);
}

.breadcrumb a:hover {
  color: var(--amber);
}

.breadcrumb [aria-current='page'] {
  color: var(--text-dim);
}

/* =========================================================================
   ARTICLE HEADER
   ========================================================================= */
.doc-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.doc-title {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-5);
}

.answer-box {
  max-width: none;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-10);
  font-size: var(--text-md);
  line-height: 1.75;
  color: var(--text-bright);
}

/* =========================================================================
   ARTICLE BODY
   ========================================================================= */
.doc-body h2 {
  font-size: var(--text-2xl);
  margin: var(--space-12) 0 var(--space-4);
}

.doc-body h3 {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--amber);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: var(--space-8) 0 var(--space-3);
}

.doc-body p {
  max-width: none;
  font-size: var(--text-md);
  color: var(--text);
  line-height: 1.8;
  margin-bottom: var(--space-4);
}

.doc-body ul,
.doc-body ol {
  padding-left: var(--space-6);
  margin-bottom: var(--space-5);
}

.doc-body ul {
  list-style: disc;
}

.doc-body ol {
  list-style: decimal;
}

.doc-body li {
  font-size: var(--text-md);
  color: var(--text);
  line-height: 1.8;
  margin-bottom: var(--space-2);
}

.doc-body a {
  color: var(--amber);
  text-decoration: none;
}

.doc-body a:hover {
  text-decoration: underline;
}

.doc-emphasis {
  color: var(--text-bright);
}

/* a code/ID callout, e.g. an ACS task code -- monospace, tinted panel */
.acs-code {
  display: inline-block;
  font-family: var(--font-mono);
  color: var(--amber-bright);
  background: var(--surface-2);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  margin-bottom: var(--space-6);
}

.doc-body table {
  width: 100%;
  min-width: 480px;
  font-size: var(--text-sm);
}

.doc-body table th,
.doc-body table td {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
}

.doc-body table th {
  color: var(--text-bright);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* =========================================================================
   CROSS-LINK CARDS ("More checkride prep guides")
   ========================================================================= */
.guide-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-4);
  margin: var(--space-6) 0 var(--space-8);
}

.guide-link {
  display: block;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: border-color var(--duration-base) var(--ease-out),
    transform var(--duration-base) var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  .guide-link {
    transition: none;
  }
}

.guide-link:hover {
  border-color: var(--border-interactive);
  transform: translateY(-2px);
}

.guide-link .gl-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-bright);
  font-size: var(--text-md);
  margin-bottom: var(--space-2);
}

.guide-link .gl-desc {
  font-size: var(--text-sm);
  color: var(--text-dim);
  line-height: 1.5;
}

/* =========================================================================
   FAQ ACCORDION
   ========================================================================= */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding-block: var(--space-4);
}

.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-bright);
  font-size: var(--text-md);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  min-height: 44px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  color: var(--amber);
  font-size: var(--text-lg);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: '\2212';
}

.faq-item p {
  margin-top: var(--space-3);
  margin-bottom: 0;
  font-size: var(--text-base);
  color: var(--text);
  line-height: 1.75;
}

/* =========================================================================
   CTA BOX
   ========================================================================= */
.cta-box {
  margin-top: var(--space-16);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-xl);
}

.cta-box .cta-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-xl);
  color: var(--text-bright);
  margin-bottom: var(--space-3);
}

.cta-box p.cta-desc {
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: var(--space-5);
}
