/* BLADES — Support, Privacy and Terms. Builds on site.css (tokens, nav, buttons, footer). */

.doc-page { background: var(--white); }

.doc-hero {
  background:
    radial-gradient(ellipse 60% 90% at 85% 120%, rgba(25, 198, 230, 0.22), transparent 70%),
    var(--night);
  color: var(--white);
  padding: clamp(140px, 15vw, 190px) var(--pad) clamp(56px, 6vw, 80px);
}
.doc-hero-in { max-width: 1060px; margin: 0 auto; }
.doc-hero-narrow { max-width: 760px; }
.doc-hero h1 { font-size: clamp(44px, 6vw, 84px); }
.doc-meta { margin-top: 18px; color: var(--mist); font-size: 16px; }
.doc-hero-in > * { animation: arrive 0.8s var(--ease) both; }
.doc-hero-in > :nth-child(2) { animation-delay: 0.08s; }

.doc-wrap {
  max-width: calc(1060px + 2 * var(--pad)); margin: 0 auto;
  padding: clamp(56px, 7vw, 88px) var(--pad) clamp(96px, 11vw, 140px);
}
.doc-wrap.has-toc { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); }

/* Contents, kept in view while you read */
.doc-toc { position: sticky; top: 104px; align-self: start; font-size: 14px; }
.doc-toc-h { font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.doc-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.doc-toc a {
  display: block; padding: 6px 12px; border-radius: 10px;
  color: var(--muted); text-decoration: none; line-height: 1.35;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.doc-toc a:hover { color: var(--ink); background: var(--light); }
.doc-toc a[aria-current="true"] { color: var(--ink); background: var(--light); font-weight: 600; }

/* Reading column */
.doc-body { max-width: 68ch; color: #26364c; font-size: 17px; line-height: 1.72; }
.doc-body > * + * { margin-top: 18px; }
.doc-body .doc-lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; color: var(--ink); }
.doc-body h2 {
  font-size: clamp(26px, 2.5vw, 34px); color: var(--ink);
  margin-top: clamp(48px, 5vw, 64px); scroll-margin-top: 104px;
}
.doc-body h2 + * { margin-top: 14px; }
.doc-body ul { padding-left: 1.2em; }
.doc-body li { padding-left: 0.3em; }
.doc-body li + li { margin-top: 10px; }
.doc-body li::marker { color: var(--cyan-deep); }
.doc-body strong { color: var(--ink); font-weight: 600; }
.doc-body a { color: var(--cyan-deep); text-underline-offset: 0.18em; }
.doc-body a:hover { color: var(--ink); }
.doc-back { margin-top: 56px !important; }
.doc-back a { color: var(--ink); font-weight: 600; text-decoration: none; }
.doc-back a:hover { color: var(--cyan-deep); }

/* Support: the contact card and the questions */
.doc-support { max-width: 760px; margin: 0 auto; }
.doc-support .card {
  display: block; container-type: normal;
  margin-top: 32px; padding: 30px 32px;
  border-radius: 24px;
  background: var(--navy); color: var(--mist);
}
.doc-support .card .lead { font-family: var(--serif); font-size: 30px; line-height: 1.1; color: var(--white); }
.doc-support .card p { margin: 0; max-width: none; font-size: 17px; line-height: 1.65; color: var(--mist); }
.doc-support .card .lead { margin-bottom: 10px; }
.doc-support .card a { color: var(--cyan); font-weight: 600; }
.doc-support .card a:hover { color: var(--white); }
.doc-support .faq { margin-top: 18px; padding: 0; background: none; }
.doc-support .faq details { border-bottom: 1px solid var(--line); }
.doc-support .faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 20px 0; font-size: 18px; font-weight: 600; color: var(--ink); line-height: 1.4;
}
.doc-support .faq summary::-webkit-details-marker { display: none; }
.doc-support .faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat;
  transition: transform 0.3s var(--ease);
}
.doc-support .faq details[open] summary::after { transform: rotate(45deg); }
.doc-support .faq .a { padding: 0; }

.foot-links a[aria-current="page"] { color: var(--white); }

@media (prefers-reduced-motion: reduce) {
  .doc-hero-in > * { animation: none; }
}

