/* Learn More section — clean, white, serif styling
   Inspired by situational-awareness.ai (Benne display serif on white). */
@import url('https://fonts.googleapis.com/css2?family=Benne&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #ffffff;
    --text: #1a1a1a;
    --text-muted: #555555;
    --rule: #e2e2e2;
    --link: #1a1a1a;
    --link-hover: #b8472f;
    --accent: #b8472f;
    --max-width: 720px;
    --max-width-wide: 880px;

    --font-display: 'Benne', Georgia, 'Times New Roman', serif;
    --font-body: Georgia, 'Times New Roman', serif;
}

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

/* Header */
.learn-header {
    border-bottom: 1px solid var(--rule);
}

.learn-header-inner {
    max-width: var(--max-width-wide);
    margin: 0 auto;
    padding: 1.4rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.learn-logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    letter-spacing: 0.02em;
    color: var(--text);
    text-decoration: none;
}

.learn-nav ul {
    list-style: none;
    display: flex;
    gap: 1.4rem;
    flex-wrap: wrap;
}

.learn-nav a {
    font-size: 0.92rem;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 0.01em;
}

.learn-nav a:hover,
.learn-nav a.active {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Main */
main {
    flex: 1;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3.2rem 1.5rem 4rem;
}

main.wide {
    max-width: var(--max-width-wide);
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.2;
    color: var(--text);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.1rem;
}

h2 {
    font-size: 1.6rem;
    margin: 2.6rem 0 0.9rem;
}

h3 {
    font-size: 1.2rem;
    margin: 1.8rem 0 0.5rem;
}

p {
    margin-bottom: 1.1rem;
    color: var(--text);
}

.lede {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.eyebrow {
    font-family: var(--font-body);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent);
    margin-bottom: 0.6rem;
}

a {
    color: var(--link);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: color 0.12s ease;
}

a:hover {
    color: var(--link-hover);
}

hr {
    border: none;
    border-top: 1px solid var(--rule);
    margin: 2.6rem 0;
}

/* Entryway cards (four-part entry) */
.entry-list {
    list-style: none;
    margin: 2.4rem 0 0;
    padding: 0;
}

.entry-item {
    display: block;
    padding: 1.6rem 0;
    border-top: 1px solid var(--rule);
    text-decoration: none;
    color: var(--text);
}

.entry-item:last-child {
    border-bottom: 1px solid var(--rule);
}

.entry-item:hover {
    color: var(--text);
}

.entry-item:hover .entry-title {
    color: var(--link-hover);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.entry-num {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--accent);
    letter-spacing: 0.1em;
}

.entry-title {
    font-family: var(--font-display);
    font-size: 1.55rem;
    margin: 0.2rem 0 0.4rem;
    display: block;
}

.entry-desc {
    color: var(--text-muted);
    font-size: 1.02rem;
    margin: 0;
}

/* Table of contents */
.toc {
    border: 1px solid var(--rule);
    padding: 1.4rem 1.6rem;
    margin: 2rem 0 2.8rem;
    background: #fafafa;
}

.toc h2 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-family: var(--font-body);
    margin: 0 0 0.8rem;
    color: var(--text-muted);
}

.toc ol {
    margin: 0;
    padding-left: 1.3rem;
    columns: 2;
    column-gap: 2rem;
}

.toc li {
    margin-bottom: 0.35rem;
    font-size: 0.96rem;
    break-inside: avoid;
}

.toc .toc-cat {
    list-style: none;
    margin-left: -1.3rem;
    margin-top: 0.7rem;
    font-family: var(--font-display);
    font-size: 1.02rem;
    color: var(--accent);
}

.toc .toc-cat:first-child {
    margin-top: 0;
}

/* Article sections */
.section-block {
    padding-top: 1rem;
    margin-bottom: 1.2rem;
}

.category-heading {
    font-family: var(--font-display);
    font-size: 1.9rem;
    margin: 3rem 0 0.4rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--text);
}

.category-tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
}

.guide-links {
    list-style: none;
    margin: 0.6rem 0 0;
    padding: 0;
    display: flex;
    gap: 1.6rem;
    flex-wrap: wrap;
}

