:root {
    color-scheme: light;
    --ink: #102022;
    --ink-deep: #0b1718;
    --muted: #505b5d;
    --red: #c71129;
    --red-dark: #a70c20;
    --red-bright: #ff7380;
    --paper: #f8f7f5;
    --white: #fff;
    --line: #e2e3df;
    --radius: 18px;
    --shadow: 0 16px 42px rgba(16, 32, 34, .08);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--ink);
    background: var(--paper);
    font: 16px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--red-dark); }
h1, h2, h3 { line-height: 1.13; letter-spacing: -.035em; margin: 0 0 .55em; }
h1 { font-size: clamp(2rem, 4vw, 3.35rem); }
h2 { font-size: clamp(1.3rem, 2.15vw, 1.85rem); }
h3 { font-size: 1.24rem; }
p { margin: 0 0 1em; }
.site-header { background: var(--white); border-top: 4px solid var(--red); border-bottom: 1px solid var(--line); }
.header-inner, main, .site-footer > div { width: min(100% - 44px, 1180px); margin-inline: auto; }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-size: 1.03rem; font-weight: 850; letter-spacing: .06em; text-decoration: none; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; min-width: 47px; height: 38px; padding: 0 6px; border-radius: 8px; background: var(--red); color: white; font-size: 1.12rem; letter-spacing: -.075em; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 17px; }
nav a { font-size: .91rem; font-weight: 650; }
.site-header nav a { text-decoration: none; padding: 6px 0; }
.site-header nav .nav-action { padding: 8px 14px; border-radius: 8px; background: var(--ink); color: white; }
.site-header nav .nav-action:hover { background: var(--red-dark); }
main { flex: 1; padding-block: 26px 56px; }
.notice { border: 1px solid #efc5ca; border-left: 4px solid var(--red); border-radius: 9px; background: #fff1f2; color: #721c2a; padding: .7rem .9rem; margin: 0 0 16px; font-weight: 600; }
.staging-notice { background: #f0efec; border-color: var(--line); border-left-color: #8e9695; color: #485355; font-size: .82rem; }
.hero, .dashboard-banner {
    padding: clamp(25px, 5vw, 60px);
    margin-bottom: 28px;
    border-radius: 24px;
    color: white;
    background: radial-gradient(ellipse at 100% 0%, #571722 0, transparent 65%), var(--ink-deep);
    box-shadow: var(--shadow);
}
.hero h1 { color: white; }
.hero p { color: #e0e4e3; max-width: 45ch; }
.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(230px, .8fr);
    align-items: center;
    gap: clamp(26px, 5vw, 65px);
    background: radial-gradient(ellipse at 100% 0%, #832332 0, transparent 66%), linear-gradient(125deg, #0b1718, #202120);
}
.home-hero h1 { font-size: clamp(2.55rem, 6.5vw, 5.6rem); line-height: .98; letter-spacing: -.07em; margin-bottom: 22px; }
.home-hero h1 span { color: var(--red-bright); }
.home-hero p { font-size: clamp(1rem, 1.8vw, 1.18rem); margin-bottom: 23px; }
.hero-actions, .dashboard-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.button {
    display: inline-flex; justify-content: center; align-items: center;
    min-height: 43px; padding: 10px 17px; border: 1px solid transparent; border-radius: 9px;
    color: white; background: var(--red); font-weight: 740; text-decoration: none; text-align: center;
}
.button:hover { background: var(--red-dark); color: white; }
.ghost { background: transparent; border-color: #889090; color: white; }
.ghost:hover { background: #ffffff18; }
.hero-shortcuts { display: grid; gap: 9px; }
.hero-shortcuts a {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 15px 17px; border-radius: 12px; border: 1px solid #ffffff36;
    color: white; text-decoration: none; background: #ffffff0c;
}
.hero-shortcuts a:hover { background: #ffffff1d; }
.hero-shortcuts strong, .hero-shortcuts small { display: block; }
.hero-shortcuts small { margin-top: 2px; color: #dce0df; }
.section-heading { margin: 0 0 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 225px), 1fr)); gap: 14px; }
.directory-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile { min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); }
main > .tile { margin-bottom: 14px; }
.tile p { color: var(--muted); }
.category-tile { position: relative; min-height: 175px; color: var(--ink); text-decoration: none; transition: border-color .18s, box-shadow .18s, transform .18s; }
.category-tile:hover { border-color: var(--red); box-shadow: var(--shadow); color: var(--ink); transform: translateY(-3px); }
.category-tile h3 { padding-right: 14px; }
.category-tile p { font-size: .91rem; margin-bottom: 0; }
.category-icon { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 13px; border-radius: 10px; color: var(--red-dark); background: #fce7e9; font-weight: 850; font-size: 1.18rem; }
.category-arrow { position: absolute; right: 18px; top: 20px; color: var(--red-dark); }
.featured-tile, .featured-tile:hover { background: var(--ink); color: white; }
.featured-tile p { color: #dce0df; }
.featured-tile .category-arrow { color: var(--red-bright); }
.dashboard-banner { padding: 26px clamp(20px, 4vw, 40px); }
.dashboard-banner h1 { overflow-wrap: anywhere; }
.dashboard-actions form { margin: 0; }
.dashboard-actions form .button { background: transparent; }
.dashboard-actions form .button:hover { background: #ffffff18; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: start; gap: 14px; }
.submissions-panel { grid-row: span 2; }
.narrow { max-width: 660px; }
.empty-state { color: var(--muted); }
.entry + .entry { border-top: 1px solid var(--line); }
.entry { padding: .85rem 0; overflow-wrap: anywhere; }
.multiline { white-space: pre-wrap; overflow-wrap: anywhere; }
form { margin: 1rem 0; }
label { display: block; margin: .85rem 0; font-weight: 620; }
input, textarea, select, button { font: inherit; }
input:not([type=checkbox]), textarea, select {
    display: block; max-width: 100%; width: 100%; margin-top: 4px; padding: .62rem .75rem;
    color: var(--ink); background: white; border: 1px solid #aeb6b4; border-radius: 8px;
}
textarea { resize: vertical; }
input[type=checkbox] { accent-color: var(--red); }
button { cursor: pointer; }
button:not(.button) { border: 1px solid #aeb6b4; border-radius: 8px; padding: .45rem .8rem; color: var(--ink); background: white; }
button:not(.button):hover { border-color: var(--red); color: var(--red-dark); }
summary { cursor: pointer; }
:focus-visible { outline: 3px solid #d2253b; outline-offset: 3px; }
.hero :focus-visible, .dashboard-banner :focus-visible, .site-footer :focus-visible { outline-color: #ffadb4; }
.site-footer { margin-top: auto; background: var(--ink-deep); color: #e1e5e5; font-size: .85rem; }
.site-footer > div { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; padding-block: 22px; }
.site-footer span { margin-right: auto; }
.site-footer a:hover { color: var(--red-bright); }
.staging-gate { background: radial-gradient(ellipse at top right, #641723, transparent 62%), var(--ink-deep); }
.staging-gate main { display: grid; align-items: center; justify-items: center; }
.staging-gate .tile { width: min(100%, 560px); border-top: 5px solid var(--red); }
@media (max-width: 960px) {
    .directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 740px) {
    .header-inner { display: grid; gap: 8px; padding-block: 10px; }
    .header-inner, main, .site-footer > div { width: min(100% - 28px, 1180px); }
    .site-header nav { gap: 4px 12px; }
    main { padding-top: 16px; }
    .home-hero, .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
    .home-hero { gap: 24px; }
    .submissions-panel { grid-row: auto; }
}
@media (max-width: 380px) {
    .directory-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    .category-tile { transition: none; }
}

/* Connect homepage networking artwork */
.home-hero {
  background: linear-gradient(90deg, #101416 15%, rgba(16,20,22,.91) 42%, rgba(16,20,22,.28) 100%),
    url("./connect-networking-hero.webp") center right / cover no-repeat, #101416;
}
.home-hero .hero-shortcuts a { background: rgba(16,20,22,.86); }
.home-hero .hero-shortcuts a:hover { background: #241a1d; }
@media (max-width: 800px) {
  .home-hero {
    background: linear-gradient(to top, #101416 0%, rgba(16,20,22,.36) 100%) top center / 100% 250px no-repeat,
      url("./connect-networking-hero.webp") top center / 100% auto no-repeat, #101416;
    padding-top: clamp(160px, 36vw, 240px);
  }
}
