.guide-section {
  --guide-ink: #301c3a;
  --guide-text: #4b374c;
  --guide-line: #b7a1b1;
  --guide-paper: #fff9f4;
  --guide-pink: #ffc3cc;
  --guide-yellow: #ffda79;
  --guide-blue: #b8e4ed;
  --guide-display: var(--display, 'Barlow Condensed', 'Public Sans', system-ui, sans-serif);
  margin-block-start: clamp(52px, 8vw, 100px);
  color: var(--guide-ink);
}

.guide-section h2 {
  max-inline-size: 15ch;
  font: 700 clamp(2.35rem, 5vw, 4.65rem)/.97 var(--guide-display);
  letter-spacing: -.025em;
  text-wrap: balance;
}

.guide-section p {
  color: var(--guide-text);
}

.guide-section h2 + p {
  margin-block-start: 1rem;
  color: var(--guide-text);
}

.guide-section :where(a, summary):focus-visible {
  outline: 3px solid var(--guide-ink);
  outline-offset: 3px;
}

.guide-section--prep {
  padding-block-start: clamp(19px, 4vw, 40px);
  border-block-start: 4px double var(--guide-ink);
}

.guide-intro {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(24px, 6vw, 74px);
  border: 0;
  padding: 0;
}

.guide-intro p {
  max-inline-size: 49ch;
  margin-block-end: 0;
}

.guide-image-frame {
  min-inline-size: 0;
  margin: 0;
  padding: 9px 9px 15px;
  background: linear-gradient(90deg, var(--guide-pink) 0 78%, var(--guide-yellow) 78% 89%, var(--guide-blue) 89%);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}

.guide-image-frame .guide-photo {
  display: block;
  inline-size: 100%;
  max-inline-size: 100%;
  block-size: auto;
  aspect-ratio: 1.72;
  object-position: center 54%;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  transition: filter .2s ease;
}

.guide-image-frame .guide-photo:hover {
  transform: none;
  box-shadow: none;
}

.guide-checklist {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: clamp(24px, 4vw, 44px) 0 0;
  padding: 0;
  list-style: none;
  border-block: 1px solid var(--guide-line);
}

.guide-checklist li {
  position: relative;
  min-inline-size: 0;
  padding: 2rem clamp(11px, 1.8vw, 24px) 1rem;
  color: var(--guide-text);
}

.guide-checklist li + li {
  border-inline-start: 1px solid var(--guide-line);
}

.guide-checklist li::before {
  position: absolute;
  inset: .72rem auto auto clamp(12px, 1.8vw, 25px);
  content: '';
  inline-size: .79rem;
  block-size: .48rem;
  background: transparent;
  border: solid var(--guide-ink);
  border-width: 0 0 2px 2px;
  border-radius: 0;
  outline: none;
  transform: rotate(-45deg);
}

.guide-checklist strong {
  display: block;
  margin-block-end: .25rem;
  color: var(--guide-ink);
  line-height: 1.23;
}

.guide-fee-layout,
.guide-section--sources,
.guide-section--faq {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr);
  gap: clamp(20px, 4vw, 52px);
  align-items: start;
}

.guide-fee-layout {
  gap: 0;
  background: var(--guide-paper);
  border-block: 2px solid var(--guide-ink);
}

.guide-fee-heading {
  align-self: stretch;
  padding: clamp(20px, 3.4vw, 40px);
  background: #ffeab0;
}

.guide-fee-heading h2 {
  max-inline-size: 12ch;
}

.guide-table {
  min-inline-size: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: var(--guide-paper);
}

.guide-table table {
  inline-size: 100%;
  border-collapse: collapse;
}

.guide-table caption {
  padding: .8rem 1rem;
  color: var(--guide-text);
  text-align: start;
}

.guide-table thead {
  color: var(--guide-ink);
  background: var(--guide-pink);
}

.guide-table th,
.guide-table td {
  padding: .7rem 1rem;
  text-align: start;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.guide-table tr > :last-child {
  padding-inline-end: 1.1rem;
  text-align: end;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 720;
}

.guide-table tbody tr + tr {
  border-block-start: 1px solid #e3cfd5;
}

.guide-table tbody tr:hover {
  background: #ffeff2;
}

.guide-cases-title {
  margin: clamp(23px, 4vw, 44px) 0 .45rem;
  font: 700 clamp(1.7rem, 3vw, 2.45rem)/1.02 var(--guide-display);
  letter-spacing: -.015em;
}

.guide-cases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-block: 1px solid var(--guide-line);
}

.guide-case {
  min-inline-size: 0;
  padding: 1.1rem clamp(13px, 2vw, 25px) 1.25rem;
  background: transparent;
  box-shadow: inset 0 3px var(--guide-pink);
  border: 0;
  border-radius: 0;
  transition: background-color .18s ease, box-shadow .18s ease;
}

.guide-case:nth-child(2) {
  background: transparent;
  box-shadow: inset 0 3px var(--guide-yellow);
}

.guide-case:nth-child(3) {
  background: transparent;
  box-shadow: inset 0 3px var(--guide-blue);
}

