/**
 * CNL Site - Front Door Styles
 * Location: assets/css/front.css
 *
 * Styles for the homepage sections added in the September 2026 front door
 * update (current work, the Macroscope, principles, what comes next) and for
 * the About page. Loaded per page through $page_styles in includes/header.php.
 *
 * Created: September 25, 2026
 * Updated: September 25, 2026 (evening) - Hero kicker and question; section lead, note
 *          and intro; research program list with Proposed / Under way labels
 */

/* -- Hero additions ------------------------------------------------------- */
.hero .hero-byline {
    margin-top: 0.75rem;
    font-size: 0.95rem;
}
.hero .hero-byline a { color: #fff; }
.hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}
.hero-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 0.9rem;
    text-decoration: none;
}
.hero-link.primary { background: #166534; border-color: #166534; }
.hero-link:hover { background: rgba(255, 255, 255, 0.15); text-decoration: none; }
.hero-link.primary:hover { background: #14532d; }

/* -- Sensor band label ---------------------------------------------------- */
.sensor-band-label {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.6rem 1.5rem 0;
    color: #94a3b8;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* -- Section spacing ------------------------------------------------------ */
.current-work, .macroscope-intro, .claude-lab, .principles, .program, .network { margin-bottom: 3rem; }

/* -- Current work --------------------------------------------------------- */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}
.work-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: 3px solid #166534;
    border-radius: 4px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}
.work-card header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}
.work-card h3 { margin: 0; font-size: 1.1rem; }
.work-card .status-badge { white-space: nowrap; }
.work-card h3 a { color: #1a1a1a; text-decoration: none; }
.work-card h3 a:hover { color: #2563eb; }
.work-card p { color: #555; font-size: 0.92rem; line-height: 1.55; margin: 0 0 0.75rem; }
.work-card .work-domains {
    margin: auto 0 0;
    font-family: "SF Mono", Monaco, monospace;
    font-size: 0.78rem;
    color: #888;
}

/* -- Figures -------------------------------------------------------------- */
.figures-caption {
    margin: 1.75rem 0 0.5rem;
    font-size: 0.75rem;
    color: #888;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.figures {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1px;
    background: #e0e0e0;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}
.figure { background: #fff; padding: 1rem; display: flex; flex-direction: column; gap: 0.25rem; }
.figure-value { font-size: 1.45rem; font-weight: 600; color: #166534; }
.figure-label { font-size: 0.8rem; color: #666; line-height: 1.4; }

/* -- The Macroscope panels ------------------------------------------------ */
.panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}
.panel { background: #fff; border: 1px solid #e0e0e0; border-radius: 4px; padding: 1.25rem; }
.panel h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.panel p { font-size: 0.92rem; line-height: 1.6; color: #444; margin: 0 0 0.5rem; }
.faces { list-style: none; margin: 0; padding: 0; font-size: 0.9rem; color: #444; }
.faces li { padding: 0.3rem 0; border-top: 1px solid #f0f0f0; }
.faces strong {
    display: inline-block;
    min-width: 4.2rem;
    color: #166534;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

/* -- Principles and what comes next -------------------------------------- */
.principle-list { margin: 0; }
.principle-list dt { font-weight: 600; margin-top: 1.1rem; }
.principle-list dt:first-child { margin-top: 0; }
.principle-list dd { margin: 0.3rem 0 0; color: #555; line-height: 1.6; font-size: 0.95rem; }
.next-list { margin: 0; padding-left: 1.2rem; }
.next-list li { margin-bottom: 0.6rem; line-height: 1.6; color: #444; font-size: 0.95rem; }
.invitation {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    background: #f0f7f2;
    border-left: 3px solid #166534;
    font-style: italic;
}
.invitation a { font-style: normal; }

/* -- About page ----------------------------------------------------------- */
.about-links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1rem 0 1.5rem; }
.about-links a {
    padding: 0.45rem 0.9rem;
    border: 1px solid #2563eb;
    border-radius: 4px;
    font-size: 0.9rem;
    text-decoration: none;
}
.about-links a:hover { background: #2563eb; color: #fff; }
.lineage { list-style: none; padding: 0; margin: 0 0 1rem; }
.lineage li {
    position: relative;
    padding: 0.55rem 0 0.55rem 4.5rem;
    border-top: 1px solid #eee;
    line-height: 1.55;
}
.lineage .year { position: absolute; left: 0; top: 0.55rem; font-weight: 600; color: #166534; }

/* -- Small screens: hero text sits below the photograph ------------------- */
/* -- Hero kicker and research question ------------------------------------ */
.hero .hero-kicker { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; margin: 0 0 0.5rem; }
.hero .hero-question { font-style: italic; }

/* -- Section lead, note and intro ------------------------------------------ */
.section-lead { color: #444; font-size: 1rem; line-height: 1.65; margin: 0 0 1.25rem; max-width: 60rem; }
.section-note { color: #444; font-size: 0.95rem; line-height: 1.6; margin: 1.25rem 0 0; max-width: 60rem; }
.section-intro { color: #666; font-size: 0.9rem; margin: -0.5rem 0 1rem; }

/* -- Research program: every item labelled Proposed or Under way ---------- */
.program-list { list-style: none; margin: 0; padding: 0; }
.program-list li { padding: 0.75rem 0; border-top: 1px solid #eee; color: #444; font-size: 0.95rem; line-height: 1.6; }
.program-list li:first-child { border-top: none; }
.stage {
    display: inline-block;
    margin-right: 0.6rem;
    padding: 0.05rem 0.45rem;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: #f5f5f5;
    color: #666;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    vertical-align: 0.1em;
}
.stage-underway { background: #dcfce7; border-color: #bbf7d0; color: #166534; }

@media (max-width: 768px) {
    .hero-overlay { display: none; }
    .hero .hero-content { position: static; background: #2a3444; }
    .hero-links { flex-direction: column; align-items: flex-start; }
}
