:root {
  --ink: #111a20;
  --muted: #5f6f78;
  --paper: #f5faf7;
  --white: #ffffff;
  --line: #d4e4dc;
  --green: #07884f;
  --green-dark: #05673d;
  --green-soft: #dff3e8;
  --shadow: 0 18px 48px rgba(17, 26, 32, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: "Calibri Regular", "Segoe UI", system-ui, sans-serif;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 15% 16%, rgba(120, 220, 198, 0.2), transparent 32rem),
    radial-gradient(circle at 88% 82%, rgba(242, 193, 78, 0.14), transparent 28rem),
    var(--paper);
}

a {
  color: var(--green-dark);
}

a:focus-visible,
summary:focus-visible,
input:focus-visible,
button:focus-visible,
h1:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid rgba(212, 228, 220, 0.9);
  background: rgba(245, 250, 247, 0.88);
  backdrop-filter: blur(14px);
}

.site-header__inner,
.site-footer {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-family: "Calibri Semibold", "Segoe UI Semibold", "Segoe UI", system-ui, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
}

[hidden] {
  display: none !important;
}

.help-panel.help-article {
  padding: clamp(28px, 5vw, 56px);
  text-align: left;
}

.help-article h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.1;
}

.help-article__list {
  margin: 30px 0 0;
  padding-left: 1.5em;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.55;
}

.help-article__list li + li {
  margin-top: 16px;
}

.help-article__list li::marker {
  color: var(--green-dark);
  font-weight: 700;
}

.help-article__note {
  margin: 28px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--green-soft);
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.55;
}

.help-article__media {
  display: grid;
  gap: 30px;
  margin-top: 30px;
}

.guide-image,
.guide-video {
  min-width: 0;
  margin: 0;
}

.guide-image--phone {
  width: 100%;
  max-width: 390px;
  margin-inline: auto;
}

.guide-image a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.guide-image a:hover {
  border-color: var(--green);
}

.guide-image img,
.guide-video video {
  display: block;
  width: 100%;
  height: auto;
}

.guide-video video {
  aspect-ratio: 32 / 21;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--ink);
}

