/* =========================================================
   Teen Patti Master – inner pages
   Shared components for About, Blog, Blog details and Download,
   followed by page-specific sections. Loaded after style.css.
   1. Shared components   3. Blog
   2. About               4. Blog details   5. Responsive
   ========================================================= */

[hidden] { display: none !important; }

/* style.css only resets <ul>; ordered lists here draw their own numbers */
.toc-list, .article-body ol { margin: 0; padding: 0; list-style: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- 1. Shared components ---------- */
.btn--lg { min-height: 54px; padding: 0 30px; font-size: 16px; }
.btn--block { width: 100%; }

.breadcrumb { margin-bottom: 26px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--gold); }
.breadcrumb a { color: #eadbd6; transition: color .2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb [aria-current] { color: var(--gold-light); font-weight: 500; }

/* Page hero */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding-block: 22px 64px; }
.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(14, 2, 4, .93) 0%, rgba(40, 4, 8, .72) 42%, rgba(40, 4, 8, .25) 75%, rgba(14, 2, 4, .45) 100%),
    linear-gradient(180deg, rgba(12, 2, 3, .2) 0%, rgba(12, 2, 3, 0) 55%, var(--bg) 100%),
    url("../assets/background.webp") center 40% / cover no-repeat;
}
.page-hero--center .page-hero__bg,
.page-hero--article .page-hero__bg {
  background:
    radial-gradient(ellipse 60% 70% at 50% 40%, rgba(40, 4, 8, .35), rgba(14, 2, 4, .82) 75%),
    linear-gradient(180deg, rgba(12, 2, 3, .35) 0%, rgba(12, 2, 3, .15) 50%, var(--bg) 100%),
    url("../assets/second%20background.webp") center 45% / cover no-repeat;
}
.page-hero__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 32px; }
.page-hero__content { max-width: 620px; }
.page-hero__title {
  margin: 18px 0 14px;
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 800;
  line-height: 1.12;
  color: #fff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .5);
}
.page-hero__text { max-width: 560px; font-size: 15.5px; color: #eadbd6; }
.page-hero__art { position: relative; display: flex; justify-content: center; }
.page-hero__art img { width: 100%; max-width: 420px; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .55)); animation: heroFloat 6s ease-in-out infinite; }

.page-hero--center { padding-bottom: 56px; text-align: center; }
.page-hero--center .page-hero__content { max-width: 780px; margin-inline: auto; }
.page-hero--center .page-hero__text { margin-inline: auto; }
.page-hero--center .breadcrumb ol { justify-content: center; }

/* Panel */
.panel {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--grad-card);
  border: 1px solid var(--line-red);
  box-shadow: inset 0 1px 0 rgba(255, 190, 70, .1), 0 14px 36px rgba(0, 0, 0, .4);
}
.panel__title { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 19px; font-weight: 700; color: #fff; }
.panel__ic {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  color: var(--gold);
  background: radial-gradient(circle at 35% 30%, #ff5b3a, #c3121a 50%, #5c0509);
  box-shadow: 0 0 0 2px #e9a826, 0 0 14px rgba(255, 50, 30, .45);
}
.panel__ic svg { width: 20px; height: 20px; }
.panel .btn--block { margin-top: auto; }

/* Check list */
.check-list { display: grid; gap: 14px; margin-bottom: 20px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; }
.check-list__ic { display: grid; place-items: center; flex-shrink: 0; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; background: var(--grad-gold); color: var(--red-deep); }
.check-list__ic svg { width: 14px; height: 14px; }
.check-list strong { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.4; color: #fff; }
.check-list div span { display: block; font-size: 13px; color: var(--muted); }
.check-list--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin: 22px 0 28px; }

/* Notice */
.notice {
  display: flex;
  gap: 12px;
  margin-top: auto;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(211, 18, 28, .24), rgba(211, 18, 28, .06));
  border: 1px solid rgba(255, 197, 61, .35);
}
.notice svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--gold); }
.notice p { font-size: 13.5px; color: #eadbd6; }
.notice strong { color: var(--gold-light); }

/* CTA banner */
.cta-banner-wrap { padding-block: 10px 56px; background: #150305; }
.cta-banner {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 320px;
  padding: 40px 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid var(--line-gold);
  box-shadow: 0 0 30px rgba(255, 40, 30, .28), 0 18px 40px rgba(0, 0, 0, .5);
  background:
    linear-gradient(90deg, rgba(30, 3, 6, .95) 0%, rgba(60, 6, 10, .8) 45%, rgba(60, 6, 10, .2) 100%),
    url("../assets/background.webp") center 35% / cover no-repeat;
}
.cta-banner::after {
  content: "";
  position: absolute;
  inset: 6px;
  z-index: 3;
  border-radius: calc(var(--radius-lg) - 5px);
  border: 1px solid rgba(255, 190, 70, .18);
  pointer-events: none;
}
.cta-banner__content { position: relative; z-index: 2; max-width: 540px; }
.cta-banner__title { margin: 16px 0 12px; font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; line-height: 1.15; color: #fff; }
.cta-banner__content p { margin-bottom: 24px; font-size: 14.5px; color: #eadbd6; }
.cta-banner__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-banner__img {
  position: absolute;
  right: 10px; bottom: 0;
  z-index: 1;
  width: 48%;
  max-width: 520px;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, .55));
}

/* Toast */
.toast {
  position: fixed;
  left: 50%; bottom: 28px;
  z-index: 200;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  color: #fff;
  background: linear-gradient(180deg, #3a060b, #1a0305);
  border: 1px solid var(--line-gold);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .6), 0 0 20px rgba(255, 50, 30, .3);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 12px);
  transition: opacity .3s, transform .3s var(--ease), visibility .3s;
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- 2. About ---------- */
.about-story {
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(160, 14, 22, .25), transparent 70%),
    linear-gradient(180deg, var(--bg), #1a0407);
}
.about-story__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 48px; }
.about-story__content p { margin-bottom: 14px; font-size: 15px; color: var(--muted); }

.media-frame {
  position: relative;
  isolation: isolate;
  aspect-ratio: 5 / 4;
  max-width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid var(--line-gold);
  box-shadow: 0 0 30px rgba(255, 40, 30, .25), 0 18px 40px rgba(0, 0, 0, .5);
  background:
    linear-gradient(180deg, rgba(30, 3, 6, .2), rgba(30, 3, 6, .7)),
    url("../assets/second%20background.webp") center / cover no-repeat;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: calc(var(--radius-lg) - 5px);
  border: 1px solid rgba(255, 190, 70, .2);
  pointer-events: none;
}
.media-frame img {
  position: absolute;
  left: 50%; bottom: 0;
  width: 94%;
  transform: translateX(-50%);
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, .55));
}
.media-badge {
  position: absolute;
  top: 18px; left: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 7px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: rgba(14, 2, 4, .82);
  border: 1px solid var(--line-gold);
  backdrop-filter: blur(6px);
}

