/* CommerciumIQ Guides Layer â€” scoped additions for Learning Center pages */

.guide-main {
  --guide-page-max: 1440px;
  --guide-gutter: clamp(1.5rem, 4vw, 4rem);
}

.guide-main .guide-hero {
  position: relative;
  overflow: hidden;
  padding: 0;
  border-bottom: 1px solid rgba(214, 174, 87, .18);
  background:
    radial-gradient(circle at 18% 20%, rgba(214, 174, 87, .17), transparent 24rem),
    radial-gradient(circle at 86% 14%, rgba(255, 255, 255, .06), transparent 24rem),
    linear-gradient(135deg, rgba(12, 12, 12, .98), rgba(24, 20, 13, .96));
}

.guide-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -30% 35%;
  height: 14rem;
  transform: rotate(-7deg);
  background: linear-gradient(90deg, transparent, rgba(214, 174, 87, .18), transparent);
  filter: blur(8px);
  pointer-events: none;
}

.guide-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 330px);
  gap: clamp(1.3rem, 3vw, 2.5rem);
  align-items: center;
  width: min(100%, var(--guide-page-max));
  margin: 0 auto;
  padding: clamp(2.4rem, 5vw, 5rem) var(--guide-gutter);
}

.guide-hero-grid--single {
  max-width: none;
}

.guide-hero-grid--single > div {
  grid-column: 1;
  max-width: 980px;
}

.guide-hero h1 {
  max-width: 980px;
  margin: .35rem 0 1rem;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: .94;
  letter-spacing: -.045em;
}

.guide-hero .lede {
  max-width: 820px;
}

.guide-terminal {
  border: 1px solid rgba(214, 174, 87, .32);
  border-radius: 24px;
  padding: 1rem;
  background: rgba(8, 8, 8, .68);
  box-shadow: 0 22px 80px rgba(0, 0, 0, .4);
  backdrop-filter: blur(16px);
}

.terminal-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem .85rem;
  border-bottom: 1px solid rgba(214, 174, 87, .12);
}

.terminal-row:last-child { border-bottom: 0; }
.terminal-row span:first-child { color: rgba(246, 237, 214, .72); }
.terminal-row span:last-child { color: #f3d77d; font-weight: 700; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  font-size: .82rem;
  line-height: 1.45;
  color: rgba(246, 237, 214, .58);
}