.guide-case + .guide-case {
  border-inline-start: 1px solid var(--guide-line);
}

.guide-case:hover {
  transform: none;
  background: #fff0ed;
  box-shadow: inset 0 5px var(--guide-pink);
}

.guide-case:nth-child(2):hover {
  background: #fff4db;
  box-shadow: inset 0 5px var(--guide-yellow);
}

.guide-case:nth-child(3):hover {
  background: #e8f5f8;
  box-shadow: inset 0 5px var(--guide-blue);
}

.guide-case h4 {
  margin: 0 0 .4rem;
  font: 700 clamp(1.25rem, 2.3vw, 1.7rem)/1.1 var(--guide-display);
}

.guide-case p {
  margin: 0;
}

.guide-cta {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  margin-block-start: 1rem;
  padding-inline: .85rem;
  color: var(--guide-ink);
  background: var(--guide-yellow);
  border-inline-start: 4px solid var(--guide-ink);
  font-weight: 720;
  text-decoration: underline;
  text-underline-offset: .2em;
  transition: color .18s ease, background-color .18s ease;
}

.guide-cta:hover {
  color: #fff9f4;
  background: var(--guide-ink);
}

.guide-section--sources {
  padding: clamp(19px, 3vw, 38px);
  border-block: 4px double var(--guide-ink);
  background: var(--guide-blue);
}

.guide-sources {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
  border-block-start: 1px solid #63848b;
}

.guide-sources li {
  display: grid;
  min-inline-size: 0;
  border-block-end: 1px solid #63848b;
}

.guide-sources li:nth-child(even) {
  border-inline-start: 1px solid #63848b;
}

.guide-sources a {
  display: flex;
  align-items: center;
  padding: .65rem .72rem;
  min-block-size: 48px;
  color: var(--guide-ink);
  text-underline-offset: .19em;
  transition: color .18s ease, background-color .18s ease;
}

.guide-sources a:hover {
  color: var(--guide-ink);
  background: #dcf4f8;
}

.guide-section--faq {
  padding-block-start: clamp(19px, 3vw, 34px);
  border-block-start: 4px double var(--guide-ink);
}

.guide-faq {
  display: block;
  margin: 0;
  border-block-start: 1px solid var(--guide-line);
}

.guide-faq details {
  padding: 0;
  border: 0;
  border-block-end: 1px solid var(--guide-line);
  border-radius: 0;
  background: transparent;
}

.guide-faq details:hover {
  background: transparent;
}

.guide-faq summary {
  position: relative;
  display: flex;
  align-items: center;
  min-block-size: 49px;
  list-style: none;
  padding: .61rem 2.8rem .61rem .7rem;
  color: var(--guide-ink);
  cursor: pointer;
  font-weight: 720;
  transition: background-color .18s ease;
}

.guide-faq summary::marker { content: ''; }
.guide-faq summary::-webkit-details-marker { display: none; }

.guide-faq summary::before,
.guide-faq summary::after {
  position: absolute;
  inset: 50% .9rem auto auto;
  content: '';
  display: block;
  inline-size: .88rem;
  block-size: 2px;
  border-radius: 0;
  background: var(--guide-ink);
  transform: translateY(-50%);
  transition: transform .18s ease;
}

.guide-faq summary::after,
.guide-faq summary:hover::after {
  content: '';
  transform: translateY(-50%) rotate(90deg);
}

.guide-faq details[open] > summary,
.guide-faq summary:hover {
  background: #ffe4e8;
}

.guide-faq details[open] > summary::after {
  content: '';
  background: var(--guide-ink);
  transform: translateY(-50%);
}

.guide-faq p {
  padding: .35rem .7rem 1rem;
  max-inline-size: 66ch;
  color: var(--guide-text);
}

@media (max-width: 900px) {
  .guide-checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-checklist li:nth-child(odd) { border-inline-start: 0; }
  .guide-checklist li:nth-child(n+3) { border-block-start: 1px solid var(--guide-line); }
}

@media (max-width: 660px) {
  .guide-section h2 { font-size: clamp(2.15rem, 9.5vw, 3.1rem); }
  .guide-intro,
  .guide-fee-layout,
  .guide-section--sources,
  .guide-section--faq { grid-template-columns: minmax(0, 1fr); }
  .guide-intro,
  .guide-section--faq { gap: 1rem; }
  .guide-image-frame .guide-photo { aspect-ratio: 3 / 2; }
  .guide-checklist { margin-block-start: 1.2rem; }
  .guide-fee-heading { padding: .9rem; }
  .guide-table caption,
  .guide-table th,
  .guide-table td { padding: .52rem .45rem; }
  .guide-table tr > :last-child { padding-inline-end: .45rem; }
  .guide-cases { grid-template-columns: minmax(0, 1fr); }
  .guide-case + .guide-case { border-inline-start: 0; }
  .guide-case h4 { font-size: 1.35rem; }
}

@media (max-width: 365px) {
  .guide-sources { grid-template-columns: minmax(0, 1fr); }
  .guide-sources li:nth-child(even) { border-inline-start: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .guide-section *, .guide-section *::before, .guide-section *::after { transition: none; }
}
