/* guides/article.htm — 文章頁版面（與 main.css 變數搭配；寬度與兩欄為主） */

/* ----- Hero：外層與主內容區對齊，標題區可讀寬度 ----- */
.article-page--detail .article-hero {
  padding: 40px 0 36px;
  border-bottom: 1px solid rgba(11, 42, 74, 0.08);
  background: linear-gradient(180deg, #fff 0%, rgba(246, 248, 251, 0.65) 100%);
}

.article-page--detail .article-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.article-page--detail .article-hero-content {
  max-width: 860px;
}

.article-page--detail .article-title-main {
  font-size: clamp(28px, 1.5vw + 22px, 32px);
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--heading);
  font-weight: 800;
  margin: 0 0 18px;
}

.article-page--detail .article-lede {
  margin: 0 0 20px;
  padding: 16px 20px;
  border-radius: 14px;
  background: #eef2f7;
  border: 1px solid rgba(11, 42, 74, 0.08);
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.article-page--detail .article-lede:empty {
  display: none;
}

.article-page--detail .article-hero .article-meta {
  margin-top: 0;
}

.article-page--detail .article-note--hero {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 820px;
  width: 100%;
}

/* ----- 主欄 + 側欄 ----- */
.article-page--detail .article-shell {
  padding-top: 40px;
  padding-bottom: 48px;
}

.article-page--detail .article-layout {
  display: grid;
  grid-template-columns: minmax(0, 820px) 300px;
  gap: 32px;
  align-items: start;
}

.article-page--detail .article-main {
  min-width: 0;
}

.article-page--detail .article-sidebar {
  width: 100%;
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

@media (max-width: 900px) {
  .article-page--detail .article-layout {
    grid-template-columns: 1fr;
  }

  .article-page--detail .article-sidebar {
    order: 2;
    position: static;
  }

  .article-page--detail .article-main {
    order: 1;
  }
}

/* 區塊分隔 */
.article-page--detail .article-panel {
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
  margin-bottom: 28px;
}

.article-page--detail .article-panel:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.article-page--detail .article-panel--notice .notice-box {
  margin-top: 0;
}

.article-page--detail .article-toc-panel {
  max-width: none;
  margin: 0;
}

/* 正文卡片：佔滿主欄 820 區 */
.article-page--detail .article-main .article-content-card.auto-article,
.article-page--detail .article-main .article-content.auto-article {
  max-width: none;
  width: 100%;
  margin: 0;
}

.article-page--detail .auto-article h2 {
  font-size: 1.35rem;
  color: var(--heading);
  line-height: 1.35;
  margin: 2.25rem 0 1rem;
  padding-bottom: 0.45em;
  border-bottom: 2px solid rgba(18, 184, 166, 0.45);
  letter-spacing: 0.02em;
}

.article-page--detail .auto-article h2:first-child {
  margin-top: 0;
}

.article-page--detail .auto-article h3 {
  font-size: 1.12rem;
  margin: 1.5rem 0 0.65rem;
  color: var(--heading);
}

.article-page--detail .auto-article .article-box {
  margin: 1.35em 0;
  padding: 16px 18px 16px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f4fbfa 0%, #f0f6fc 100%);
  border: 1px solid rgba(11, 42, 74, 0.08);
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow-tiny);
  color: var(--text);
  line-height: 1.85;
}

.article-page--detail .auto-article figure {
  margin: 1.6em 0;
}

.article-page--detail .auto-article figure img,
.article-page--detail .auto-article > img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.article-page--detail .auto-article figcaption {
  margin-top: 10px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
  text-align: center;
}

/* 風險提示與主欄對齊 */
.article-page--detail .article-note--risk {
  max-width: 820px;
  width: 100%;
}

/* ----- 側欄 ----- */
.article-page--detail .article-sidebar__section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-tiny);
  padding: 16px 16px 14px;
}

.article-page--detail .article-sidebar__heading {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.article-page--detail .article-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-page--detail .article-sidebar-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(246, 248, 251, 0.6);
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.article-page--detail .article-sidebar-card:hover {
  border-color: rgba(18, 184, 166, 0.35);
  background: #fff;
  box-shadow: 0 8px 22px rgba(11, 31, 58, 0.07);
  transform: translateY(-2px);
  text-decoration: none;
}

.article-page--detail .article-sidebar-card__title {
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--heading);
}

