/*
Theme Name: TopBoss
Description: Custom WordPress theme for TopBoss.com.
Version: 0.2.0
Requires PHP: 8.1
Text Domain: topboss
*/

:root {
  --tb-black: #101010;
  --tb-burgundy: #5b0002;
  --tb-red: #c81016;
  --tb-gold: #d8a329;
  --tb-white: #ffffff;
  --tb-silver: #b8b8b8;
  --tb-background: #f4f2f0;
  --tb-text: #252525;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--tb-background);
  color: var(--tb-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a { color: var(--tb-burgundy); }
a:hover { color: var(--tb-red); }

.site-header {
  background: var(--tb-black);
  border-bottom: 4px solid var(--tb-burgundy);
  color: var(--tb-white);
}

.header-inner {
  max-width: 1320px;
  margin: auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.brand-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--tb-gold);
}

.brand-name span { color: var(--tb-red); }

.brand-tagline {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--tb-silver);
  margin-top: 5px;
}

.primary-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
}

.primary-menu li { position: relative; }

.primary-menu a {
  display: block;
  color: var(--tb-white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 5px;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a {
  background: var(--tb-burgundy);
  color: var(--tb-white);
}

.primary-menu .sub-menu {
  display: none;
  position: absolute;
  z-index: 20;
  top: 100%;
  left: 0;
  min-width: 190px;
  padding: 8px;
  margin: 0;
  list-style: none;
  background: var(--tb-black);
  border: 1px solid var(--tb-burgundy);
  border-radius: 6px;
}

.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu {
  display: block;
}

.site-layout {
  max-width: 1320px;
  margin: 32px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(240px, 1fr);
  gap: 28px;
  align-items: start;
}

.site-main { min-width: 0; }

.entry {
  background: var(--tb-white);
  padding: clamp(20px, 3vw, 40px);
  border-radius: 10px;
  margin-bottom: 24px;
  box-shadow: 0 3px 18px rgba(0,0,0,.05);
}

.entry h1 {
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.25;
  margin-top: 0;
  color: var(--tb-black);
}

.site-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-widget {
  background: var(--tb-white);
  border: 1px solid #e7e1df;
  border-top: 4px solid var(--tb-burgundy);
  border-radius: 8px;
  padding: 20px;
  overflow-wrap: anywhere;
}

.widget-title {
  color: var(--tb-burgundy);
  font-size: 18px;
  margin: 0 0 14px;
}

.sidebar-widget img {
  max-width: 100%;
  height: auto;
}

.site-footer {
  background: var(--tb-black);
  color: var(--tb-silver);
  padding: 28px 24px;
}

.footer-inner {
  max-width: 1320px;
  margin: auto;
}

.footer-navigation ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 0;
}

.site-footer a { color: var(--tb-gold); }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 9999;
  width: auto;
  height: auto;
  clip: auto;
  background: white;
  padding: 12px;
}

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

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .primary-menu .sub-menu {
    position: static;
    min-width: 0;
  }

  .primary-menu li:focus-within > .sub-menu {
    display: block;
  }
}

@media (max-width: 600px) {
  .site-layout {
    padding: 0 14px;
    margin: 18px auto;
  }

  .header-inner {
    padding: 16px;
  }

  .primary-menu {
    gap: 2px;
  }

  .primary-menu a {
    padding: 8px;
    font-size: 13px;
  }

  .entry {
    padding: 18px;
  }
}