.breadcrumbs--hero {
  width: 100%;
  margin: 0 0 1.05rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.breadcrumbs a {
  color: rgba(246, 237, 214, .7);
  text-decoration: none;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible { color: #f3d77d; }

.breadcrumbs [aria-current="page"] {
  color: rgba(246, 237, 214, .5);
}

.breadcrumbs + .eyebrow {
  display: inline-block;
}

.guide-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 330px);
  gap: clamp(1.3rem, 3vw, 2.5rem);
  width: min(100%, var(--guide-page-max));
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

.guide-article {
  display: flex;
  flex-direction: column;
  gap: 1.45rem;
  max-width: 980px;
}

.guide-article > .notice-box,
.guide-article > .takeaway-box,
.guide-article > .guide-article-section {
  margin: 0;
}

.notice-box {
  display: block;
  padding: 1.1rem 1.3rem 1.1rem 1.55rem;
  border: 1px solid rgba(214, 174, 87, .24);
  border-left: 4px solid #e4ad46;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(214, 174, 87, .10), rgba(255, 255, 255, .025));
  color: rgba(246, 237, 214, .82);
  line-height: 1.7;
  box-shadow: 0 18px 55px rgba(0, 0, 0, .18);
}

.notice-box strong {
  color: #f6edd6;
}

.guide-article-section > h2:first-child,
.guide-article-section > .tldr-label + h2 {
  margin-top: 0;
}

.guide-article h2 {
  margin-top: 2.2rem;
  font-size: clamp(1.45rem, 2.6vw, 2.2rem);
  letter-spacing: -.025em;
}

.guide-article h3 {
  margin-top: 1.4rem;
}

.guide-article p,
.guide-article li {
  color: rgba(246, 237, 214, .78);
  line-height: 1.72;
}

.guide-sidebar {
  position: static;
  display: grid;
  gap: 1.25rem;
  align-self: start;
}

.guide-toc h2 {
  margin: .35rem 0 .75rem;
  font-size: 1.35rem;
}

.guide-toc a {
  display: block;
  padding: .62rem 0;
  border-bottom: 1px solid rgba(214, 174, 87, .13);
  color: rgba(246, 237, 214, .82);
  text-decoration: none;
}

.guide-toc a:last-child { border-bottom: 0; }
.guide-toc a:hover,
.guide-toc a:focus-visible { color: #f3d77d; }


.official-register-list {
  display: grid;
  gap: .65rem;
  margin: 1rem 0;
  padding-left: 1.25rem;
}

.official-register-list a,
.source-review-note a {
  color: #f3d77d;
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

.official-register-list a:hover,
.official-register-list a:focus-visible,
.source-review-note a:hover,
.source-review-note a:focus-visible {
  color: #ffe6a0;
}

.source-review-note {
  margin-top: 1rem;
  padding-top: .85rem;
  border-top: 1px solid rgba(214, 174, 87, .13);
  font-size: .92rem;
}

.guide-table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
  border: 1px solid rgba(214, 174, 87, .18);
  border-radius: 18px;
}

.guide-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: rgba(0, 0, 0, .2);
}

.guide-table th,
.guide-table td {
  padding: .9rem 1rem;
  border-bottom: 1px solid rgba(214, 174, 87, .13);
  text-align: left;
  vertical-align: top;
}

.guide-table th {
  color: #f3d77d;
  font-size: .84rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: rgba(214, 174, 87, .07);
}

.guide-table td:first-child {
  width: 64px;
  color: #f3d77d;
  font-weight: 800;
}

.guide-table tbody tr:last-child td { border-bottom: 0; }

.guide-card,
.takeaway-box,
.path-card,
.guide-article-section,
.pdf-box,
.faq-item,
.related-box,
.tool-reference-card {
  border: 1px solid rgba(214, 174, 87, .22);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
  box-shadow: 0 22px 70px rgba(0,0,0,.23);
}

.guide-card,
.path-card,
.guide-article-section,
.faq-item,
.related-box,
.tool-reference-card {
  padding: 1.15rem;
}

.takeaway-box {
  padding: 1.25rem;
  margin: 1.5rem 0;
  background:
    linear-gradient(145deg, rgba(214, 174, 87, .12), rgba(214, 174, 87, .035)),
    rgba(10,10,10,.72);
}

.takeaway-box h2 {
  margin-top: 0;
}

.takeaway-box ul,
.path-card ul {
  padding-left: 1.15rem;
}

.path-grid,
.guide-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1rem;
}

.path-card {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.path-card:hover {
  transform: translateY(-4px);
  border-color: rgba(214, 174, 87, .52);
  box-shadow: 0 28px 90px rgba(214, 174, 87, .08);
}

.path-card .number {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(214, 174, 87, .36);
  border-radius: 999px;
  color: #f3d77d;
  margin-bottom: .9rem;
  background: rgba(0,0,0,.3);
}

.path-card a {
  color: #f3d77d;
  text-decoration: none;
}

.guide-list {
  display: grid;
  gap: .9rem;
}

.guide-list-item {
  display: block;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(214, 174, 87, .18);
  background: rgba(255,255,255,.025);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease;
}

.guide-list-item:hover {
  transform: translateY(-2px);
  border-color: rgba(214, 174, 87, .45);
}

.guide-list-item strong {
  display: block;
  color: #f3d77d;
  margin-bottom: .3rem;
}

.guide-list-item span {
  color: rgba(246, 237, 214, .72);
}

.step-list {
  display: grid;
  gap: .85rem;
  counter-reset: steps;
  list-style: none;
  padding: 0;
}

.step-list li {
  counter-increment: steps;
  padding: 1rem 1rem 1rem 3.4rem;
  position: relative;
  border: 1px solid rgba(214, 174, 87, .16);
  border-radius: 18px;
  background: rgba(255,255,255,.025);
}

.step-list li::before {
  content: counter(steps);
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  background: rgba(214, 174, 87, .14);
  color: #f3d77d;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.pdf-box {
  padding: 1.2rem;
  background:
    radial-gradient(circle at top right, rgba(214, 174, 87, .15), transparent 12rem),
    rgba(8,8,8,.78);
}

.pdf-box .pdf-mock {
  display: none;
  width: 100%;
  min-height: 120px;
  border: 1px solid rgba(214, 174, 87, .25);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(214,174,87,.18), transparent 40%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 12px);
  margin-bottom: 1rem;
}

.related-links {
  display: grid;
  gap: .65rem;
}

.related-links a {
  text-decoration: none;
  color: rgba(246, 237, 214, .86);
  border: 1px solid rgba(214, 174, 87, .16);
  border-radius: 14px;
  padding: .7rem .8rem;
}

.related-links a:hover { color: #f3d77d; border-color: rgba(214, 174, 87, .4); }

.guide-search-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .75rem;
  margin-top: 1.5rem;
}

.guide-search-panel input {
  border: 1px solid rgba(214, 174, 87, .28);
  border-radius: 999px;
  padding: .9rem 1rem;
  background: rgba(0,0,0,.35);
  color: #f6edd6;
}

.guide-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}

