/* Content pages only (About, Contact, Tools, FAQ, policies). Loaded after style.css. */

.doc-head {
  padding: 48px 0 40px; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 12% 0%, color-mix(in srgb, var(--primary) 14%, transparent) 0%, transparent 60%),
    radial-gradient(ellipse at 95% 130%, color-mix(in srgb, var(--accent) 12%, transparent) 0%, transparent 55%);
}
.doc-title { max-width: 20ch; font-size: 2.25rem; line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; }
.doc-updated { margin-top: 14px; font-size: 0.85rem; color: var(--muted); }
.doc-updated time { color: var(--txt); font-weight: 600; }
.doc-intro { display: grid; gap: 12px; max-width: 680px; margin-top: 20px; font-size: 1.05rem; line-height: 1.7; color: var(--muted); }
.doc-intro p:first-child { color: var(--txt); }
.doc-cta { gap: 10px; margin-top: 28px; }
@media (min-width: 768px) {
  .doc-head { padding: 72px 0 56px; }
  .doc-title { font-size: 3.25rem; }
}

.doc-layout { display: grid; gap: 40px; padding-top: 40px; padding-bottom: 80px; }
@media (min-width: 1024px) {
  .doc-layout { grid-template-columns: minmax(0, 720px) 220px; justify-content: space-between; gap: 64px; }
}
.doc-body { min-width: 0; }
.doc-section { padding: 36px 0; border-top: 1px solid var(--line); scroll-margin-top: 72px; }
.doc-body > .doc-section:first-child { padding-top: 0; border-top: 0; }
.doc-body .doc-section > * + *, .doc-body .faq-body > * + *, .doc-body .feature > * + *, .doc-body .tool-panel > * + * { margin-top: 14px; }
.doc-body .doc-section > .doc-h3 { margin-top: 28px; }
.doc-body .doc-section > .tool-panel { margin-top: 20px; }
.doc-h2 { display: flex; align-items: center; gap: 12px; font-size: 1.5rem; line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; }
.sec-num {
  display: inline-grid; place-items: center; flex-shrink: 0; min-width: 32px; height: 32px; padding: 0 8px; border-radius: 8px;
  background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); font-size: 0.9rem; font-weight: 800;
}
.doc-h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; }
.doc-body p { font-size: 0.975rem; line-height: 1.75; color: var(--muted); }
.doc-body p.small { font-size: 0.85rem; line-height: 1.6; }
.doc-body .table-wrap { margin-bottom: 0; }

.bullets { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 0.975rem; line-height: 1.65; color: var(--muted); }
.bullets li { position: relative; padding-left: 22px; }
.bullets li::before {
  content: ""; position: absolute; left: 3px; top: 0.62em; width: 7px; height: 7px; border-radius: 2px;
  background: var(--primary); transform: rotate(45deg);
}

.contact-box {
  display: grid; gap: 10px; margin: 0; padding: 16px 20px; border: 1px solid var(--line); border-left: 3px solid var(--primary);
  border-radius: 10px; background: var(--soft);
}
.contact-box div { display: flex; flex-wrap: wrap; gap: 2px 12px; }
.contact-box dt { width: 72px; font-size: 0.875rem; font-weight: 700; }
.contact-box dd { margin: 0; font-size: 0.9rem; overflow-wrap: anywhere; }

.doc-section.callout {
  margin-top: 36px; padding: 28px; border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--line)); border-radius: 16px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 9%, var(--surface)), var(--surface));
}
.doc-section.callout p { color: var(--txt); }

.toc { display: none; }
@media (min-width: 1024px) {
  .toc { display: block; }
  .toc nav { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; padding-left: 16px; border-left: 1px solid var(--line); }
}
.toc-title { margin-bottom: 10px; font-size: 0.8rem; font-weight: 700; }
.toc ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.toc a {
  display: block; margin-left: -17px; padding: 5px 0 5px 15px; border-left: 2px solid transparent;
  font-size: 0.83rem; line-height: 1.4; color: var(--muted); transition: color 0.15s, border-color 0.15s;
}
.toc a:hover { color: var(--txt); }
.toc a[aria-current="true"] { border-color: var(--primary); color: var(--primary); font-weight: 600; }

.tool-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 48px; }
.tool-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 12px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--surface); color: var(--primary); font-size: 0.9rem; font-weight: 700; text-align: center;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.tool-card span { color: var(--txt); }
.tool-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }

.tool-icon {
  display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px;
  background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary);
}
.tool-panel { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); scroll-margin-top: 72px; }
.tool-panel-head { display: flex; align-items: center; gap: 12px; }
.tool-panel-title { flex: 1; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; }
.btn-open {
  display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border: 1px solid var(--primary); border-radius: 8px;
  color: var(--primary); font-size: 0.8rem; font-weight: 700; white-space: nowrap; transition: background 0.15s, color 0.15s;
}
.btn-open:hover { background: var(--primary); color: #fff; }
.tool-panel-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .tool-panel-grid { grid-template-columns: 1fr 1fr; } }
.tool-panel-box { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.box-title { margin-bottom: 10px; font-size: 0.8rem; font-weight: 700; }
.tool-panel-box .bullets { gap: 6px; font-size: 0.875rem; }
.example-rows { display: grid; gap: 10px; margin: 0; }
.example-rows dt { font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.example-rows dd { margin: 2px 0 0; font-family: var(--mono); font-size: 0.85rem; overflow-wrap: anywhere; }
.example-rows dd span { display: block; }
.example-rows div:last-child dd { color: var(--primary); font-weight: 700; }

.features { display: grid; gap: 12px; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
.feature { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.feature .tool-icon { width: 36px; height: 36px; }
.feature-title { font-size: 1rem; font-weight: 700; }
.doc-body .feature p { font-size: 0.9rem; }

.doc-body .faq summary h3 { font-size: 0.95rem; font-weight: 600; line-height: 1.45; }
.faq-body { padding: 0 20px 18px; }
.faq .faq-body p { padding: 0; font-size: 0.9rem; }
.faq-body .bullets { font-size: 0.9rem; }
