:root {
  color-scheme: light;
  --navy: #0b213a;
  --navy-soft: #183956;
  --gold: #b98535;
  --gold-dark: #946b28;
  --gold-light: #f3e4c6;
  --cream: #f7f4ed;
  --paper: #ffffff;
  --ink: #172332;
  --muted: #5d6876;
  --line: #ded9ce;
  --success: #246b4a;
  --warning: #9a641b;
  --shadow: 0 18px 50px rgba(11, 33, 58, 0.12);
  --soft-shadow: 0 8px 24px rgba(11, 33, 58, 0.07);
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  background: linear-gradient(180deg, #fbfaf7 0, var(--cream) 420px);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
}

a { color: inherit; }
button, input, select { font: inherit; }
img { max-width: 100%; }

.shell {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  background: rgba(11, 33, 58, 0.96);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.brand img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
  background: #fff;
}

.brand strong, .brand small { display: block; }
.brand strong { font-size: 1rem; letter-spacing: 0.06em; white-space: nowrap; }
.brand small { color: #dcbf87; font-size: 0.72rem; letter-spacing: 0.06em; white-space: nowrap; }

.primary-nav { display: flex; align-items: center; gap: 4px; }
.primary-nav a {
  color: #dce7f1;
  padding: 8px 11px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
}
.primary-nav a:hover, .primary-nav a:focus-visible { background: rgba(255, 255, 255, 0.1); color: #fff; }
.primary-nav a[aria-current="page"] { background: rgba(185, 133, 53, 0.2); color: #f2d49a; }

.banner {
  min-height: 440px;
  margin-top: 14px;
  display: flex;
  align-items: flex-end;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(7, 25, 43, 0.98) 0%, rgba(11, 33, 58, 0.84) 56%, rgba(11, 33, 58, 0.14) 100%), url('/logo/講座BANNER2.png') center / cover;
  box-shadow: var(--shadow);
}

.banner-copy { width: 100%; max-width: 690px; padding: 30px 22px; color: #fff; }
.eyebrow, .home-kicker { margin: 0 0 8px; color: #d6a959; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.15em; }
.banner h1 { margin: 0; font-size: clamp(2rem, 8.3vw, 3.55rem); line-height: 1.18; letter-spacing: 0.015em; }
.banner-lead { max-width: 580px; margin: 14px 0 0; color: #e8eef3; font-size: 1rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0 0; padding: 0; list-style: none; }
.hero-trust li { padding: 5px 10px; border: 1px solid rgba(255,255,255,0.22); border-radius: 999px; background: rgba(255,255,255,0.08); color: #fff; font-size: 0.82rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-actions a, .primary-link, .secondary-link { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 17px; border-radius: 10px; text-decoration: none; font-weight: 800; }
.hero-primary, .primary-link { background: var(--gold); color: #fff; }
.hero-primary:hover, .primary-link:hover { background: var(--gold-dark); }
.hero-secondary { border: 1px solid rgba(255,255,255,0.5); color: #fff; background: rgba(255,255,255,0.08); }
.hero-secondary:hover { background: rgba(255,255,255,0.16); }
body[data-page]:not([data-page="home"]) .banner { display: none; }

.page-shell { padding: 26px 0 56px; }
.app-status { min-height: 0; margin-bottom: 14px; padding: 10px 12px; border: 1px solid #efd5a9; border-radius: 10px; background: #fff8e9; color: #76501c; font-size: 0.9rem; }
.app-status:empty { display: none; }
.app-status.error { border-color: #e7c8c8; background: #fff7f7; color: #8b3838; }
.notice {
  margin: 0 0 22px;
  padding: 14px 17px;
  border: 1px solid #e7d6ad;
  border-radius: 12px;
  background: #fffaf0;
  color: #6f4b18;
}
.notice strong { color: var(--navy); }

.page-heading { margin: 0 0 22px; }
.page-heading-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.page-heading h2 { margin: 0; color: var(--navy); font-size: clamp(1.4rem, 2.8vw, 2rem); }
.page-heading p { margin: 5px 0 0; color: var(--muted); }

.summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(230px, 0.7fr);
  gap: 18px;
  margin-bottom: 28px;
}
.summary-card, .empty-state, .session-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--soft-shadow);
}
.summary-card { padding: 22px; }
.summary-card h3 { margin: 0 0 8px; color: var(--navy); font-size: 1.05rem; }
.summary-card p { margin: 0; color: var(--muted); }
.summary-card .large { margin: 0 0 2px; color: var(--navy); font-size: 1.45rem; font-weight: 700; }

.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 28px 0 14px; }
.section-title h3 { margin: 0; color: var(--navy); font-size: 1.18rem; }
.refresh-button, .claim-button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.15s ease, background 0.15s ease;
}
.refresh-button { padding: 9px 13px; background: #edf1f4; color: var(--navy); }
.refresh-button:hover, .claim-button:hover { transform: translateY(-1px); }
.claim-button { padding: 11px 16px; background: var(--gold); color: #fff; }
.claim-button:hover { background: var(--gold-dark); }
.claim-button:disabled { cursor: wait; opacity: 0.65; transform: none; }

.schedule-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); box-shadow: 0 6px 20px rgba(11, 33, 58, 0.04); }
.admin-session-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 20px 0 8px; color: var(--navy); }
.admin-session-toolbar label { font-weight: 700; }
.admin-session-toolbar select { max-width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--navy); font: inherit; }
.admin-session-toolbar select:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.admin-session-toolbar span, .admin-session-hint { color: var(--muted); font-size: 0.9rem; }
.admin-session-hint { line-height: 1.7; margin: 0 0 14px; }
.schedule-table { width: 100%; min-width: 1120px; border-collapse: collapse; table-layout: fixed; font-size: 0.93rem; }
.schedule-table th { padding: 11px 12px; background: var(--navy); color: #fff; font-weight: 700; text-align: left; white-space: nowrap; }
.schedule-table th:nth-child(1) { width: 150px; }
.schedule-table th:nth-child(2) { width: 40%; }
.schedule-table th:nth-child(3) { width: 16%; }
.schedule-table th:nth-child(4) { width: 17%; }
.schedule-table th:nth-child(5) { width: 120px; }
.schedule-table th:nth-child(6) { width: 150px; }
.schedule-table td { padding: 8px 10px; border-top: 1px solid var(--line); vertical-align: middle; }
.schedule-table tr:first-child td { border-top: 0; }
.schedule-table .date-cell { color: var(--navy); white-space: nowrap; }
.schedule-table .date-cell strong, .schedule-table .date-cell small { display: block; }
.schedule-table .date-cell small { color: var(--gold-dark); font-size: 0.82rem; font-weight: 700; }
.schedule-table input, .schedule-table select { width: 100%; min-width: 0; padding: 7px 8px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--ink); }
.schedule-table input:focus, .schedule-table select:focus { border-color: #cbd2d9; background: #fff; outline: 0; }
.schedule-table input:disabled, .schedule-table select:disabled { color: var(--muted); cursor: not-allowed; opacity: 0.75; }
.schedule-table input { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.schedule-table .paused-row { background: #fffaf0; }
.schedule-table .action-cell { min-width: 150px; }
.schedule-table .homepage-cell { text-align: center; }
.schedule-table .date-cell, .schedule-table .topic-cell { display: table-cell; }
.schedule-table .date-cell input { padding: 5px 6px; }
.schedule-table .date-cell input, .schedule-table .topic-cell input { display: block; }
.schedule-table .date-cell input + input, .schedule-table .topic-cell input + input { margin-top: 4px; }
.schedule-table .topic-main-input { color: var(--navy); font-size: 0.98rem; font-weight: 700; }
.schedule-table .topic-subtitle-input { color: var(--muted); font-size: 0.9rem; }
.description-editor { margin: 8px 0; }
.description-editor summary { color: var(--gold-dark); cursor: pointer; padding: 8px; font-weight: 700; }
.description-editor label { display: grid; gap: 6px; color: var(--navy); }
.description-editor small { display: block; color: var(--muted); margin-top: 6px; }
.description-editor textarea, .new-session-fields textarea { box-sizing: border-box; width: 100%; min-width: 0; padding: 10px; border: 1px solid #cbd2d9; border-radius: 8px; background: #fff; color: var(--ink); font: inherit; line-height: 1.7; resize: vertical; }
.description-editor textarea:focus, .new-session-fields textarea:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
.description-editor textarea:disabled { opacity: 0.65; }
.lecture-description { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.9; }
.save-row-button { display: block; margin-top: 7px; padding: 6px 10px; border: 0; border-radius: 6px; background: var(--gold); color: #fff; cursor: pointer; font-size: 0.86rem; font-weight: 700; }
.bulk-save-button { flex: none; margin: 0; padding: 10px 16px; white-space: nowrap; }
.save-row-button:hover { background: var(--gold-dark); }
.save-row-button:disabled { cursor: not-allowed; opacity: 0.55; }
.row-message { display: block; margin-top: 5px; color: #a33b3b; font-size: 0.78rem; line-height: 1.35; }

.new-session-form { margin: 0 0 22px; padding: 18px; border: 1px solid #d8c9ad; border-radius: 14px; background: #fffdf8; box-shadow: 0 6px 20px rgba(11, 33, 58, 0.04); }
.new-session-form .section-title { margin: 0 0 13px; }
.new-session-form .save-row-button { margin: 0; padding: 9px 14px; }
.new-session-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.new-session-fields label { display: grid; gap: 5px; color: var(--muted); font-size: 0.9rem; font-weight: 700; }
.new-session-fields input, .new-session-fields select { width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid #cbd2d9; border-radius: 8px; background: #fff; color: var(--ink); }
.new-session-fields input:focus, .new-session-fields select:focus { border-color: var(--gold); outline: 2px solid rgba(185, 133, 53, 0.18); }
.new-session-fields .wide-field { grid-column: span 2; }
.homepage-form-field { align-content: end; }
.checkbox-control { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; color: var(--navy); font-weight: 700; }
.checkbox-control input { width: 18px; height: 18px; accent-color: var(--gold-dark); }

.session-list { display: grid; grid-template-columns: 1fr; gap: 14px; }
.session-card { position: relative; padding: 19px; overflow: hidden; }
.session-card::before { position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--gold); content: ""; }
.session-card.paused { border-color: #e9d5a9; background: #fffaf0; }
.session-card.paused::before { background: #d7a95a; }
.session-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.session-date { color: var(--navy); font-size: 1.08rem; font-weight: 800; }
.session-time { margin-top: 1px; color: var(--gold-dark); font-size: 0.92rem; font-weight: 800; }
.session-topic { margin: 15px 0 5px; color: var(--navy); font-size: 1.2rem; font-weight: 800; line-height: 1.45; overflow-wrap: anywhere; }
.session-subtitle { margin: 0 0 10px; color: var(--muted); font-size: 0.98rem; line-height: 1.6; overflow-wrap: anywhere; }
.session-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); }
.session-meta strong { color: var(--ink); }
.session-notes { margin: 11px 0 0; color: var(--warning); font-size: 0.95rem; }
.status-pill { flex: none; padding: 4px 10px; border-radius: 999px; background: #edf5ef; color: var(--success); font-size: 0.8rem; font-weight: 800; }
.status-pill.paused { background: #f6e8c9; color: var(--warning); }
.status-pill.claimed { background: #e9edf4; color: var(--navy-soft); }

.claim-row { display: flex; align-items: end; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.claim-row label { display: grid; gap: 5px; flex: 1; color: var(--muted); font-size: 0.9rem; }
.claim-row select { width: 100%; padding: 10px 12px; border: 1px solid #cbd2d9; border-radius: 8px; background: #fff; color: var(--ink); }

.empty-state { padding: 28px; color: var(--muted); text-align: center; }
.marketing-section { scroll-margin-top: 88px; margin-top: 18px; }
.marketing-heading h2, .home-info-card h2, .public-page-heading h2, .final-cta h2 { margin: 0; color: var(--navy); font-size: clamp(1.65rem, 6vw, 2.35rem); line-height: 1.3; letter-spacing: -0.02em; }
.marketing-heading > p:last-child, .public-page-heading > p:last-child { margin: 10px 0 0; color: var(--muted); }
.home-intro { padding: 24px 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: var(--soft-shadow); }
.home-lead { margin: 12px 0 0; color: var(--navy-soft); font-size: 1.08rem; font-weight: 800; }
.intro-grid { display: grid; grid-template-columns: 1fr; gap: 22px; margin-top: 20px; }
.home-copy { color: var(--muted); }
.home-copy p { margin: 0 0 14px; }
.home-copy p:last-child { margin-bottom: 0; }
.home-copy strong { color: var(--navy); }
.value-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.value-list li { display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 12px; padding: 12px; border-radius: 13px; background: #f6f3eb; }
.value-list li > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; font-size: 0.78rem; font-weight: 800; }
.value-list strong, .value-list small { display: block; }
.value-list strong { color: var(--navy); }
.value-list small { margin-top: 1px; color: var(--muted); font-size: 0.85rem; }
.home-info-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.home-info-card { padding: 22px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: var(--soft-shadow); }
.home-info-card h2 { font-size: 1.45rem; }
.home-info-card > p:not(.home-kicker) { margin: 9px 0 0; color: var(--muted); }
.home-info-card .info-emphasis { color: var(--navy); font-size: 1.22rem; font-weight: 800; }
.format-note { display: grid; gap: 2px; margin-top: 22px; padding: 14px; border-left: 4px solid var(--gold); border-radius: 0 12px 12px 0; background: #f8f3e8; }
.format-note strong { color: var(--navy); }
.format-note span { color: var(--muted); font-size: 0.9rem; }
.pricing-list { display: grid; gap: 9px; margin: 16px 0 0; padding: 0; list-style: none; }
.pricing-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 12px; background: #fbfaf7; }
.pricing-list strong { color: var(--navy); }
.pricing-list span { color: var(--gold-dark); font-weight: 800; text-align: right; }
.pricing-list small { grid-column: 1 / -1; color: var(--muted); font-size: 0.86rem; }
.pricing-list em { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 999px; background: var(--gold); color: #fff; font-size: 0.7rem; font-style: normal; vertical-align: middle; }
.recommended-plan { border-color: #d5b16b !important; background: #fff9ec !important; }
.compact-heading { margin-bottom: 16px; }
.home-actions { display: flex; margin-top: 20px; }
.home-actions a { width: 100%; }
.secondary-link { background: #edf1f4; color: var(--navy); }
.secondary-link:hover { background: #e0e7ec; }
.home-session-list { margin-bottom: 0; }
.final-cta { margin-top: 34px; padding: 28px 21px; border-radius: 20px; background: linear-gradient(135deg, var(--navy), #173d5e); color: #fff; box-shadow: var(--shadow); }
.final-cta h2 { color: #fff; }
.final-cta > p:not(.home-kicker) { margin: 10px 0 20px; color: #dbe6ee; }
.final-cta .primary-link { width: 100%; }

.public-page-heading { max-width: 720px; padding-top: 4px; }
.schedule-note { margin-top: 20px; }
.featured-session { overflow: hidden; margin: 18px 0 28px; border-radius: 20px; background: linear-gradient(135deg, var(--navy), #174465); color: #fff; box-shadow: var(--shadow); }
.featured-label { padding: 10px 18px; background: rgba(255,255,255,0.08); color: #e5c17d; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.16em; }
.featured-content { display: grid; grid-template-columns: 1fr; gap: 20px; padding: 22px 20px 24px; }
.featured-date { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,0.16); }
.featured-date strong { font-size: 1.45rem; }
.featured-date span { color: #e3c27f; font-weight: 800; }
.featured-content h3 { margin: 0; font-size: 1.4rem; line-height: 1.4; }
.featured-content p { margin: 8px 0 13px; color: #dbe5ec; }
.featured-content small { color: #f0d39c; font-size: 0.9rem; }
.featured-register { width: 100%; }
.public-session-list { grid-template-columns: 1fr; }
.team-footer-cta { display: grid; gap: 14px; margin-top: 28px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.team-footer-cta strong, .team-footer-cta span { display: block; }
.team-footer-cta strong { color: var(--navy); font-size: 1.08rem; }
.team-footer-cta span { margin-top: 3px; color: var(--muted); font-size: 0.92rem; }
.team-footer-cta a { width: 100%; }
.promotion-panel { margin: 17px -2px -2px; border-top: 1px solid var(--line); }
.promotion-panel summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 2px 2px; color: var(--navy); cursor: pointer; font-weight: 800; list-style: none; }
.promotion-panel summary::-webkit-details-marker { display: none; }
.summary-icon { display: grid; width: 28px; height: 28px; flex: none; place-items: center; border-radius: 50%; background: #f3ead8; color: var(--gold-dark); font-size: 1.2rem; transition: transform 0.2s ease; }
.promotion-panel[open] .summary-icon { transform: rotate(45deg); }
.promotion-content { padding: 16px 0 2px; color: var(--muted); }
.promotion-content p { margin: 0 0 13px; }
.promotion-content ul { display: grid; gap: 10px; margin: 18px 0; padding: 0; list-style: none; }
.promotion-content li { position: relative; padding-left: 22px; color: var(--ink); }
.promotion-content li::before { position: absolute; left: 1px; color: var(--gold); content: "✦"; }
.promotion-closing { padding: 13px 15px; border-left: 3px solid var(--gold); border-radius: 0 10px 10px 0; background: #faf6ed; color: var(--navy) !important; font-weight: 700; }
.promotion-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.promotion-meta span { padding: 5px 9px; border-radius: 999px; background: #edf1f4; color: var(--navy-soft); font-size: 0.84rem; font-weight: 700; }
.registration-link { width: 100%; }
.loading-state { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 42px 0; color: var(--muted); text-align: center; }
.loading-spinner { width: 18px; height: 18px; border: 2px solid #d8d4ca; border-top-color: var(--gold); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-state { padding: 28px; border: 1px solid #e7c8c8; border-radius: 12px; background: #fff7f7; color: #8b3838; }
.inline-error { margin: 12px 0 0; color: #a33b3b; font-size: 0.9rem; }

.site-footer { margin-top: 12px; background: var(--navy); color: #bfcbd6; }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px 20px; padding: 24px 0; font-size: 0.84rem; }
.footer-brand strong, .footer-brand span { display: block; }
.footer-brand strong { color: #fff; font-size: 1rem; letter-spacing: 0.08em; }
.footer-brand span { color: #d8b876; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { color: #fff; font-weight: 700; text-decoration: none; }
.footer-links a:hover { color: #d8b876; text-decoration: underline; }
.footer-inner p { margin: 0; }
.mobile-bottom-nav { display: none; }
.social-rail { position: fixed; z-index: 25; bottom: calc(24px + env(safe-area-inset-bottom)); right: max(20px, env(safe-area-inset-right)); }
.social-toggle { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 18px; border: 1px solid #d8b876; border-radius: 999px; background: var(--navy); color: #fff; box-shadow: 0 5px 20px rgba(11,33,58,0.18); font-size: 0.9rem; font-weight: 700; cursor: pointer; list-style: none; }
.social-toggle::-webkit-details-marker { display: none; }
.social-toggle-icon { font-size: 1.35rem; line-height: 1; }
.social-rail[open] .social-toggle-icon { transform: rotate(45deg); }
.social-links { display: none; position: absolute; right: 0; bottom: calc(100% + 12px); width: 200px; max-width: calc(100vw - 32px); padding: 8px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); }
.social-rail[open] .social-links { display: grid; gap: 6px; }
.social-link { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 14px; border-radius: 12px; color: #fff; text-decoration: none; font-size: 0.9rem; font-weight: 700; }
.social-link::after { content: attr(title); }
@media (hover: hover) { .social-toggle:hover { background: var(--navy-soft); } .social-link:hover { filter: brightness(0.92); } }
.social-link svg { display: block; width: 25px; height: 25px; }
.social-instagram { background: radial-gradient(circle at 30% 110%, #fdf497 0 12%, #fd5949 45%, #d6249f 68%, #285aeb 100%); }
.social-instagram svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.social-instagram .social-dot { fill: currentColor; stroke: none; }
.social-facebook { background: #0866ff; }
.social-facebook svg { fill: currentColor; }
.social-line { background: #06c755; }
.social-line svg path { fill: #fff; }
.social-line svg text { fill: #06a747; font-family: Arial, sans-serif; font-size: 5.5px; font-weight: 900; letter-spacing: 0.1px; }

@media (max-width: 420px) {
  .brand small { display: none; }
  .primary-nav a { padding-inline: 9px; font-size: 0.88rem; }
}

@media (min-width: 700px) {
  .shell { width: min(1120px, calc(100% - 48px)); }
  .header-inner { min-height: 78px; }
  .brand { gap: 12px; }
  .brand img { width: 48px; height: 48px; }
  .brand strong { font-size: 1.08rem; }
  .primary-nav { gap: 8px; }
  .primary-nav a { padding: 9px 15px; }
  .banner { min-height: 520px; margin-top: 24px; }
  .banner-copy { padding: 54px 52px; }
  .hero-actions a { min-width: 170px; }
  .page-shell { padding: 42px 0 72px; }
  .marketing-section { margin-top: 24px; }
  .home-intro { padding: 38px; }
  .intro-grid { grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr); gap: 42px; }
  .home-info-grid { grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr); gap: 18px; }
  .home-info-card { padding: 30px; }
  .home-session-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-actions a { width: auto; min-width: 190px; }
  .final-cta { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 40px; padding: 38px 42px; }
  .final-cta .home-kicker, .final-cta h2 { grid-column: 1; }
  .final-cta > p:not(.home-kicker) { grid-column: 1; margin-bottom: 0; }
  .final-cta .primary-link { grid-column: 2; grid-row: 1 / 4; width: auto; min-width: 210px; }
  .featured-content { grid-template-columns: 190px minmax(0, 1fr) auto; align-items: center; padding: 30px; }
  .featured-date { display: grid; align-content: center; justify-content: start; padding: 0 28px 0 0; border-right: 1px solid rgba(255,255,255,0.16); border-bottom: 0; }
  .featured-date strong { font-size: 1.75rem; }
  .featured-register { width: auto; white-space: nowrap; }
  .public-session-list { max-width: 900px; }
  .team-footer-cta { grid-template-columns: 1fr auto; align-items: center; padding: 24px 28px; }
  .team-footer-cta a { width: auto; }
  .summary-grid { grid-template-columns: minmax(0, 1.3fr) minmax(230px, 0.7fr); }
  .new-session-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 699px) {
  body:not([data-page="admin"]) { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .social-rail { right: max(12px, env(safe-area-inset-right)); bottom: calc(84px + env(safe-area-inset-bottom)); }
  body[data-page="admin"] .social-rail { bottom: calc(16px + env(safe-area-inset-bottom)); }
  .social-link svg { width: 23px; height: 23px; }
  .site-header { position: relative; }
  .header-inner { min-height: 62px; justify-content: center; }
  .brand img { width: 38px; height: 38px; }
  .primary-nav { display: none; }
  .mobile-bottom-nav { position: fixed; z-index: 30; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(4, 1fr); padding: 7px max(16px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); border-top: 1px solid rgba(11, 33, 58, 0.12); background: rgba(255, 255, 255, 0.96); box-shadow: 0 -8px 28px rgba(11, 33, 58, 0.1); backdrop-filter: blur(16px); }
  .mobile-bottom-nav a { display: grid; justify-items: center; gap: 2px; color: var(--muted); text-decoration: none; font-size: 0.72rem; font-weight: 700; }
  .mobile-bottom-nav svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .mobile-bottom-nav a[aria-current="page"] { color: var(--gold-dark); }
  body[data-page="admin"] .mobile-bottom-nav { display: none; }
  .banner { min-height: 420px; margin-top: 10px; }
  .banner-copy { padding-inline: 20px; }
  .page-shell { padding-top: 22px; }
  .page-heading-actions { align-items: stretch; flex-direction: column; gap: 12px; }
  .bulk-save-button { width: 100%; }
  .claim-row { align-items: stretch; flex-direction: column; }
  .claim-button { width: 100%; }
  .schedule-table { min-width: 1120px; }
  .new-session-form .section-title { align-items: stretch; flex-direction: column; }
  .new-session-form .save-row-button { width: 100%; }
  .new-session-fields { grid-template-columns: 1fr; }
  .new-session-fields .wide-field { grid-column: auto; }
  .footer-inner { flex-direction: column; }
}

:focus-visible { outline: 3px solid #d6a550; outline-offset: 2px; }