.guide-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(214, 174, 87, .22);
  border-radius: 999px;
  padding: .4rem .7rem;
  color: rgba(246, 237, 214, .72);
  font-size: .86rem;
}

.tldr-label {
  color: #f3d77d;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 800;
}

@media (max-width: 980px) {
  .guide-hero-grid,
  .guide-shell,
  .path-grid,
  .guide-card-grid {
    grid-template-columns: 1fr;
  }
 .guide-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .guide-hero-grid {
    padding: 2rem 1.1rem;
  }
  .guide-hero-grid--single > div {
    grid-column: auto;
  }
  .breadcrumbs--hero {
    margin-bottom: .9rem;
  }
 .guide-shell {
    padding: 1rem;
  }
  .guide-search-panel {
    grid-template-columns: 1fr;
  }
}

.guide-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1.25rem;
  padding: .85rem 1rem;
  border: 1px solid rgba(214, 174, 87, .18);
  border-radius: 16px;
  background: rgba(255, 255, 255, .025);
  color: rgba(246, 237, 214, .68);
  font-size: .88rem;
  line-height: 1.55;
}

.guide-meta-strip strong {
  color: #f6edd6;
}

.guide-meta-strip a {
  color: #f3d77d;
  text-underline-offset: .18em;
}

.guide-answer-card,
.guide-next-step {
  border: 1px solid rgba(214, 174, 87, .28);
  border-radius: 22px;
  padding: clamp(1.25rem, 2.5vw, 1.7rem);
  background:
    linear-gradient(145deg, rgba(214, 174, 87, .13), rgba(214, 174, 87, .035)),
    rgba(10, 10, 10, .78);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .22);
}

.guide-answer-card h2,
.guide-next-step h2 {
  margin: .35rem 0 .7rem;
}

.guide-answer-card p,
.guide-next-step p {
  margin-bottom: 0;
}

.guide-workflow-figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(214, 174, 87, .22);
  border-radius: 22px;
  background: #0c0c0c;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .22);
}

.guide-workflow-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.guide-workflow-figure figcaption {
  padding: .9rem 1.1rem 1rem;
  border-top: 1px solid rgba(214, 174, 87, .16);
  color: rgba(246, 237, 214, .72);
  font-size: .9rem;
  line-height: 1.55;
}

.guide-next-step .button-row {
  margin-top: 1rem;
}

@media (max-width: 680px) {
  .guide-meta-strip {
    display: grid;
    gap: .45rem;
  }

  .guide-workflow-figure {
    border-radius: 18px;
  }
}


/* Guide Template v1 semantic workflow: use HTML/CSS for visible diagrams so text wraps naturally. */
.guide-workflow-figure.guide-workflow-semantic {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(214, 174, 87, .24);
  border-radius: 22px;
  background:
    radial-gradient(circle at 82% 10%, rgba(214, 174, 87, .11), transparent 34%),
    radial-gradient(circle at 8% 88%, rgba(214, 174, 87, .08), transparent 34%),
    #0c0c0c;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .22);
}

.guide-workflow-inner {
  padding: clamp(1.35rem, 3.4vw, 2.65rem);
  min-width: 0;
}

.guide-workflow-inner h2 {
  margin: .35rem 0 .45rem;
  max-width: 820px;
}

.guide-workflow-lede,
.guide-workflow-note,
.guide-workflow-caption {
  overflow-wrap: anywhere;
}

.guide-workflow-lede {
  margin: 0 0 clamp(1.15rem, 2.3vw, 1.7rem);
  color: rgba(246, 237, 214, .78);
  max-width: 820px;
}

.guide-workflow-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.85rem, 2vw, 1.35rem);
  padding: 0;
  margin: 0;
  counter-reset: workflow-step;
}

.guide-workflow-step {
  position: relative;
  min-width: 0;
  min-height: 132px;
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  align-items: start;
  gap: .8rem;
  padding: 1rem;
  border: 1px solid rgba(214, 174, 87, .45);
  border-radius: 16px;
  background: rgba(5, 5, 5, .68);
}

/* Numbered steps communicate sequence. Decorative chevrons are intentionally omitted. */
.guide-workflow-badge {
  display: inline-grid;
  place-items: center;
  width: 2.05rem;
  height: 2.05rem;
  border: 1px solid rgba(214, 174, 87, .72);
  border-radius: 999px;
  color: #f3d77d;
  background: rgba(214, 174, 87, .11);
  font-weight: 700;
  line-height: 1;
  flex: 0 0 auto;
}

.guide-workflow-copy {
  min-width: 0;
}

.guide-workflow-copy h3 {
  margin: 0 0 .5rem;
  font-size: clamp(.98rem, 1.3vw, 1.08rem);
  line-height: 1.22;
  color: #fff8e6;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.guide-workflow-copy p {
  margin: 0;
  font-size: .92rem;
  line-height: 1.48;
  color: rgba(246, 237, 214, .72);
  overflow-wrap: anywhere;
}