/* TopBoss branded header and responsive navigation */
.brand-link { display:block; max-width:100%; }
.brand-logo { display:block; width:clamp(250px, 32vw, 420px); height:auto; max-width:100%; }
.mobile-menu-toggle { display:none; background:#5b0002; color:#fff; border:1px solid #d8a329; border-radius:5px; padding:10px 14px; font:inherit; font-weight:700; cursor:pointer; }
.primary-navigation { min-width:0; }
.primary-menu .sub-menu { margin:0; }
.primary-menu .sub-menu a { white-space:normal; }
@media (max-width:900px) {
  .header-inner { flex-direction:row; align-items:center; }
  .mobile-menu-toggle { display:block; margin-left:auto; }
  .primary-navigation { display:none; width:100%; }
  .primary-navigation.is-open { display:block; }
  .primary-menu { display:flex; flex-direction:column; align-items:stretch; }
  .primary-menu > li { width:100%; }
  .primary-menu .sub-menu { display:block; position:static; border:0; border-left:2px solid #d8a329; border-radius:0; margin-left:14px; padding:0 0 0 8px; background:transparent; }
  .primary-menu .sub-menu a { padding-left:16px; }
}
@media (max-width:480px) { .brand-logo { width:min(100%, 255px); } }

/* TopBoss Stage 5: Desktop layout improvements */

@media (min-width: 1100px) {
    .header-inner {
        max-width: 1480px;
        padding-left: 32px;
        padding-right: 32px;
    }

    .brand-logo {
        width: clamp(300px, 28vw, 460px);
    }

    .site-layout {
        max-width: 1480px;
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 30px;
        padding-left: 32px;
        padding-right: 32px;
    }

    .site-main,
    .entry {
        width: 100%;
        min-width: 0;
    }
}

.entry {
    line-height: 1.75;
}

.entry h2 {
    font-size: clamp(22px, 2vw, 28px);
    color: var(--tb-burgundy);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.entry h3 {
    font-size: 20px;
    color: var(--tb-black);
    margin-top: 1.75rem;
}

.entry p {
    margin-bottom: 1.25rem;
}

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

.entry hr {
    border: 0;
    border-top: 1px solid #ddd;
    margin: 2rem 0;
}


/* TopBoss Stage 6: Editorial sidebar */

.topboss-sidebar-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.topboss-sidebar-links li {
    border-bottom: 1px solid #eee8e6;
}

.topboss-sidebar-links li:last-child {
    border-bottom: 0;
}

.topboss-sidebar-links a {
    display: block;
    padding: 10px 0;
    color: var(--tb-text);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.45;
}

.topboss-sidebar-links a:hover,
.topboss-sidebar-links a:focus-visible {
    color: var(--tb-burgundy);
    text-decoration: underline;
}


/* TopBoss Stage 6: Legacy banner styling */

.topboss-legacy-banners {
    text-align: center;
}

.topboss-legacy-banners .widget-title {
    text-align: left;
}

.topboss-legacy-banner {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    max-width: 100%;
    margin: 0 auto 20px;
}

.topboss-legacy-banner:last-child {
    margin-bottom: 0;
}

.topboss-legacy-banner a {
    display: inline-block;
    max-width: 100%;
    line-height: 0;
}

.topboss-legacy-banner img {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    margin: 0 auto;
    border: 0;
}

@media (max-width: 900px) {
    .topboss-legacy-banners {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .topboss-legacy-banners {
        padding: 16px;
    }

    .topboss-legacy-banner {
        margin-bottom: 16px;
    }
}


/* TopBoss Stage 7: Three-column layout */

@media (min-width: 1200px) {
    .site-layout {
        max-width: 1600px;
        grid-template-columns:
            minmax(190px, 230px)
            minmax(0, 1fr)
            minmax(250px, 300px);
        gap: 24px;
    }
}

@media (min-width: 901px) and (max-width: 1199px) {
    .site-layout {
        grid-template-columns: minmax(0, 1fr) 280px;
    }

    .site-sidebar-left {
        display: none;
    }
}

@media (max-width: 900px) {
    .site-sidebar-left {
        display: none;
    }

    .site-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

.site-sidebar-left,
.site-sidebar-right {
    min-width: 0;
}

.site-sidebar-left .topboss-sidebar-links,
.site-sidebar-left .topboss-sidebar-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-sidebar-left .topboss-sidebar-links a {
    display: block;
    overflow-wrap: anywhere;
}



/* TopBoss Stage 8: Empty sidebar handling */

@media (min-width: 1200px) {
    .site-layout:not(:has(> .site-sidebar-left)) {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(250px, 300px);
    }
}

.site-sidebar-left .topboss-sidebar-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-sidebar-left .topboss-sidebar-links li {
    margin: 0;
    border-bottom: 1px solid #eee7e5;
}

.site-sidebar-left .topboss-sidebar-links li:last-child {
    border-bottom: 0;
}

.site-sidebar-left .topboss-sidebar-links a {
    display: block;
    padding: 9px 0;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.site-sidebar-left .topboss-sidebar-links a[aria-current="page"] {
    font-weight: 700;
    color: var(--tb-burgundy);
}


/* TopBoss Stage 8N: Responsive sidebar ordering */

@media (min-width: 901px) and (max-width: 1199px) {
    .site-layout {
        grid-template-columns: minmax(0, 1fr) 280px;
    }

    .site-main {
        grid-column: 1;
        grid-row: 1;
    }

    .site-sidebar-right {
        grid-column: 2;
        grid-row: 1;
    }

    .site-sidebar-left {
        display: flex;
        grid-column: 1 / -1;
        grid-row: 2;
    }
}

@media (max-width: 900px) {
    .site-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .site-main {
        grid-column: 1;
        grid-row: 1;
    }

    .site-sidebar-left {
        display: flex;
        grid-column: 1;
        grid-row: 2;
    }

    .site-sidebar-right {
        grid-column: 1;
        grid-row: 3;
    }
}

/* TopBoss Stage 10G: Content presentation */

.entry {
    font-size: 16px;
    line-height: 1.8;
    color: #302b2b;
}

.entry p {
    margin-top: 0;
    margin-bottom: 1.15rem;
}

.entry h1 {
    font-size: clamp(1.75rem, 2.5vw, 2.35rem);
    line-height: 1.25;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
}

.entry h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid #eee3e0;
    line-height: 1.35;
}

.entry h3 {
    margin-top: 1.75rem;
    margin-bottom: 0.65rem;
    line-height: 1.4;
}

.entry a {
    text-underline-offset: 0.16em;
    text-decoration-thickness: 1px;
}

.entry img,
.entry video {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

.entry ul,
.entry ol {
    margin: 0.75rem 0 1.4rem;
    padding-left: 1.6rem;
}

.entry li {
    margin-bottom: 0.4rem;
}

.entry hr {
    border: 0;
    border-top: 1px solid #e8dfdc;
    margin: 2rem 0;
}

@media (max-width: 600px) {
    .entry {
        padding: 20px;
        font-size: 15px;
        line-height: 1.75;
    }

    .entry h1 {
        font-size: 1.7rem;
    }

    .entry h2 {
        margin-top: 2rem;
    }
}


/* TopBoss Stage 10H: Casino listing presentation */

/* Give casino headings a clear visual hierarchy */
.entry h2 {
    color: var(--tb-burgundy, #760b12);
    font-weight: 750;
}

.entry h3 {
    color: var(--tb-burgundy, #760b12);
    font-size: clamp(1.15rem, 1.7vw, 1.4rem);
    font-weight: 750;
    padding: 0.65rem 0.85rem;
    border-left: 4px solid #d8a329;
    border-radius: 0 5px 5px 0;
    background: #faf5f2;
}

/* Casino logos and review images */
.entry h3 img,
.entry p img {
    max-width: 100%;
    height: auto;
}

.entry img[align="left"],
.entry img[style*="float: left"],
.entry img[style*="float:left"] {
    margin: 0.25rem 1rem 0.75rem 0;
}

.entry img[align="right"],
.entry img[style*="float: right"],
.entry img[style*="float:right"] {
    margin: 0.25rem 0 0.75rem 1rem;
}

/* Make legacy comparison tables usable on smaller screens */
.entry table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    font-size: 0.95em;
}

.entry th {
    background: #760b12;
    color: #fff;
    text-align: left;
}

.entry th,
.entry td {
    padding: 0.7rem;
    border: 1px solid #e8dfdc;
}

.entry tr:nth-child(even) td {
    background: #faf7f5;
}

/* Keep long legacy content within the article */
.entry {
    overflow-wrap: break-word;
}

.entry iframe,
.entry embed,
.entry object {
    max-width: 100%;
}

@media (max-width: 600px) {
    .entry h3 {
        font-size: 1.1rem;
        padding: 0.6rem 0.7rem;
    }

    .entry table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .entry th,
    .entry td {
        padding: 0.5rem;
    }

    .entry img[align="left"],
    .entry img[align="right"] {
        margin: 0.4rem 0.65rem 0.5rem 0;
    }
}


/* TopBoss Stage 10J: Homepage presentation */

/* Give the homepage introduction more prominence */
.page-id-189 .entry > p:first-of-type {
    font-size: 1.08em;
    line-height: 1.85;
    padding: 18px 20px;
    margin-bottom: 28px;
    background: #faf5f2;
    border-left: 4px solid #d8a329;
    border-radius: 0 6px 6px 0;
}

/* Improve hierarchy between the introduction and review sections */
.page-id-189 .entry > h2 {
    margin-top: 2.75rem;
    padding-bottom: 12px;
    border-bottom: 2px solid #d8a329;
}

.page-id-189 .entry > h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding: 14px 16px;
    color: #760b12;
    background: #faf5f2;
    border-left: 4px solid #d8a329;
    border-bottom: 1px solid #eee3e0;
    border-radius: 0 6px 6px 0;
    font-size: clamp(1.1rem, 1.5vw, 1.35rem);
    line-height: 1.4;
}

/* Keep review imagery proportional and prevent overflow */
.page-id-189 .entry img {
    max-width: 100%;
    height: auto;
}

.page-id-189 .entry p {
    margin-bottom: 1.25rem;
}

/* Improve the appearance of review links without changing destinations */
.page-id-189 .entry a {
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.page-id-189 .entry a:hover {
    color: #a31720;
}

/* Separate longer review sections more clearly */
.page-id-189 .entry > hr {
    margin: 2.5rem 0;
    border: 0;
    border-top: 1px solid #e8dfdc;
}

/* Homepage spacing on smaller screens */
@media (max-width: 600px) {
    .page-id-189 .entry > p:first-of-type {
        padding: 14px;
        font-size: 1em;
    }

    .page-id-189 .entry > h3 {
        margin-top: 1.5rem;
        padding: 12px;
    }
}


/* TopBoss Stage 10K: Homepage cleanup */

/* Remove the empty-looking introductory callout */
.page-id-189 .entry > p:first-of-type {
    padding: 0;
    margin-bottom: 1.25rem;
    background: transparent;
    border: 0;
    border-radius: 0;
}

/* Consistent casino headings, including nested legacy markup */
.page-id-189 .entry h3 {
    display: flow-root;
    margin: 2rem 0 1rem;
    padding: 14px 16px;
    color: #760b12;
    background: #faf5f2;
    border: 1px solid #eee3e0;
    border-left: 4px solid #d8a329;
    border-radius: 0 6px 6px 0;
    font-size: clamp(1.1rem, 1.5vw, 1.35rem);
    font-weight: 750;
    line-height: 1.45;
}

.page-id-189 .entry h3 img {
    max-width: 100%;
    height: auto;
    margin-right: 10px;
}

.page-id-189 .entry h3 a {
    color: inherit;
    text-decoration: none;
}

.page-id-189 .entry h3 a:hover {
    color: #a31720;
    text-decoration: underline;
}

/* Avoid excessive spacing inside older casino listing markup */
.page-id-189 .entry h3 + p {
    margin-top: 0;
}

.page-id-189 .entry h3 + p img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 600px) {
    .page-id-189 .entry h3 {
        margin-top: 1.5rem;
        padding: 12px;
    }
}


/* TopBoss Stage 10M: Casino review cards */

/* Each original casino table becomes a consistent card */
.entry .tb-responsive-table {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 1.5rem 0;
    overflow-x: auto;
}

body.page .entry table.tb-content-table {
    display: block;
    width: 100%;
    margin: 0;
    border: 1px solid #e9dedb;
    border-radius: 8px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 3px 12px rgb(55 25 25 / 5%);
    font-size: 0.96rem;
}

body.page .entry table.tb-content-table tbody {
    display: block;
    width: 100%;
}

body.page .entry table.tb-content-table tr {
    display: grid;
    grid-template-columns: minmax(100px, 155px) minmax(0, 1fr);
    align-items: start;
    width: 100%;
}

body.page .entry table.tb-content-table td {
    display: block;
    min-width: 0;
    padding: 18px;
    border: 0;
    background: transparent;
    vertical-align: top;
}

body.page .entry table.tb-content-table td:first-child {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 24px;
}

body.page .entry table.tb-content-table td:first-child img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 120px;
    height: auto;
    object-fit: contain;
}

body.page .entry table.tb-content-table td:last-child h2 {
    margin: 0 0 12px;
    padding: 0 0 10px;
    border: 0;
    border-bottom: 1px solid #eee3e0;
    background: transparent;
    color: #760b12;
    font-size: 1.3rem;
    line-height: 1.4;
}

body.page .entry table.tb-content-table td:last-child h2 img {
    display: inline-block;
    width: auto;
    max-width: 40px;
    max-height: 24px;
    margin-left: 6px;
    vertical-align: middle;
}

body.page .entry table.tb-content-table td:last-child p {
    margin: 0 0 12px;
    line-height: 1.75;
}

body.page .entry table.tb-content-table td:last-child a {
    overflow-wrap: anywhere;
}

body.page .entry table.tb-content-table td:last-child > a:last-child,
body.page .entry table.tb-content-table td:last-child p:last-child a {
    font-weight: 600;
}

.entry .tb-responsive-table + hr {
    margin: 2rem 0;
    border: 0;
    border-top: 1px solid #e9dedb;
}

/* Keep casino cards readable on phones */
@media (max-width: 600px) {
    .entry .tb-responsive-table {
        overflow-x: visible;
    }

    body.page .entry table.tb-content-table tr {
        grid-template-columns: minmax(0, 1fr);
    }

    body.page .entry table.tb-content-table td {
        padding: 14px;
    }

    body.page .entry table.tb-content-table td:first-child {
        justify-content: flex-start;
        padding-bottom: 0;
    }

    body.page .entry table.tb-content-table td:first-child img {
        max-height: 90px;
    }

    body.page .entry table.tb-content-table td:last-child h2 {
        font-size: 1.2rem;
    }
}


/* TopBoss Stage 10N: Responsive page layout */

/* Tablet: prioritize the article and retain one sidebar */
@media (min-width: 601px) and (max-width: 900px) {
    body .site-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 240px;
        gap: 18px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    body .site-layout .site-main {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }

    body .site-layout .site-sidebar-right {
        display: flex;
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
    }

    body .site-layout .site-sidebar-left {
        display: none;
    }
}

/* Mobile: one readable column, with sidebars below the article */
@media (max-width: 600px) {
    body .site-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        padding-left: 12px;
        padding-right: 12px;
        box-sizing: border-box;
    }

    body .site-layout .site-main {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    body .site-layout .site-sidebar-left {
        display: flex;
        grid-column: 1;
        grid-row: 2;
        width: 100%;
        min-width: 0;
    }

    body .site-layout .site-sidebar-right {
        display: flex;
        grid-column: 1;
        grid-row: 3;
        width: 100%;
        min-width: 0;
    }

    body .site-main .entry {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        overflow-wrap: anywhere;
    }

    body .site-main .entry img,
    body .site-main .entry iframe,
    body .site-main .entry video {
        max-width: 100%;
    }

    body .site-main .entry pre {
        max-width: 100%;
        overflow-x: auto;
    }
}


/* TopBoss Stage 11C: Breadcrumb navigation */

.tb-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 11px 14px;
    border: 1px solid #eee3e0;
    border-radius: 6px;
    background: #faf7f5;
    color: #655a58;
    font-size: 13px;
    line-height: 1.5;
}

.tb-breadcrumbs a {
    color: #760b12;
    text-decoration: none;
    font-weight: 600;
}

.tb-breadcrumbs a:hover,
.tb-breadcrumbs a:focus-visible {
    text-decoration: underline;
}

.tb-breadcrumb-separator {
    color: #b8a8a4;
}

.tb-breadcrumbs [aria-current="page"] {
    color: #4b403e;
}

@media (max-width: 600px) {
    .tb-breadcrumbs {
        gap: 6px;
        padding: 10px 12px;
        font-size: 12px;
    }
}


/* TopBoss Stage 11E: Related pages */

.tb-related-pages {
    margin: 36px 0 12px;
    padding: 22px;
    border: 1px solid #e9dedb;
    border-radius: 8px;
    background: #faf7f5;
}

.tb-related-pages h2 {
    margin: 0 0 16px;
    color: #760b12;
    font-size: 1.25rem;
}

.tb-related-pages ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tb-related-pages li {
    margin: 0;
    padding: 0;
}

.tb-related-pages a {
    display: block;
    padding: 10px 12px;
    border: 1px solid #eadedb;
    border-radius: 5px;
    background: #fff;
    color: #760b12;
    text-decoration: none;
    font-weight: 600;
}

.tb-related-pages a:hover,
.tb-related-pages a:focus-visible {
    background: #f3e8e5;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .tb-related-pages {
        padding: 15px;
    }

    .tb-related-pages ul {
        grid-template-columns: 1fr;
    }
}