.article-page--detail .article-sidebar-card__date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ----- 相關閱讀：外層 1180，內容 820 與主欄對齊 ----- */
.article-page--detail .article-related {
  max-width: 820px;
  width: 100%;
}

.article-page--detail .article-related h2 {
  color: var(--heading);
  font-size: 1.25rem;
  margin: 0 0 14px;
  line-height: 1.35;
}

.article-page--detail .article-foot {
  padding-top: 8px;
  padding-bottom: 64px;
}

/* Article body image sizing - guides article only */
.article-page .article-content img:not(.brand-logo-wrap img):not(.table-logo-wrap img) {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  aspect-ratio: auto;
  margin: 24px auto;
  border-radius: 14px;
}

@media (min-width: 769px) {
  .article-page .article-content img:not(.brand-logo-wrap img):not(.table-logo-wrap img) {
    max-width: 720px;
  }
}

@media (max-width: 768px) {
  .article-page .article-content img:not(.brand-logo-wrap img):not(.table-logo-wrap img) {
    width: auto;
    max-width: 92%;
    height: auto;
    max-height: none;
    object-fit: contain;
    aspect-ratio: auto;
    margin: 18px auto;
    border-radius: 12px;
  }
}
/* ===== HKW Article Page Visual Upgrade ===== */

.article-page {
  max-width: 980px;
}

.article-header {
  background: #ffffff;
  border: 1px solid #dbe8f4;
  border-radius: 16px;
  padding: 22px;
  margin: 24px 0;
  box-shadow: 0 8px 22px rgba(8, 40, 72, 0.06);
}

.article-header h1 {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.35;
  color: #06294a;
}

.article-meta {
  margin: 0 0 12px;
  font-size: 14px;
  color: #60788f;
}

.article-meta a {
  color: #007f7a;
  text-decoration: none;
  font-weight: 700;
}

.article-desc {
  background: #f3f8fc;
  border-left: 4px solid #009688;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0;
  color: #3d5872;
}

.article-content {
  background: #ffffff;
  border: 1px solid #dbe8f4;
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 8px 22px rgba(8, 40, 72, 0.05);
}

.article-content h2 {
  margin: 34px 0 14px;
  padding-left: 14px;
  border-left: 5px solid #009688;
  font-size: 25px;
  color: #082848;
  line-height: 1.4;
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content h3 {
  margin: 24px 0 10px;
  font-size: 20px;
  color: #0b355c;
}

.article-content p {
  margin: 0 0 15px;
  font-size: 16px;
  line-height: 1.9;
  color: #243f58;
}

.article-content ul,
.article-content ol {
  margin: 0 0 18px 22px;
  padding: 0;
}

.article-content li {
  margin-bottom: 8px;
  line-height: 1.8;
}

.article-nav {
  margin: 24px 0;
  background: #ffffff;
  border: 1px solid #dbe8f4;
  border-radius: 14px;
  padding: 16px 18px;
}

.article-nav p {
  margin: 6px 0;
  color: #3d5872;
}

.related-articles {
  margin-top: 30px;
}

.related-articles > h2 {
  font-size: 24px;
  margin-bottom: 16px;
  color: #082848;
}

@media (max-width: 768px) {
  .article-header {
    padding: 18px;
    margin: 18px 0;
  }

  .article-header h1 {
    font-size: 24px;
  }

  .article-content {
    padding: 18px;
  }

  .article-content h2 {
    font-size: 22px;
    margin-top: 28px;
  }

  .article-content h3 {
    font-size: 19px;
  }

  .article-content p {
    font-size: 15.5px;
    line-height: 1.85;
  }
}
/* ===== HKW Article Mobile Readability Fix ===== */

@media (max-width: 768px) {
  .article-page {
    padding-left: 12px;
    padding-right: 12px;
  }

  .article-header {
    padding: 16px;
    border-radius: 14px;
  }

  .article-header h1 {
    font-size: 22px;
    line-height: 1.45;
  }

  .article-desc {
    font-size: 14.5px;
    line-height: 1.75;
    padding: 10px 12px;
  }

  .article-content {
    padding: 16px;
    border-radius: 14px;
  }

  .article-content h2 {
    font-size: 21px;
    margin: 26px 0 12px;
    padding-left: 11px;
    border-left-width: 4px;
  }

  .article-content h3 {
    font-size: 18px;
    margin: 20px 0 8px;
  }

  .article-content p {
    font-size: 15.5px;
    line-height: 1.9;
    margin-bottom: 13px;
  }

  .article-nav {
    padding: 14px;
  }

  .related-articles .article-list {
    gap: 12px;
  }
}
/* ===== Article Table Style ===== */

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 24px;
  background: #ffffff;
  border: 1px solid #dbe8f4;
  border-radius: 12px;
  overflow: hidden;
}