.guide-workflow-note {
  margin: clamp(1rem, 2.2vw, 1.45rem) 0 0;
  color: rgba(246, 237, 214, .62);
  font-size: .88rem;
}

.guide-workflow-caption {
  margin: 0;
  padding: .95rem 1.15rem 1rem;
  border-top: 1px solid rgba(214, 174, 87, .16);
  color: rgba(246, 237, 214, .72);
  font-size: .9rem;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .guide-workflow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .guide-workflow-figure.guide-workflow-semantic {
    border-radius: 18px;
  }
  .guide-workflow-grid {
    grid-template-columns: 1fr;
  }
  .guide-workflow-step {
    min-height: 0;
  }
}

.guide-shell > *,
.guide-article,
.guide-sidebar,
.guide-meta-strip,
.guide-answer-card,
.guide-workflow-figure,
.guide-workflow-inner,
.guide-workflow-grid,
.guide-workflow-step,
.notice-box,
.takeaway-box,
.guide-article-section,
.guide-next-step {
  min-width: 0;
  max-width: 100%;
}

.guide-article,
.guide-sidebar {
  width: 100%;
}

.guide-answer-card h2,
.guide-workflow-inner h2,
.guide-workflow-copy h3,
.guide-article h2,
.guide-article h3,
.guide-article p,
.guide-article li,
.guide-sidebar,
.guide-meta-strip {
  overflow-wrap: anywhere;
  word-break: normal;
}

@media (max-width: 980px) {
  .guide-shell,
  .guide-hero-grid,
  .path-grid,
  .guide-card-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .guide-main {
    overflow-x: clip;
  }

  .guide-shell {
    width: 100%;
    max-width: 100%;
    padding-inline: 1rem;
  }

  .guide-article,
  .guide-sidebar,
  .guide-answer-card,
  .guide-workflow-figure,
  .notice-box,
  .takeaway-box,
  .guide-article-section,
  .guide-next-step {
    width: 100%;
    max-width: 100%;
  }

  .guide-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }
}

/* CIQ GUIDE HERO ALIGNMENT LOCK START */
:root{
  --ciq-guide-shell: min(1180px, calc(100% - 48px));
  --ciq-guide-shell-mobile: calc(100% - 32px);
}
.guide-main > .guide-hero{
  box-sizing: border-box;
}
.guide-main > .guide-hero > .guide-hero-grid,
.guide-main > .guide-shell,
.guide-main > .guide-article,
.guide-main > .guide-section{
  width: var(--ciq-guide-shell);
  max-width: var(--ciq-guide-shell);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
.guide-main > .guide-hero > .guide-hero-grid{
  padding-left: 0;
  padding-right: 0;
}
.guide-main .guide-hero-copy,
.guide-main .guide-hero-text{
  text-align: left;
}
.guide-main .guide-hero-copy > p,
.guide-main .guide-hero-text > p{
  max-width: 780px;
}
@media (max-width: 720px){
  .guide-main > .guide-hero > .guide-hero-grid,
  .guide-main > .guide-shell,
  .guide-main > .guide-article,
  .guide-main > .guide-section{
    width: var(--ciq-guide-shell-mobile);
    max-width: var(--ciq-guide-shell-mobile);
  }
}
/* CIQ GUIDE HERO ALIGNMENT LOCK END */

/* === CIQ BACKGROUND R2 START ===
   Old guide/index pages should inherit the shared site background.
   Article pages should now use education.css, but this protects remaining guide-family pages.
*/
.guide-main,
.guide-main main,
.guide-shell,
.guide-content,
.guide-article {
  background: transparent !important;
}

.guide-main .guide-hero {
  background: transparent !important;
}

.guide-card,
.guide-panel,
.guide-note,
.guide-sidebar-card,
.guide-resource-card,
.guide-faq details {
  background: linear-gradient(135deg, rgba(31, 29, 23, .74), rgba(7, 7, 5, .86)) !important;
}
/* === CIQ BACKGROUND R2 END === */


/* CIQ R6D GUIDES TEMPLATE WIDTH START */
.guide-main{
  --guide-page-max: 1180px;
  --guide-gutter: 0px;
}

.guide-main .guide-hero-grid,
.guide-main .guide-shell{
  width: min(1180px, calc(100% - 48px)) !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

.guide-main .guide-article{
  max-width: 980px;
}

@media (max-width: 760px){
  .guide-main .guide-hero-grid,
  .guide-main .guide-shell{
    width: min(1180px, calc(100% - 32px)) !important;
  }
}
/* CIQ R6D GUIDES TEMPLATE WIDTH END */
