:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-2: #eef3f8;
  --text: #172033;
  --muted: #627087;
  --line: #dbe4ef;
  --accent: #0f5da8;
  --accent-2: #13a8c4;
  --good: #107c5b;
  --shadow: 0 18px 50px rgba(22, 36, 60, 0.12);
  --soft-shadow: 0 12px 34px rgba(27, 48, 76, 0.08);
  --radius: 8px;
  --content-width: min(1180px, calc(100% - 32px));
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(231, 239, 248, 0.72), transparent 360px),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--content-width);
  min-height: 72px;
  margin: 0 auto;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: auto;
  height: 42px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a,
.text-button {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 9px 10px;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover,
.text-button:hover {
  background: var(--surface-2);
  color: var(--text);
}

.member-link,
.exit-button {
  display: none;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 8px 10px;
}

.mode-ribbon {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 8px 16px;
  background: #071523;
  color: #a9f5ff;
  font-size: 0.86rem;
}

.hero {
  position: relative;
  display: grid;
  min-height: 680px;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("assets/selgra-hero.png") center / cover no-repeat;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, rgba(247, 249, 252, 0.96) 0%, rgba(247, 249, 252, 0.86) 38%, rgba(247, 249, 252, 0.34) 72%, rgba(247, 249, 252, 0.12) 100%);
}

.hero-content {
  width: min(1180px, calc(100% - 32px));
  margin: auto;
  padding: 112px 0 88px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(4rem, 12vw, 9.5rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-logo {
  display: block;
  width: clamp(280px, 46vw, 760px);
  height: auto;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
}

.subtitle {
  max-width: 700px;
  margin: 18px 0 0;
  color: #24466d;
  font-size: clamp(1.2rem, 2.5vw, 1.78rem);
  font-weight: 700;
}

.hero-copy {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  padding: 11px 18px;
  text-decoration: none;
}

.button.primary {
  background: var(--accent);
  color: #fff;
}

.button.secondary {
  border-color: #b8cadc;
  background: rgba(255, 255, 255, 0.72);
  color: #123252;
}

.section {
  width: var(--content-width);
  margin: 0 auto;
  padding: 86px 0;
}

.section.alt {
  width: 100%;
  background: #eef4f8;
  padding-right: max(16px, calc((100% - 1180px) / 2));
  padding-left: max(16px, calc((100% - 1180px) / 2));
}

.section-heading {
  position: relative;
  max-width: 780px;
  margin-bottom: 26px;
  padding-left: 18px;
}

.section-heading::before {
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: 0;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  content: "";
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  max-width: 680px;
  font-size: 1rem;
}

.inline-heading {
  max-width: 720px;
  margin: 38px 0 18px;
}

.inline-heading h3 {
  font-size: clamp(1.35rem, 2.6vw, 2rem);
}

.feed-grid,
.cards-grid,
.stats-grid,
.about-grid {
  display: grid;
  gap: 18px;
}

.feed-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cards-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats-grid,
.about-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.feed-card,
.about-grid article,
.recommend-panel,
.stat-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.98)),
    var(--surface);
  box-shadow: var(--soft-shadow);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.card:hover,
.feed-card:hover,
.about-grid article:hover,
.stat-card:hover {
  border-color: rgba(15, 93, 168, 0.28);
  box-shadow: 0 18px 44px rgba(27, 48, 76, 0.12);
  transform: translateY(-2px);
}

.card,
.feed-card,
.about-grid article,
.stat-card {
  padding: 20px;
}

.feed-card {
  display: grid;
  gap: 14px;
  overflow: hidden;
}

.feed-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  content: "";
}

.feed-meta,
.card-meta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
}

.feed-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(19, 168, 196, 0.12);
}

.event-date {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
  border: 1px solid #cfe0ef;
  border-radius: 8px;
  background: #f5f9fd;
  color: #153c63;
}

.event-date strong {
  font-size: 1.28rem;
  line-height: 1;
}

.event-date span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.person-head,
.opportunity-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.avatar {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #e6f3fb, #d1e7f5);
  color: #134d7c;
  font-size: 0.9rem;
  font-weight: 800;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7fafc;
  color: #4d6075;
  font-size: 0.72rem;
  font-weight: 760;
  padding: 4px 8px;
}

