:root {
  color-scheme: light;
  --bg: #f4f7f8;
  --panel: #ffffff;
  --ink: #172126;
  --muted: #5e6d75;
  --line: #d8e1e4;
  --teal: #006f7f;
  --teal-dark: #005462;
  --navy: #223143;
  --green: #29724d;
  --amber: #8a5a00;
  --violet: #57508a;
  --shadow: 0 18px 42px rgba(23, 33, 38, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.site-header,
main,
.site-footer {
  width: min(100% - 32px, 1160px);
  margin: 0 auto;
}

.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--teal);
  font-size: 23px;
  font-weight: 760;
}

.brand-kicker,
.eyebrow,
.action-label {
  display: block;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

.site-header nav a,
.filter-bar button,
.primary-link,
.secondary-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
}

.site-header nav a {
  color: var(--navy);
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  background: #e7eef1;
}

main {
  padding-bottom: 54px;
}

.support-hero {
  min-height: 304px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 24px;
  align-items: stretch;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.15;
}

h1 {
  max-width: 780px;
  font-size: 46px;
}

h2 {
  font-size: 22px;
}

p,
li {
  line-height: 1.5;
}

.lede {
  max-width: 660px;
  color: var(--muted);
  font-size: 18px;
}

.search-row {
  display: grid;
  gap: 8px;
  max-width: 650px;
  margin-top: 28px;
}

.search-row label {
  color: var(--muted);
  font-weight: 760;
}

input[type="search"] {
  min-height: 52px;
  width: 100%;
  border: 1px solid #bdc9cf;
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.signal-visual {
  min-height: 248px;
  display: grid;
  grid-template-columns: repeat(4, minmax(42px, 1fr));
  gap: 12px;
  align-items: end;
  padding: 24px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(0, 111, 127, 0.12), rgba(87, 80, 138, 0.08)),
    #eef5f6;
}

.signal-visual span {
  display: block;
  border-radius: 8px 8px 0 0;
  background: var(--teal);
}

.signal-visual span:nth-child(1) {
  height: 34%;
  background: var(--amber);
}

.signal-visual span:nth-child(2) {
  height: 52%;
  background: var(--green);
}

.signal-visual span:nth-child(3) {
  height: 73%;
  background: var(--teal);
}

.signal-visual span:nth-child(4) {
  height: 94%;
  background: var(--violet);
}

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

.quick-actions {
  margin-top: 16px;
}

.action-card,
.property-panel,
.article-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.action-card {
  min-height: 132px;
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 18px;
  text-decoration: none;
}

.action-card:hover,
.action-card:focus-visible {
  border-color: var(--teal);
}

.action-card strong {
  font-size: 21px;
}

.action-card small {
  color: var(--muted);
  line-height: 1.45;
}

.property-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 16px;
  padding: 20px;
  box-shadow: none;
}

.property-panel p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
}

.property-links {
  display: flex;
  gap: 8px;
}

.primary-link {
  color: #fff;
  background: var(--teal);
}

.secondary-link {
  color: #fff;
  background: var(--navy);
}

.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 22px 0 14px;
}

.filter-bar button {
  border: 1px solid var(--line);
  color: var(--navy);
  background: #fff;
  cursor: pointer;
}

.filter-bar button.is-active {
  border-color: var(--teal);
  color: #fff;
  background: var(--teal);
}

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

.article-card {
  min-height: 254px;
  padding: 18px;
}

.article-card p,
.article-card ol {
  color: var(--muted);
}

.article-card ol {
  margin: 14px 0 0;
  padding-left: 20px;
}

.empty-state {
  min-height: 54px;
  display: grid;
  place-items: center;
  border: 1px dashed #aebcc3;
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  font-weight: 750;
}

.site-footer {
  min-height: 74px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer a {
  color: var(--teal-dark);
  font-weight: 760;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.legal-page {
  display: grid;
  gap: 16px;
  max-width: 940px;
  padding-bottom: 54px;
}

.legal-hero,
.legal-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.legal-hero {
  padding: 28px;
}

.legal-section {
  padding: 22px;
}

.legal-section ul {
  margin: 12px 0 0;
  padding-left: 24px;
}

.legal-section li + li {
  margin-top: 10px;
}

@media (max-width: 980px) {
  .support-hero,
  .property-panel {
    grid-template-columns: 1fr;
  }

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

  h1 {
    font-size: 36px;
  }
}

@media (max-width: 680px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 24px, 1160px);
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .site-header nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-header nav a {
    padding: 0 8px;
    font-size: 14px;
  }

  .support-hero {
    padding: 20px;
  }

  h1 {
    font-size: 30px;
  }

  .quick-actions,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .property-links,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-link,
  .secondary-link {
    width: 100%;
  }
}