.guide-image figcaption,
.guide-video figcaption {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.guide-image__step {
  display: block;
  margin-bottom: 2px;
  color: var(--green-dark);
  font-weight: 700;
}

.guide-image__hint {
  display: none;
}

.site-label,
.eyebrow {
  font-family: "Calibri Semibold", "Segoe UI Semibold", "Segoe UI", system-ui, sans-serif;
  font-weight: 700;
}

.site-label {
  color: var(--green-dark);
}

.help-main {
  width: min(1180px, calc(100% - 48px));
  min-height: calc(100vh - 148px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: start;
  gap: 32px;
  padding: 64px 0 76px;
}

.help-sidebar {
  position: sticky;
  top: 24px;
  align-self: start;
}

.help-navigation {
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.help-navigation > summary {
  padding: 16px 18px;
  color: var(--ink);
  cursor: pointer;
  font-family: "Calibri Semibold", "Segoe UI Semibold", "Segoe UI", system-ui, sans-serif;
  font-weight: 700;
}

.help-navigation__body {
  padding: 14px;
}

.help-navigation:not([open]) > .help-navigation__body,
.topic-group:not([open]) > ul {
  display: none;
}

.help-navigation__home {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 11px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 700;
  text-decoration: none;
}

.topic-group {
  border-top: 1px solid var(--line);
  margin-top: 10px;
  padding-top: 10px;
}

@media (min-width: 801px) {
  .topic-group {
    margin-top: 4px;
    padding-top: 4px;
  }
}

.topic-group > summary {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
  font-family: "Calibri Semibold", "Segoe UI Semibold", "Segoe UI", system-ui, sans-serif;
  font-weight: 700;
  list-style: none;
}

.topic-group > summary::-webkit-details-marker {
  display: none;
}

.topic-group > summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--green);
  font-size: 1.15rem;
}

.topic-group[open] > summary::after {
  content: "−";
}

.topic-group > summary:hover {
  background: var(--green-soft);
  color: var(--green-dark);
}

.topic-group ul {
  margin: 3px 0 5px;
  padding: 0;
  list-style: none;
}

.topic-group li a {
  display: block;
  padding: 7px 10px 7px 18px;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.3;
  text-decoration: none;
  border-radius: 9px;
}

.topic-group li a:hover,
.topic-group li a[aria-current="page"] {
  background: var(--green-soft);
  color: var(--green-dark);
}

.help-navigation__home[aria-current="page"] {
  background: var(--green-soft);
}

.help-navigation__home:not([aria-current="page"]) {
  background: transparent;
  color: var(--muted);
}

.help-content {
  min-width: 0;
  padding-top: 70px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.help-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 560px;
  min-width: 0;
}

.help-search input {
  flex: 1;
  min-width: 0;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.help-search input::placeholder {
  color: var(--muted);
}

.help-search button {
  flex: 0 0 auto;
  min-height: 44px;
  min-width: 44px;
  padding: 0 14px;
  border: 1px solid var(--green);
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.help-search__submit {
  background: var(--green);
  color: var(--white);
}

.help-search__submit:hover {
  background: var(--green-dark);
}

.help-search__clear {
  background: var(--white);
  color: var(--green-dark);
}

.help-search__clear:hover {
  background: var(--green-soft);
}

.help-panel.help-panel--results {
  padding: clamp(28px, 5vw, 56px);
  text-align: left;
  scroll-margin-top: 96px;
}

.help-panel--results h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.1;
}

.help-search__status,
.help-search__empty {
  color: var(--muted);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.help-search__results {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.help-search__results a {
  display: block;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  text-decoration: none;
}

.help-search__results a:hover {
  border-color: var(--green);
  background: var(--green-soft);
}

.help-search__category {
  color: var(--green-dark);
  font-size: 0.9rem;
  font-weight: 700;
}

.help-search__results h2 {
  margin: 6px 0 0;
  font-size: 1.3rem;
  line-height: 1.2;
}

.help-search__results p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.help-panel {
  width: min(780px, 100%);
  margin: 0 auto;
  padding: clamp(42px, 7vw, 76px) clamp(24px, 6vw, 64px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 18px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: "Calibri Bold", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
}

.help-panel__intro {
  max-width: 590px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.18rem);
  line-height: 1.65;
}

.help-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--green);
  border-radius: 999px;
  font-family: "Calibri Semibold", "Segoe UI Semibold", "Segoe UI", system-ui, sans-serif;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

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

.button--primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(7, 136, 79, 0.18);
}

.button--primary:hover {
  background: var(--green-dark);
}

.button--secondary {
  background: var(--white);
  color: var(--green-dark);
}

.button--secondary:hover {
  background: var(--green-soft);
}

.site-footer {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(212, 228, 220, 0.9);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: 20px;
}

.site-footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
}

@media (min-width: 801px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 2;
  }

  .help-main {
    width: 100%;
    padding-right: 24px;
  }

  .help-sidebar {
    position: fixed;
    top: 72px;
    left: 0;
    width: 280px;
    height: calc(100vh - 72px);
    z-index: 1;
  }

  .help-navigation {
    height: 100%;
    max-height: none;
    border-width: 0 1px 0 0;
    border-radius: 0;
    box-shadow: none;
  }

  .help-content {
    grid-column: 2;
  }

  .site-footer {
    width: auto;
    margin-left: 312px;
    margin-right: 24px;
  }

  .help-navigation > summary {
    display: none;
  }
}

@media (max-width: 800px) {
  .site-header__inner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0;
  }

  .help-search {
    order: 1;
    flex-basis: 100%;
    max-width: none;
  }

  .help-panel--results {
    scroll-margin-top: 16px;
  }

  .guide-image__hint {
    display: block;
    margin-top: 4px;
    color: var(--green-dark);
    font-size: 0.88rem;
  }

  .help-main {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 32px;
  }

  .help-sidebar {
    position: static;
  }

  .help-navigation {
    max-height: none;
  }

  .help-navigation[open] > summary {
    border-bottom: 1px solid var(--line);
  }

  .help-content {
    padding-top: 0;
  }
}

@media (max-width: 600px) {
  .site-header__inner,
  .site-footer,
  .help-main {
    width: calc(100% - 28px);
  }

  .site-header__inner {
    min-height: 64px;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .help-main {
    min-height: calc(100vh - 196px);
    padding: 32px 0 44px;
  }

  .help-panel {
    padding: 40px 20px;
    border-radius: 22px;
  }

  .help-panel.help-article {
    padding: 28px 20px;
  }

  .help-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    min-height: 112px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 18px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