.status-pill.is-verified {
  border-color: rgba(16, 124, 91, 0.24);
  background: rgba(16, 124, 91, 0.08);
  color: var(--good);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid #d7e5f1;
  border-radius: 6px;
  background: #f5f9fc;
  color: #31556f;
  font-size: 0.74rem;
  font-weight: 650;
  line-height: 1.15;
  max-width: 100%;
  padding: 3px 7px;
  overflow-wrap: anywhere;
}

.card p,
.feed-card p,
.about-grid p {
  color: var(--muted);
  font-size: 0.96rem;
}

.card-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.link-button {
  border: 0;
  border-radius: 8px;
  background: #eef6fd;
  color: #164d7c;
  cursor: pointer;
  font-weight: 700;
  padding: 9px 12px;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.link-button:hover {
  background: #dcedfb;
  color: #0b3760;
  transform: translateY(-1px);
}

.save-button.is-saved {
  background: rgba(16, 124, 91, 0.1);
  color: var(--good);
}

.saved-list {
  display: grid;
  gap: 10px;
}

.saved-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(248, 251, 254, 0.72);
  padding: 12px;
}

.saved-item strong,
.saved-item small {
  display: block;
}

.saved-item small,
.empty-state {
  color: var(--muted);
}

.empty-state {
  margin: 0;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) repeat(3, minmax(150px, 1fr));
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 9px 12px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.filter-bar input:focus,
.filter-bar select:focus,
form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 93, 168, 0.14);
  outline: none;
}

.check-filter {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: fit-content;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 750;
  padding: 8px 12px;
}

.check-filter input[type="checkbox"] {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  min-height: 0;
  accent-color: var(--accent);
  cursor: pointer;
  padding: 0;
}

.check-filter span {
  line-height: 1.2;
  white-space: nowrap;
}

.announcement-panel {
  position: relative;
  overflow: hidden;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.98)),
    var(--surface);
  box-shadow: var(--soft-shadow);
  padding: 28px;
}

.announcement-panel::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  content: "";
}

.announcement-head h3 {
  font-size: clamp(1.35rem, 2.6vw, 2rem);
}

.announcement-subheading {
  margin: 2px 0 0;
  color: var(--accent);
  font-weight: 750;
}

.announcement-meta {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.announcement-copy {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
}

.announcement-schedule {
  margin-top: 22px;
}

.announcement-schedule .card {
  border-radius: 14px;
}

.announcement-callout {
  margin-top: 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  padding: 20px 22px;
}

.announcement-callout p {
  margin: 0;
  color: #fff;
  font-weight: 650;
}

.announcement-panel .button.primary {
  margin-top: 22px;
}

.linkedin-panel {
  margin-top: 34px;
}

.calendar-panel {
  margin: -8px 0 24px;
}

.calendar-toolbar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
}

.calendar-toolbar .inline-heading {
  margin-bottom: 0;
}

.calendar-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 5px;
}

.calendar-controls strong {
  min-width: 160px;
  color: var(--text);
  font-size: 0.94rem;
  text-align: center;
}

.icon-button {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: #eef6fd;
  color: #164d7c;
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 800;
}

.icon-button:hover {
  background: #dcedfb;
}

.calendar-download {
  display: inline-flex;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfe;
  color: #164d7c;
  font-size: 0.86rem;
  font-weight: 720;
  padding: 8px 10px;
  text-decoration: none;
}

.calendar-download:hover {
  background: #eef6fd;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--soft-shadow);
  margin-bottom: 26px;
}

.calendar-weekday {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f1f6fb;
  color: #5b6f84;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 10px;
  text-transform: uppercase;
}

.calendar-weekday:nth-child(7) {
  border-right: 0;
}

.calendar-cell {
  position: relative;
  min-height: 118px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fbfdff;
  padding: 10px;
}

.calendar-cell:nth-child(7n) {
  border-right: 0;
}

.calendar-cell.is-empty {
  background: #f4f7fa;
}

