:root {
  color-scheme: light;
  --canvas: #f6f3ed;
  --canvas-deep: #eee8dd;
  --paper: #fffdf9;
  --paper-strong: #ffffff;
  --ink: #1f2925;
  --muted: #67716c;
  --line: #ded9cf;
  --line-soft: #ebe7df;
  --brand: #d45d26;
  --brand-dark: #9f3e17;
  --brand-soft: #fff0e8;
  --green: #25735a;
  --green-soft: #e7f4ee;
  --blue: #326b83;
  --blue-soft: #e9f3f7;
  --warning: #855d12;
  --warning-soft: #fff6dd;
  --danger: #a63c32;
  --danger-soft: #fff0ed;
  --shadow: 0 18px 55px rgba(48, 41, 31, 0.09);
  --radius: 22px;
  --radius-small: 14px;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 90% 0%, rgba(212, 93, 38, 0.08), transparent 30rem),
    var(--canvas);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

a {
  color: var(--brand-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand);
}

button,
input,
select,
textarea {
  font: inherit;
}

img {
  max-width: 100%;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-150%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(222, 217, 207, 0.9);
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(18px);
}

.header-inner,
.page,
.footer-inner {
  width: min(var(--content), calc(100% - 40px));
  margin-inline: auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  line-height: 1.25;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-size: 20px;
  box-shadow: 0 8px 22px rgba(212, 93, 38, 0.23);
}

.brand-copy {
  display: grid;
}

.brand-copy small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.menu-button {
  display: none;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.site-nav,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.site-nav a,
.footer-links a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--brand-dark);
}

.page {
  padding-block: 42px 88px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 38px;
  align-items: center;
  min-height: 470px;
  overflow: hidden;
  padding: 54px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -150px;
  width: 390px;
  height: 390px;
  border: 70px solid var(--brand-soft);
  border-radius: 50%;
  pointer-events: none;
}

.hero-copy,
.record-preview {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 3px;
  border-radius: 999px;
  background: var(--brand);
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 58px);
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(25px, 3.5vw, 36px);
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

h4 {
  margin-bottom: 8px;
  font-size: 17px;
}

p {
  margin: 0 0 14px;
}

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

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 20px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper-strong);
  color: var(--ink);
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  text-decoration: none;
}

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

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

.button.secondary {
  border-color: #f0c8b6;
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.record-preview {
  width: min(100%, 355px);
  justify-self: end;
  padding: 18px;
  border: 1px solid #dcd7ce;
  border-radius: 24px;
  background: #f8f7f3;
  box-shadow: 0 20px 55px rgba(31, 41, 37, 0.14);
  transform: rotate(1.5deg);
}

.record-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 13px;
  font-weight: 800;
}

.status-pair {
  display: flex;
  gap: 8px;
}

.status {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 12px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-grid span {
  display: grid;
  place-items: center;
  min-height: 34px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
}

.calendar-grid .weekday {
  min-height: 24px;
  font-weight: 800;
}

.calendar-grid .filled {
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
}

.calendar-grid .selected {
  background: var(--brand);
  color: #fff;
}

.preview-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.preview-summary div {
  padding: 10px;
  border-radius: 10px;
  background: var(--paper);
}

.preview-summary small,
.preview-summary strong {
  display: block;
}

.preview-summary small {
  color: var(--muted);
  font-size: 10px;
}

.preview-summary strong {
  font-size: 14px;
}

.section {
  padding-top: 72px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-heading p {
  max-width: 650px;
  color: var(--muted);
}

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

.card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.card .number,
.topic-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 13px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 15px;
  font-weight: 900;
}

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

.card-link {
  font-weight: 800;
}

.callout {
  padding: 22px 24px;
  border: 1px solid #efc8b7;
  border-left: 5px solid var(--brand);
  border-radius: var(--radius-small);
  background: var(--brand-soft);
}

.callout.info {
  border-color: #bad8e5;
  border-left-color: var(--blue);
  background: var(--blue-soft);
}

.callout.warning {
  border-color: #ead59f;
  border-left-color: var(--warning);
  background: var(--warning-soft);
}

.callout.danger {
  border-color: #edc0ba;
  border-left-color: var(--danger);
  background: var(--danger-soft);
}

.callout > :last-child {
  margin-bottom: 0;
}

.help-hero {
  display: grid;
  gap: 20px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.help-hero h1 {
  font-size: clamp(32px, 4vw, 48px);
}

.search-box {
  display: grid;
  gap: 8px;
  max-width: 760px;
}

.search-box label {
  font-weight: 800;
}

.search-input {
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  border: 2px solid var(--line);
  border-radius: 15px;
  background: var(--paper-strong);
  color: var(--ink);
}

.search-input:focus {
  border-color: var(--brand);
  outline: 3px solid rgba(212, 93, 38, 0.14);
}

.search-result {
  color: var(--muted);
  font-size: 13px;
}

.help-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  margin-top: 28px;
}

.help-nav {
  position: sticky;
  top: 98px;
  max-height: calc(100vh - 120px);
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--paper);
}

