/* The reference layout is shared by the guide, the internal pages and the 404. */
html { scroll-padding-top: 1rem; }
h4 { line-height: 1.25; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.header { position: relative; flex-wrap: nowrap; }
.header .main-nav { margin-inline-start: auto; }
.main-nav ul { display: flex; flex-wrap: wrap; gap: .2rem .95rem; list-style: none; padding: 0; margin: 0; }
.header-cta { flex: none; min-height: 40px; font-size: .9rem; }
.burger, .nav-more { display: none; }
.burger, .nav-more-btn {
  align-items: center;
  justify-content: center;
  flex-direction: column;
  flex: none;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--mint);
  background: transparent;
  border: 1px solid #ffffff34;
  border-radius: 9px;
  cursor: pointer;
}
.burger span, .nav-more-btn span { width: 20px; height: 2px; background: currentColor; border-radius: 2px; }
.burger:hover, .nav-more-btn:hover, .header button[aria-expanded="true"] { background: #ffffff15; }

.hero .byline { display: block; margin-top: 1rem; padding: 0; color: #bde8db; font-size: .9rem; }
.button { border: 1px solid transparent; font: inherit; font-weight: 750; cursor: pointer; }
.button:disabled { opacity: .7; cursor: wait; }
.button-small { min-height: 40px; padding: .45rem .85rem; font-size: .9rem; }
.slot-box { border-radius: 23px; padding: clamp(1rem, 3vw, 1.75rem); text-align: center; background: #13283dbf; }
.slot-title { margin-bottom: 1.1rem; font-size: 1.2rem; font-weight: 800; }
.reels { display: flex; justify-content: center; gap: .55rem; margin-bottom: 1.1rem; }
.reel {
  display: grid;
  place-items: center;
  width: clamp(3.1rem, 8vw, 4.6rem);
  aspect-ratio: 1 / 1.1;
  border: 1px solid #a5f1d84d;
  border-radius: 12px;
  background: #0b1729;
  font-size: clamp(1.6rem, 4vw, 2.25rem);
}
.reel.spin { animation: reel-motion .12s linear infinite; }
@keyframes reel-motion { 50% { transform: translateY(-3px); } }
.risk { max-width: 18rem; margin: 1.2rem auto 0; }
.risk-label { display: flex; justify-content: space-between; gap: .5rem; color: #e0ebf2; font-size: .8rem; }
.risk-bar { position: relative; height: 9px; margin-block: .45rem .85rem; border-radius: 10px; background: linear-gradient(90deg, #a5f1d8, #e8b869, #ec8274); }
.risk-needle { position: absolute; left: 70%; top: -4px; width: 3px; height: 17px; border-radius: 3px; background: #fff; transition: left .45s ease; }
.streaks { display: flex; justify-content: center; gap: .35rem; }
.streaks span { display: grid; place-items: center; width: 1.45rem; height: 1.45rem; border-radius: 5px; background: #0b1729; font-size: .8rem; }
.streaks .is-hot { color: #ffe2b3; background: #60451f; }
.streaks .is-cold { color: #e0ebf2; background: #164764; }

.showcase-sec > h2 { max-width: none; }
.brand-heading {
  display: grid;
  min-height: 5.2rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "rank title mark";
  gap: .55rem;
}
.brand-index { grid-area: rank; }
.card-name { grid-area: title; overflow-wrap: anywhere; }
.badge {
  display: table;
  margin-top: .3rem;
  border-radius: 5px;
  padding: .18rem .4rem;
  color: var(--mint);
  background: #a5f1d81c;
  font-size: .66rem;
  letter-spacing: 0;
  line-height: 1.2;
}
.brand-mark { grid-area: mark; display: grid; place-items: center; min-width: 0; border-radius: 8px; }
.brand-logo { display: flex; width: clamp(3.1rem, 6.4vw, 5.9rem); height: 2.65rem; overflow: hidden; padding: .22rem .35rem; background: var(--surface); }
.brand-logo img, .brand-icon img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.brand-icon { width: 2.25rem; height: 2.25rem; overflow: hidden; }
.brand-text-logo { max-width: 5.9rem; min-height: 2.25rem; padding: .3rem; border: 1px solid #ffffff34; font-size: .7rem; font-weight: 750; text-align: center; }
.card-bonus, .rating { color: var(--teal); font-weight: 800; }
.card-bonus { margin-bottom: .75rem; }
.brand-copy .card-feat { list-style: none; margin: 0 0 .6rem; padding: 0; color: var(--muted); }
.rating { border-top: 1px solid var(--line); padding-top: .6rem; }
.rating small { color: var(--muted); font-weight: 600; }

.info-card strong:first-child { color: #135851; }
.article-grid .info-card { overflow-wrap: anywhere; }
.section-panel > :is(ul, ol), .reading-block > :is(ul, ol), .info-card > :is(ul, ol), .secondary .prose :is(ul, ol) { padding-inline-start: 1.35rem; }
.intro p { max-width: 78ch; }
.reading-block + .reading-block { margin-top: 1rem; }
.callout, .heat-glow, .pro, .con { padding: .7rem .85rem; border-radius: 9px; background: #edf6f4; }
.heat-glow { border: 1px solid #bbd7cc; }
.con { background: #faf3eb; }
.table-scroll table { min-width: 40rem; }
.faq-item summary h3 { margin: 0; color: var(--ink); font-size: 1rem; letter-spacing: -.015em; }

.site-footer .footer-inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 1rem clamp(1rem, 4vw, 2.5rem); }
.footer-title { margin: 0 0 .6rem; color: #fff; font-size: 1.125rem; letter-spacing: -.02em; }
.site-footer p { color: #d4e0e9; margin: 0 0 .65rem; font-size: .92rem; }
.site-footer a { color: var(--mint); }
.footer-links { display: flex; gap: 1rem; padding: 0; margin: 0; list-style: none; }
.site-footer .ymyl-footer-links { grid-column: 1 / -1; border-top: 1px solid #ffffff25; padding-top: .65rem; justify-content: center; }
.site-footer .copy { padding-block: .85rem 1.25rem; color: #d4e0e9; border-top: 1px solid #ffffff25; font-size: .85rem; text-align: center; }
.age { display: inline-flex; padding: .1rem .45rem; margin-bottom: .45rem; border-radius: 5px; color: var(--mint); background: #a5f1d81c; font-weight: 750; }

.sticky-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem 1.15rem;
  padding: .75rem 3rem .75rem 1rem;
  visibility: hidden;
  transform: translateY(100%);
  transition: transform .25s, visibility .25s;
  color: #eef6fb;
  background: var(--navy);
  border-top: 1px solid #4fbda9;
  box-shadow: 0 -8px 30px #0b172940;
}
.sticky-bar.show { visibility: visible; transform: translateY(0); }
.sticky-bar.closed { display: none; }
.sticky-text b { color: var(--mint); }
.guide-page:has(.sticky-bar.show) .site-footer { padding-bottom: 4.5rem; }
.x-btn {
  position: absolute;
  top: .55rem;
  right: .65rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 50%;
  font: 1.15rem/1 system-ui, sans-serif;
  cursor: pointer;
}
.popup-bg { position: fixed; inset: 0; z-index: 10; display: none; align-items: center; justify-content: center; padding: 1rem; background: #0b1729c9; }
.popup-bg.show { display: flex; }
.popup { position: relative; width: min(100%, 28rem); padding: 2.2rem 1.4rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-align: center; box-shadow: var(--shadow); }
.popup-title { font-size: 1.65rem; line-height: 1.25; font-weight: 800; }
.popup .crm-free { color: var(--teal); font-weight: 800; }

.error-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  background: radial-gradient(ellipse at 88% 12%, #104744 0, transparent 52%), linear-gradient(120deg, var(--navy), var(--deep));
}
.error-panel { width: min(32.5rem, calc(100% - 2rem)); text-align: center; margin: 1rem; }
.error-panel .code { color: var(--teal); font-size: clamp(3.25rem, 14vw, 6rem); line-height: 1; font-weight: 800; margin-bottom: .65rem; }
.error-panel h1 { font-size: clamp(1.6rem, 5vw, 2.35rem); }
.error-panel p { margin-bottom: 1.15rem; color: var(--muted); }
.error-panel .button { margin: .2rem; }
.button-secondary { background: transparent; color: var(--teal); border-color: var(--teal); }

@media (max-width: 1100px) {
  .header { gap: .65rem; }
  .header .nav-more { display: block; order: 3; }
  .nav-more-btn { display: flex; }
  .header .header-cta { margin-inline-start: auto; }
  .header .main-nav { display: none; position: absolute; z-index: 6; top: calc(100% - .35rem); right: 0; width: min(18rem, 100%); padding: .55rem .9rem; border: 1px solid #ffffff34; border-radius: 12px; background: var(--navy); box-shadow: 0 16px 30px #0b172940; }
  .header .main-nav.open { display: block; }
  .main-nav ul { display: block; }
  .main-nav li a { width: 100%; min-height: 42px; padding-inline: .35rem; }
}
@media (max-width: 768px) {
  .header .nav-more, .header .header-cta { display: none; }
  .header .burger { display: flex; }
  .header .main-nav { width: 100%; }
  .site-footer .footer-inner { grid-template-columns: 1fr; }
  .site-footer .ymyl-footer-links { justify-content: flex-start; }
}
@media (max-width: 545px) {
  .sticky-bar { flex-wrap: wrap; justify-content: flex-start; text-align: left; font-size: .9rem; }
  .guide-page:has(.sticky-bar.show) .site-footer { padding-bottom: 7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .reel.spin { animation: none; }
  .risk-needle, .sticky-bar { transition: none; }
}


/* Reference illustrations and author layout. */
.byline-date { color: var(--muted); font-size: .88rem; }
.reel-demo .interactive-frame { max-width: 33rem; margin-inline: auto; color: #fff; background: var(--deep); }
.reel-demo .slot-box { background: var(--navy); }
