/* Guide content uses the sector design tokens; site chrome uses shared assets. */
html.page-yidep-root { background: #12161a; color-scheme: dark; overscroll-behavior-y: none; }
html.page-yidep-root body.page-yidep { background: #12161a; }
.page-yidep .site-header { background: #12161a; backdrop-filter: none; -webkit-backdrop-filter: none; }
.page-yidep .site-header.is-scrolled { background: #12161a; }
.page-yidep .yidep-hero { position: relative; overflow: hidden; }
.page-yidep .yidep-hero video { position: absolute; pointer-events: none; }
.page-yidep .yidep-hero::after { content: ''; position: absolute; inset: 0; background: rgba(18, 22, 26, .55); }
.page-yidep .yidep-hero .container { position: relative; z-index: 1; }
.page-yidep .yidep-guide {
  --navy: var(--color-navy);
  --ink: var(--color-text);
  --muted: var(--color-muted);
  --teal: var(--color-gold);
  --mint: var(--color-gold-light);
  --paper: var(--color-navy);
  --line: var(--color-border-subtle);
  --gold: var(--color-gold);
  color: var(--color-text);
  background: #12161a;
  font-family: var(--font-body);
  font-size: var(--sector-body);
  line-height: 1.72;
  padding-bottom: 56px;
}
.yidep-guide *, .yidep-guide *::before, .yidep-guide *::after { letter-spacing: 0 !important; }
.yidep-guide a { color: var(--color-gold-light); }
.yidep-guide .guide-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0; color: var(--color-muted); font-size: var(--sector-small); }
.yidep-guide .guide-toolbar .btn { font-family: var(--font-body); border-radius: var(--radius-md); }
.yidep-guide .layout { width: var(--container); max-width: 1200px; margin: auto; display: grid; grid-template-columns: minmax(0, 760px) minmax(240px, 340px); gap: 56px; }
.yidep-guide main { order: 1; padding: 0; min-width: 0; }
.yidep-guide .sidebar { order: 2; padding: 24px; margin-top: 0; top: 120px; background: var(--sector-surface); border: 1px solid var(--sector-border-soft); border-radius: 8px; max-height: calc(100vh - 144px); }
.yidep-guide .sidebar a { color: var(--color-muted); font-size: 12px; padding: 8px 0 8px 10px; }
.yidep-guide .sidebar a.current, .yidep-guide .sidebar a:hover { color: var(--color-gold-light); background: rgba(212, 175, 55, .08); border-color: var(--color-gold); }
.yidep-guide .guide-related { font-size: var(--sector-body); margin-top: 28px; padding: 22px 0 0; border-top: 1px solid var(--sector-border-soft); color: var(--sector-text-soft); }
.page-yidep .yidep-hero__detail { margin-top: 18px; }
.yidep-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.yidep-hero-actions .btn { white-space: normal; text-align: center; }
.yidep-guide .yidep-service-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.yidep-guide .yidep-service-links a { padding: 10px 12px; border: 1px solid var(--sector-border); border-radius: 6px; background: rgba(212,175,55,.06); text-decoration: none; font-size: var(--sector-small); }
.yidep-guide .yidep-service-links a:hover { background: rgba(212,175,55,.16); }
.yidep-guide .yidep-service-outcomes { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 24px 0; }
.yidep-guide .yidep-service-outcomes article { min-width: 0; padding: 18px; border: 1px solid var(--sector-border-soft); border-top: 2px solid var(--color-gold); border-radius: 8px; background: var(--sector-surface); }
.yidep-guide .yidep-service-number { color: var(--color-gold); font-family: var(--font-heading); font-size: 24px; }
.yidep-guide .yidep-service-outcomes h3 { margin-top: 14px; }
.yidep-guide .yidep-service-outcomes p { margin-bottom: 0; }
.yidep-guide .yidep-service-primary { display: inline-flex; align-items: center; justify-content: center; gap: 14px; background: var(--color-gold); color: #12161a; border: 1px solid var(--color-gold); white-space: normal; text-align: center; }
.yidep-guide .yidep-service-primary:hover { background: var(--color-gold-light); color: #12161a; }
.yidep-guide .yidep-service-contact { padding: 28px; margin-top: 28px; background: rgba(212,175,55,.08); border: 1px solid var(--sector-border); border-radius: 8px; }
.yidep-guide .yidep-service-contact-links { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0; }
.yidep-guide .yidep-service-source { font-size: var(--sector-small) !important; }
.yidep-guide .yidep-service-faq details { margin: 10px 0; }
@media (max-width: 640px) {
  .yidep-guide .yidep-service-outcomes { grid-template-columns: 1fr; }
  .yidep-guide .yidep-service-contact { padding: 16px; }
  .yidep-hero-actions, .yidep-service-contact-links { flex-direction: column; align-items: stretch; }
}
.yidep-guide .section { padding: 42px 0 24px; border-bottom: 1px solid var(--sector-border-soft); scroll-margin-top: 110px; }
.yidep-guide h2 { font-family: var(--font-heading); font-size: var(--sector-h2) !important; font-weight: 650; line-height: 1.18; margin: 10px 0 20px; color: var(--color-gold); }
.yidep-guide :is(h3, .card h3, .wf b, .deadline-grid b, .split-call h3, .action-head h3) { font-family: var(--font-heading); font-size: var(--sector-h3) !important; line-height: 1.28; color: var(--color-gold-light); }
.yidep-guide :is(p, li, .lead, .card p, details p, details li, .analysis-grid li, .checklist label, .govchildren span) { font-size: var(--sector-body) !important; line-height: 1.65; color: var(--sector-text-soft); }
.yidep-guide :is(td, th, .data-table td, .note, .micro, .wf small, .deadline-grid small, .checksummary span) { font-size: var(--sector-small) !important; line-height: 1.55; }
.yidep-guide p { margin: 10px 0 18px; }
.yidep-guide :is(ul, ol) { padding-left: 20px; list-style: revert; }
.yidep-guide :is(.card, .analysis-grid article, .deadline-grid article, details, .action-example, .gantt, .wf, .wf.civic, .priority div, .govchildren span) { background: var(--sector-surface); border-color: var(--sector-border-soft); border-radius: 8px; padding: 20px; }
.yidep-guide .card { border-top: 2px solid var(--color-gold); }
.yidep-guide .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.yidep-guide .deadline-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.yidep-guide :is(.govtop, .govmid, .bridge, .closing, .split-call) { background: var(--sector-surface); border: 1px solid var(--sector-border); border-radius: 8px; padding: 24px; }
.yidep-guide :is(.note, .checksummary, .equation, .action-head, .switch) { background: rgba(212, 175, 55, .08); border-color: var(--sector-border); border-radius: 6px; color: var(--color-text); }
.yidep-guide :is(.pill, .legal, .tech, .sample) { background: rgba(212, 175, 55, .10); color: var(--color-gold-light); border-color: var(--sector-border); }
.yidep-guide :is(table, tbody tr:nth-child(even), .gantt-row span) { background: var(--sector-surface); color: var(--sector-text-soft); }
.yidep-guide :is(.tablewrap, .no-results) { background: var(--sector-surface); }
.yidep-guide th { background: rgba(212, 175, 55, .08); color: var(--color-gold-light); padding: 12px; }
.yidep-guide td { border-color: var(--sector-border-soft); padding: 12px; }
.yidep-guide :is(.toolbar input, .toolbar select, #mobileJump) { background: var(--color-navy); border-color: var(--sector-border); color: var(--color-text); font-size: var(--sector-body); }
.yidep-guide :is(button, .button) { font-family: var(--font-body); font-size: var(--sector-small); border-radius: 6px; background: rgba(212, 175, 55, .08); color: var(--color-gold-light); border-color: var(--sector-border); }
.yidep-guide :is(button:hover, .button:hover, .switch button.active) { background: var(--color-gold); color: var(--color-navy); }
.yidep-guide .eyebrow { font-size: 11px; color: var(--color-gold); margin-bottom: 12px; }
.yidep-guide :is(.sources p, .sources a, .sources article > span) { font-size: var(--sector-small); }
.yidep-guide .checklist input { min-width: 18px; }
.yidep-guide .checksummary strong { font-size: var(--sector-h2); }
.yidep-guide .gantt-row, .yidep-guide .gantt-head { font-size: 11px; }
.yidep-guide .gantt-head { align-items: center; }
.yidep-guide .gantt-head span { text-align: center; }
.yidep-guide .gantt-row { align-items: center; min-height: 38px; }
.yidep-guide .gantt-row span {
  display: block;
  width: 100%;
  max-width: 28px;
  aspect-ratio: 1;
  justify-self: center;
  background: #222831;
  border: 1px solid rgba(212, 175, 55, .14);
  border-radius: 3px;
}
.yidep-guide .gantt-row span.filled {
  background: #d4af37;
  border-color: #f3e5ab;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.yidep-guide .yidep-method-visual { margin: 0 0 36px; padding: 0; }
.yidep-guide .yidep-method-visual .hero-art { display: block; width: 100%; max-width: 680px; max-height: none; height: auto; margin: 0 auto; }
.yidep-guide .yidep-method-visual text { font-family: var(--font-body); }
.yidep-guide .yidep-method-visual figcaption { max-width: 600px; margin: 0 auto; text-align: center; color: var(--sector-muted); font-size: var(--sector-small); line-height: 1.55; }
.yidep-guide :is(td, .card, .analysis-grid article, .deadline-grid article, .wf, .govchildren span, details, .note, .action-example, .gantt) { transition: background-color .18s ease, border-color .18s ease; }
@media (hover: hover) {
  .yidep-guide .tablewrap tbody tr:hover > td { background-color: rgba(212, 175, 55, .10); }
  .yidep-guide :is(.card, .analysis-grid article, .deadline-grid article, .wf, .priority > div, .govchildren span, details, .note, .action-example, .gantt):hover { border-color: rgba(212, 175, 55, .45); background-color: #24241e; }
  .yidep-guide .gantt-row:hover span:not(.filled) { border-color: rgba(212, 175, 55, .4); }
}
.yidep-guide :is(.tablewrap, .card, details):focus-within { border-color: rgba(212, 175, 55, .55); }
@media (prefers-reduced-motion: reduce) {
  .yidep-guide :is(td, .card, .analysis-grid article, .deadline-grid article, .wf, .govchildren span, details, .note, .action-example, .gantt) { transition: none; }
}
.yidep-guide #toTop { bottom: 24px; right: 24px; width: 40px; height: 40px; color: var(--color-navy); background: var(--color-gold); z-index: 90; }
.yidep-guide .progress { top: 0; width: 100%; background: var(--color-gold); z-index: 9100; transform: scaleX(0); transform-origin: left center; pointer-events: none; }

/* A prominent guide link within the existing, unframed city content. */
.page-sector #yidep { border-top: 2px solid var(--color-gold); padding-top: 24px; }
.page-sector #yidep .yidep-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 160px;
  margin: 28px 0 38px;
  padding: 28px;
  border: 2px solid #f3e5ab;
  border-radius: 8px;
  background: #d4af37;
  color: #12161a;
  box-shadow: 0 8px 24px rgba(212, 175, 55, .22);
  text-decoration: none;
  transition: background-color .2s ease, box-shadow .2s ease;
}
.page-sector #yidep .yidep-cta:hover { background: #f3e5ab; box-shadow: 0 10px 28px rgba(212, 175, 55, .3); }
.page-sector #yidep .yidep-cta:focus-visible { outline: 3px solid white; outline-offset: 5px; }
.yidep-cta__body { display: grid; gap: 10px; min-width: 0; }
.page-sector #yidep .yidep-cta strong { font-family: var(--font-heading); font-size: 24px; font-weight: 700; line-height: 1.25; color: #12161a !important; }
.yidep-cta__eyebrow { font-size: 10px; font-weight: 750; color: #383016; }
.yidep-cta__caption { font-size: 13px; line-height: 1.5; color: #292713; }
.yidep-cta__arrow { display: grid; place-items: center; flex: 0 0 48px; height: 48px; border: 1px solid rgba(18, 22, 26, .4); border-radius: 50%; font-size: 30px; color: #12161a; }
.page-sector #yidep .yidep-entry-sources { font-size: var(--sector-small) !important; color: var(--color-muted) !important; }
@media (max-width: 1024px) {
  .yidep-guide .layout { display: block; }
  .yidep-guide .sidebar { display: none; }
  .yidep-guide .mobile-nav { display: block; width: var(--container); margin: 0 auto 18px; padding: 14px; position: static; background: var(--sector-surface); border: 1px solid var(--sector-border-soft); border-radius: 8px; }
}
@media (max-width: 640px) {
  .yidep-guide { padding-bottom: 24px; }
  .yidep-guide .guide-toolbar { padding: 14px 0; gap: 10px; }
  .yidep-guide .guide-toolbar .btn { padding: 8px 10px; white-space: nowrap; }
  .yidep-guide .section { padding: 24px 0 14px; scroll-margin-top: 110px; }
  .yidep-guide h2 { margin-bottom: 14px; }
  .yidep-guide .eyebrow { font-size: 8.5px; }
  .yidep-guide :is(.cards, .analysis-grid, .checklist, .branches, .govchildren, .split-call, .priority) { grid-template-columns: 1fr; gap: 10px; }
  .yidep-guide :is(.card, .analysis-grid article, .deadline-grid article, details, .action-example, .gantt, .wf, .wf.civic, .priority div, .govchildren span, .closing, .split-call) { padding: 14px; }
  .yidep-guide :is(.note, .checksummary, .action-head) { padding: 14px; }
  .yidep-guide .tablewrap td { min-width: 82px; padding: 8px; }
  .yidep-guide .data-table table { min-width: 600px; }
  .yidep-guide :is(.toolbar button, .toolbar label, .toolbar input, .toolbar select, .checksummary button, #mobileJump, summary) { font-size: 9.5px; }
  .yidep-guide summary { min-height: 32px; }
  .yidep-guide .gantt-row, .yidep-guide .gantt-head { font-size: 8.5px; }
  .yidep-guide #toTop { bottom: calc(var(--mobile-cta-height) + 12px); right: 12px; }
  .page-sector #yidep .yidep-cta { min-height: 138px; gap: 12px; padding: 18px; margin: 22px 0 30px; }
  .page-sector #yidep .yidep-cta strong { font-size: 17px; }
  .yidep-cta__eyebrow { font-size: 8px; }
  .yidep-cta__caption { font-size: 10px; }
  .yidep-cta__arrow { flex-basis: 34px; height: 34px; font-size: 24px; }
}
@media print {
  html.page-yidep-root { background: white !important; color-scheme: light; }
  .page-yidep :is(.top-bar, .live-ticker, .site-header, .site-footer, .mobile-cta, .cookie-banner, .yidep-hero video, .guide-toolbar, .sidebar, .mobile-nav, #toTop) { display: none !important; }
  .page-yidep, .yidep-guide, .yidep-guide .layout { background: white !important; color: #111 !important; }
  .yidep-guide .layout { display: block; width: 100%; }
  .yidep-guide * { color: #111 !important; background-color: white !important; box-shadow: none !important; }
  .yidep-guide .gantt-row span.filled { background-color: #d4af37 !important; border-color: #806312 !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .yidep-guide :is(.tablewrap, .gantt) { overflow: visible; }
  .yidep-guide .data-table table { min-width: 0; }
  .yidep-guide :is(p, li, td, th) { font-size: 10pt !important; }
  .yidep-guide .section { break-inside: auto; }
}
