/* Public meeting page (meeting/index.html). Matches the resident portal
   (css/portal.css), but is its own copy: in production this folder is also
   served as /meeting/, where ../css/ would point somewhere else entirely. */

:root {
    --bg: #f3f5f2;
    --surface: #ffffff;
    --surface-sunk: #f7f8f6;
    --text: #1b2420;
    --text-2: #56635b;
    --text-3: #7c877f;
    --border: #e0e5e1;
    --border-strong: #c9d1cb;
    --accent: #2e6b4f;
    --accent-hover: #24573f;
    --accent-soft: #e5efe9;
    --on-accent: #ffffff;
    --info-soft: #eef2f7;
    --info: #3a4a5c;
    --radius: 10px;
    --radius-lg: 14px;
    --shadow: 0 1px 2px rgba(20, 30, 25, 0.05), 0 1px 3px rgba(20, 30, 25, 0.04);
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #111513;
        --surface: #1a201d;
        --surface-sunk: #151a17;
        --text: #e6ebe8;
        --text-2: #a6b2ab;
        --text-3: #85918a;
        --border: #2b332f;
        --border-strong: #3a4540;
        --accent: #5fae86;
        --accent-hover: #74bf98;
        --accent-soft: #1f3329;
        --on-accent: #0d1a13;
        --info-soft: #1e252d;
        --info: #b7c4d3;
        --shadow: none;
        color-scheme: dark;
    }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hidden { display: none !important; }

h1 { font-size: 1.625rem; font-weight: 600; line-height: 1.25; margin: 0 0 1rem; letter-spacing: -0.01em; }
h2 { font-size: 1rem; font-weight: 600; margin: 0 0 0.5rem; }
p { margin: 0 0 0.5rem; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
.muted { color: var(--text-2); }

/* Header */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding-top: env(safe-area-inset-top);
}
.site-header-inner {
    max-width: 640px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.625rem; color: var(--text); min-width: 0; }
.brand-logo { width: 44px; height: auto; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 600; font-size: 1rem; }
.brand-sub { font-size: 0.75rem; color: var(--text-2); }
@media (max-width: 400px) {
    .brand-sub { display: none; }
    .brand-logo { width: 36px; }
}

/* Layout */
.page {
    flex: 1;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 1.5rem 1rem 2rem;
}
.site-footer {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text-3);
    padding: 1.25rem 1rem calc(1.25rem + env(safe-area-inset-bottom));
}
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 1.5rem;
}
@media (max-width: 480px) { .card { padding: 1.125rem; } }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font: inherit;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius);
    border: 1px solid transparent;
    padding: 0.75rem 1.25rem;
    min-height: 48px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-sunk); color: var(--text); }
.btn-small { min-height: 36px; padding: 0.375rem 0.75rem; font-size: 0.875rem; font-weight: 500; white-space: nowrap; }
.btn-block { width: 100%; }
.btn:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; }

.alert { border-radius: var(--radius); padding: 0.75rem 0.875rem; font-size: 0.9375rem; margin: 1.25rem 0 0; }
.alert-info { background: var(--info-soft); color: var(--info); }

.loading { display: flex; align-items: center; justify-content: center; gap: 0.75rem; color: var(--text-2); padding: 4rem 0; }
.spinner {
    width: 22px; height: 22px;
    border: 2px solid var(--accent);
    border-right-color: transparent;
    border-radius: 50%;
    display: inline-block;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* The meeting */
.eyebrow { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); margin: 0 0 0.25rem; }
.meeting-facts { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 1rem; }
.meeting-facts li { display: flex; gap: 0.875rem; align-items: flex-start; }
.fact-icon {
    width: 40px; height: 40px; flex-shrink: 0;
    padding: 9px;
    border-radius: var(--radius);
    background: var(--accent-soft);
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.fact-main { display: block; font-weight: 600; }
.fact-sub { display: block; color: var(--text-2); font-size: 0.9375rem; }
.join-heading { margin-top: 1.5rem; }
.dial-in {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.4rem 1.25rem;
    margin: 0;
    padding: 0.875rem 1rem;
    background: var(--surface-sunk);
    border-radius: var(--radius);
}
.dial-in dt { color: var(--text-2); }
.dial-in dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.footnote { font-size: 0.8125rem; color: var(--text-2); margin: 0.75rem 0 0; }