.article-content table th,
.article-content table td {
  border: 1px solid #dbe8f4;
  padding: 12px 14px;
  text-align: left;
  font-size: 15px;
  line-height: 1.6;
}

.article-content table th {
  background: #f3f8fc;
  color: #082848;
  font-weight: 800;
}

.article-content table td {
  color: #243f58;
}

@media (max-width: 768px) {
  .article-content table th,
  .article-content table td {
    padding: 10px 11px;
    font-size: 14.5px;
  }
}
/* ===== Fix Article Table Mobile Width ===== */

.article-content {
  overflow-x: hidden;
}

.article-content table {
  table-layout: fixed;
  width: 100% !important;
  max-width: 100% !important;
}

.article-content table th,
.article-content table td {
  word-break: break-word;
  overflow-wrap: break-word;
}

.article-content table th:first-child,
.article-content table td:first-child {
  width: 58%;
}

.article-content table th:last-child,
.article-content table td:last-child {
  width: 42%;
}

@media (max-width: 768px) {
  .article-content table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed;
  }

  .article-content table th,
  .article-content table td {
    padding: 10px 8px;
    font-size: 14px;
    line-height: 1.55;
  }

  .article-content table th:first-child,
  .article-content table td:first-child {
    width: 60%;
  }

  .article-content table th:last-child,
  .article-content table td:last-child {
    width: 40%;
    text-align: center;
    white-space: nowrap;
  }
}
/* ===== Force Mobile Score Table Two Columns ===== */

.article-content {
  overflow-x: visible !important;
}

.article-content table {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
}

.article-content table colgroup,
.article-content table col {
  width: auto !important;
}

@media (max-width: 768px) {
  .article-content table {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .article-content table thead,
  .article-content table tbody {
    display: block !important;
    width: 100% !important;
  }

  .article-content table tr {
    display: grid !important;
    grid-template-columns: 1fr 88px !important;
    width: 100% !important;
  }

  .article-content table th,
  .article-content table td {
    display: block !important;
    width: auto !important;
    max-width: none !important;
    box-sizing: border-box !important;
    padding: 10px 9px !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
    border-right: 1px solid #dbe8f4 !important;
    border-bottom: 1px solid #dbe8f4 !important;
  }

  .article-content table th:last-child,
  .article-content table td:last-child {
    text-align: center !important;
    white-space: nowrap !important;
  }
}
/* ===== Fix Mobile Info Table Content Width ===== */

@media (max-width: 768px) {
  .article-content table tr {
    grid-template-columns: 92px 1fr !important;
  }

  .article-content table th,
  .article-content table td {
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }

  .article-content table th:first-child,
  .article-content table td:first-child {
    width: auto !important;
    text-align: left !important;
  }

  .article-content table th:last-child,
  .article-content table td:last-child {
    width: auto !important;
    text-align: left !important;
    white-space: normal !important;
  }
}
/* ===== Inline Brand Logo In Article Content ===== */

.article-content img {
  max-width: 100%;
  height: auto;
}

.article-content img[src*="/logos/"] {
  display: block;
  width: 128px !important;
  height: 58px !important;
  object-fit: contain !important;
  object-position: center !important;
  padding: 10px 12px !important;
  margin: 10px 0 14px !important;
  background: #0f3558 !important;
  border: 1px solid #1d4d78 !important;
  border-radius: 14px !important;
  box-shadow: 0 5px 14px rgba(8, 40, 72, 0.10) !important;
  box-sizing: border-box !important;
}

@media (max-width: 768px) {
  .article-content img[src*="/logos/"] {
    width: 118px !important;
    height: 52px !important;
  }
}
/* ===== Editor Note Box ===== */

.editor-note {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 24px 0;
  padding: 20px;
  background: #f7fbff;
  border: 1px solid #dbe8f4;
  border-left: 5px solid #009688;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(8, 40, 72, 0.05);
}

.editor-avatar {
  flex: 0 0 58px;
}

.editor-avatar img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 12px rgba(8, 40, 72, 0.12);
}

.editor-note-content h2 {
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  font-size: 20px;
  color: #082848;
}

.editor-note-content p {
  margin: 0 0 10px;
  color: #3d5872;
  font-size: 15px;
  line-height: 1.8;
}

