:root {
  color-scheme: light;
  --ink: #1c2430;
  --muted: #5b6573;
  --line: #dce2e8;
  --paper: #ffffff;
  --soft: #f5f7f9;
  --brand: #48c5c0;
  --brand-dark: #353535;
  --brand-light: #dff4ef;
  --accent: #48c5c0;
  --gold: #d6a02f;
  --blue: #69b7c8;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Source Sans 3", "Source Sans Pro", Arial, sans-serif;
  line-height: 1.72;
}

[hidden] {
  display: none !important;
}

.member-link[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

.topbar {
  display: none;
}

.topbar-inner {
  width: min(var(--max), calc(100% - 48px));
  min-height: 36px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar a {
  color: #ffffff;
  text-decoration: none;
}

.site-header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: end;
  gap: 26px;
  min-height: 156px;
  padding: 16px max(24px, calc((100vw - var(--max)) / 2)) 22px;
  background: #ffffff;
  border-bottom: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  color: var(--brand);
  text-decoration: none;
  align-self: start;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 44px;
  border: 2px solid #36b9ad;
  color: #22a79b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.site-logo {
  display: block;
  width: 184px;
  height: auto;
}

.brand-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  display: block;
  gap: 1px;
  min-width: 0;
}

.brand-text strong {
  font-size: 17px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.header-navigation {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 2px;
  font-family: "Arsenal", "Source Sans 3", sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
}

.nav a,
.nav summary,
.member-link {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 11px;
  border-radius: 0;
  color: #353535;
  text-decoration: none;
  cursor: pointer;
}

.nav a:hover,
.nav summary:hover,
.member-link:hover {
  background: transparent;
  color: var(--brand);
}

.nav details {
  position: relative;
  z-index: 20;
}

.nav details[open] {
  z-index: 80;
}

.nav summary {
  list-style: none;
}

.nav summary::-webkit-details-marker {
  display: none;
}

.nav summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.nav details > div {
  position: absolute;
  right: 0;
  top: 44px;
  z-index: 90;
  display: grid;
  min-width: 280px;
  max-width: min(360px, calc(100vw - 32px));
  padding: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: 0 18px 42px rgba(28, 36, 48, 0.16);
}

.nav details > div a {
  justify-content: flex-start;
  white-space: normal;
}

.member-link {
  flex: 0 0 auto;
  border: 0;
  color: #353535;
  font-weight: 700;
  background: #ffffff;
  font: inherit;
  text-transform: none;
}

.member-nav {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.hero,
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: #6ab9ca;
}

.hero::before,
.page-hero::before {
  display: none;
}

.home-hero {
  min-height: 610px;
  display: grid;
  align-items: center;
  padding: 82px 24px 78px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.18) 58%, rgba(0, 0, 0, 0.12)),
    url("/assets/theme/home-slide-1.jpg") center / cover no-repeat;
}

.page-hero {
  min-height: 164px;
  display: grid;
  align-items: center;
  padding: 18px 24px 28px;
  background:
    linear-gradient(0deg, rgba(105, 183, 200, 0.1), rgba(105, 183, 200, 0.1)),
    url("/assets/theme/page-banner.jpg") center bottom / cover no-repeat;
}

.hero.compact {
  min-height: 320px;
  display: grid;
  align-items: center;
  padding: 58px 24px;
}

.hero-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.hero-grid {
  display: block;
}

.hero-copy {
  min-width: 0;
}

.eyebrow,
.section-kicker,
.panel-kicker {
  margin: 0 0 12px;
  color: inherit;
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0;
  overflow-wrap: break-word;
  font-family: "Arsenal", "Source Sans 3", sans-serif;
  font-size: 58px;
  line-height: 1.08;
  letter-spacing: 0;
}

.page-hero h1 {
  max-width: none;
  text-align: center;
  font-size: 44px;
  font-weight: 700;
}

.page-hero .eyebrow {
  display: none;
}

.lead {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 24px;
  line-height: 1.45;
}

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

.button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--brand);
  border-radius: 4px;
  color: var(--brand-dark);
  font-weight: 760;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  white-space: normal;
}

.button.primary {
  border-color: #f2f2f2;
  background: #f2f2f2;
  color: #333333;
}

.button.primary-dark {
  border-color: var(--brand);
  background: var(--brand);
  color: #ffffff;
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.64);
  color: #ffffff;
}

.button.light {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--brand-dark);
}

.button:hover,
.text-link:hover {
  transform: translateY(-1px);
}

.hero-panel {
  position: relative;
  min-width: 0;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
}

.hero-panel::before {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 74px;
  height: 74px;
  content: "";
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 47%, rgba(255, 255, 255, 0.45) 47% 53%, transparent 53%),
    linear-gradient(0deg, transparent 47%, rgba(255, 255, 255, 0.45) 47% 53%, transparent 53%);
}