.calendar-cell.has-event {
  background: linear-gradient(180deg, #f8fcff, #edf7fc);
}

.calendar-number {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 6px;
  color: #31556f;
  font-size: 0.82rem;
  font-weight: 760;
}

.calendar-event {
  display: block;
  margin-top: 8px;
  border-left: 3px solid var(--accent-2);
  border-radius: 6px;
  background: #e8f5fb;
  color: #174c7d;
  font-size: 0.76rem;
  font-weight: 760;
  line-height: 1.2;
  padding: 7px 8px;
  text-decoration: none;
}

.calendar-event:hover {
  background: #dceff8;
}

.linkedin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.linkedin-embed {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 32px rgba(25, 45, 72, 0.08);
}

.linkedin-embed iframe {
  display: block;
  width: 100%;
  height: 500px;
  border: 0;
}

.embed-fallback {
  display: block;
  border-top: 1px solid var(--line);
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 800;
  padding: 12px 14px;
  text-decoration: none;
}

.recommend-panel {
  margin-top: 18px;
  padding: 22px;
}

.stat-card strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 8px;
  color: var(--accent);
}

.stat-card span {
  color: var(--muted);
  font-weight: 680;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 17, 30, 0.64);
}

.modal {
  position: relative;
  width: min(560px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 28px;
}

.detail-modal {
  width: min(760px, 100%);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 1.4rem;
}

form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

form input {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}

.form-error {
  min-height: 1.5em;
  margin: 0;
  color: #b42318;
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 16px;
  color: var(--muted);
  text-align: center;
}

.footer-links {
  margin: 8px 0 0;
}

.footer-links a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

body.member-mode {
  --bg: #06101b;
  --surface: #0c1b2a;
  --surface-2: #10283c;
  --text: #eff8ff;
  --muted: #a9bed0;
  --line: rgba(124, 217, 255, 0.22);
  --accent: #46d8ff;
  --accent-2: #7fffe4;
  background:
    radial-gradient(circle at 20% 0%, rgba(70, 216, 255, 0.16), transparent 28%),
    linear-gradient(180deg, #07111c, #050b12 46%, #071523);
}

body.member-mode .site-header {
  background: rgba(6, 16, 27, 0.88);
}

body.member-mode .button.primary {
  background: linear-gradient(135deg, #149bd4, #36f2d3);
  color: #04111a;
}

body.member-mode .announcement-callout {
  background: linear-gradient(135deg, #149bd4, #36f2d3);
}

body.member-mode .announcement-callout p {
  color: #04111a;
}

body.member-mode .hero::after {
  background: linear-gradient(90deg, rgba(6, 16, 27, 0.94), rgba(6, 16, 27, 0.77), rgba(6, 16, 27, 0.36));
}

body.member-mode .subtitle,
body.member-mode .hero-copy,
body.member-mode .section-heading p:not(.eyebrow),
body.member-mode .card p,
body.member-mode .feed-card p,
body.member-mode .about-grid p {
  color: #9fb3c3;
}

body.member-mode .card strong,
body.member-mode .feed-card strong {
  color: #d8e9f4;
  font-weight: 650;
}

body.member-mode .card,
body.member-mode .feed-card,
body.member-mode .about-grid article,
body.member-mode .recommend-panel,
body.member-mode .stat-card,
body.member-mode .announcement-panel,
body.member-mode .modal {
  background:
    linear-gradient(180deg, rgba(19, 42, 63, 0.72), rgba(8, 22, 36, 0.95)),
    rgba(12, 27, 42, 0.92);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
}

body.member-mode .card:hover,
body.member-mode .feed-card:hover,
body.member-mode .about-grid article:hover,
body.member-mode .stat-card:hover {
  border-color: rgba(127, 255, 228, 0.34);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(70, 216, 255, 0.06);
}

body.member-mode .section.alt {
  background: rgba(11, 28, 42, 0.78);
}

body.member-mode .tag {
  border-color: rgba(117, 220, 255, 0.22);
  background: rgba(70, 216, 255, 0.08);
  color: #b9dbe6;
  font-weight: 620;
}

body.member-mode .event-date,
body.member-mode .avatar,
body.member-mode .status-pill {
  border-color: rgba(117, 220, 255, 0.2);
  background: rgba(70, 216, 255, 0.08);
  color: #d9f8ff;
}

body.member-mode .calendar-grid,
body.member-mode .calendar-controls {
  background:
    linear-gradient(180deg, rgba(19, 42, 63, 0.72), rgba(8, 22, 36, 0.95)),
    rgba(12, 27, 42, 0.92);
}

body.member-mode .calendar-download {
  border-color: rgba(117, 220, 255, 0.2);
  background: rgba(70, 216, 255, 0.08);
  color: #d9f8ff;
}

body.member-mode .calendar-controls strong {
  color: #d9f8ff;
}

body.member-mode .icon-button {
  background: rgba(70, 216, 255, 0.1);
  color: #d9f8ff;
}

body.member-mode .calendar-weekday {
  border-color: rgba(117, 220, 255, 0.16);
  background: rgba(70, 216, 255, 0.08);
  color: #97bdca;
}

body.member-mode .calendar-cell {
  border-color: rgba(117, 220, 255, 0.18);
  background: rgba(5, 17, 28, 0.56);
}

body.member-mode .calendar-cell.is-empty {
  background: rgba(5, 17, 28, 0.36);
}

body.member-mode .calendar-cell.has-event {
  background: rgba(70, 216, 255, 0.1);
}

body.member-mode .calendar-number {
  color: #9fb3c3;
}

body.member-mode .calendar-event {
  border-left-color: #7fffe4;
  background: rgba(127, 255, 228, 0.1);
  color: #d9f8ff;
}

body.member-mode .calendar-event:hover {
  background: rgba(127, 255, 228, 0.16);
}

body.member-mode .status-pill.is-verified {
  border-color: rgba(127, 255, 228, 0.28);
  background: rgba(127, 255, 228, 0.1);
  color: #9effec;
}

body.member-mode .filter-bar input,
body.member-mode .filter-bar select,
body.member-mode .check-filter {
  box-shadow: inset 0 0 0 1px rgba(70, 216, 255, 0.06);
}

body.member-mode .button.secondary,
body.member-mode .link-button,
body.member-mode .modal-close {
  border-color: var(--line);
  background: #10283c;
  color: #ddfbff;
}

body.member-mode .save-button.is-saved {
  background: rgba(127, 255, 228, 0.12);
  color: #9effec;
}

body.member-mode .saved-item {
  background: rgba(70, 216, 255, 0.06);
}

body.member-mode .stat-card strong {
  color: #7fffe4;
}

body.member-mode .member-link,
body.member-mode .exit-button {
  display: inline-flex;
}

body.member-mode [data-open-login] {
  display: none;
}

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
    padding: 10px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a,
  .text-button {
    text-align: left;
  }

  .feed-grid,
  .cards-grid,
  .cards-grid.compact,
  .stats-grid,
  .about-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .linkedin-grid {
    grid-template-columns: 1fr;
  }

  .calendar-toolbar {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .calendar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calendar-weekday {
    display: none;
  }

  .calendar-cell {
    min-height: 94px;
  }

  .linkedin-embed {
    min-height: 460px;
  }

  .linkedin-embed iframe {
    height: 460px;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 610px;
  }

  .hero-content {
    padding-top: 84px;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(247, 249, 252, 0.98) 0%, rgba(247, 249, 252, 0.88) 58%, rgba(247, 249, 252, 0.36) 100%);
  }

  .feed-grid,
  .cards-grid,
  .cards-grid.compact,
  .stats-grid,
  .about-grid,
  .filter-bar {
    grid-template-columns: 1fr;
  }

  .calendar-grid {
    display: block;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .calendar-cell {
    display: none;
  }

  .calendar-cell.has-event {
    display: block;
    min-height: 0;
    margin-bottom: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  .section,
  .section.alt {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .tag-list {
    gap: 5px;
  }

  .tag {
    min-height: 22px;
    font-size: 0.7rem;
    padding: 3px 6px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .saved-item {
    grid-template-columns: 1fr;
  }
}
