.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 14px;
  background: white;
  transform: translateY(-180%);
}
.skip-link:focus {
  transform: none;
}
.widget-guide h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.7rem);
  line-height: 1.15;
  letter-spacing: -0.045em;
  margin: 18px 0 24px;
}
.widget-guide h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.25;
  letter-spacing: -0.035em;
  margin: 12px 0 22px;
}
.widget-guide h3 {
  font-size: 1.35rem;
  line-height: 1.4;
  margin: 12px 0;
}
.widget-guide p,
.widget-guide li {
  color: var(--text);
}
.widget-guide p {
  max-width: 68ch;
}
.widget-guide a:not(.button):not(.picture-link):not(.platform-choice) {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.widget-intro,
.widget-home-preview {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 60px;
  align-items: center;
  padding-block: 64px;
}
.widget-intro {
  grid-template-areas: 'intro image' 'basics image';
  row-gap: 22px;
}
.widget-intro > div:first-child {
  grid-area: intro;
  align-self: end;
}
.widget-basics {
  grid-area: basics;
  align-self: start;
}
.widget-intro > figure {
  grid-area: image;
}
.widget-intro > *,
.widget-home-preview > *,
.guide-step > * {
  min-width: 0;
}
.widget-home-preview h2 {
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.04em;
}
.widget-home-preview p {
  color: var(--text);
}
.widget-home-preview figure {
  margin: 0;
}
.widget-home-preview img {
  width: min(100%, 310px);
  margin-inline: auto;
}
.picture-link {
  display: block;
  border-radius: 28px;
  padding: 18px;
  background: var(--brand-soft);
  text-align: center;
}
.picture-link img {
  width: min(100%, 300px);
  height: auto;
  margin-inline: auto;
}
.picture-link > span {
  display: block;
  margin-top: 14px;
  color: var(--brand-strong);
  font-size: 0.85rem;
  text-decoration: underline;
}
.widget-guide figure {
  margin: 0;
}
.widget-guide figcaption,
.widget-home-preview figcaption {
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text);
  margin-top: 12px;
  text-align: center;
}
.guide-note {
  padding: 20px 24px;
  border-left: 4px solid var(--green);
  background: var(--green-soft);
  border-radius: 0 16px 16px 0;
}
.guide-note p {
  margin: 0;
}
.guide-toc {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
}
.guide-toc ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 0;
  margin: 12px 0 0;
  list-style: none;
}
.guide-toc a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.guide-section {
  padding-block: 64px;
  border-bottom: 1px solid var(--border);
}
.widget-guide [id] {
  scroll-margin-top: 105px;
}
.platform-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 28px 0 16px;
}
.platform-choice {
  display: grid;
  gap: 6px;
  padding: 26px;
  background: var(--surface);
  border: 2px solid var(--brand);
  border-radius: 20px;
}
.platform-choice strong {
  font-size: 1.2rem;
}
.platform-choice span {
  color: var(--text);
}
.platform-choice:hover,
.platform-choice[aria-current] {
  background: var(--brand-soft);
  box-shadow: var(--shadow-soft);
}
.platform-choice[aria-current] strong::after {
  content: ' ✓';
}
.preparation-list {
  padding-left: 24px;
}
.preparation-list li {
  padding: 10px 0 10px 10px;
}
.preparation-list li::marker {
  color: var(--brand);
  font-weight: 600;
}
.guide-step-list {
  list-style: none;
  padding: 0;
  margin: 38px 0 0;
}
.guide-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 370px);
  align-items: center;
  gap: 50px;
  padding: 36px 0;
  border-top: 1px solid var(--border);
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 44px;
  border-radius: 30px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 16px;
}
.step-result {
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.guide-step .picture-link img {
  max-width: 275px;
}
.format-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.format-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: 24px;
}
.format-card .picture-link {
  background: transparent;
  padding: 0;
}
.format-card img {
  width: auto;
  max-height: 240px;
  max-width: 100%;
}
.format-card dt {
  font-weight: 600;
  margin-top: 16px;
}
.format-card dd {
  margin: 4px 0;
  color: var(--text);
}
.use-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 36px;
}
.help-list {
  display: grid;
  gap: 12px;
}
.help-list details {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  padding: 6px 22px;
}
.help-list summary {
  padding-block: 16px;
  min-height: 56px;
  font-weight: 600;
  cursor: pointer;
}
.native-example {
  max-width: 420px;
  margin-block: 24px;
}
.native-example summary {
  padding-block: 16px;
  min-height: 56px;
  cursor: pointer;
  font-weight: 600;
}
.help-list ol {
  padding-left: 24px;
}
.help-list li {
  padding-bottom: 10px;
}
.guide-sources {
  font-size: 0.85rem;
}
.guide-sources li {
  padding-block: 8px;
}
.guide-finish {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.illustration-open {
  overflow: hidden;
}
.illustration-dialog {
  border: 0;
  border-radius: 24px;
  background: var(--surface);
  color: var(--ink);
  width: min(94vw, 720px);
  max-height: 94dvh;
  padding: 20px;
  overscroll-behavior: contain;
}
.illustration-dialog::backdrop {
  background: rgba(23, 10, 41, 0.8);
}
.illustration-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: -20px;
  padding: 12px 0;
  background: var(--surface);
  z-index: 1;
}
.illustration-dialog button {
  font: inherit;
  min-height: 48px;
  min-width: 48px;
  padding: 10px 16px;
  border: 1px solid var(--brand);
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  cursor: pointer;
}
.illustration-dialog img {
  width: min(100%, 460px);
  height: auto;
  max-height: none;
  margin: 16px auto;
}
.illustration-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
@media (max-width: 980px) {
  .widget-guide [id] {
    scroll-margin-top: 24px;
  }
  .widget-intro {
    gap: 28px;
  }
  .guide-step {
    gap: 26px;
  }
}
@media (max-width: 680px) {
  .widget-intro,
  .widget-home-preview,
  .guide-step,
  .format-grid,
  .use-grid {
    grid-template-columns: 1fr;
  }
  .widget-intro {
    grid-template-areas: 'intro' 'image' 'basics';
  }
  .widget-intro,
  .widget-home-preview {
    padding-block: 40px;
    gap: 30px;
  }
  .platform-choices {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .platform-choice {
    padding: 22px;
  }
  .guide-section {
    padding-block: 44px;
  }
  .guide-step {
    padding-block: 28px;
    gap: 18px;
  }
  .guide-step .picture-link img {
    max-width: 300px;
  }
  .picture-link {
    padding: 14px;
  }
  .guide-toc ul {
    display: grid;
    gap: 4px;
  }
  .illustration-toolbar {
    font-size: 0.8rem;
  }
}
@media print {
  @page {
    margin: 15mm;
  }
  body {
    background: white;
    overflow: visible;
    color: black;
    font-size: 10pt;
  }
  body::before,
  .site-header,
  .site-footer,
  .skip-link,
  .illustration-dialog,
  .picture-link > span,
  .guide-finish {
    display: none !important;
  }
  .container {
    width: 100%;
  }
  .widget-intro {
    grid-template-columns: 1.4fr 1fr;
    padding: 0;
  }
  .widget-guide h1 {
    font-size: 26pt;
  }
  .widget-guide h2 {
    font-size: 20pt;
  }
  .widget-guide h3 {
    font-size: 14pt;
  }
  .widget-guide h2,
  .widget-guide h3 {
    break-after: avoid;
  }
  .widget-guide .button {
    display: none !important;
  }
  .guide-toc {
    break-inside: avoid;
  }
  .guide-section {
    padding-block: 20px;
  }
  .guide-step {
    grid-template-columns: 1fr 180px;
    gap: 24px;
    padding: 18px 0;
    break-inside: avoid;
  }
  .picture-link {
    padding: 0;
    background: none;
  }
  .picture-link img {
    max-height: 280px;
    width: auto;
  }
  .platform-choices,
  .format-grid,
  .use-grid {
    grid-template-columns: 1fr 1fr;
  }
  .format-card,
  .help-list details {
    break-inside: avoid;
  }
  .help-list details::details-content {
    content-visibility: visible;
    display: block;
  }
  .help-list details > :not(summary) {
    display: block !important;
  }
  .guide-note,
  .format-card,
  .platform-choice,
  .help-list details {
    background: white;
    box-shadow: none;
  }
}