@media (max-width: 900px) {
  .doc-wrap.has-toc { display: block; }
  .doc-toc { position: static; margin-bottom: 48px; padding: 20px; border-radius: 18px; background: var(--light); }
  .doc-toc a { padding: 5px 0; }
  .doc-toc a[aria-current="true"] { background: none; }
}

/* Landing pages and guides (drone-logbook, easa-pilot-logbook, night-time) */
.doc-note { padding: 14px 18px; border-radius: 14px; background: var(--light); font-size: 15.5px; color: var(--muted); }
.doc-fig { margin: 24px 0 0; }
.doc-fig img, .doc-grid img { display: block; width: 100%; height: auto; border-radius: 8px; box-shadow: 0 0 0 1px var(--line), 0 12px 30px rgba(10, 22, 40, 0.12); }
.doc-fig figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.doc-body ul.doc-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 18px; }
.doc-grid li { padding: 0; display: grid; gap: 8px; }
.doc-grid li + li { margin-top: 0; }
.doc-grid span { font-size: 14px; font-weight: 600; color: var(--ink); }
.doc-cta { margin-top: 48px !important; }
@media (max-width: 640px) { .doc-body ul.doc-grid { grid-template-columns: 1fr; } }

/* ---------- Guides: the list on /guides, "More guides" at the end of each guide ---------- */
.doc-updated { white-space: nowrap; }
.doc-guides { max-width: 760px; margin: 0 auto; }
.guide-list { list-style: none; margin: 28px 0 0 !important; padding: 0 !important; display: grid; gap: 14px; }
.guide-list li { margin: 0 !important; padding: 0 !important; }
.guide-list a { display: grid; gap: 4px; padding: 22px 24px; border-radius: 20px; text-decoration: none; background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line), 0 10px 30px rgba(10, 22, 40, 0.06); transition: box-shadow 0.2s ease, transform 0.2s ease; }
.guide-list a:hover { box-shadow: inset 0 0 0 1px rgba(7, 134, 163, 0.5), 0 14px 34px rgba(10, 22, 40, 0.1); transform: translateY(-1px); }
.gl-k { font-size: 12.5px; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; color: var(--cyan-deep); }
.guide-list b { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; color: var(--ink); }
.gl-d { font-size: 16px; line-height: 1.55; color: #26364c; }
.guide-more { margin-top: 28px !important; font-size: 16px; color: var(--muted); }
.doc-related { margin-top: 56px !important; padding-top: 28px; border-top: 1px solid var(--line); }
.doc-body .doc-related h2 { margin: 0; font-size: 22px; }
.doc-related ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.doc-related li { margin: 0 !important; padding: 0; }
.doc-related a { display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; text-decoration: none; background: var(--light); transition: box-shadow 0.2s ease; }
.doc-related a:hover { box-shadow: inset 0 0 0 1px rgba(7, 134, 163, 0.5); }
.doc-related b { font-size: 16px; font-weight: 650; color: var(--ink); }
.doc-related span { font-size: 14px; color: var(--muted); }

/* Guides: tables, questions and quoted rule text */
.doc-body h3 { margin-top: 30px; font-size: 18px; font-weight: 650; line-height: 1.35; color: var(--ink); }
.doc-body h3 + p, .doc-body h3 + ul { margin-top: 8px; }
.doc-body q { font-style: italic; color: var(--ink); }
.doc-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.doc-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.doc-table th { padding: 12px 14px; text-align: left; vertical-align: bottom; font-size: 13px; font-weight: 650; letter-spacing: 0.02em; color: var(--muted); background: var(--light); }
.doc-table td { padding: 12px 14px; vertical-align: top; border-top: 1px solid var(--line); color: #26364c; }
.doc-table td:first-child { font-weight: 600; color: var(--ink); }
@media (max-width: 600px) {
  /* On a phone each row of a guide table becomes a small card, its headings as labels */
  .doc-table-wrap { overflow: visible; box-shadow: none; }
  .doc-table { min-width: 0; }
  .doc-table thead { display: none; }
  .doc-table tr { display: block; margin-top: 10px; padding: 12px 14px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
  .doc-table td { display: block; padding: 3px 0; border: 0; }
  .doc-table td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 650; letter-spacing: 0.02em; color: var(--muted); }
  .doc-table td:first-child::before { display: none; }
  .doc-table td:first-child { font-size: 16px; }
}
.doc-guides > .guide-list:first-child { margin-top: 0 !important; }
