/*
 * Site Recovery — the stylesheet of a rebuilt page. Written for pages whose own styling the
 * archive lost: a calm, readable layout that works for any content, on any screen, with no
 * scripts. Shipped with the panel (resources/recovery/site.css) and copied into each rebuilt site.
 */
:root {
    --rs-ink: #1f2933;
    --rs-muted: #5b6673;
    --rs-line: #e4e8ee;
    --rs-bg: #ffffff;
    --rs-soft: #f5f7fa;
    --rs-accent: #1f6feb;
    --rs-accent-ink: #ffffff;
    --rs-accent-soft: #1f6feb14;
    --rs-radius: 14px;
    --rs-wrap: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    color: var(--rs-ink);
    background: var(--rs-bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rs-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; color: var(--rs-ink); }
p { margin: 0 0 1em; }
.rs-wrap { max-width: var(--rs-wrap); margin: 0 auto; padding: 0 24px; }

/* Header and menu */
.rs-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--rs-line); backdrop-filter: saturate(1.4) blur(6px); }
.rs-header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.rs-brand { display: flex; align-items: center; font-weight: 700; font-size: 19px; color: var(--rs-ink); flex-shrink: 0; }
.rs-brand img { max-height: 48px; width: auto; }
.rs-brand:hover { text-decoration: none; }
.rs-nav { margin-left: auto; }
.rs-nav ul { list-style: none; margin: 0; padding: 0; }
.rs-nav > ul { display: flex; flex-wrap: wrap; gap: 4px; }
.rs-nav li { position: relative; }
.rs-nav a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--rs-ink); font-size: 15px; font-weight: 500; }
.rs-nav a:hover { background: var(--rs-soft); text-decoration: none; }
.rs-nav .rs-has-children > a::after { content: " ▾"; font-size: 11px; color: var(--rs-muted); }
.rs-nav li ul { display: none; position: absolute; top: 100%; left: 0; min-width: 240px; padding: 6px; background: #fff; border: 1px solid var(--rs-line); border-radius: 12px; box-shadow: 0 12px 32px rgba(15,23,42,.12); }
.rs-nav li:hover > ul, .rs-nav li:focus-within > ul { display: block; }
.rs-menu-toggle, .rs-menu-button { display: none; }
.rs-nav a { white-space: nowrap; }
@media (min-width: 861px) {
    .rs-header--stacked .rs-header-inner { flex-wrap: wrap; gap: 0 24px; padding-top: 10px; }
    .rs-header--stacked .rs-nav { width: 100%; margin: 0 -12px; }
    .rs-header--stacked .rs-nav > ul { gap: 0; }
    .rs-header--stacked .rs-nav a { font-size: 14px; }
}

/* Hero */
.rs-hero { background: linear-gradient(135deg, var(--rs-accent-soft) 0%, #f8fafc 60%); border-bottom: 1px solid var(--rs-line); }
.rs-hero-inner { display: grid; gap: 40px; align-items: center; padding: 72px 24px; }
.rs-hero-image .rs-hero-inner { grid-template-columns: 1.1fr 1fr; }
.rs-hero h1 { font-size: clamp(30px, 4.2vw, 48px); letter-spacing: -.02em; }
.rs-hero p { font-size: 19px; color: var(--rs-muted); max-width: 60ch; }
.rs-hero-figure { margin: 0; }
.rs-hero-figure img { width: 100%; border-radius: var(--rs-radius); box-shadow: 0 20px 48px rgba(15,23,42,.15); object-fit: cover; max-height: 440px; }

/* Sections */
.rs-section { padding: 64px 0; }
.rs-alt { background: var(--rs-soft); }
.rs-section-title { font-size: clamp(24px, 3vw, 34px); letter-spacing: -.01em; margin-bottom: 28px; }
.rs-prose { max-width: 78ch; }
.rs-prose figure { margin: 24px 0; }
.rs-prose figure img { border-radius: var(--rs-radius); }
.rs-prose ul, .rs-prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.rs-prose li { margin: .3em 0; }
blockquote { margin: 1.4em 0; padding: 16px 20px; border-left: 4px solid var(--rs-accent); background: var(--rs-soft); border-radius: 0 10px 10px 0; color: var(--rs-muted); }
.rs-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.rs-card { background: #fff; border: 1px solid var(--rs-line); border-radius: var(--rs-radius); padding: 24px; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.rs-card h3 { font-size: 19px; }
.rs-card figure { margin: -24px -24px 18px; }
.rs-card figure img { border-radius: var(--rs-radius) var(--rs-radius) 0 0; width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.rs-card p:last-child { margin-bottom: 0; }
.rs-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.rs-gallery figure { margin: 0; }
.rs-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; }
.rs-table { overflow-x: auto; }
.rs-table table { border-collapse: collapse; width: 100%; font-size: 15px; }
.rs-table td { border: 1px solid var(--rs-line); padding: 10px 12px; vertical-align: top; }
.rs-table tr:first-child td { background: var(--rs-soft); font-weight: 600; }

/* Footer */
.rs-footer { background: #0f172a; color: #cbd5e1; padding: 48px 0; font-size: 15px; }
.rs-footer p { margin: 0 0 .4em; }
.rs-footer a { color: #fff; }
.rs-footer-name { margin-top: 1.2em !important; color: #94a3b8; }

/* Small screens */
@media (max-width: 860px) {
    .rs-hero-image .rs-hero-inner { grid-template-columns: 1fr; }
    .rs-hero-inner { padding: 48px 24px; }
    .rs-menu-button { display: block; margin-left: auto; font-size: 24px; cursor: pointer; padding: 6px 10px; }
    .rs-nav { display: none; width: 100%; margin: 0; }
    .rs-header-inner { flex-wrap: wrap; }
    .rs-menu-toggle:checked ~ .rs-nav { display: block; padding-bottom: 12px; }
    .rs-nav > ul { flex-direction: column; }
    .rs-nav li ul { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 0 14px; }
    .rs-section { padding: 44px 0; }
}

/*
 * Template styles (body.rs-style-*): the AI review suggests one per site, staff can pick another.
 * "business" is the base above; each other style changes only what sets it apart.
 */

/* Local service: a bold accent band, rounded and friendly, the menu as pills. */
.rs-style-local .rs-header { background: #fff; border-bottom: 3px solid var(--rs-accent); }
.rs-style-local .rs-nav a:hover { background: var(--rs-accent); color: var(--rs-accent-ink); }
.rs-style-local .rs-hero { background: var(--rs-accent); border: 0; }
.rs-style-local .rs-hero h1, .rs-style-local .rs-hero p, .rs-style-local .rs-hero a { color: var(--rs-accent-ink); }
.rs-style-local .rs-hero p { opacity: .9; }
.rs-style-local .rs-hero-figure img { border: 6px solid #fff; }
.rs-style-local { --rs-radius: 20px; }
.rs-style-local .rs-card { border-top: 4px solid var(--rs-accent); }
.rs-style-local .rs-section-title::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 12px; border-radius: 4px; background: var(--rs-accent); }

/* Shop / catalogue: compact header, items as a dense grid of picture cards. */
.rs-style-shop .rs-hero-inner { padding: 48px 24px; }
.rs-style-shop .rs-hero { background: var(--rs-soft); }
.rs-style-shop .rs-cards { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.rs-style-shop .rs-card { padding: 18px; }
.rs-style-shop .rs-card figure { margin: -18px -18px 14px; }
.rs-style-shop .rs-card figure img { aspect-ratio: 1/1; }
.rs-style-shop .rs-gallery { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.rs-style-shop .rs-gallery img { aspect-ratio: 1/1; }

/* Blog / magazine: serif reading type, a narrow column, quiet colour. */
body.rs-style-magazine { font-family: Georgia, "Iowan Old Style", "Times New Roman", serif; font-size: 19px; line-height: 1.7; }
.rs-style-magazine .rs-nav a, .rs-style-magazine .rs-brand, .rs-style-magazine .rs-footer { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
.rs-style-magazine .rs-hero { background: #fff; border-bottom: 1px solid var(--rs-line); }
.rs-style-magazine .rs-hero-inner { padding: 64px 24px 40px; }
.rs-style-magazine .rs-hero h1 { font-size: clamp(32px, 4.6vw, 54px); }
.rs-style-magazine .rs-alt { background: #fff; border-top: 1px solid var(--rs-line); }
.rs-style-magazine .rs-wrap { max-width: 860px; }
.rs-style-magazine .rs-header .rs-wrap, .rs-style-magazine .rs-footer .rs-wrap { max-width: var(--rs-wrap); }
.rs-style-magazine .rs-card { box-shadow: none; }

/* Portfolio: dark, images large and edge to edge. */
body.rs-style-portfolio { --rs-ink: #f1f5f9; --rs-muted: #a3adbb; --rs-line: #273244; --rs-bg: #0b1120; --rs-soft: #111a2e; }
.rs-style-portfolio .rs-header { background: rgba(11,17,32,.92); }
.rs-style-portfolio .rs-nav li ul { background: #111a2e; }
.rs-style-portfolio .rs-hero { background: #0b1120; border-bottom-color: var(--rs-line); }
.rs-style-portfolio .rs-hero-figure img { box-shadow: none; border-radius: 4px; max-height: 560px; }
.rs-style-portfolio .rs-card { background: #111a2e; }
.rs-style-portfolio .rs-gallery { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }
.rs-style-portfolio .rs-gallery img { border-radius: 4px; aspect-ratio: 3/2; }
.rs-style-portfolio a { color: #93c5fd; }
.rs-style-portfolio .rs-footer { background: #060a14; }