.editor-note-content p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .editor-note {
    flex-direction: column;
    padding: 16px;
    gap: 12px;
  }

  .editor-avatar img {
    width: 54px;
    height: 54px;
  }

  .editor-note-content h2 {
    font-size: 19px;
  }

  .editor-note-content p {
    font-size: 14.5px;
  }
}
/* ===== Editor Note Link ===== */

.editor-note-content a {
  color: #007f7a;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 150, 136, 0.35);
}

.editor-note-content a:hover {
  color: #005f5a;
  border-bottom-color: #005f5a;
}
.article-brand-logo {
  width: 138px !important;
  height: 68px !important;
  max-width: 138px !important;
  max-height: 68px !important;
  object-fit: contain !important;
}

@media (max-width: 768px) {
  .article-brand-logo {
    width: 130px !important;
    height: 62px !important;
  }
}
/* ===== Breadcrumb ===== */

.breadcrumb {
  max-width: 1080px;
  margin: 22px auto 14px;
  padding: 0 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #5b7288;
  font-size: 14px;
  line-height: 1.6;
}

.breadcrumb a {
  color: #007f7a;
  text-decoration: none;
  font-weight: 700;
}

.breadcrumb a:hover {
  color: #005f5a;
  text-decoration: underline;
}

.breadcrumb span {
  color: #6b8197;
}

.breadcrumb span:last-child {
  color: #3d5872;
  font-weight: 600;
}

@media (max-width: 768px) {
  .breadcrumb {
    margin: 16px auto 10px;
    padding: 0 14px;
    font-size: 13px;
    gap: 6px;
  }
}
/* ===== Review Screenshot Style ===== */

.article-content img[src*="/screenshots/"] {
  display: block;
  width: 100%;
  max-width: 860px;
  height: auto;
  margin: 18px auto 8px;
  border-radius: 14px;
  border: 1px solid #dbe8f4;
  box-shadow: 0 8px 24px rgba(8, 40, 72, 0.08);
  background: #ffffff;
}

.article-content img[src*="/screenshots/"] + p {
  max-width: 860px;
  margin: 0 auto 24px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.7;
  color: #4a637a;
  background: #f7fbff;
  border-left: 4px solid #009688;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .article-content img[src*="/screenshots/"] {
    max-width: 100%;
    margin: 16px auto 8px;
    border-radius: 12px;
  }

  .article-content img[src*="/screenshots/"] + p {
    max-width: 100%;
    margin-bottom: 22px;
    font-size: 13.5px;
  }
}
/* ===== Screenshot Caption Fix For DedeCMS Editor ===== */

.article-content p:has(img[src*="/screenshots/"]) {
  margin: 18px auto 8px;
  max-width: 860px;
}

.article-content p:has(img[src*="/screenshots/"]) img {
  display: block;
  width: 100%;
  max-width: 860px;
  height: auto;
  margin: 0 auto;
  border-radius: 14px;
  border: 1px solid #dbe8f4;
  box-shadow: 0 8px 24px rgba(8, 40, 72, 0.08);
  background: #ffffff;
}

.article-content p:has(img[src*="/screenshots/"]) + p {
  max-width: 860px;
  margin: 0 auto 24px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.7;
  color: #4a637a;
  background: #f7fbff;
  border-left: 4px solid #009688;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .article-content p:has(img[src*="/screenshots/"]) {
    max-width: 100%;
    margin: 16px auto 8px;
  }

  .article-content p:has(img[src*="/screenshots/"]) img {
    max-width: 100%;
    border-radius: 12px;
  }

  .article-content p:has(img[src*="/screenshots/"]) + p {
    max-width: 100%;
    margin-bottom: 22px;
    font-size: 13.5px;
  }
}
/* ===== Article Table of Contents ===== */

.article-toc {
  margin: 18px 0 0;
  padding: 16px 18px;
  background: #f7fbff;
  border: 1px solid #dbe8f4;
  border-left: 5px solid #009688;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(8, 40, 72, 0.05);
}

.article-toc-title {
  margin-bottom: 10px;
  color: #082848;
  font-size: 17px;
  font-weight: 800;
}

.article-toc ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-toc li {
  margin: 0;
  padding: 0;
}

.article-toc a {
  display: block;
  padding: 8px 10px;
  color: #007f7a;
  background: #ffffff;
  border: 1px solid #dbe8f4;
  border-radius: 10px;
  font-size: 14.5px;
  line-height: 1.5;
  font-weight: 700;
  text-decoration: none;
}

