/* AARI step guides with "More detail" expanders (v23). Loads after redesign.css on /buyer-guide and /seller-guide.
   Native <details>/<summary>: keyboard and screen-reader support built in, works with no JavaScript,
   and the text is in the HTML for search engines. Corners use the site radius tokens (Marcus, Nov 27). */
.gx-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* At-a-glance list (doubles as the table of contents) */
.gx-glance { background: var(--mist); border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: var(--radius-md); padding: 20px 24px 22px; margin: 0 0 8px; }
.gx-glance h2 { font-size: 22px; margin: 0 0 .5em; }
.gx-glance ol { list-style: none; counter-reset: gx; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 32px; }
.gx-glance li { counter-increment: gx; position: relative; padding-left: 40px; font-size: 16.5px; line-height: 1.4; min-height: 30px; display: flex; align-items: center; }
.gx-glance li::before { content: counter(gx); position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; background: var(--navy); color: var(--gold); font-family: var(--serif); font-weight: 600; font-size: 15px; border-radius: var(--radius-sm); }
.gx-glance a { padding: 4px 0; }
.gx-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 18px 0 0; }
.gx-tools .btn { min-height: 44px; padding: 10px 18px; font-size: 16px; }

/* One step */
.gx-step { border-top: 1px solid var(--line); padding: 44px 0 4px; margin-top: 28px; scroll-margin-top: 16px; }
.gx-step:first-of-type { border-top: 0; margin-top: 8px; }
.gx-step h2 { display: flex; align-items: flex-start; gap: 14px; font-size: clamp(25px, 3vw, 31px); margin: 0 0 14px; }
.gx-num { flex: none; width: 40px; height: 40px; margin-top: 1px; display: inline-flex; align-items: center; justify-content: center; background: var(--navy); color: var(--gold); font-size: 20px; line-height: 1; border-radius: var(--radius-sm); }
.gx-sum { font-size: 18.5px; line-height: 1.6; color: var(--ink); max-width: var(--measure); margin: 0 0 18px; }

/* The expander */
.gx-more { border: 1px solid var(--line); border-left: 4px solid var(--lagoon); border-radius: var(--radius-sm); background: #fff; max-width: calc(var(--measure) + 60px); }
.gx-more > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 16px; font-weight: 600; font-size: 16.5px; color: var(--navy); background: var(--mist); }
.gx-more > summary::-webkit-details-marker { display: none; }
.gx-more > summary::before { content: ""; flex: none; width: 10px; height: 10px; border-right: 2.5px solid var(--lagoon); border-bottom: 2.5px solid var(--lagoon); transform: rotate(-45deg); transition: transform .15s; margin-left: 2px; }
.gx-more[open] > summary::before { transform: rotate(45deg); margin-top: -4px; }
.gx-more > summary:hover { background: var(--sand); }
.gx-more > summary:focus-visible { outline: 3px solid var(--lagoon); outline-offset: 2px; }
.gx-body { padding: 6px 22px 18px; border-top: 1px solid var(--line); }
.gx-body h3 { font-size: 19.5px; margin: 1.3em 0 .35em; color: var(--navy); }
.gx-body p, .gx-body li { font-size: 16.5px; line-height: 1.6; }
.gx-body ul, .gx-body ol { padding-left: 1.25em; margin: 0 0 1em; }
.gx-body li { margin-bottom: .4em; }
.gx-body table { width: 100%; border-collapse: collapse; margin: .4em 0 1em; font-size: 15.5px; }
.gx-body caption { text-align: left; font-size: 14.5px; color: var(--slate); padding-bottom: 6px; caption-side: top; }
.gx-body th, .gx-body td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.gx-body thead th { background: var(--mist); color: var(--navy); font-weight: 600; }
.gx-body td.num, .gx-body th.num { text-align: right; }
.gx-body td.num { white-space: nowrap; }
.gx-table-wrap { overflow-x: auto; }
.gx-watch { background: var(--sand); border-left: 4px solid var(--gold); border-radius: var(--radius-sm); padding: 12px 16px; margin: 1em 0; }
.gx-watch p { margin: 0 0 .4em; } .gx-watch ul { margin: 0; }
.gx-watch strong:first-child { color: var(--gold-ink); }
.gx-src { font-size: 14px; color: var(--slate); margin: 1.2em 0 0; }
.gx-links { font-size: 15.5px; margin: .8em 0 0; }
.gx-next { margin: 14px 0 0; font-size: 16px; color: var(--slate); }
.gx-foot { border-top: 1px solid var(--line); margin-top: 44px; padding-top: 18px; font-size: 14.5px; color: var(--slate); }

