/* The public guide pages and CWR Micro's drawn pictures. Loaded after office.css and built only from its colours,
   so light and dark mode carry through. Anything dark-only goes under :root[data-theme="dark"]. */

/* ---- Drawn pictures ---- */
/* Drawn in the text colour, so they are dark on light pages and light in dark mode with no rule of their own. */
.illustration { --ill-ink: var(--ink); display: block; width: 100%; max-width: 240px; height: auto; }
.ill-glow { fill: var(--green-soft); }
.ill-ink { fill: var(--ill-ink); stroke: var(--ill-ink); }
.ill-stroke { stroke: var(--ill-ink); }
.ill-paper { fill: var(--surface); }
.ill-accent { fill: var(--green); }
.ill-on-accent { stroke: var(--on-accent); }
.ill-sky { fill: var(--blue-soft); }
.ill-warm { fill: var(--amber-soft); }
.ill-line { stroke: var(--line); fill: none; }
.ill-line-fill { fill: var(--line); }

/* On the hero band the picture sits on a panel in the page colour, so it reads the same as it does further down. */
.hero-picture { flex: 0 1 320px; min-width: 0; display: flex; justify-content: center; }
.hero-illustration { max-width: 300px; padding: 16px; border-radius: 24px; background: var(--canvas); }
.side-illustration { flex: none; max-width: 200px; }
.feature-picture { max-width: 120px; margin-bottom: 4px; }

/* ---- Breadcrumb ---- */
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 16px; padding: 0; list-style: none; font-size: 0.875rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 4px; }
.breadcrumb a { color: inherit; }
.hero .breadcrumb ol { color: var(--nav-muted); }
.hero .breadcrumb a { color: var(--nav-ink); }

/* ---- How it works steps ---- */
.step-list { margin: 32px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.step { padding: 22px; border-radius: 14px; display: flex; flex-direction: column; gap: 8px; }
.step h3 { margin: 0; font-size: 1.125rem; }
.step p { margin: 0; color: var(--muted); line-height: 1.5; }
.step .step-number { align-self: flex-start; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: var(--on-accent); font-weight: 700; }
.step-picture { max-width: 180px; margin: 0 auto 4px; }
.section-actions { margin: 28px 0 0; }
.section-search { margin-top: 32px; max-width: 560px; }
.tinted-section { background: var(--green-soft); }
.tinted-section .section-lead, .tinted-section .step p:not(.step-number) { color: var(--ink); }
@media (min-width: 1168px) {
    .tinted-section { border-radius: 20px; }
}

/* ---- Guide text ---- */
.guide .site-section { padding-top: 40px; padding-bottom: 40px; }
.guide p, .guide li { font-size: 1.0625rem; line-height: 1.6; }
.guide p { margin: 12px 0 0; max-width: 680px; }
.guide .tick-list { margin-top: 12px; }
.split-section { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: flex-start; }
.split-section > div { flex: 1 1 420px; min-width: 0; }
.narrow-section.split-section { max-width: 960px; }
.warning-section { border-left: 4px solid var(--amber-ink); background: var(--amber-soft); border-radius: 12px; margin-top: 24px; margin-bottom: 24px; }
.warning-section .section-heading { color: var(--amber-ink); }
.questions .tick-list { margin-top: 16px; }

/* ---- Questions and answers ---- */
.faq-list { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.faq { padding: 18px 20px; border-radius: 12px; }
.faq h3 { margin: 0 0 8px; font-size: 1.0625rem; line-height: 1.4; }
.faq p { margin: 0; color: var(--muted); line-height: 1.6; }
.faq-more { margin-top: 24px; }

/* ---- More guides ---- */
.guide-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.guide-card { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 14px; color: var(--ink); text-decoration: none; }
.guide-card:hover { border-color: var(--green); }
.guide-picture { max-width: 120px; }
.guide-card-title { font-weight: 700; font-size: 1.0625rem; color: var(--green-dark); }
.guide-card-text { color: var(--muted); line-height: 1.5; }

/* ---- Privacy, account deletion and support, the same words as the API's pages ---- */
.notice-page { padding-top: 40px; }
.notice-page section { padding: 20px 0; border-bottom: 1px solid var(--line); }
.notice-page section:last-child { border-bottom: 0; }
.notice-page h1 { margin: 0 0 12px; font-size: 2.25rem; line-height: 1.15; }
.notice-page h2 { margin: 0 0 10px; font-size: 1.375rem; }
.notice-page p, .notice-page li { line-height: 1.6; max-width: 72ch; }
.notice-page .lede { font-size: 1.1875rem; }
.notice-page .updated { color: var(--muted); }

/* ---- The owner's listing page: the status card held its heading and lines too far apart ---- */
.listing-status { gap: 10px; }
.listing-status > * { margin: 0; }

@media (max-width: 640px) {
    .hero-picture { display: none; }
    .side-illustration { max-width: 160px; }
    .notice-page h1 { font-size: 1.75rem; }
}

@media print {
    .illustration, .guide-links { display: none; }
}