.guide-links li {
    font-size: 0.95rem;
}

.guide-links .guide-label {
    display: block;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.1rem;
}

/* Diagram image */
.diagram {
    width: 100%;
    margin: 1.5rem 0 2.5rem;
    border: 1px solid var(--rule);
}

/* Introduce-yourself page */
.intro-stage {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1.5rem;
    max-width: 620px;
    margin: 0 auto;
}

.intro-stage h1 {
    font-size: 2.2rem;
    margin-bottom: 1.4rem;
}

.intro-stage p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.linkedin-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    background: #0a66c2;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 1.05rem;
    padding: 0.85rem 1.6rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
}

.linkedin-btn:hover {
    background: #084e96;
    color: #ffffff;
}

.linkedin-btn svg {
    width: 22px;
    height: 22px;
    fill: #ffffff;
}

.fine-print {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 1.6rem;
}

/* Community signup form (Join the network) */
.join-grid {
    display: grid;
    gap: 3rem;
    grid-template-columns: 1fr;
    margin-top: 2rem;
}

@media (min-width: 860px) {
    .join-grid { grid-template-columns: 1fr 1.2fr; }
}

.checklist {
    list-style: none;
    margin: 1.6rem 0 0;
    padding: 0;
}

.checklist li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.7rem;
    color: var(--text);
    font-size: 1rem;
}

.checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.form-card {
    border: 1px solid var(--rule);
    border-radius: 14px;
    padding: 1.8rem;
    background: #fafafa;
}

.form-card h2 { margin-top: 0; font-size: 1.4rem; }

.provider-stack {
    display: grid;
    gap: 0.7rem;
    margin-top: 1.4rem;
}

.provider-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    height: 46px;
    border: 1px solid var(--text);
    border-radius: 999px;
    background: #fff;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
}

.provider-btn:hover { background: var(--text); color: #fff; }
.provider-btn[disabled] { opacity: 0.5; cursor: default; }
.provider-btn.linkedin { border-color: #0a66c2; color: #0a66c2; }
.provider-btn.linkedin:hover { background: #0a66c2; color: #fff; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.8rem; }

.chip {
    border: 1px solid var(--rule);
    border-radius: 999px;
    padding: 0.45rem 1rem;
    background: #fff;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    cursor: pointer;
}

.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.field-label { display: block; font-size: 0.95rem; margin: 1.2rem 0 0.4rem; }

textarea.field {
    width: 100%;
    border: 1px solid var(--rule);
    border-radius: 10px;
    padding: 0.8rem;
    font-family: var(--font-body);
    font-size: 1rem;
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    margin-top: 1.4rem;
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 999px;
    background: var(--text);
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
}

.submit-btn[disabled] { opacity: 0.4; cursor: default; }

.signed-in-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--rule);
    border-radius: 10px;
    padding: 0.7rem 1rem;
    background: #fff;
    font-size: 0.95rem;
    margin-top: 1.4rem;
}

.linklike { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 0.9rem; text-decoration: underline; font-family: var(--font-body); }

.form-alert { margin-top: 1.2rem; border: 1px solid #e6b3b3; background: #fbeaea; color: #9a3434; border-radius: 10px; padding: 0.8rem 1rem; font-size: 0.95rem; }
.form-success { margin-top: 1.4rem; border: 1px solid #bfe0c4; background: #eef8f0; border-radius: 10px; padding: 1.2rem; }
.hidden { display: none !important; }

/* Coming soon */
.coming-soon {
    border: 1px dashed var(--rule);
    padding: 2rem;
    background: #fafafa;
    color: var(--text-muted);
    margin-top: 1.5rem;
}

/* Footer */
.learn-footer {
    border-top: 1px solid var(--rule);
    padding: 2rem 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.back-link {
    display: inline-block;
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 680px) {
    body { font-size: 18px; }
    h1 { font-size: 2rem; }
    .toc ol { columns: 1; }
    .learn-header-inner { gap: 0.8rem; }
}