.article-toc a:hover {
  color: #005f5a;
  border-color: #009688;
  background: #eefafa;
}

.article-content h2 {
  scroll-margin-top: 90px;
}

@media (max-width: 768px) {
  .article-toc {
    padding: 14px;
    margin-top: 16px;
  }

  .article-toc ul {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .article-toc a {
    font-size: 14px;
    padding: 8px 9px;
  }

  .article-content h2 {
    scroll-margin-top: 72px;
  }
}
/* ===== 8BO Football Score Iframe ===== */

.score-iframe-box {
  width: 100%;
  max-width: 100%;
  margin: 18px 0 24px;
  padding: 0;
  background: #ffffff;
  border: 1px solid #dbe8f4;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(8, 40, 72, 0.06);
  box-sizing: border-box;
  overflow: hidden;
}

.score-iframe-box iframe {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 400px;
  border: 0;
}

@media (max-width: 768px) {
  .score-iframe-box {
    border-radius: 12px;
  }

  .score-iframe-box iframe {
    width: 100vw !important;
    margin: 0;
  }
}
/* ===== 8BO Score Script Box ===== */

.score-script-box {
  width: 100%;
  max-width: 100%;
  margin: 18px 0 24px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #dbe8f4;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(8, 40, 72, 0.06);
  box-sizing: border-box;
  overflow-x: auto;
}

.score-script-box * {
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .score-script-box {
    padding: 6px;
    border-radius: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
/* ===== Casino Platform Filter ===== */

.casino-filter-box {
  margin: 26px 0 28px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid #dbe8f4;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(8, 40, 72, 0.06);
}

.casino-filter-head h2 {
  margin: 0 0 8px;
  color: #082848;
  font-size: 24px;
  line-height: 1.35;
}

.casino-filter-head p {
  margin: 0 0 16px;
  color: #4a637a;
  line-height: 1.8;
}

.casino-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.casino-filter-buttons button {
  appearance: none;
  border: 1px solid #dbe8f4;
  background: #f7fbff;
  color: #007f7a;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.casino-filter-buttons button:hover,
.casino-filter-buttons button.active {
  background: #009688;
  border-color: #009688;
  color: #ffffff;
}

.casino-filter-result {
  margin: 0;
  padding: 10px 12px;
  color: #4a637a;
  background: #f7fbff;
  border-left: 4px solid #009688;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .casino-filter-box {
    padding: 16px;
    margin: 20px 0 24px;
    border-radius: 14px;
  }

  .casino-filter-head h2 {
    font-size: 21px;
  }

  .casino-filter-buttons {
    gap: 8px;
  }

  .casino-filter-buttons button {
    padding: 8px 11px;
    font-size: 13px;
  }
}
/* ===== Brand Lookup Tool ===== */

.brand-lookup-box {
  margin: 26px 0 28px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid #dbe8f4;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(8, 40, 72, 0.06);
}

.brand-lookup-head h2 {
  margin: 0 0 8px;
  color: #082848;
  font-size: 24px;
  line-height: 1.35;
}

.brand-lookup-head p {
  margin: 0 0 16px;
  color: #4a637a;
  line-height: 1.8;
}

.brand-lookup-search {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.brand-lookup-search input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #dbe8f4;
  border-radius: 12px;
  color: #082848;
  font-size: 15px;
  background: #f7fbff;
  box-sizing: border-box;
}

.brand-lookup-search button {
  border: 0;
  background: #009688;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.brand-lookup-tips {
  margin-bottom: 14px;
  color: #5b7288;
  font-size: 13.5px;
  line-height: 1.7;
}

.brand-lookup-result {
  padding: 14px;
  background: #f7fbff;
  border-left: 4px solid #009688;
  border-radius: 12px;
  color: #4a637a;
  line-height: 1.8;
}

.brand-lookup-result p {
  margin: 0 0 10px;
}

.brand-lookup-result p:last-child {
  margin-bottom: 0;
}

.brand-result-card h3 {
  margin: 0 0 10px;
  color: #082848;
  font-size: 20px;
}

.brand-score {
  margin-bottom: 10px;
  color: #007f7a;
  font-weight: 700;
}

.brand-result-link {
  display: inline-block;
  margin-top: 4px;
  color: #009688;
  font-weight: 800;
  text-decoration: none;
}

.brand-result-link:hover {
  text-decoration: underline;
}

.brand-result-empty strong {
  color: #082848;
}

@media (max-width: 768px) {
  .brand-lookup-box {
    padding: 16px;
    margin: 20px 0 24px;
    border-radius: 14px;
  }

  .brand-lookup-head h2 {
    font-size: 21px;
  }

  .brand-lookup-search {
    flex-direction: column;
  }

  .brand-lookup-search button {
    width: 100%;
  }
}
/* ===== Auto scroll table for wide article tables ===== */

.article-content .table-scroll {
  width: 100%;
  overflow-x: auto;
  margin: 18px 0 24px;
  border: 1px solid #dbe8f4;
  border-radius: 12px;
  background: #ffffff;
  -webkit-overflow-scrolling: touch;
}

.article-content .table-scroll table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  margin: 0;
  table-layout: auto;
}

.article-content .table-scroll th,
.article-content .table-scroll td {
  width: auto !important;
  padding: 12px 14px;
  border: 1px solid #dbe8f4;
  line-height: 1.7;
  text-align: left;
  vertical-align: top;
  white-space: normal;
  word-break: keep-all;
}

.article-content .table-scroll th {
  background: #f3f8fc;
  color: #082848;
  font-weight: 800;
}

.article-content .table-scroll th:nth-child(1),
.article-content .table-scroll td:nth-child(1) {
  min-width: 160px;
}

.article-content .table-scroll th:nth-child(2),
.article-content .table-scroll td:nth-child(2),
.article-content .table-scroll th:nth-child(3),
.article-content .table-scroll td:nth-child(3) {
  min-width: 110px;
}

.article-content .table-scroll th:nth-child(4),
.article-content .table-scroll td:nth-child(4) {
  min-width: 260px;
}

@media (max-width: 768px) {
  .article-content .table-scroll table {
    min-width: 720px;
  }
}
/* ===== Force wide article tables to keep real table layout ===== */

.article-content .table-scroll {
  width: 100%;
  overflow-x: auto !important;
  overflow-y: hidden;
  margin: 18px 0 24px;
  border: 1px solid #dbe8f4;
  border-radius: 12px;
  background: #ffffff;
  -webkit-overflow-scrolling: touch;
}

.article-content .table-scroll table,
.article-content table.wide-table {
  display: table !important;
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  margin: 0;
  table-layout: auto !important;
}

.article-content .table-scroll thead,
.article-content .table-scroll tbody,
.article-content table.wide-table thead,
.article-content table.wide-table tbody {
  display: table-header-group;
}

.article-content .table-scroll tbody,
.article-content table.wide-table tbody {
  display: table-row-group !important;
}

.article-content .table-scroll tr,
.article-content table.wide-table tr {
  display: table-row !important;
}

.article-content .table-scroll th,
.article-content .table-scroll td,
.article-content table.wide-table th,
.article-content table.wide-table td {
  display: table-cell !important;
  width: auto !important;
  min-width: auto;
  padding: 12px 14px;
  border: 1px solid #dbe8f4;
  line-height: 1.7;
  text-align: left;
  vertical-align: top;
  white-space: normal;
  word-break: keep-all;
}

.article-content .table-scroll th,
.article-content table.wide-table th {
  background: #f3f8fc;
  color: #082848;
  font-weight: 800;
}

.article-content .table-scroll th:nth-child(1),
.article-content .table-scroll td:nth-child(1),
.article-content table.wide-table th:nth-child(1),
.article-content table.wide-table td:nth-child(1) {
  min-width: 160px;
}

.article-content .table-scroll th:nth-child(2),
.article-content .table-scroll td:nth-child(2),
.article-content .table-scroll th:nth-child(3),
.article-content .table-scroll td:nth-child(3),
.article-content table.wide-table th:nth-child(2),
.article-content table.wide-table td:nth-child(2),
.article-content table.wide-table th:nth-child(3),
.article-content table.wide-table td:nth-child(3) {
  min-width: 120px;
}

.article-content .table-scroll th:nth-child(4),
.article-content .table-scroll td:nth-child(4),
.article-content table.wide-table th:nth-child(4),
.article-content table.wide-table td:nth-child(4) {
  min-width: 280px;
}

@media (max-width: 768px) {
  .article-content .table-scroll {
    max-width: 100%;
    overflow-x: auto !important;
  }

  .article-content .table-scroll table,
  .article-content table.wide-table {
    min-width: 720px !important;
  }
}