.about-values { background: linear-gradient(180deg, #1a0407, #140304); }
.value-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.value-card {
  position: relative;
  padding: 34px 26px 28px;
  text-align: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--grad-card);
  border: 1px solid var(--line-red);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.value-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--grad-gold); opacity: .75; }
.value-card:hover { transform: translateY(-5px); border-color: var(--line-gold); box-shadow: 0 16px 40px rgba(0, 0, 0, .45), 0 0 24px rgba(255, 50, 30, .3); }
.value-card:hover .icon-ring { transform: scale(1.06) rotate(-6deg); }
.value-card .icon-ring { margin: 0 auto 20px; }
.value-card__title { margin-bottom: 10px; font-size: 20px; font-weight: 700; color: var(--gold); }
.value-card__text { font-size: 14px; color: var(--muted); }

.about-why {
  padding-top: 30px;
  background:
    radial-gradient(ellipse 60% 60% at 50% 30%, rgba(140, 10, 18, .3), transparent 70%),
    linear-gradient(180deg, #140304, #1a0407);
}

.about-responsible { padding-top: 20px; background: linear-gradient(180deg, #1a0407, #150305); }
.responsible { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 40px; padding: 40px; }
.responsible__content p { font-size: 15px; color: var(--muted); }
.responsible__content .notice { margin-top: 20px; }
.responsible .check-list { margin-bottom: 0; }

/* ---------- 3. Blog ---------- */
.blog-search { max-width: 560px; margin: 28px auto 0; }
.blog-search__field { position: relative; }
.blog-search__field svg { position: absolute; top: 50%; left: 18px; width: 20px; height: 20px; color: var(--gold); transform: translateY(-50%); pointer-events: none; }
.blog-search input {
  width: 100%;
  height: 54px;
  padding: 0 20px 0 50px;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  color: #fff;
  background: rgba(14, 2, 4, .75);
  border: 1.5px solid var(--line-gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .25s, box-shadow .25s;
}
.blog-search input::placeholder { color: #a8918b; }
.blog-search input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(255, 197, 61, .15), 0 10px 30px rgba(0, 0, 0, .4); }

.blog-list { padding-top: 36px; background: linear-gradient(180deg, var(--bg), #1a0407 40%, #150305); }
.blog-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 32px; }
.filter-chip {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #eadbd6;
  background: rgba(40, 5, 9, .7);
  border: 1px solid var(--line-red);
  transition: color .25s, background .25s, border-color .25s, box-shadow .25s;
}
.filter-chip:hover { color: var(--gold-light); border-color: var(--line-gold); }
.filter-chip[aria-pressed="true"] { color: #fff; background: var(--grad-red); border-color: rgba(255, 197, 61, .7); box-shadow: 0 0 16px rgba(255, 40, 30, .45); }

/* Post thumbnails (built from the supplied artwork) */
.post-thumb {
  position: relative;
  isolation: isolate;
  display: block;
  aspect-ratio: 16 / 10;
  max-width: 100%;
  overflow: hidden;
  background-color: #2a0508;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.post-thumb::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(10, 1, 2, .55)); pointer-events: none; }
.post-thumb img {
  position: absolute;
  right: 4%; bottom: 0;
  width: auto;
  height: 96%;
  max-width: none;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .5));
  transition: scale .6s var(--ease);
}
.post-thumb .icon-ring { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(1.35); }
.post-thumb--a { background-image: url("../assets/second%20background.webp"); }
.post-thumb--a img { right: 50%; height: 92%; translate: 50% 0; }
.post-thumb--b { background-image: url("../assets/background.webp"); background-position: 30% 40%; }
.post-thumb--c { background-image: url("../assets/second%20background.webp"); background-position: left center; }
.post-thumb--d { background-image: url("../assets/background.webp"); background-position: center 80%; }
.post-thumb--e { background-image: url("../assets/second%20background.webp"); background-position: right center; }
.post-thumb--f { background-image: url("../assets/background.webp"); background-position: 70% 30%; }
.post-thumb--f img { right: auto; left: 4%; transform: scaleX(-1); }
.post-thumb__tag {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--grad-red);
  border: 1px solid rgba(255, 197, 61, .7);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .4);
}

/* Featured post */
.post-featured {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  margin-bottom: 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--grad-card);
  border: 1.5px solid var(--line-gold);
  box-shadow: 0 0 28px rgba(255, 40, 30, .2), 0 18px 40px rgba(0, 0, 0, .45);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.post-featured:hover, .post-featured:focus-within { transform: translateY(-4px); box-shadow: 0 0 34px rgba(255, 50, 30, .32), 0 22px 46px rgba(0, 0, 0, .5); }
.post-featured .post-thumb { height: 100%; min-height: 330px; aspect-ratio: auto; }
.post-featured__body { display: flex; flex-direction: column; justify-content: center; padding: 34px 36px; }
.post-featured__title { margin: 12px 0; font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; line-height: 1.25; color: #fff; }
.post-featured__excerpt { margin-bottom: 20px; font-size: 14.5px; color: var(--muted); }

/* Post cards */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--grad-card);
  border: 1px solid var(--line-red);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.post-card:hover, .post-card:focus-within { transform: translateY(-5px); border-color: var(--line-gold); box-shadow: 0 16px 40px rgba(0, 0, 0, .45), 0 0 24px rgba(255, 50, 30, .3); }
.post-card:hover .post-thumb img, .post-featured:hover .post-thumb img { scale: 1.05; }
.post-card__body { display: flex; flex: 1; flex-direction: column; padding: 18px 20px 20px; }
.post-card__title { margin-bottom: 8px; font-size: 17px; font-weight: 700; line-height: 1.4; color: #fff; }
.post-card__excerpt { margin-bottom: 16px; font-size: 13.5px; color: var(--muted); }

/* whole card clickable through its title link */
.post-card__title a, .post-featured__title a { transition: color .25s; }
.post-card__title a::after, .post-featured__title a::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.post-card:hover .post-card__title a, .post-featured:hover .post-featured__title a { color: var(--gold-light); }

.post-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 10px; font-size: 12.5px; color: var(--muted); }
.post-meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-meta svg { width: 14px; height: 14px; color: var(--gold); }

.post-card__more { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; font-size: 13.5px; font-weight: 600; color: var(--gold); transition: gap .3s var(--ease); }
.post-card__more svg { width: 14px; height: 14px; }
.post-card:hover .post-card__more, .post-featured:hover .post-card__more { gap: 8px; }

.post-author { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; text-align: left; }
.post-author img { flex-shrink: 0; width: 44px; height: 44px; padding: 5px; object-fit: contain; border-radius: 50%; background: #1a0305; border: 1px solid var(--line-gold); }
.post-author strong { display: block; font-size: 14px; line-height: 1.3; color: #fff; }
.post-author span { font-size: 12.5px; color: var(--muted); }

.blog-empty { margin-top: 8px; padding: 40px 20px; font-size: 15px; text-align: center; color: var(--muted); border: 1px dashed var(--line-red); border-radius: var(--radius); }

/* ---------- 4. Blog details ---------- */
.read-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 120; height: 3px; pointer-events: none; }
.read-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--red-bright), var(--gold));
  box-shadow: 0 0 10px rgba(255, 197, 61, .6);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.page-hero--article { padding-bottom: 48px; text-align: center; }
.page-hero--article .breadcrumb ol { justify-content: center; }
.article-head { max-width: 880px; margin-inline: auto; }
.post-tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--grad-red);
  border: 1px solid rgba(255, 197, 61, .7);
  box-shadow: 0 0 14px rgba(255, 40, 30, .4);
}
.article-title { margin: 18px 0 20px; font-size: clamp(28px, 3.8vw, 46px); font-weight: 800; line-height: 1.18; color: #fff; text-shadow: 0 4px 24px rgba(0, 0, 0, .5); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; }
.article-meta .post-author, .article-meta .post-meta { margin: 0; }
.article-meta .post-meta { font-size: 13.5px; }

.article-section { padding-top: 8px; background: linear-gradient(180deg, var(--bg), #170406 40%, #140304); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 40px; }
.article { min-width: 0; }

.article-cover { margin: 0 0 32px; border-radius: var(--radius-lg); overflow: hidden; border: 1.5px solid var(--line-gold); box-shadow: 0 0 28px rgba(255, 40, 30, .2), 0 18px 40px rgba(0, 0, 0, .45); }
.article-cover .post-thumb { aspect-ratio: 16 / 8; }
.article-cover figcaption { padding: 10px 16px; font-size: 13px; color: var(--muted); background: rgba(20, 3, 5, .9); border-top: 1px solid rgba(255, 190, 70, .15); }

.article-body { font-size: 16px; line-height: 1.8; color: #e6d6d1; }
.article-body > * + * { margin-top: 18px; }
.article-body .lead { font-size: 18px; line-height: 1.7; color: #fff; }
.article-body h2 {
  margin-top: 40px;
  padding-left: 16px;
  font-size: clamp(22px, 2.3vw, 28px);
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  border-left: 4px solid var(--red);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.article-body h2 + * { margin-top: 14px; }
.article-body strong { font-weight: 600; color: #fff; }
.article-body a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.article-body ul, .article-body ol { display: grid; gap: 10px; }
.article-body ul li { position: relative; padding-left: 26px; }
.article-body ul li::before { content: ""; position: absolute; top: .72em; left: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--grad-gold); box-shadow: 0 0 8px rgba(255, 197, 61, .5); }
.article-body ol { counter-reset: step; }
.article-body ol li { position: relative; padding-left: 42px; counter-increment: step; }
.article-body ol li::before {
  content: counter(step);
  position: absolute;
  top: .15em; left: 0;
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--grad-red);
  box-shadow: 0 0 0 1.5px rgba(255, 197, 61, .7);
}

.article-tip {
  position: relative;
  margin-inline: 0;
  margin-bottom: 0;
  padding: 22px 24px 22px 70px;
  font-size: 15.5px;
  color: #f4e6e1;
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(211, 18, 28, .22), rgba(60, 6, 10, .4));
  border: 1px solid var(--line-gold);
}
.article-tip svg { position: absolute; top: 22px; left: 22px; width: 30px; height: 30px; color: var(--gold); }
.article-tip strong { color: var(--gold-light); }

.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line-red); background: var(--grad-card); scrollbar-color: rgba(255, 197, 61, .55) rgba(20, 3, 5, .9); scrollbar-width: thin; }
.table-wrap::-webkit-scrollbar { height: 8px; }
.table-wrap::-webkit-scrollbar-track { background: rgba(20, 3, 5, .9); }
.table-wrap::-webkit-scrollbar-thumb { border-radius: 999px; background: linear-gradient(90deg, var(--red), var(--gold-2)); }
.rank-table { width: 100%; min-width: 580px; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.rank-table th {
  padding: 14px 16px;
  font-size: 12.5px;
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--gold);
  background: rgba(211, 18, 28, .18);
  border-bottom: 1px solid var(--line-gold);
}
.rank-table td { padding: 14px 16px; vertical-align: middle; color: var(--muted); border-bottom: 1px solid rgba(255, 190, 70, .12); }
.rank-table tbody tr { transition: background .25s; }
.rank-table tbody tr:hover { background: rgba(211, 18, 28, .1); }
.rank-table tr:last-child td { border-bottom: 0; }
.rank-table td:first-child { width: 56px; font-family: var(--font-display); font-size: 20px; text-align: center; color: var(--gold); }
.rank-table td strong { display: block; color: #fff; }
.pc-set { display: inline-flex; gap: 4px; white-space: nowrap; }
.pc {
  display: inline-grid; place-items: center;
  min-width: 34px; height: 44px;
  padding: 0 4px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  color: #1b0a0a;
  background: linear-gradient(180deg, #fffaf0, #f1e3c8);
  border: 1px solid #d9b77a;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .4);
}
.pc--red { color: #c3121a; }

.article-body .notice { margin-top: 24px; }

.article-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 40px; padding-block: 20px; border-block: 1px solid rgba(255, 190, 70, .15); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-chip {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  color: #eadbd6;
  background: rgba(40, 5, 9, .7);
  border: 1px solid var(--line-red);
  transition: color .25s, border-color .25s;
}
.tag-chip:hover { color: var(--gold-light); border-color: var(--line-gold); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share__label { margin-right: 4px; font-size: 13.5px; font-weight: 600; color: #fff; }
.share__btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: #fff; transition: transform .3s var(--ease), box-shadow .3s; }
.share__btn svg { width: 19px; height: 19px; }
.share__btn:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0, 0, 0, .5), 0 0 14px rgba(255, 197, 61, .35); }
.share__btn--copy { background: var(--grad-red); border: 1px solid rgba(255, 197, 61, .6); }

.author-box { display: flex; gap: 18px; margin-top: 28px; padding: 22px; border-radius: var(--radius-lg); background: var(--grad-card); border: 1px solid var(--line-red); }
.author-box img { flex-shrink: 0; width: 72px; height: 72px; padding: 8px; object-fit: contain; border-radius: 50%; background: #1a0305; border: 1.5px solid var(--line-gold); }
.author-box__name { font-size: 17px; font-weight: 700; color: #fff; }
.author-box__role { display: block; margin-bottom: 6px; font-size: 13px; color: var(--gold); }
.author-box p { font-size: 14px; color: var(--muted); }

/* Sidebar */
.article-sidebar { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 20px; }
.widget { padding: 22px; border-radius: var(--radius-lg); background: var(--grad-card); border: 1px solid var(--line-red); box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
.widget__title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding-bottom: 12px; font-size: 16px; font-weight: 700; color: #fff; border-bottom: 1px solid rgba(255, 190, 70, .18); }
.widget__title::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--grad-gold); }

.toc-list { display: grid; gap: 2px; counter-reset: toc; }
.toc-list a { display: flex; gap: 10px; padding: 7px 10px; border-radius: 8px; font-size: 13.5px; line-height: 1.45; color: var(--muted); counter-increment: toc; transition: color .2s, background .2s; }
.toc-list a::before { content: counter(toc, decimal-leading-zero); font-weight: 700; color: rgba(255, 197, 61, .55); }
.toc-list a:hover { color: #fff; background: rgba(211, 18, 28, .18); }
.toc-list a.is-active { color: var(--gold-light); background: rgba(211, 18, 28, .28); }
.toc-list a.is-active::before { color: var(--gold); }

.widget--app {
  text-align: center;
  border-color: var(--line-gold);
  background:
    linear-gradient(180deg, rgba(40, 4, 8, .72), rgba(20, 2, 4, .94)),
    url("../assets/second%20background.webp") center / cover no-repeat;
}
.widget--app img { width: 120px; margin: 0 auto 10px; }
.widget--app h3 { font-size: 18px; font-weight: 700; color: #fff; }
.widget--app p { margin: 6px 0 16px; font-size: 13.5px; color: #eadbd6; }

.cat-list { display: grid; gap: 6px; }
.cat-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: #eadbd6;
  background: rgba(40, 5, 9, .5);
  border: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.cat-list a:hover { color: var(--gold-light); border-color: var(--line-red); }
.cat-list a span { min-width: 26px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; text-align: center; color: var(--red-deep); background: var(--grad-gold); }

.recent-list { display: grid; gap: 14px; }
.recent-list a { display: flex; align-items: center; gap: 12px; }
.recent-list .post-thumb { flex-shrink: 0; width: 84px; aspect-ratio: 1; border-radius: 8px; }
.recent-list .post-thumb .icon-ring { transform: translate(-50%, -50%) scale(.7); }
.recent-list strong { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.4; color: #fff; transition: color .2s; }
.recent-list a:hover strong { color: var(--gold-light); }
.recent-list a span:not(.post-thumb):not(.icon-ring) { font-size: 12px; color: var(--muted); }

.related-posts { padding-top: 24px; background: linear-gradient(180deg, #140304, #150305); }

/* ---------- 4b. Guide pages (Teen Patti Master, Gold, Old Version) ---------- */
.page-hero--alt .page-hero__bg {
  background:
    linear-gradient(90deg, rgba(14, 2, 4, .94) 0%, rgba(40, 4, 8, .74) 42%, rgba(40, 4, 8, .28) 75%, rgba(14, 2, 4, .5) 100%),
    linear-gradient(180deg, rgba(12, 2, 3, .2) 0%, rgba(12, 2, 3, 0) 55%, var(--bg) 100%),
    url("../assets/second%20background.webp") center 45% / cover no-repeat;
}
.page-hero--guide { padding-bottom: 84px; }
.page-hero--guide .page-hero__title { font-size: clamp(30px, 3.8vw, 48px); }

.chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px 5px 6px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: rgba(20, 3, 5, .6);
  border: 1px solid var(--line-red);
  backdrop-filter: blur(4px);
}
.chip-list svg { width: 24px; height: 24px; padding: 5px; border-radius: 50%; background: var(--grad-gold); color: var(--red-deep); }

.page-hero__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; font-size: 13px; color: var(--muted); }
.page-hero__meta span { display: inline-flex; align-items: center; gap: 6px; }
.page-hero__meta svg { width: 15px; height: 15px; color: var(--gold); }

/* Key facts strip overlapping the hero */
.fact-strip-wrap { position: relative; z-index: 2; margin-top: -44px; }
.fact-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(40, 5, 9, .97), rgba(18, 2, 4, .98));
  border: 1px solid var(--line-gold);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5), 0 0 24px rgba(255, 40, 30, .18);
}
.fact-tile { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 18px 16px; border-right: 1px solid rgba(255, 190, 70, .14); }
.fact-tile:last-child { border-right: 0; }
.fact-tile .panel__ic { flex-shrink: 0; width: 38px; height: 38px; }
.fact-tile .panel__ic svg { width: 18px; height: 18px; }
.fact-tile__label { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }

.page-hero__art--wide img { max-width: 600px; }

/* Long guides: widgets flow normally and the contents list (last widget) sticks
   for the rest of the article, instead of hiding widgets in a scrolling sidebar. */
@media (min-width: 1081px) {
  .guide-section .article-sidebar { position: static; align-self: stretch; align-content: start; }
  .guide-section .widget--toc {
    position: sticky;
    top: calc(var(--header-h) + 20px);
    max-height: calc(100vh - var(--header-h) - 40px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 197, 61, .45) transparent;
  }
}
.fact-tile strong { display: block; font-size: 14px; font-weight: 700; line-height: 1.3; color: #fff; }

.guide-section { padding-top: 48px; }

/* In-article components */
.takeaways { padding: 22px 24px; border-radius: var(--radius-lg); background: linear-gradient(135deg, rgba(211, 18, 28, .2), rgba(40, 5, 9, .6)); border: 1px solid var(--line-gold); }
.takeaways__title { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 17px; font-weight: 700; color: var(--gold-light); }
.takeaways__title svg { width: 22px; height: 22px; color: var(--gold); }
.article-body .takeaways ul { gap: 8px; }
.article-body .takeaways li { font-size: 15px; }

.article-body h3 { margin-top: 26px; font-size: 19px; font-weight: 700; line-height: 1.35; color: var(--gold); }
.article-body h3 + * { margin-top: 10px; }
.article-body .btn { color: #fff; text-decoration: none; }
.article-body code {
  padding: 2px 8px;
  border-radius: 6px;
  font-family: Consolas, "SFMono-Regular", Menlo, monospace;
  font-size: .88em;
  color: var(--gold-light);
  background: rgba(0, 0, 0, .45);
  border: 1px solid rgba(255, 190, 70, .2);
  overflow-wrap: anywhere;
}

.mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mini-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mini-card { display: flex; gap: 14px; padding: 18px; border-radius: var(--radius); background: var(--grad-card); border: 1px solid var(--line-red); transition: border-color .3s, transform .3s var(--ease); }
.mini-card:hover { border-color: var(--line-gold); transform: translateY(-3px); }
.mini-card .icon-ring { width: 46px; height: 46px; }
.mini-card .icon-ring svg { width: 22px; height: 22px; }
.article-body .mini-card h3 { margin: 0 0 4px; font-size: 15.5px; line-height: 1.35; color: var(--gold); }
.article-body .mini-card p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }

.data-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14.5px; line-height: 1.55; }
.data-table th {
  padding: 13px 16px;
  font-size: 12.5px;
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--gold);
  background: rgba(211, 18, 28, .18);
  border-bottom: 1px solid var(--line-gold);
}
.data-table td { padding: 13px 16px; vertical-align: top; color: var(--muted); border-bottom: 1px solid rgba(255, 190, 70, .12); }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr { transition: background .25s; }
.data-table tbody tr:hover { background: rgba(211, 18, 28, .1); }
.data-table td:first-child { font-weight: 600; color: #fff; }
.data-table .yes, .data-table .no, .data-table .partial { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
.data-table .yes { color: var(--gold-light); }
.data-table .no { color: #ff8a80; }
.data-table .partial { color: #f5c98a; }
.data-table .yes svg, .data-table .no svg, .data-table .partial svg { width: 16px; height: 16px; flex-shrink: 0; }

.pros-cons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pros-cons__col { padding: 20px; border-radius: var(--radius); background: var(--grad-card); border: 1px solid var(--line-red); }
.pros-cons__col--pro { border-color: var(--line-gold); }
.pros-cons__title { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 16px; font-weight: 700; color: #fff; }
.pros-cons__col--con .check-list__ic { color: #fff; background: var(--grad-red); }
.article-body .pros-cons ul { gap: 10px; }
.article-body .pros-cons li { padding-left: 24px; font-size: 14.5px; line-height: 1.6; }
.article-body .pros-cons li::before { top: .62em; width: 8px; height: 8px; }
.article-body .pros-cons__col--con li::before { background: var(--red-bright); box-shadow: 0 0 8px rgba(255, 45, 45, .5); }

.inline-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-gold);
  background:
    linear-gradient(90deg, rgba(40, 4, 8, .92), rgba(20, 2, 4, .7)),
    url("../assets/background.webp") center 70% / cover no-repeat;
}
.inline-cta strong { display: block; font-size: 17px; line-height: 1.35; color: #fff; }
.inline-cta span { font-size: 13.5px; color: #eadbd6; }

.article-body .faq { margin-top: 16px; }

/* Sidebar */
.fact-list div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 2px; font-size: 13.5px; border-bottom: 1px dashed rgba(255, 190, 70, .16); }
.fact-list div:last-child { border-bottom: 0; }
.fact-list dt { color: var(--muted); }
.fact-list dd { margin: 0; font-weight: 600; text-align: right; color: #fff; }
.link-list { display: grid; gap: 6px; }
.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: #eadbd6;
  background: rgba(40, 5, 9, .5);
  border: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.link-list a:hover { color: var(--gold-light); border-color: var(--line-red); }
.link-list svg { flex-shrink: 0; width: 14px; height: 14px; color: var(--gold); }

/* ---------- 4c. Contact ---------- */
.page-hero--center .chip-list { justify-content: center; }

.contact-channels { padding-top: 36px; background: linear-gradient(180deg, var(--bg), #1a0407); }
.contact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px 22px;
  border-radius: var(--radius-lg);
  background: var(--grad-card);
  border: 1px solid var(--line-red);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.contact-card:hover { transform: translateY(-5px); border-color: var(--line-gold); box-shadow: 0 16px 40px rgba(0, 0, 0, .45), 0 0 24px rgba(255, 50, 30, .3); }
.contact-card:hover .icon-ring { transform: scale(1.06) rotate(-6deg); }
.contact-card .icon-ring { margin-bottom: 18px; }
.contact-card__title { margin-bottom: 8px; font-size: 18px; font-weight: 700; color: var(--gold); }
.contact-card p { flex: 1; margin-bottom: 16px; font-size: 13.5px; color: var(--muted); }
.contact-card__link { font-size: 14px; font-weight: 600; color: var(--gold-light); overflow-wrap: anywhere; border-bottom: 1px dashed rgba(255, 197, 61, .5); transition: color .2s, border-color .2s; }
.contact-card__link:hover { color: #fff; border-color: #fff; }
.contact-card .socials { gap: 8px; }

.contact-main { padding-top: 24px; background: linear-gradient(180deg, #1a0407, #140304); }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; gap: 24px; }
.contact-aside { display: grid; gap: 20px; }
.contact-aside .panel__title { font-size: 17px; }
.contact-aside .check-list { margin-bottom: 0; }
.form-intro { margin: -4px 0 20px; font-size: 14px; color: var(--muted); }

/* Form */
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.form__field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form__field--full { grid-column: 1 / -1; }
.form__field label { font-size: 13.5px; font-weight: 600; color: #fff; }
.form__optional { font-weight: 400; color: var(--muted); }
.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form select,
.form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  font: inherit;
  font-size: 14.5px;
  color: #fff;
  background-color: rgba(10, 1, 2, .6);
  border: 1.5px solid rgba(234, 45, 38, .35);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.form textarea { min-height: 150px; line-height: 1.6; resize: vertical; }
.form select {
  padding-right: 40px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23ffc53d' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
}
.form select option { color: #fff; background: #1a0305; }
.form input::placeholder, .form textarea::placeholder { color: #8f7a75; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--gold); background-color: rgba(10, 1, 2, .85); box-shadow: 0 0 0 4px rgba(255, 197, 61, .12); }
.form__field.is-invalid input, .form__field.is-invalid select, .form__field.is-invalid textarea { border-color: #ff5a4f; box-shadow: 0 0 0 4px rgba(255, 60, 50, .12); }
.form__error { font-size: 12.5px; color: #ff8a80; }
.form__error:empty { display: none; }
.form__meta { display: flex; justify-content: flex-end; font-size: 12px; color: var(--muted); }
.form__field .form__check { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; font-weight: 400; color: #eadbd6; cursor: pointer; }
.form__check input { flex-shrink: 0; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--red); cursor: pointer; }
.form__check a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 22px; }
.form__note { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.form__note svg { flex-shrink: 0; width: 15px; height: 15px; color: var(--gold); }
.form__status { margin-top: 16px; padding: 12px 14px; font-size: 14px; color: #fff; border-radius: 10px; background: rgba(211, 18, 28, .18); border: 1px solid var(--line-gold); }
.form__status a { color: var(--gold); text-decoration: underline; }

.contact-faq { padding-top: 24px; background: linear-gradient(180deg, #140304, #150305); }
.contact-faq .container { max-width: 960px; }
.contact-faq .faq { margin-top: 0; }

/* ---------- 4d. Legal pages ---------- */
.page-hero--legal .page-hero__text { margin-inline: auto; }
.page-hero--legal .page-hero__meta { justify-content: center; }
.link-list a[aria-current="page"] { color: var(--gold-light); border-color: var(--line-gold); background: rgba(211, 18, 28, .22); }
.legal-body { counter-reset: legal; }
.legal-body > h2 { counter-increment: legal; }
.legal-body > h2::before { content: counter(legal) ". "; color: var(--gold); }
.legal-contact { padding: 20px 22px; border-radius: var(--radius); background: var(--grad-card); border: 1px solid var(--line-gold); }
.legal-contact .fact-list div { font-size: 14.5px; }
.article-body .legal-contact a { overflow-wrap: anywhere; }

/* ---------- 5. Responsive ---------- */
@media (max-width: 1080px) {
  .page-hero__inner { grid-template-columns: 1fr; gap: 28px; }
  .page-hero__content { max-width: 680px; margin-inline: auto; text-align: center; }
  .page-hero__text { margin-inline: auto; }
  .page-hero .breadcrumb ol, .page-hero .hero__actions { justify-content: center; }
  .page-hero__art img { max-width: 340px; }

  .cta-banner { padding: 36px 32px; }
  .cta-banner__img { right: -30px; width: 46%; }

  .about-story__grid { grid-template-columns: 1fr; gap: 32px; max-width: 680px; margin-inline: auto; }
  .responsible { grid-template-columns: 1fr; gap: 24px; padding: 30px; }

  .post-featured { grid-template-columns: 1fr; }
  .post-featured .post-thumb { height: auto; min-height: 0; aspect-ratio: 16 / 9; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .widget--toc { display: none; }
}

@media (max-width: 700px) {
  .page-hero { padding-block: 16px 44px; }
  .breadcrumb { margin-bottom: 18px; }
  .btn--lg { min-height: 50px; font-size: 15px; }
  .panel { padding: 20px 16px; }
  .panel__title { font-size: 17px; }

  .cta-banner {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding: 28px 20px 0;
    text-align: center;
    background:
      linear-gradient(180deg, rgba(30, 3, 6, .93) 0%, rgba(60, 6, 10, .65) 60%, rgba(60, 6, 10, .3) 100%),
      url("../assets/background.webp") center / cover no-repeat;
  }
  .cta-banner__content { max-width: none; }
  .cta-banner__actions { justify-content: center; }
  .cta-banner__actions .btn { flex: 1 1 100%; }
  .cta-banner__img { position: relative; right: auto; width: 100%; max-width: 360px; margin: 8px auto 0; }

  .check-list--compact { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .responsible { padding: 22px 16px; }
  .media-badge { top: 12px; left: 12px; font-size: 12px; }

  .blog-search input { height: 50px; }
  .blog-filters { gap: 8px; margin-bottom: 24px; }
  .filter-chip { padding: 7px 14px; font-size: 13px; }
  .post-grid { grid-template-columns: 1fr; gap: 18px; }
  .post-featured__body { padding: 22px 18px; }

  .article-body { font-size: 15px; }
  .article-body .lead { font-size: 16.5px; }
  .article-tip { padding: 18px 16px 18px 56px; }
  .article-tip svg { top: 18px; left: 16px; width: 26px; height: 26px; }
  .article-footer { flex-direction: column; align-items: flex-start; }
  .author-box { flex-direction: column; align-items: center; text-align: center; }
  .article-sidebar { grid-template-columns: 1fr; }
}

/* Guide pages */
@media (max-width: 1080px) {
  .page-hero__meta, .chip-list { justify-content: center; }
  .fact-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fact-tile:nth-child(3n) { border-right: 0; }
  .fact-tile:nth-child(-n+3) { border-bottom: 1px solid rgba(255, 190, 70, .14); }
  .mini-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .page-hero--guide { padding-bottom: 64px; }
  .chip-list li { padding: 4px 11px 4px 5px; font-size: 12px; }
  .chip-list svg { width: 22px; height: 22px; }
  .fact-strip-wrap { margin-top: -34px; }
  .fact-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact-tile { gap: 10px; padding: 14px 12px; border-right: 0; border-bottom: 1px solid rgba(255, 190, 70, .14); }
  .fact-tile:nth-child(odd) { border-right: 1px solid rgba(255, 190, 70, .14); }
  .fact-tile:nth-last-child(-n+2) { border-bottom: 0; }
  .fact-tile .panel__ic { display: none; }
  .mini-grid, .mini-grid--3, .pros-cons { grid-template-columns: 1fr; }
  .takeaways { padding: 18px 16px; }
  .inline-cta { flex-direction: column; align-items: stretch; text-align: center; }
}

/* Contact */
@media (max-width: 1080px) {
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-aside .notice { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .contact-grid { grid-template-columns: 1fr; gap: 14px; }
  .contact-card { padding: 20px 18px; }
  .contact-aside { grid-template-columns: 1fr; }
  .form__grid { grid-template-columns: 1fr; gap: 14px; }
  .form__actions .btn { width: 100%; }
}