.panel-kicker {
  color: #fff;
}

.hero-panel ul {
  display: grid;
  gap: 18px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.hero-panel li {
  display: grid;
  gap: 4px;
  padding-left: 18px;
  border-left: 3px solid var(--gold);
}

.hero-panel strong {
  font-size: 18px;
}

.hero-panel span {
  color: rgba(255, 255, 255, 0.82);
}

.quick-links {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.quick-links-inner {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 26px 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.quick-link {
  display: grid;
  gap: 8px;
  min-width: 0;
  min-height: 148px;
  padding: 20px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
}

.quick-link:nth-child(2) {
  border-top-color: var(--blue);
}

.quick-link:nth-child(3) {
  border-top-color: var(--accent);
}

.quick-link:nth-child(4) {
  border-top-color: var(--gold);
}

.quick-link strong {
  font-size: 17px;
  line-height: 1.25;
}

.quick-link span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.quick-link:hover {
  border-color: #b8c5cf;
  box-shadow: 0 12px 28px rgba(28, 36, 48, 0.08);
  transform: translateY(-1px);
}

.content-shell {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 70px 0 78px;
}

.home-shell {
  padding-bottom: 58px;
}

.content-section {
  display: grid;
  grid-template-columns: minmax(190px, 280px) minmax(0, 1fr);
  gap: 38px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.content-section:first-child {
  padding-top: 12px;
}

.section-kicker {
  color: var(--accent);
}

.content-section h2,
.support-band h2 {
  margin: 0;
  color: #333333;
  font-family: "Arsenal", "Source Sans 3", sans-serif;
  font-size: 30px;
  line-height: 1.18;
  letter-spacing: 0;
}

.section-body {
  min-width: 0;
}

.content-section p {
  margin: 0 0 14px;
  max-width: 780px;
  color: var(--muted);
  font-size: 17px;
}

.rich-content h2,
.rich-content h3,
.rich-content h4 {
  margin: 0 0 12px;
  color: var(--brand-dark);
  line-height: 1.25;
}

.rich-content h2 {
  font-size: 28px;
}

.rich-content h3 {
  font-size: 22px;
}

.rich-content h4 {
  font-size: 19px;
}

.rich-content p,
.rich-content ul,
.rich-content ol,
.rich-content table {
  margin: 0 0 18px;
}

.rich-content ul,
.rich-content ol {
  padding-left: 22px;
}

.rich-content li {
  margin: 5px 0;
  color: var(--muted);
  font-size: 17px;
}

.rich-content a {
  color: #2f79a8;
  text-decoration: none;
}

.rich-content a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.rich-content table {
  width: 100%;
  border-collapse: collapse;
  overflow-wrap: anywhere;
}

.rich-content th,
.rich-content td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  vertical-align: top;
}

.rich-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 10px 0 18px;
}

.section-images {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.section-images figure {
  margin: 0;
}

.section-images img {
  display: block;
  width: min(100%, 900px);
  height: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.section-images figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.resource-list {
  display: grid;
  gap: 26px;
}

.resource-group h3 {
  margin: 0 0 8px;
  color: var(--brand-dark);
  font-size: 22px;
  line-height: 1.25;
}

.resource-group ul {
  margin: 0;
  padding-left: 20px;
}

.resource-group li {
  margin: 4px 0;
}

.resource-group a {
  color: #2f79a8;
  text-decoration: none;
}

.resource-group a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.text-link {
  margin-top: 8px;
  border-color: var(--line);
  background: var(--paper);
}

.support-band {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-dark), #243b53);
}

.support-band h2 {
  color: #ffffff;
}

.support-band p {
  max-width: 680px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.support-band .section-kicker {
  color: #f3ca6b;
}

.app-panel {
  margin-top: 34px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #ffffff;
}

.app-panel-header {
  max-width: 820px;
  margin-bottom: 24px;
}

.app-panel-header h2,
.app-form h3 {
  margin: 0;
  color: var(--brand-dark);
  line-height: 1.2;
}

.app-panel-header p {
  margin: 10px 0 0;
  color: var(--muted);
}

.app-message {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--soft);
}

.app-message[hidden] {
  display: none;
}

.app-message:empty {
  display: none;
}

.app-message[data-tone="success"] {
  border-color: #9fd1b7;
  color: #0b5d3f;
  background: #edf8f2;
}

.app-message[data-tone="error"] {
  border-color: #e7b6bd;
  color: #8a2330;
  background: #fff0f2;
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.app-form,
.reset-form,
.protected-card,
.signed-in-panel,
.profile-card {
  display: grid;
  gap: 16px;
}

.app-form,
.protected-card,
.signed-in-panel,
.profile-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--soft);
}

.app-form.compact {
  padding: 0;
  border: 0;
  background: transparent;
}

.app-form label,
.reset-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 700;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.app-form input,
.app-form select,
.app-form textarea,
.reset-form input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cfd8e3;
  border-radius: 6px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
}

.app-form textarea {
  resize: vertical;
}

.contact-section .section-body {
  display: grid;
  gap: 24px;
}

.contact-details {
  display: grid;
  gap: 10px;
}

.contact-details p {
  margin-bottom: 0;
}

.contact-form {
  max-width: 820px;
}

.contact-form .button {
  margin-top: 4px;
}

.contact-message {
  max-width: 820px;
}

.reset-form {
  margin-top: 20px;
}

.reset-form label span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.signed-in-panel {
  margin-top: 20px;
  border-color: #9fd1b7;
  background: #edf8f2;
}

.signed-in-panel p,
.protected-card p {
  margin: 0;
  color: var(--muted);
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.profile-card dl div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.profile-card dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.profile-card dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-weight: 760;
}

.forum-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
}

