/* Resources page */
html { scroll-padding-top: 6.5rem; }
.res-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 3.5rem; align-items: start; padding-top: 3rem; padding-bottom: 4rem; }
.res-toc { position: sticky; top: 7rem; }
.res-toc .toc-label { display: block; font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #64748b; margin: 0 0 0.8rem; }
.res-toc a { display: block; padding: 0.5rem 0 0.5rem 1rem; border-left: 2px solid #cbd5e1; color: #475569; text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: color 0.15s, border-color 0.15s, padding 0.2s; }
.res-toc a:hover { color: #0369a1; padding-left: 1.2rem; }
.res-toc a.active { border-left-color: #0369a1; color: #0f172a; font-weight: 700; }

.res-section { padding: 3.2rem 0; border-top: 1px solid #cbd5e1; }
.res-section:first-child { border-top: 0; padding-top: 0; }
.res-section h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.06; letter-spacing: -0.035em; font-weight: 800; color: #0f172a; margin: 0 0 0.8rem; }
.res-section .lead { color: #475569; font-size: 1.1rem; line-height: 1.6; max-width: 620px; margin: 0 0 2rem; }
.res-section p.note { color: #475569; font-size: 0.98rem; line-height: 1.6; max-width: 640px; margin: 1.4rem 0 0; }

.stage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.stage { background: #fff; border: 1px solid #cbd5e1; padding: 1.5rem 1.4rem; position: relative; overflow: hidden; transition: border-color 0.2s; }
.stage::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: #0369a1; transition: width 0.35s ease; }
.stage:hover { border-color: #0369a1; }
.stage:hover::after { width: 100%; }
.stage .no { display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 2.4rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.3px #0369a1; margin-bottom: 0.6rem; letter-spacing: -0.03em; }
.stage h3 { margin: 0 0 0.2rem; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.15rem; letter-spacing: -0.02em; color: #0f172a; }
.stage .when { margin: 0 0 0.9rem; font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: #64748b; }
.stage ul { list-style: none; margin: 0; padding: 0; }
.stage li { position: relative; padding: 0.28rem 0 0.28rem 1.1rem; color: #475569; font-size: 0.95rem; line-height: 1.45; }
.stage li::before { content: ""; position: absolute; left: 0; top: 0.78rem; width: 6px; height: 6px; background: #0369a1; }

.path { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.4rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.path li { background: #fff; border: 1px solid #cbd5e1; padding: 0.45rem 0.8rem; font-weight: 600; font-size: 0.9rem; color: #0f172a; }
.path li + li::before { content: "→"; margin-right: 0.4rem; color: #0369a1; font-weight: 700; }
.path li + li { border-left: 3px solid #0369a1; }

.deny-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.deny-card { background: #fff; border: 1px solid #cbd5e1; padding: 1.3rem 1.4rem; position: relative; overflow: hidden; transition: border-color 0.2s; }
.deny-card::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: #0369a1; transition: width 0.35s ease; }
.deny-card:hover { border-color: #0369a1; }
.deny-card:hover::after { width: 100%; }
.deny-card h3 { margin: 0 0 0.8rem; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.1rem; letter-spacing: -0.02em; color: #0f172a; }
.deny-card dl { margin: 0; }
.deny-card dt { font-family: 'JetBrains Mono', monospace; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #0369a1; margin: 0.6rem 0 0.15rem; }
.deny-card dd { margin: 0; color: #475569; font-size: 0.94rem; line-height: 1.5; }

.glossary-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.2rem; margin: 0 0 1.4rem; }
.glossary-bar label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.glossary-bar input { flex: 1 1 280px; max-width: 440px; font: inherit; font-size: 16px; padding: 0.8rem 1rem; border: 1px solid #94a3b8; border-radius: 2px; background: #fff; color: #0f172a; }
.glossary-bar input:focus { outline: 2px solid #0369a1; outline-offset: 1px; border-color: #0369a1; }
.glossary-count { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: #64748b; }
.res-terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; margin: 0; }
.res-terms .term[hidden] { display: none; }
.res-terms .term dt small { font-family: 'Inter', sans-serif; font-weight: 500; font-size: 0.8rem; color: #64748b; margin-left: 0.4rem; }
.glossary-empty { color: #475569; padding: 1rem 0; }

.check-list { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 0.6rem; max-width: 640px; }
.check-list li { position: relative; padding: 0.85rem 1rem 0.85rem 3rem; background: #fff; border: 1px solid #cbd5e1; color: #1e293b; font-size: 0.98rem; line-height: 1.45; }
.check-list li::before { content: "\2713"; position: absolute; left: 1rem; top: 0.8rem; width: 22px; height: 22px; display: grid; place-items: center; background: #047857; color: #fff; font-size: 0.8rem; font-weight: 800; }
.res-section .process-grid { margin: 0; max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.res-section .process-card { padding: 1.4rem 1.3rem; }

.res-cta { background: #0f1f4d; color: #fff; padding: 2.2rem 2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; margin-top: 1rem; }
.res-cta h2 { color: #fff !important; font-size: clamp(1.5rem, 2.6vw, 2rem) !important; margin: 0 0 0.3rem !important; }
.res-cta p { margin: 0; color: #dbeafe; max-width: 520px; line-height: 1.55; }
.res-cta .cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.res-cta a { text-decoration: none; font-weight: 700; padding: 0.85rem 1.4rem; border-radius: 2px; }
.res-cta .cta-main { background: linear-gradient(135deg, #0369a1, #1d4ed8); color: #fff; border: 1px solid transparent; }
.res-cta .cta-alt { border: 1.5px solid #fff; color: #fff; }
.res-cta .cta-alt:hover { background: #fff; color: #17327c; }

@media (max-width: 1000px) {
  .res-layout { grid-template-columns: 1fr; gap: 0; padding-top: 0; }
  .res-toc { position: sticky; top: 60px; z-index: 50; background: #fff; border-bottom: 1px solid #cbd5e1; margin: 0 -1.5rem 1.8rem; padding: 0 1.5rem; display: flex; gap: 0.2rem; overflow-x: auto; scrollbar-width: none; }
  .res-toc::-webkit-scrollbar { display: none; }
  .res-toc .toc-label { display: none; }
  .res-toc a { flex: 0 0 auto; border-left: 0; border-bottom: 2px solid transparent; padding: 0.95rem 0.8rem; white-space: nowrap; }
  .res-toc a:hover { padding-left: 0.8rem; }
  .res-toc a.active { border-bottom-color: #0369a1; }
  html { scroll-padding-top: 7.5rem; }
  .stage-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) { .res-section .process-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .page-hero .wrap { padding-top: 2.4rem; padding-bottom: 2.4rem; }
  .page-hero p { font-size: 1.02rem; }
  .res-toc { margin: 0 -1rem 1.5rem; padding: 0 1rem; }
  .res-section { padding: 2.2rem 0; }
  .res-section .lead { font-size: 1rem; margin-bottom: 1.3rem; }
  .deny-grid, .res-terms { grid-template-columns: 1fr; }
  .res-cta { padding: 1.6rem 1.2rem; }
  .res-cta .cta-row, .res-cta .cta-row a { width: 100%; text-align: center; box-sizing: border-box; }
}
