/* Sonora Manager guide (/br/guia, /guide). Loaded after seo.css and site.css; everything is scoped to body.sm-guide. */
body.sm-guide { --gd-link: #a78bfa; --gd-text: #d6d6e0; --gd-line: rgba(255, 255, 255, 0.1); }

.sm-guide a:focus-visible,
.sm-guide summary:focus-visible,
.sm-guide input:focus-visible,
.sm-guide button:focus-visible { outline: 2px solid var(--sm-acc2); outline-offset: 2px; }

.sm-guide [hidden] { display: none !important; }

/* Index: search */
.sm-guide .gd-search-wrap { padding-top: 2.5rem; }
.sm-guide .gd-search {
  max-width: 44rem; margin-inline: auto; padding: 1.1rem 1.2rem;
  border: 1px solid var(--sm-bd); border-radius: 16px; background: var(--sm-card);
}
.sm-guide .gd-search__label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: #fff; }
.sm-guide .gd-search__row { display: flex; gap: 0.6rem; }
.sm-guide .gd-search__input {
  flex: 1; min-width: 0; padding: 0.7rem 0.9rem; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18); background: #0f1115; color: #fff; font: inherit;
}
.sm-guide .gd-search__input::placeholder { color: var(--sm-mut); }
.sm-guide .gd-search__hint { margin: 0.6rem 0 0; color: var(--sm-mut); font-size: 0.85rem; }
.sm-guide .gd-search__status { margin: 0.4rem 0 0; min-height: 1.3em; color: var(--sm-green); font-size: 0.85rem; font-family: 'JetBrains Mono', ui-monospace, monospace; }
.sm-guide .gd-search__status.is-empty { color: #fbbf24; font-family: inherit; }

/* Index: parts and cards */
.sm-guide .gd-part header { margin-bottom: 1.25rem; }
.sm-guide .gd-part .sm-lead { margin-bottom: 0; }
.sm-guide .gd-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; }
.sm-guide .gd-card { border: 1px solid var(--sm-bd); border-radius: 16px; background: var(--sm-card); transition: border-color 0.25s, transform 0.25s; }
.sm-guide .gd-card:hover { border-color: rgba(139, 107, 255, 0.5); transform: translateY(-3px); }
.sm-guide .gd-card a { display: flex; flex-direction: column; gap: 0.35rem; height: 100%; padding: 1.1rem 1.2rem; color: inherit; text-decoration: none; border-radius: 16px; }
.sm-guide .gd-card__n { font-family: 'JetBrains Mono', ui-monospace, monospace; color: var(--sm-green); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; }
.sm-guide .gd-card__title { color: #fff; font-weight: 600; font-size: 1.05rem; line-height: 1.25; }
.sm-guide .gd-card__text { color: var(--sm-mut); font-size: 0.88rem; line-height: 1.5; }
.sm-guide .gd-card__meta { margin-top: auto; padding-top: 0.4rem; color: #c9c9d6; font-size: 0.78rem; }

/* Index: every question */
.sm-guide .gd-allq { border: 1px solid var(--sm-bd); border-radius: 16px; background: var(--sm-card); padding: 0 1.2rem; }
.sm-guide .gd-allq > summary { cursor: pointer; padding: 1rem 0; font-weight: 600; color: #fff; }
.sm-guide .gd-qlist { list-style: none; margin: 0; padding: 0 0 0.6rem; }
.sm-guide .gd-q { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.2rem 1rem; padding: 0.65rem 0; border-top: 1px solid var(--gd-line); }
.sm-guide .gd-q a { color: var(--gd-link); text-decoration: none; }
.sm-guide .gd-q a:hover { text-decoration: underline; }
.sm-guide .gd-q__in { color: var(--sm-mut); font-size: 0.82rem; }

.sm-guide .gd-brands { padding: 2.25rem 0 0.5rem; }
.sm-guide .gd-brands p { margin: 0; color: var(--sm-mut); font-size: 0.8rem; line-height: 1.5; text-align: center; max-width: 46rem; margin-inline: auto; }

/* Section page: layout and side summary */
.sm-guide .gd-layout { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 2.75rem; align-items: start; padding-top: 1.5rem; padding-bottom: 1rem; }
.sm-guide .gd-toc {
  position: sticky; top: calc(var(--header-h) + 1rem); max-height: calc(100vh - var(--header-h) - 2rem);
  overflow-y: auto; padding-right: 0.5rem; font-size: 0.85rem;
}
.sm-guide .gd-toc nav + nav { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--gd-line); }
.sm-guide .gd-toc__h { margin: 0 0 0.5rem; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--sm-mut); }
.sm-guide .gd-toc__h a { color: inherit; text-decoration: none; }
.sm-guide .gd-toc__h a:hover { color: #fff; }
.sm-guide .gd-toc__part { margin: 0.9rem 0 0.25rem; font-size: 0.78rem; font-weight: 600; color: #fff; }
.sm-guide .gd-toc ul, .sm-guide .gd-toc ol { margin: 0; padding-left: 0; list-style: none; }
.sm-guide .gd-toc li { margin: 0; }
.sm-guide .gd-toc a { display: block; padding: 0.22rem 0.5rem; border-left: 2px solid transparent; border-radius: 0 6px 6px 0; color: var(--sm-mut); text-decoration: none; line-height: 1.35; }
.sm-guide .gd-toc a:hover { color: #fff; }
.sm-guide .gd-toc a.is-active { color: #fff; border-left-color: var(--sm-acc2); }
.sm-guide .gd-toc a[aria-current="page"] { color: #fff; border-left-color: var(--sm-green); background: rgba(106, 70, 229, 0.14); font-weight: 600; }

/* Section page: article */
.sm-guide .gd-article { min-width: 0; color: var(--gd-text); line-height: 1.65; }
.sm-guide .gd-head .sm-kicker { margin-bottom: 0.4rem; }
.sm-guide .gd-article h1 {
  margin: 0 0 0.5rem; font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.12; font-weight: 700;
  color: #fff; background: none; -webkit-text-fill-color: #fff;
}
.sm-guide .gd-article h2 { margin: 2.4rem 0 0.7rem; font-size: clamp(1.25rem, 2.6vw, 1.55rem); line-height: 1.2; color: #fff; scroll-margin-top: calc(var(--header-h) + 1rem); }
.sm-guide .gd-article h3 { margin: 1.5rem 0 0.5rem; font-size: 1.1rem; color: #fff; }
.sm-guide .gd-article p { margin: 0 0 1rem; }
.sm-guide .gd-purpose { font-size: 1.08rem; color: #e8e8f0; }
.sm-guide .gd-article strong { color: #fff; font-weight: 600; }
.sm-guide .gd-article a { color: var(--gd-link); }
.sm-guide .gd-article code {
  padding: 0.1rem 0.4rem; border-radius: 5px; background: rgba(255, 255, 255, 0.08); color: #e6e0ff;
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.86em; overflow-wrap: anywhere;
}
.sm-guide .gd-note { padding: 0.85rem 1.1rem; border: 1px solid rgba(124, 77, 255, 0.35); border-left-width: 4px; border-radius: 10px; background: rgba(106, 70, 229, 0.1); }

/* Lists and numbered steps */
.sm-guide .gd-list { margin: 0 0 1rem; padding-left: 1.3rem; }
.sm-guide .gd-list li { margin: 0.35rem 0; }
.sm-guide .gd-list--sub { margin: 0.5rem 0 0.2rem; }
.sm-guide .gd-steps { list-style: none; counter-reset: gd-step; margin: 0 0 1.2rem; padding: 0; }
.sm-guide .gd-steps > li { counter-increment: gd-step; position: relative; margin: 0 0 0.85rem; padding-left: 2.6rem; }
.sm-guide .gd-steps > li::before {
  content: counter(gd-step); position: absolute; left: 0; top: 0.1rem; width: 1.8rem; height: 1.8rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--sm-acc); color: #fff; font-size: 0.82rem; font-weight: 700;
  box-shadow: 0 6px 18px rgba(106, 70, 229, 0.4);
}

/* Tables */
.sm-guide .gd-table-wrap { margin: 0 0 1.4rem; border: 1px solid var(--sm-bd); border-radius: 14px; overflow: hidden; background: var(--sm-card); }
.sm-guide .gd-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.sm-guide .gd-table th, .sm-guide .gd-table td { padding: 0.7rem 0.9rem; text-align: left; vertical-align: top; border-top: 1px solid var(--gd-line); }
.sm-guide .gd-table thead th { border-top: 0; background: rgba(255, 255, 255, 0.04); color: var(--sm-mut); font-size: 0.74rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.sm-guide .gd-table tbody th { color: #fff; font-weight: 600; width: 28%; }

/* Video, "soon" card, transcript */
.sm-guide .gd-video { position: relative; aspect-ratio: 16 / 9; border: 1px solid var(--sm-bd); border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 24px 70px rgba(106, 70, 229, 0.22); }
.sm-guide .gd-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sm-guide .gd-soon {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 0.3rem;
  min-height: 12rem; padding: 1.6rem 1.2rem; border: 1px dashed rgba(139, 107, 255, 0.5); border-radius: 14px;
  background: radial-gradient(ellipse at 50% 0%, rgba(106, 70, 229, 0.18), transparent 70%), var(--sm-card);
}
.sm-guide .gd-soon p { margin: 0; }
.sm-guide .gd-soon__id { font-family: 'JetBrains Mono', ui-monospace, monospace; color: var(--sm-green); font-size: 0.8rem; letter-spacing: 0.06em; }
.sm-guide .gd-soon__title { color: #fff; font-size: 1.25rem; font-weight: 700; }
.sm-guide .gd-soon__text { color: var(--sm-mut); max-width: 30rem; font-size: 0.92rem; }
.sm-guide .gd-transcript { margin-top: 0.9rem; border: 1px solid var(--sm-bd); border-radius: 12px; background: var(--sm-card); padding: 0 1rem; }
.sm-guide .gd-transcript > summary { cursor: pointer; padding: 0.8rem 0; font-weight: 600; color: #fff; }
.sm-guide .gd-transcript__list { margin: 0; padding: 0 0 0.8rem 1.3rem; color: var(--gd-text); }
.sm-guide .gd-transcript__list li { margin: 0.4rem 0; }

/* Se der errado */
.sm-guide .gd-fix { margin: 0 0 1rem; display: grid; gap: 0.6rem; }
.sm-guide .gd-fix__row { padding: 0.85rem 1.1rem; border: 1px solid var(--sm-bd); border-left: 3px solid #fbbf24; border-radius: 12px; background: var(--sm-card); }
.sm-guide .gd-fix dt { color: #fff; font-weight: 600; }
.sm-guide .gd-fix dd { margin: 0.25rem 0 0; color: var(--gd-text); }
.sm-guide .gd-fix__more { color: var(--sm-mut); font-size: 0.92rem; }

/* FAQ inside an article */
.sm-guide .gd-faq { max-width: none; margin: 0 0 1rem; }
.sm-guide .gd-faq .seo-faq__item { scroll-margin-top: calc(var(--header-h) + 1rem); }
.sm-guide .gd-faq .seo-faq__item p { color: var(--gd-text); font-size: 0.95rem; line-height: 1.6; }

/* Previous / next */
.sm-guide .gd-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2.5rem 0 1rem; }
.sm-guide .gd-pager__link {
  display: flex; flex-direction: column; gap: 0.2rem; padding: 1rem 1.2rem; border: 1px solid var(--sm-bd); border-radius: 14px;
  background: var(--sm-card); color: inherit; text-decoration: none; transition: border-color 0.25s;
}
.sm-guide .gd-pager__link:hover { border-color: rgba(139, 107, 255, 0.55); }
.sm-guide .gd-pager__link--next { grid-column: 2; text-align: right; }
.sm-guide .gd-pager__link--prev { grid-column: 1; }
.sm-guide .gd-pager__dir { color: var(--sm-mut); font-size: 0.8rem; }
.sm-guide .gd-pager__title { color: #fff; font-weight: 600; }
.sm-guide .gd-back { margin: 0; font-size: 0.9rem; }

/* Narrow screens: the side summary goes away and tables stack */
@media (max-width: 960px) {
  .sm-guide .gd-layout { grid-template-columns: minmax(0, 1fr); }
  .sm-guide .gd-toc { display: none; }
}
@media (max-width: 700px) {
  .sm-guide .gd-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .sm-guide .gd-table, .sm-guide .gd-table tbody, .sm-guide .gd-table tr, .sm-guide .gd-table th, .sm-guide .gd-table td { display: block; width: 100%; }
  .sm-guide .gd-table tr { padding: 0.55rem 0; border-top: 1px solid var(--gd-line); }
  .sm-guide .gd-table tr:first-child { border-top: 0; }
  .sm-guide .gd-table th, .sm-guide .gd-table td { padding: 0.25rem 0.9rem; border-top: 0; }
  .sm-guide .gd-table tbody th { width: 100%; }
  .sm-guide .gd-table td::before { content: attr(data-label); display: block; color: var(--sm-mut); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; }
  .sm-guide .gd-pager { grid-template-columns: 1fr; }
  .sm-guide .gd-pager__link--next, .sm-guide .gd-pager__link--prev { grid-column: 1; text-align: left; }
  .sm-guide .gd-search__row { flex-direction: column; }
}