.forum-categories {
  align-self: start;
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.forum-categories a {
  color: var(--brand-dark);
  text-decoration: none;
}

.forum-main {
  min-width: 0;
}

.topic-form {
  margin-bottom: 22px;
}

.topic-list {
  display: grid;
  gap: 12px;
}

.topic-card,
.resource-grid article {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.topic-card span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 760;
}

.topic-card strong,
.resource-grid strong {
  color: var(--brand-dark);
  font-size: 18px;
}

.topic-card p,
.resource-grid span {
  margin: 0;
  color: var(--muted);
}

.topic-card small {
  color: var(--muted);
}

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

.site-footer {
  display: grid;
  justify-items: center;
  align-items: center;
  gap: 22px;
  padding: 88px max(24px, calc((100vw - var(--max)) / 2)) 34px;
  color: #fff;
  background: #222222;
  text-align: center;
}

.footer-logo {
  display: block;
  width: 117px;
  height: auto;
  padding: 10px 16px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  box-sizing: content-box;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  letter-spacing: 0.6px;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.footer-socials a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.footer-socials a:hover {
  background: #ffffff;
  color: #222222;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: 0;
    gap: 14px;
  }

  .site-logo {
    width: 172px;
  }

  .header-navigation {
    width: 100%;
    align-items: flex-start;
    justify-content: space-between;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

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

  .hero-panel {
    max-width: 640px;
  }

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

@media (max-width: 760px) {
  .topbar-inner {
    width: calc(100% - 40px);
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 8px 0;
  }

  .site-header {
    position: static;
    padding: 14px 20px;
  }

  .brand {
    width: 100%;
    min-width: 0;
  }

  .site-logo {
    width: 156px;
  }

  .brand-text strong {
    font-size: 16px;
  }

  .header-navigation {
    display: grid;
    gap: 10px;
  }

  .member-nav {
    justify-content: stretch;
  }

  .nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .nav a,
  .nav summary,
  .member-link {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    background: #ffffff;
    font-size: 14px;
  }

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

  .nav details > div {
    position: static;
    min-width: 0;
    margin-top: 6px;
    box-shadow: none;
  }

  .home-hero,
  .page-hero,
  .hero.compact {
    padding-right: 20px;
    padding-left: 20px;
  }

  .home-hero {
    min-height: 0;
    padding-top: 50px;
    padding-bottom: 48px;
  }

  .page-hero {
    min-height: 150px;
  }

  .page-hero h1 {
    font-size: 34px;
  }

  h1 {
    font-size: 42px;
  }

  .lead {
    font-size: 18px;
  }

  .hero-panel {
    padding: 22px;
  }

  .quick-links-inner,
  .content-shell,
  .support-band {
    width: calc(100% - 40px);
  }

  .quick-links-inner {
    grid-template-columns: 1fr;
  }

  .content-section {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .content-section h2,
  .support-band h2 {
    font-size: 24px;
  }

  .content-section p,
  .support-band p {
    font-size: 16px;
  }

  .support-band {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px;
  }

  .app-panel {
    padding: 20px;
  }

  .auth-grid,
  .form-row,
  .forum-layout,
  .profile-card dl,
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .reset-form label span {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding: 54px 20px 28px;
  }
}

@media (max-width: 460px) {
  .nav {
    grid-template-columns: 1fr;
  }

  .member-nav {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 32px;
  }

  .hero-actions {
    display: grid;
  }

  .button,
  .text-link {
    width: 100%;
  }

  .hero-panel::before {
    display: none;
  }
}