.help-nav strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
}

.help-nav a {
  display: block;
  padding: 7px 9px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.help-nav a:hover {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.help-content {
  display: grid;
  gap: 20px;
}

.help-topic {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.help-topic[hidden] {
  display: none;
}

.topic-heading {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.topic-heading .topic-icon {
  flex: 0 0 auto;
  margin: 0;
}

.topic-heading p {
  margin: 0;
  color: var(--muted);
}

.help-topic h3 {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}

.help-topic h3:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.help-topic ul,
.help-topic ol,
.document ul,
.document ol {
  padding-left: 1.4em;
}

.help-topic li + li,
.document li + li {
  margin-top: 6px;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 12px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

.data-table th,
.data-table td {
  padding: 11px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: var(--canvas);
}

.definition-list {
  display: grid;
  grid-template-columns: minmax(130px, 0.34fr) minmax(0, 1fr);
  margin: 16px 0;
  border-top: 1px solid var(--line);
}

.definition-list dt,
.definition-list dd {
  margin: 0;
  padding: 11px 8px;
  border-bottom: 1px solid var(--line);
}

.definition-list dt {
  font-weight: 800;
}

.definition-list dd {
  color: var(--muted);
}

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

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper-strong);
}

.faq-list summary {
  padding: 15px 17px;
  cursor: pointer;
  font-weight: 800;
}

.faq-answer {
  padding: 0 17px 17px;
  color: var(--muted);
}

.search-empty {
  padding: 34px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  text-align: center;
}

.document {
  max-width: 900px;
  margin-inline: auto;
}

.document-header,
.document-section {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.document-header {
  margin-bottom: 18px;
}

.document-header h1 {
  font-size: clamp(30px, 4vw, 46px);
}

.document-section + .document-section {
  margin-top: 14px;
}

.document-section h2 {
  font-size: 24px;
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 28px;
  align-items: start;
}

.form-intro,
.form-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.form-intro {
  position: sticky;
  top: 98px;
}

.form {
  display: grid;
  gap: 20px;
}

.field {
  display: grid;
  gap: 8px;
}

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

label,
legend {
  font-weight: 800;
}

.required {
  color: var(--danger);
  font-size: 12px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #cfc9bf;
  border-radius: 12px;
  background: var(--paper-strong);
  color: var(--ink);
}

textarea {
  min-height: 210px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  outline: 3px solid rgba(212, 93, 38, 0.14);
}

.checkbox-field {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.checkbox-field input {
  width: 20px;
  min-height: 20px;
  margin-top: 4px;
}

.help-text {
  color: var(--muted);
  font-size: 13px;
}

.hidden-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.notice,
.success,
.error {
  padding: 15px 17px;
  border: 1px solid;
  border-radius: 13px;
}

.notice {
  border-color: #ead59f;
  background: var(--warning-soft);
  color: var(--warning);
}

.success {
  border-color: #aad8c7;
  background: var(--green-soft);
  color: var(--green);
}

.error {
  border-color: #edc0ba;
  background: var(--danger-soft);
  color: var(--danger);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer-inner {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 38px;
  }

  .record-preview {
    justify-self: start;
  }

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

  .help-layout,
  .form-layout {
    grid-template-columns: 1fr;
  }

  .help-nav,
  .form-intro {
    position: static;
    max-height: none;
  }

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

  .help-nav strong {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .header-inner,
  .page,
  .footer-inner {
    width: min(100% - 28px, var(--content));
  }

  .header-inner {
    min-height: 68px;
    flex-wrap: wrap;
    padding-block: 10px;
  }

  .menu-button {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    display: none;
    width: 100%;
    padding: 10px 0 4px;
  }

  .site-nav[data-open="true"] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-nav a {
    padding: 8px;
    border-radius: 8px;
    background: var(--canvas);
  }

  .page {
    padding-block: 24px 60px;
  }

  .hero,
  .help-hero,
  .help-topic,
  .document-header,
  .document-section,
  .form-intro,
  .form-card {
    padding: 22px;
    border-radius: 18px;
  }

  .hero {
    min-height: 0;
  }

  .record-preview {
    width: 100%;
    transform: none;
  }

  .section {
    padding-top: 52px;
  }

  .section-heading,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .card-grid,
  .field-row,
  .help-nav {
    grid-template-columns: 1fr;
  }

  .definition-list {
    grid-template-columns: 1fr;
  }

  .definition-list dt {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .data-table {
    display: block;
    overflow-x: auto;
  }

  .footer-inner {
    justify-content: center;
    padding-block: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
