/* PayMethod Guide — decision guides and payment problem-solving pages */

.guide-hero .hero-inner {
  grid-template-columns: minmax(0, 1fr) 330px;
  padding-block: 34px 38px;
}

.guide-hero h1 { max-width: 900px; }
.guide-hero .hero-copy { max-width: 720px; }

.guide-verdict {
  position: relative;
  padding: 22px;
  overflow: hidden;
}

.guide-verdict::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--cyan), var(--hero-violet));
}

.guide-verdict-label,
.guide-section-label {
  display: inline-flex;
  width: fit-content;
  color: var(--hero-blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.guide-verdict h2 {
  margin: 8px 0 12px;
  color: var(--text);
  font-size: 1.35rem;
  text-align: left;
}

.guide-verdict p { margin: 0; color: var(--muted); font-size: 13px; }

.guide-visual-section { padding: 34px 0 0; background: var(--surface); }

.guide-visual {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.guide-visual img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  max-height: 520px;
  object-fit: cover;
}

.guide-visual figcaption {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 28px;
  color: var(--muted);
  background:
    linear-gradient(145deg, rgba(6,57,199,.05), rgba(93,36,214,.08)),
    var(--canvas);
  line-height: 1.7;
}

.guide-visual figcaption strong { color: var(--text); font-size: 1.05rem; }

.guide-main { padding-top: 56px; }

.guide-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; }
.guide-prose { max-width: 900px; }
.guide-prose h2 { text-align: left; font-size: clamp(1.65rem, 3vw, 2.25rem); }
.guide-prose h3 { margin-top: 28px; font-size: 1.25rem; }
.guide-prose p, .guide-prose li { font-size: 17px; line-height: 1.78; }
.guide-prose section { scroll-margin-top: 104px; }

.guide-sidebar {
  max-height: calc(100vh - 132px);
  overflow: auto;
}

.guide-sidebar strong { display: block; margin-bottom: 12px; }
.guide-sidebar a { padding: 4px 0 4px 12px; border-left: 2px solid var(--border); font-size: 14px; }
.guide-sidebar a:hover { border-left-color: var(--hero-blue); }

.guide-snapshot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 0;
}

.guide-snapshot > div {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, #fff, #f8fbff);
}

.guide-snapshot span { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.guide-snapshot strong { display: block; margin: 5px 0; color: var(--text); font-size: 1rem; }
.guide-snapshot p { margin: 0; font-size: 14px; line-height: 1.55; }

.guide-route {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 26px 0;
}

.guide-route-step {
  position: relative;
  min-height: 128px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.guide-route-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -15px;
  top: 50%;
  z-index: 2;
  width: 20px;
  color: var(--hero-blue);
  font-weight: 900;
  text-align: center;
  transform: translateY(-50%);
}

.guide-route-step b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--hero-blue), var(--hero-violet));
  color: #fff;
  font-size: 13px;
}

.guide-route-step strong { display: block; margin-bottom: 5px; color: var(--text); font-size: 14px; }
.guide-route-step span { color: var(--muted); font-size: 12px; line-height: 1.45; }

.guide-callout {
  margin: 24px 0;
  padding: 22px 24px;
  border: 1px solid rgba(6,57,199,.16);
  border-left: 5px solid var(--hero-blue);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(6,57,199,.05), rgba(17,185,204,.05));
}

.guide-callout.warning { border-left-color: #c7900a; background: rgba(245,195,68,.08); }
.guide-callout.danger { border-left-color: #c84848; background: rgba(200,72,72,.05); }
.guide-callout strong { display: block; margin-bottom: 6px; color: var(--text); }
.guide-callout p { margin: 0; font-size: 15px; }

.guide-process {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 24px 0;
  list-style: none;
  counter-reset: guide-step;
}

.guide-process li {
  position: relative;
  padding: 18px 18px 18px 66px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  counter-increment: guide-step;
}

.guide-process li::before {
  content: counter(guide-step);
  position: absolute;
  left: 18px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--hero-blue);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.guide-process strong { display: block; color: var(--text); }
.guide-process span { display: block; margin-top: 4px; color: var(--muted); font-size: 15px; }

.guide-table { margin: 26px 0; }
.guide-table th { color: var(--text); }
.guide-table td, .guide-table th { min-width: 160px; }
.guide-table td { color: var(--muted); }

.guide-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 24px 0;
  list-style: none;
}

.guide-checklist li {
  position: relative;
  padding: 15px 16px 15px 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 15px;
  line-height: 1.55;
}

.guide-checklist li::before {
  content: "✓";
  position: absolute;
  left: 15px;
  color: var(--success);
  font-weight: 900;
}

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

.guide-card {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.guide-card .guide-card-tag { color: var(--hero-violet); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.guide-card h3 { margin: 10px 0; color: var(--text); }
.guide-card p { margin: 0 0 18px; font-size: 14px; line-height: 1.6; }
.guide-card a { margin-top: auto; font-weight: 800; text-decoration: none; }

.guide-evidence-pack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 26px 0;
}

.guide-evidence-pack > div {
  padding: 22px;
  border-radius: var(--radius-sm);
  background: var(--hero-navy);
  color: #fff;
}

.guide-evidence-pack h3 { color: #fff; }
.guide-evidence-pack p, .guide-evidence-pack li { color: rgba(255,255,255,.78); font-size: 14px; }

.guide-source-list {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.guide-source-list li { padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; }
.guide-source-list a { font-weight: 800; }

.guide-related { padding: 28px; border-radius: var(--radius-md); background: linear-gradient(135deg, var(--hero-navy), var(--hero-blue)); }
.guide-related h2, .guide-related h3 { color: #fff; }
.guide-related p { color: rgba(255,255,255,.76); }
.guide-related .guide-card { box-shadow: none; }

.guide-faq details + details { margin-top: 10px; }

@media (max-width: 960px) {
  .guide-hero .hero-inner,
  .guide-visual { grid-template-columns: 1fr; }
  .guide-visual img { min-height: 0; max-height: none; }
  .guide-layout { grid-template-columns: 1fr; }
  .guide-sidebar { position: static; max-height: none; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
  .guide-route { grid-template-columns: 1fr; }
  .guide-route-step { min-height: 0; }
  .guide-route-step:not(:last-child)::after { content: "↓"; top: auto; right: 50%; bottom: -18px; transform: translateX(50%); }
  .guide-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .guide-hero .hero-inner { padding-block: 26px 30px; }
  .guide-prose p, .guide-prose li { font-size: 16px; }
  .guide-sidebar,
  .guide-snapshot,
  .guide-checklist,
  .guide-card-grid,
  .guide-evidence-pack { grid-template-columns: 1fr; }
  .guide-visual figcaption { padding: 22px; }
  .guide-process li { padding-left: 58px; }
  .guide-related { padding: 22px 16px; }
}