@media screen and (max-width: 760px) {
  .gx-glance ol { grid-template-columns: 1fr; }
  .gx-step h2 { font-size: 24px; gap: 12px; }
  .gx-num { width: 34px; height: 34px; font-size: 17px; }
  .gx-sum { font-size: 17.5px; }
  .gx-body { padding: 4px 16px 16px; }
  .gx-body table { font-size: 14.5px; }
  .gx-body th, .gx-body td { padding: 7px 6px; }
}
@media (prefers-reduced-motion: reduce) { .gx-more > summary::before { transition: none; } }
@media print {
  .gx-tools { display: none !important; }
  .gx-more { border: 0; border-left: 3px solid #999; }
  .gx-more > summary { background: none; padding-left: 12px; }
  .gx-more::details-content { content-visibility: visible; display: block; }
  .gx-step { break-inside: auto; padding-top: 18px; }
}

/* v27.1: one Sources and notes section at the bottom of each guide */
.gx-sources { border-top: 1px solid var(--line); margin-top: 44px; padding-top: 18px; font-size: 14.5px; color: var(--slate); }
.gx-sources h2 { font-size: 20px; margin: 0 0 .5em; }
.gx-sources p { margin: 0 0 .7em; }
.gx-src-list { margin: 0 0 .8em; padding-left: 1.1em; columns: 2 300px; column-gap: 32px; }
.gx-src-list li { margin: 0 0 .3em; break-inside: avoid; }
@media print { .gx-src-list { columns: 1; } }
/* v29.30: stacked tables on phones. Add class="guide-table gx-stack" and a data-label on each td.
   Desktop keeps the .guide-table look; under 800px each row becomes a square-cornered card. */
.gx-table-wrap > .guide-table { margin: 0 0 1em; }
@media screen and (max-width: 799px) {
  .gx-stack, .gx-stack tbody, .gx-stack tr, .gx-stack th, .gx-stack td { display: block; width: auto; }
  .gx-stack caption { display: block; text-align: left; }
  .gx-stack thead { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .gx-stack tr { border: 1px solid var(--line); border-top: 4px solid var(--navy); background: #fff; margin: 0 0 12px; }
  .gx-stack tbody th[scope="row"] { border: 0; border-bottom: 1px solid var(--line); background: var(--grey); color: var(--navy); font-family: var(--serif); font-weight: 600; font-size: 17px; line-height: 1.35; text-align: left; padding: 10px 14px; }
  .gx-stack td { border: 0; padding: 9px 14px 10px; text-align: left; font-size: 16px; line-height: 1.5; }
  .gx-stack td + td { border-top: 1px solid var(--grey); }
  .gx-stack td[data-label]::before { content: attr(data-label); display: block; font-family: var(--sans); font-size: 13.5px; font-weight: 600; color: var(--gold-ink); margin: 0 0 2px; }
}


/* v29.43 — styles for the four new guide classes (navy/gold, square corners, Plex) */
.gx-step.gx-insight {
  border-top: 1px solid rgba(201, 162, 74, 0.38);
  padding-top: 40px;
}
.gx-note {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--sand, #f6f1e6);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 0;
  padding: 12px 16px;
  margin: 1em 0;
  max-width: 100%;
  box-sizing: border-box;
}
.mls-slot {
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
  border-radius: 0;
  background: #fff;
  padding: 16px 16px 8px;
  margin: 1.2em 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
}
.mls-slot h3 {
  font-family: var(--serif);
  color: var(--navy);
  font-size: 22px;
  margin: 0 0 10px;
}
.mls-slot .mls-credit-short,
.mls-credit-short {
  font-size: 13.5px;
  color: var(--slate);
  margin: 0.6em 0 1em;
}
.gx-take {
  display: none;
}
@media screen and (max-width: 390px) {
  .mls-slot,
  .gx-note,
  .gx-step.gx-insight {
    overflow-x: hidden;
  }
}
