/* =====================================================================
   DkTechnoLab — content pages: portfolio.php, project.php, blog.php,
   blog-post.php, brochure.php, privacy-policy.php, term-condition.php, 404.php
   Loaded via $page['css'] (before theme.css), built on the theme tokens (--t-*).
   Prefix: ct-  ·  shared bits first, then one block per page.
   JS: assets/js/pages-content.js
   ===================================================================== */

/* ================================================================ Shared */
.ct-cream { background: var(--t-cream-2); }
.ct-rel { position: relative; isolation: isolate; overflow: hidden; }
.ct-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; margin-top: 30px; }

/* Image placeholder (dk_pf_img without a cover image) */
.pf-ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3rem; color: var(--t-gold); background: var(--t-yellow-soft); }

/* Underline filter tabs with counts (same language as the home "Recent Work" tabs) */
.ct-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 32px; margin: 0 0 44px; padding: 0; }
.ct-tabs button { position: relative; padding: 6px 2px; border: 0; background: none; color: var(--t-ink); font-family: var(--dk-font-head); font-weight: 800; font-size: 1.02rem; line-height: 1.5; }
.ct-tabs sup { margin-left: 3px; font-family: var(--dk-font-body); font-weight: 500; font-size: .66rem; color: var(--t-gold); }
.ct-tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--t-yellow); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--t-ease); }
.ct-tabs button:hover::after, .ct-tabs button.active::after { transform: scaleX(1); }
.ct-tabs button.active { color: var(--t-gold-700); }
.ct-tabs button:focus-visible { outline: 2px solid var(--t-gold); outline-offset: 3px; }
@media (max-width: 991.98px) { .ct-tabs { gap: 4px 22px; } }
@media (max-width: 575.98px) { .ct-tabs button { font-size: .94rem; } }

/* ================================================================ Project masonry (portfolio + "More projects") */
.ct-grid { --cols: 4; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-auto-rows: 236px; grid-auto-flow: dense; gap: 22px; }
.ct-tile { position: relative; isolation: isolate; overflow: hidden; display: block; border-radius: var(--t-r); background: var(--t-ink); box-shadow: var(--t-shadow-sm); }
.ct-tile[hidden] { display: none; }
.ct-grid.is-few { grid-auto-rows: auto; }
.ct-grid.is-few .ct-tile { aspect-ratio: 16 / 10; }
.ct-tile.is-big { grid-column: span 2; grid-row: span 2; }
.ct-tile.is-wide { grid-column: span 2; }
/* screenshots: never cropped at the top */
.ct-tile > img, .ct-tile > .pf-ph { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transition: transform 1s var(--t-ease); }
.ct-tile > img { transform-origin: 50% 0; }
.ct-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 45%, rgba(31, 26, 16, .55) 100%); opacity: 0; transition: opacity .4s ease; }
.ct-bar {
  position: absolute; left: 0; right: 14%; bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 18px 12px 20px; background: var(--t-yellow); color: var(--t-ink);
  clip-path: polygon(0 0, 100% 0, calc(100% - 24px) 100%, 0 100%);
  transform: translateX(-104%); transition: transform .55s var(--t-ease);
}
.ct-tile.is-big .ct-bar { right: 34%; bottom: 26px; padding: 16px 24px 16px 26px; }
.ct-txt { min-width: 0; }
.ct-txt small { display: block; font-style: italic; font-weight: 500; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(31, 26, 16, .72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-txt b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-family: var(--dk-font-head); font-weight: 800; font-size: .98rem; line-height: 1.3; }
.ct-tile.is-big .ct-txt b { font-size: 1.2rem; }
.ct-go { flex: none; width: 38px; height: 38px; margin-right: 14px; border-radius: var(--t-r-xs); display: grid; place-items: center; background: var(--t-ink); color: var(--t-yellow); }
.ct-tile:hover > img, .ct-tile:focus-visible > img { transform: scale(1.05); }
.ct-tile:hover::after, .ct-tile:focus-visible::after { opacity: 1; }
.ct-tile:hover .ct-bar, .ct-tile:focus-visible .ct-bar { transform: none; }
.ct-tile:focus-visible { outline: 3px solid var(--t-ink); outline-offset: 3px; }
.ct-in { animation: ctIn .5s var(--t-ease) both; }
@keyframes ctIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@media (hover: none) {
  .ct-bar { transform: none; }
  .ct-tile::after { opacity: 1; }
}
@media (max-width: 991.98px) {
  .ct-grid { --cols: 2 !important; grid-auto-rows: 210px; gap: 16px; }
}
@media (max-width: 575.98px) {
  .ct-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .ct-grid .ct-tile, .ct-grid .ct-tile.is-big, .ct-grid .ct-tile.is-wide { grid-column: auto; grid-row: auto; aspect-ratio: 16 / 10; }
  .ct-tile.is-big .ct-bar, .ct-bar { right: 10%; bottom: 14px; padding: 10px 14px 10px 16px; }
  .ct-tile.is-big .ct-txt b { font-size: .98rem; }
  .ct-bar { transform: none; }
}

/* ================================================================ Portfolio page */
.ct-pf { position: relative; isolation: isolate; overflow: hidden; }
.ct-pf .t-head { margin-bottom: 30px; }
.ct-pf-dots { right: -30px; top: 80px; z-index: -1; }
.ct-pf-ring { left: -90px; bottom: 120px; width: 220px; height: 220px; z-index: -1; border-style: dashed; }

/* marketplace strip under the grid + in the empty state */
.ct-market { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px 40px; margin-top: 64px; padding: 30px 36px; border-radius: var(--t-r); background: #fff; border: 1px solid var(--t-line); border-left: 4px solid var(--t-yellow); box-shadow: var(--t-shadow-sm); }
.ct-market h2 { font-size: 1.35rem; margin: 0 0 6px; }
.ct-market p { margin: 0; color: var(--t-muted); }
.ct-market-links { display: flex; flex-wrap: wrap; gap: 12px; }
.ct-mk { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: var(--t-r-sm); background: #fff; border: 1px solid var(--t-line-2); color: var(--t-ink); font-family: var(--dk-font-head); font-weight: 800; line-height: 1.25; text-align: left; transition: border-color .25s ease, background-color .25s ease; }
.ct-mk b { flex: 0 0 40px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--t-r-xs); background: var(--t-ink); color: var(--t-yellow); font-size: .85rem; }
.ct-mk small { display: block; font-family: var(--dk-font-body); font-size: .76rem; font-weight: 500; color: var(--t-muted); }
.ct-mk .bi { color: var(--t-gold); font-size: .85rem; }
.ct-mk:hover { border-color: var(--t-yellow); background: var(--t-yellow-soft); color: var(--t-ink); }
@media (max-width: 991.98px) { .ct-market { grid-template-columns: 1fr; padding: 26px 24px; } }
@media (max-width: 575.98px) { .ct-mk { width: 100%; } .ct-mk .bi { margin-left: auto; } }

/* empty state */
.ct-empty { max-width: 780px; margin: 0 auto; text-align: center; padding: 52px 36px; border-radius: var(--t-r); background: #fff; border: 1px solid var(--t-line); border-top: 4px solid var(--t-yellow); box-shadow: var(--t-shadow); }
.ct-empty-ico { display: inline-grid; place-items: center; width: 66px; height: 66px; margin-bottom: 22px; border-radius: var(--t-r-sm); background: var(--t-ink); color: var(--t-yellow); font-size: 1.7rem; box-shadow: 5px 5px 0 var(--t-yellow); }
.ct-empty h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem); margin-bottom: 12px; }
.ct-empty p { color: var(--t-muted); max-width: 56ch; margin: 0 auto; }
.ct-empty .ct-market-links { justify-content: center; margin-top: 28px; }
@media (max-width: 575.98px) { .ct-empty { padding: 38px 20px; } }

/* ================================================================ Project (case study) page */
.ct-pj-hero { padding-bottom: 48px; }
.ct-pj-hero .lead { max-width: 70ch; }
.ct-pj-body { padding-top: 88px; }
@media (max-width: 767.98px) { .ct-pj-hero { padding-bottom: 40px; } .ct-pj-body { padding-top: 60px; } }
.ct-pj-hero .eyebrow-pill a { color: inherit; text-decoration: none; }
.ct-pj-hero .eyebrow-pill a:hover { color: #fff; }

/* cover: browser frame, natural aspect ratio (never cropped), pulled up into the banner */
.ct-pj-top { position: relative; padding: 0 0 20px; background: linear-gradient(180deg, var(--t-ink) 0 150px, #fff 150px); }
.ct-pj-top > .container { position: relative; z-index: 1; }
.ct-frame { margin: 0; overflow: hidden; border-radius: var(--t-r); background: #fff; border: 1px solid var(--t-line); box-shadow: var(--t-shadow-lg); }
.ct-frame-bar { display: flex; align-items: center; gap: 14px; height: 42px; padding: 0 16px; background: var(--t-cream); border-bottom: 1px solid var(--t-line); }
.ct-frame-dots { display: flex; gap: 7px; flex: none; }
.ct-frame-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--t-line-2); }
.ct-frame-dots i:first-child { background: var(--t-yellow); }
.ct-frame-url { min-width: 0; flex: 0 1 420px; margin: 0 auto; padding: 4px 14px; border-radius: var(--t-r-xs); background: #fff; border: 1px solid var(--t-line); font-size: .8rem; color: var(--t-muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-frame-url .bi { margin-right: 6px; color: var(--t-gold); }
.ct-frame-sp { flex: none; width: 47px; }
.ct-frame img { display: block; width: 100%; height: auto; }
.ct-pj-cover { position: relative; isolation: isolate; max-width: 1120px; margin: 0 auto; }
.ct-pj-cover::before { content: ""; position: absolute; z-index: -1; right: -18px; bottom: -18px; width: 46%; height: 60%; background: var(--t-yellow); border-radius: var(--t-r); }
.ct-pj-cover .t-dots { left: -44px; bottom: 40px; z-index: -1; }

/* facts strip */
.ct-facts { display: flex; flex-wrap: wrap; margin: 56px auto 0; max-width: 1120px; padding: 0; list-style: none; background: #fff; border: 1px solid var(--t-line); border-left: 4px solid var(--t-yellow); border-radius: var(--t-r); box-shadow: var(--t-shadow-sm); }
.ct-facts li { flex: 1 1 200px; display: flex; align-items: center; gap: 14px; padding: 22px 26px; min-width: 0; }
.ct-facts li + li { border-left: 1px solid var(--t-line); }
.ct-facts .bi { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--t-r-sm); background: var(--t-yellow-soft); color: var(--t-gold); font-size: 1.15rem; }
.ct-facts small { display: block; font-style: italic; font-weight: 500; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--t-muted); }
.ct-facts b { display: block; font-family: var(--dk-font-head); font-weight: 800; color: var(--t-ink); line-height: 1.35; overflow-wrap: anywhere; }
@media (max-width: 767.98px) {
  .ct-pj-top { background: linear-gradient(180deg, var(--t-ink) 0 90px, #fff 90px); }
  .ct-frame-bar { height: 34px; padding: 0 10px; }
  .ct-frame-dots i { width: 8px; height: 8px; }
  .ct-frame-sp { display: none; }
  .ct-pj-cover::before { right: -8px; bottom: -8px; }
  .ct-facts { margin-top: 36px; }
  .ct-facts li { flex-basis: 100%; padding: 16px 18px; }
  .ct-facts li + li { border-left: 0; border-top: 1px solid var(--t-line); }
}

/* story */
.ct-story + .ct-story { margin-top: 40px; padding-top: 40px; border-top: 1px dashed var(--t-line-2); }
.ct-story-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.ct-story-ico { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: var(--t-r-sm); background: var(--t-ink); color: var(--t-yellow); font-size: 1.3rem; box-shadow: 5px 5px 0 var(--t-yellow); }
.ct-story-head small { display: block; font-style: italic; font-weight: 500; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--t-gold); }
.ct-story h2 { font-size: clamp(1.5rem, 1.25rem + .9vw, 2rem); margin: 0; }
.ct-story p { margin: 0; font-size: 1.05rem; line-height: 1.85; color: var(--t-body); }

/* aside boxes */
.ct-aside { display: grid; gap: 22px; }
@media (min-width: 992px) { .ct-aside.is-sticky { position: sticky; top: 120px; } }
.ct-aside-row { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.ct-box { padding: 26px 26px 24px; border-radius: var(--t-r); background: #fff; border: 1px solid var(--t-line); box-shadow: var(--t-shadow-sm); }
.ct-box h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 1.1rem; }
.ct-box h2 .bi { color: var(--t-gold); }
.ct-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ct-chips li { padding: 6px 12px; border-radius: var(--t-r-xs); background: var(--t-cream); border: 1px solid var(--t-line); font-size: .88rem; font-weight: 500; color: var(--t-ink); }
.ct-chips.is-ink li { background: var(--t-ink); border-color: var(--t-ink); color: var(--t-yellow); }
.ct-box-cta { position: relative; overflow: hidden; isolation: isolate; background: var(--t-ink); border-color: var(--t-ink); color: var(--t-on-dark-muted); }
.ct-box-cta::after { content: ""; position: absolute; z-index: -1; right: -70px; top: -90px; width: 180px; height: 180px; border-radius: 50%; border: 22px solid var(--t-yellow); opacity: .9; }
.ct-box-cta h2 { color: #fff; font-size: 1.3rem; }
.ct-box-cta p { margin-bottom: 20px; color: var(--t-on-dark-muted); }
.ct-box-cta .btn-accent { --btn-fill: #fff; --btn-fill-color: var(--t-ink); }
.ct-box-cta .btn-accent:hover { color: var(--t-ink); border-color: #fff; }

/* gallery + lightbox */
.ct-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 991.98px) { .ct-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ct-shot { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; aspect-ratio: 16 / 10; border: 1px solid var(--t-line); border-radius: var(--t-r); background: #fff; box-shadow: var(--t-shadow-sm); cursor: zoom-in; }
.ct-shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; display: block; transition: transform .8s var(--t-ease); transform-origin: 50% 0; }
.ct-shot-zoom { position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--t-r-xs); background: var(--t-yellow); color: var(--t-ink); opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .3s var(--t-ease); }
.ct-shot:hover img, .ct-shot:focus-visible img { transform: scale(1.04); }
.ct-shot:hover .ct-shot-zoom, .ct-shot:focus-visible .ct-shot-zoom { opacity: 1; transform: none; }
@media (hover: none) { .ct-shot-zoom { opacity: 1; transform: none; } }
@media (max-width: 575.98px) { .ct-gallery { grid-template-columns: 1fr; gap: 16px; } }
html.ct-lb-open { overflow: hidden; }
.ct-lightbox { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 64px 72px; background: rgba(20, 16, 8, .93); opacity: 0; transition: opacity .25s ease; }
.ct-lightbox[hidden] { display: none; }
.ct-lightbox.is-open { opacity: 1; }
.ct-lb-figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ct-lb-figure img { max-width: 100%; max-height: calc(100vh - 160px); width: auto; height: auto; border-radius: var(--t-r-sm); box-shadow: var(--t-shadow-lg); background: #fff; }
.ct-lb-figure figcaption { color: var(--t-on-dark); font-size: .9rem; letter-spacing: .08em; }
.ct-lb-btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: var(--t-r-xs); background: var(--t-yellow); color: var(--t-ink); font-size: 1.2rem; transition: background-color .2s ease, color .2s ease; }
.ct-lb-btn:hover { background: #fff; }
.ct-lb-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.ct-lb-close { top: 16px; right: 16px; }
.ct-lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.ct-lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 575.98px) {
  .ct-lightbox { padding: 72px 12px; }
  .ct-lb-prev, .ct-lb-next { top: auto; bottom: 16px; transform: none; }
}

/* ================================================================ Blog cards (.bc — same card as the home "Latest Insights") */
.bc { position: relative; height: 100%; display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--t-line); border-radius: var(--t-r); box-shadow: var(--t-shadow-sm); transition: transform .45s var(--t-ease), box-shadow .45s ease; }
.bc:hover { transform: translateY(-5px); box-shadow: var(--dk-shadow-hover); }
.bc-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--t-cream); }
.bc-media img, .bc-media .post-ph { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--t-ease); }
.bc:hover .bc-media img, .bc:hover .bc-media .post-ph { transform: scale(1.05); }
.bc-date { position: relative; z-index: 1; align-self: flex-start; display: flex; margin: -40px 0 0 24px; box-shadow: var(--t-shadow); }
.bc-date span { display: grid; place-content: center; text-align: center; width: 64px; height: 70px; background: var(--t-yellow); color: var(--t-ink); font-size: .74rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; line-height: 1.2; }
.bc-date b { display: block; font-family: var(--dk-font-head); font-weight: 800; font-size: 1.65rem; line-height: 1; letter-spacing: 0; }
.bc-date em { display: flex; align-items: center; justify-content: center; padding: 4px 6px; writing-mode: vertical-rl; transform: rotate(180deg); background: #fff; font-style: normal; font-size: .72rem; font-weight: 500; letter-spacing: .14em; color: var(--t-muted); border: 1px solid var(--t-line); border-right: 0; }
.bc-body { flex: 1; display: flex; flex-direction: column; padding: 18px 26px 26px; }
.bc-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 10px; font-size: .84rem; color: var(--t-muted); }
.bc-meta .bi { color: var(--t-gold); }
.bc h3 { font-size: 1.2rem; line-height: 1.35; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bc h3 a { color: var(--t-ink); }
.bc h3 a:hover { color: var(--t-gold-700); }
.bc-body p { flex: 1; margin: 0 0 18px; color: var(--t-muted); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bc-more { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding-top: 14px; border-top: 2px solid var(--t-yellow); font-family: var(--dk-font-head); font-weight: 800; font-size: .92rem; color: var(--t-gold-700); }
.bc-more .bi { font-size: .8rem; transition: transform .3s var(--t-ease); }
.bc-more:hover { color: var(--t-ink); }
.bc-more:hover .bi { transform: translateX(4px); }

/* ================================================================ Blog listing */
.ct-search { display: flex; max-width: 560px; margin-top: 30px; background: #fff; border-radius: var(--t-r-xs); box-shadow: 0 0 0 4px rgba(255, 193, 7, .18); }
.ct-search input { flex: 1; min-width: 0; height: 58px; padding: 0 20px; border: 0; border-radius: var(--t-r-xs) 0 0 var(--t-r-xs); background: transparent; font-size: 1rem; color: var(--t-ink); }
.ct-search input::placeholder { color: var(--t-muted); }
.ct-search input:focus { outline: 0; }
.ct-search:focus-within { box-shadow: 0 0 0 4px var(--t-yellow); }
.ct-search button { flex: none; display: grid; place-items: center; width: 62px; border: 0; border-radius: 0 var(--t-r-xs) var(--t-r-xs) 0; background: var(--t-yellow); color: var(--t-ink); font-size: 1.15rem; transition: background-color .2s ease; }
.ct-search button:hover { background: var(--t-yellow-600); }

.ct-blog .ct-tabs { margin-bottom: 52px; padding-bottom: 18px; border-bottom: 1px solid var(--t-line); }
.ct-tagbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 28px; padding: 16px 20px; border-radius: var(--t-r-sm); background: var(--t-cream); border: 1px solid var(--t-line); border-left: 4px solid var(--t-yellow); }
.ct-tagbar h2 { margin: 0; font-size: 1.2rem; }
.ct-tagbar small { font-family: var(--dk-font-body); font-weight: 500; color: var(--t-muted); }
.ct-tagbar a { display: inline-flex; align-items: center; gap: 6px; font-family: var(--dk-font-head); font-weight: 800; font-size: .9rem; color: var(--t-gold-700); }
.ct-tagbar a:hover { color: var(--t-ink); }

/* featured (latest) post */
.ct-feat { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); margin-bottom: 36px; overflow: hidden; background: var(--t-ink); border-radius: var(--t-r); box-shadow: var(--t-shadow); }
.ct-feat-media { position: relative; display: block; min-height: 340px; overflow: hidden; background: var(--t-cream); }
.ct-feat-media img, .ct-feat-media .post-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--t-ease); }
.ct-feat:hover .ct-feat-media img { transform: scale(1.04); }
.ct-feat-tag { position: absolute; left: 0; top: 22px; padding: 7px 22px 7px 16px; background: var(--t-yellow); color: var(--t-ink); font-family: var(--dk-font-head); font-weight: 800; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%); }
.ct-feat-body { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: center; padding: 34px 34px 32px; color: var(--t-on-dark-muted); }
.ct-feat-body::after { content: ""; position: absolute; z-index: -1; right: -70px; bottom: -90px; width: 200px; height: 200px; border-radius: 50%; border: 2px solid rgba(255, 193, 7, .22); }
.ct-feat-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 12px; font-size: .84rem; color: var(--t-on-dark-muted); }
.ct-feat-meta .bi { color: var(--t-yellow); }
.ct-feat h2 { margin: 0 0 12px; font-size: clamp(1.35rem, 1.15rem + .7vw, 1.75rem); line-height: 1.25; }
.ct-feat h2 a { color: #fff; }
.ct-feat h2 a:hover { color: var(--t-yellow); }
.ct-feat p { margin: 0 0 22px; font-size: .97rem; color: var(--t-on-dark-muted); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ct-feat .bc-more { color: var(--t-yellow); }
.ct-feat .bc-more:hover { color: #fff; }
@media (max-width: 767.98px) {
  .ct-feat { grid-template-columns: 1fr; }
  .ct-feat-media { min-height: 0; aspect-ratio: 16 / 10; }
  .ct-feat-body { padding: 26px 22px 26px; }
}

.ct-bgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.ct-bgrid > .d-none { display: none !important; }
.blog-grid-all [data-featured-dup] { display: none; }
@media (max-width: 575.98px) { .ct-bgrid { grid-template-columns: 1fr; gap: 22px; } }
.ct-bempty { padding: 48px 24px; text-align: center; border: 1px dashed var(--t-line-2); border-radius: var(--t-r); background: var(--t-cream-2); }
.ct-bempty .ct-empty-ico { margin-bottom: 16px; }
.ct-bempty p { margin: 0 0 4px; color: var(--t-muted); }
.ct-bempty p:first-of-type { font-family: var(--dk-font-head); font-weight: 800; font-size: 1.15rem; color: var(--t-ink); }

/* sidebar */
.ct-side { display: grid; gap: 26px; }
.ct-side-cta { position: relative; overflow: hidden; isolation: isolate; padding: 32px 28px 30px; border-radius: var(--t-r); background: var(--t-yellow); color: var(--t-ink); box-shadow: var(--t-shadow); }
.ct-side-cta::before { content: ""; position: absolute; z-index: -1; right: -60px; top: -70px; width: 190px; height: 190px; border-radius: 50%; border: 2px solid rgba(31, 26, 16, .2); }
.ct-side-cta::after { content: ""; position: absolute; z-index: -1; right: 18px; bottom: 16px; width: 80px; height: 64px; background-image: radial-gradient(rgba(31, 26, 16, .25) 2px, transparent 2.5px); background-size: 14px 14px; }
.ct-side-ico { display: inline-grid; place-items: center; width: 54px; height: 54px; margin-bottom: 18px; border-radius: var(--t-r-sm); background: var(--t-ink); color: var(--t-yellow); font-size: 1.35rem; }
.ct-side-cta h2 { margin: 0 0 8px; font-size: 1.4rem; }
.ct-side-cta p { margin: 0 0 20px; color: rgba(31, 26, 16, .8); }
.ct-side-box { padding: 26px 26px 22px; border-radius: var(--t-r); background: #fff; border: 1px solid var(--t-line); box-shadow: var(--t-shadow-sm); }
.ct-side-box h2 { position: relative; margin: 0 0 18px; padding-bottom: 12px; font-size: 1.15rem; }
.ct-side-box h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; background: var(--t-yellow); }
.ct-cats { margin: 0; padding: 0; list-style: none; }
.ct-cats li + li { border-top: 1px dashed var(--t-line-2); }
.ct-cats a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; font-family: var(--dk-font-head); font-weight: 700; color: var(--t-ink); transition: color .2s ease, padding-left .3s var(--t-ease); }
.ct-cats a:hover { color: var(--t-gold-700); padding-left: 6px; }
.ct-cats b { flex: none; display: grid; place-items: center; min-width: 30px; height: 26px; padding: 0 6px; border-radius: var(--t-r-xs); background: var(--t-yellow-soft); color: var(--t-gold-700); font-size: .8rem; }
.ct-cats a:hover b { background: var(--t-yellow); color: var(--t-ink); }
.ct-tagcloud { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-tagcloud a { padding: 5px 11px; border-radius: var(--t-r-xs); background: var(--t-cream); border: 1px solid var(--t-line); font-size: .84rem; color: var(--t-body); transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.ct-tagcloud a:hover { background: var(--t-yellow-soft); border-color: var(--t-yellow); color: var(--t-ink); }
.ct-tagcloud a.active { background: var(--t-ink); border-color: var(--t-ink); color: var(--t-yellow); }

/* ================================================================ Blog post */
.reading-progress { background: var(--t-yellow); box-shadow: none; }
.ct-post-hero { padding-bottom: 48px; }
.ct-post-hero h1 { max-width: 26ch; font-size: clamp(2rem, 1.35rem + 2.3vw, 3.2rem); }
.ct-post-hero .eyebrow-pill a { color: inherit; }
.ct-post-hero .eyebrow-pill a:hover { color: #fff; }
.ct-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; margin-top: 26px; }
.ct-byline-who { display: flex; align-items: center; gap: 12px; }
.ct-avatar { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--t-yellow); color: var(--t-ink); font-family: var(--dk-font-head); font-weight: 800; font-size: .95rem; box-shadow: 0 0 0 4px rgba(255, 193, 7, .2); }
.ct-byline-who small { display: block; font-style: italic; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--t-on-dark-muted); }
.ct-byline-who b { display: block; font-family: var(--dk-font-head); font-weight: 800; color: #fff; }
.page-hero .ct-byline > span { display: inline-flex; align-items: center; gap: 8px; color: var(--t-on-dark); font-size: .95rem; }
.ct-byline > span .bi { color: var(--t-yellow); }

/* cover pulled up into the banner (natural aspect ratio) */
.ct-pull { position: relative; padding: 0 0 8px; background: linear-gradient(180deg, var(--t-ink) 0 140px, #fff 140px); }
.ct-pull-fig { position: relative; isolation: isolate; max-width: 1080px; margin: 0 auto; }
.ct-pull-fig::before { content: ""; position: absolute; z-index: -1; left: -18px; bottom: -18px; width: 40%; height: 55%; background: var(--t-yellow); border-radius: var(--t-r); }
.ct-pull-fig img { display: block; width: 100%; height: auto; border-radius: var(--t-r); box-shadow: var(--t-shadow-lg); background: var(--t-cream); }
@media (max-width: 767.98px) {
  .ct-post-hero { padding-bottom: 40px; }
  .ct-pull { background: linear-gradient(180deg, var(--t-ink) 0 70px, #fff 70px); }
  .ct-pull-fig::before { left: -8px; bottom: -8px; }
}
.ct-post-body { padding-top: 84px; }
@media (max-width: 767.98px) { .ct-post-body { padding-top: 56px; } }

/* long-form typography (blog article + legal pages) */
.ct-article { max-width: 740px; }
.ct-prose { max-width: 740px; font-size: 1.08rem; line-height: 1.85; color: var(--t-body); }
.ct-prose > * { max-width: none; }
.ct-prose > :first-child { margin-top: 0; }
.ct-prose h2 { position: relative; margin: 3rem 0 1.1rem; padding-top: 18px; font-size: clamp(1.5rem, 1.3rem + .8vw, 1.9rem); line-height: 1.25; scroll-margin-top: 130px; }
.ct-prose h2::before { content: ""; position: absolute; left: 0; top: 0; width: 44px; height: 4px; background: var(--t-yellow); }
.ct-prose h3 { margin: 2.1rem 0 .8rem; font-size: 1.3rem; line-height: 1.35; scroll-margin-top: 130px; }
.ct-prose p { margin-bottom: 1.3rem; }
.ct-prose ul, .ct-prose ol { margin-bottom: 1.5rem; padding-left: 1.35rem; }
.ct-prose li { margin-bottom: .65rem; padding-left: .2rem; }
.ct-prose li::marker { color: var(--t-gold); font-weight: 700; }
.ct-prose hr { margin: 2.8rem 0; border: 0; border-top: 1px dashed var(--t-line-2); opacity: 1; }
.ct-prose a:not(.btn) { color: var(--t-gold-700); text-decoration: underline; text-decoration-color: rgba(154, 107, 0, .4); text-underline-offset: 3px; }
.ct-prose a:not(.btn):hover { color: var(--t-ink); text-decoration-color: var(--t-yellow); }
.ct-prose strong { color: var(--t-ink); }
.ct-prose blockquote { margin: 2rem 0; padding: 18px 24px; border-left: 4px solid var(--t-yellow); background: var(--t-cream); border-radius: 0 var(--t-r-sm) var(--t-r-sm) 0; font-style: italic; color: var(--t-ink); }
.ct-prose .table-responsive { margin: 1.6rem 0 2rem; border: 1px solid var(--t-line); border-radius: var(--t-r-sm); box-shadow: var(--t-shadow-sm); }
.ct-prose table { width: 100%; margin: 0; font-size: .95rem; line-height: 1.6; border-collapse: collapse; }
.ct-prose thead th { padding: .85rem 1rem; background: var(--t-ink); color: #fff; font-family: var(--dk-font-head); font-weight: 700; text-align: left; border: 0; }
.ct-prose td { padding: .8rem 1rem; border-top: 1px solid var(--t-line); vertical-align: top; }
.ct-prose td, .ct-prose th { box-shadow: none !important; }
.ct-prose tbody tr:nth-child(even) td { background: var(--t-cream-2); }
.ct-prose img { max-width: 100%; height: auto; border-radius: var(--t-r-sm); }

/* FAQ, tags, share, author */
.ct-post-faq { margin-top: 3.2rem; }
.ct-post-faq h2 { margin-bottom: 1.4rem; }
.ct-prose .ct-post-faq .accordion-header { margin: 0; padding: 0; font-size: 1rem; line-height: 1.4; }
.ct-post-faq .accordion-button { font-size: 1.02rem; line-height: 1.45; }
.ct-post-faq .accordion-body { font-size: 1rem; line-height: 1.75; }
.ct-post-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 2.6rem; }
.ct-post-tags strong { display: inline-flex; align-items: center; gap: 6px; margin-right: 6px; font-family: var(--dk-font-head); font-size: .95rem; color: var(--t-ink); }
.ct-post-tags strong .bi { color: var(--t-gold); }
.ct-post-tags a { padding: 5px 11px; border-radius: var(--t-r-xs); background: var(--t-cream); border: 1px solid var(--t-line); font-size: .84rem; color: var(--t-body); text-decoration: none; transition: background-color .2s ease, border-color .2s ease; }
.ct-post-tags a:hover { background: var(--t-yellow-soft); border-color: var(--t-yellow); color: var(--t-ink); }
.ct-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--t-line); }
.ct-share strong { margin-right: 6px; font-family: var(--dk-font-head); font-size: .98rem; color: var(--t-ink); }
.ct-share a { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: var(--t-r-xs); background: var(--t-ink); color: #fff; font-size: .88rem; font-weight: 500; transition: background-color .2s ease, color .2s ease; }
.ct-share a .bi { color: var(--t-yellow); transition: color .2s ease; }
.ct-share a:hover { background: var(--t-yellow); color: var(--t-ink); }
.ct-share a:hover .bi { color: var(--t-ink); }
.ct-author { display: flex; gap: 20px; align-items: flex-start; margin-top: 2rem; padding: 26px 28px; border-radius: var(--t-r); background: var(--t-cream); border: 1px solid var(--t-line); border-left: 4px solid var(--t-yellow); }
.ct-author img { flex: 0 0 64px; width: 64px; height: 64px; object-fit: contain; padding: 8px; border-radius: var(--t-r-sm); background: #fff; border: 1px solid var(--t-line); }
.ct-author h2 { margin: 0 0 6px; font-size: 1.15rem; }
.ct-author p { margin: 0 0 10px; font-size: .95rem; color: var(--t-muted); }
@media (max-width: 575.98px) { .ct-author { flex-direction: column; padding: 22px 20px; } .ct-share a { flex: 1 1 calc(50% - 10px); justify-content: center; } }

/* recent posts list (under the article) */
.ct-recent { margin-top: 2.6rem; }
.ct-recent h2 { margin: 0 0 18px; font-size: 1.25rem; }
.ct-recent ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.ct-recent a { display: flex; align-items: center; gap: 14px; height: 100%; padding: 12px; border-radius: var(--t-r-sm); border: 1px solid var(--t-line); background: #fff; font-family: var(--dk-font-head); font-weight: 700; font-size: .93rem; line-height: 1.4; color: var(--t-ink); transition: border-color .2s ease, box-shadow .2s ease; }
.ct-recent a:hover { border-color: var(--t-yellow); box-shadow: var(--t-shadow-sm); color: var(--t-gold-700); }
.ct-recent-img { position: relative; flex: 0 0 76px; width: 76px; height: 56px; overflow: hidden; border-radius: var(--t-r-xs); background: var(--t-cream); }
.ct-recent-img img, .ct-recent-img .post-ph { width: 100%; height: 100%; min-height: 0; object-fit: cover; font-size: 1rem; }
.ct-recent-img .post-ph i { box-shadow: none; }
@media (max-width: 575.98px) { .ct-recent ul { grid-template-columns: 1fr; } }

/* sticky contents list (blog post + legal pages) */
.ct-sticky { display: grid; gap: 22px; }
@media (min-width: 992px) { .ct-sticky { position: sticky; top: 118px; } }
.ct-toc { padding: 24px 22px 18px; border-radius: var(--t-r); background: #fff; border: 1px solid var(--t-line); box-shadow: var(--t-shadow-sm); }
.ct-toc h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--t-line); font-size: 1.05rem; }
.ct-toc h2 .bi { color: var(--t-gold); }
.ct-toc ol { position: relative; margin: 0; padding: 0; list-style: none; counter-reset: toc; }
@media (min-width: 992px) { .ct-toc ol { max-height: calc(100vh - 540px); min-height: 150px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; } }
.ct-toc li { counter-increment: toc; }
.ct-toc a { position: relative; display: block; padding: 7px 8px 7px 36px; border-radius: var(--t-r-xs); font-size: .9rem; line-height: 1.45; color: var(--t-body); transition: background-color .2s ease, color .2s ease; }
.ct-toc a::before { content: counter(toc, decimal-leading-zero); position: absolute; left: 6px; top: 8px; font-family: var(--dk-font-head); font-weight: 800; font-size: .76rem; color: var(--t-gold); }
.ct-toc a:hover { background: var(--t-cream); color: var(--t-ink); }
.ct-toc a.is-on { background: var(--t-yellow-soft); color: var(--t-ink); font-weight: 500; box-shadow: inset 3px 0 0 var(--t-yellow); }
.ct-side-cta.is-compact { padding: 26px 24px 24px; }
.ct-side-cta.is-compact h2 { font-size: 1.22rem; }
.ct-side-cta.is-compact p { margin-bottom: 16px; font-size: .95rem; }
.ct-side-cta .ct-cta-btns { display: grid; gap: 10px; }
.ct-side-cta .btn-wa { --btn-fill: var(--t-ink); }

/* ================================================================ Brochure */
.ct-chipline { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.ct-chipline span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--t-r-xs); background: rgba(255, 255, 255, .05); border: 1px solid var(--t-line-dark); font-size: .9rem; font-weight: 500; color: var(--t-on-dark); }
.ct-chipline .bi { color: var(--t-yellow); }

.ct-bv { min-width: 0; padding: 18px; border-radius: var(--t-r); background: #fff; border: 1px solid var(--t-line); box-shadow: var(--t-shadow); }
.ct-bv-stage { position: relative; display: flex; align-items: center; justify-content: center; height: min(78vh, 760px); min-height: 420px; padding: 26px; overflow: hidden; border-radius: var(--t-r-sm); background: var(--t-ink); touch-action: pan-y; user-select: none; }
.ct-bv-stage::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(255, 193, 7, .2) 1.2px, transparent 1.6px); background-size: 22px 22px; }
.ct-bv-stage::after { content: ""; position: absolute; right: -120px; bottom: -150px; width: 320px; height: 320px; border-radius: 50%; border: 28px solid var(--t-yellow); opacity: .9; pointer-events: none; }
.ct-bv-img { position: relative; z-index: 1; display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; min-width: 0; min-height: 0; object-fit: contain; border-radius: var(--t-r-xs); background: #fff; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); transition: opacity .32s var(--t-ease), transform .42s var(--t-ease); will-change: opacity, transform; }
.ct-bv-img.is-out { opacity: 0; }
.ct-bv-nav { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: var(--t-r-xs); background: var(--t-yellow); color: var(--t-ink); font-size: 1.2rem; transition: background-color .2s ease, opacity .2s ease; }
.ct-bv-nav:hover { background: #fff; }
.ct-bv-nav:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.ct-bv-nav:disabled { opacity: .3; pointer-events: none; }
.ct-bv-prev { left: 14px; }
.ct-bv-next { right: 14px; }
.ct-bv-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 4px 4px; }
.ct-bv-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--dk-font-head); font-weight: 800; font-size: 1.08rem; color: var(--t-ink); }
.ct-bv-count { white-space: nowrap; padding: 5px 12px; border-radius: var(--t-r-xs); background: var(--t-ink); color: #fff; font-family: var(--dk-font-head); font-weight: 800; font-variant-numeric: tabular-nums; }
.ct-bv-count b { color: var(--t-yellow); }
.ct-bv-thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 12px 4px 6px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.ct-bv-thumb { position: relative; flex: 0 0 auto; width: 74px; padding: 0; border: 2px solid transparent; border-radius: var(--t-r-xs); background: none; scroll-snap-align: center; transition: border-color .2s ease; }
.ct-bv-thumb img { display: block; width: 100%; aspect-ratio: 210 / 297; object-fit: cover; object-position: top; border-radius: 3px; border: 1px solid var(--t-line); opacity: .7; transition: opacity .2s ease; }
.ct-bv-thumb span { position: absolute; left: 4px; bottom: 4px; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 3px; background: var(--t-ink); color: var(--t-yellow); font-size: .72rem; font-weight: 700; }
.ct-bv-thumb:hover img, .ct-bv-thumb.active img { opacity: 1; }
.ct-bv-thumb.active { border-color: var(--t-yellow); }
.ct-bv-thumb:focus-visible { outline: 2px solid var(--t-gold); outline-offset: 2px; }
.ct-bv-hint { margin: 6px 4px 0; font-size: .82rem; color: var(--t-muted); }
.ct-bv-fallback { position: relative; z-index: 1; max-width: 460px; padding: 32px 20px; text-align: center; color: var(--t-on-dark-muted); }
.ct-bv-fallback .ct-empty-ico { background: var(--t-yellow); color: var(--t-ink); box-shadow: none; }
.ct-bv-fallback h2 { margin-bottom: 8px; font-size: 1.3rem; color: #fff; }
.ct-bv-fallback ol { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; margin: 18px auto 0; padding-left: 1.2rem; text-align: left; font-size: .92rem; }

/* download card */
#brochure-download { scroll-margin-top: 110px; }
.ct-dl { overflow: hidden; border-radius: var(--t-r); background: #fff; border: 1px solid var(--t-line); box-shadow: var(--t-shadow); }
@media (min-width: 992px) { .ct-dl { position: sticky; top: 118px; } }
.ct-dl-head { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; gap: 16px; padding: 24px 26px; background: var(--t-ink); color: var(--t-on-dark-muted); border-bottom: 4px solid var(--t-yellow); }
.ct-dl-head::after { content: ""; position: absolute; z-index: -1; right: -40px; top: -60px; width: 150px; height: 150px; border-radius: 50%; border: 2px solid rgba(255, 193, 7, .25); }
.ct-dl-head img { flex: none; width: 60px; aspect-ratio: 210 / 297; object-fit: cover; border-radius: 3px; box-shadow: 4px 4px 0 var(--t-yellow); }
.ct-dl-head .ph { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: var(--t-r-sm); background: var(--t-yellow); color: var(--t-ink); font-size: 1.4rem; }
.ct-dl-head h2 { margin: 0 0 4px; font-size: 1.3rem; color: #fff; }
.ct-dl-head small { color: var(--t-on-dark-muted); }
.ct-dl-body { padding: 26px; }
.ct-dl-body .form-label { font-size: .92rem; }
.ct-dl-note { display: flex; gap: 8px; margin: 14px 0 0; font-size: .82rem; color: var(--t-muted); }
.ct-dl-note .bi { color: var(--t-gold); }
.ct-done { padding: 6px 0 2px; text-align: center; }
.ct-done .ok { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 14px; border-radius: var(--t-r-sm); background: var(--t-yellow); color: var(--t-ink); font-size: 2rem; box-shadow: 5px 5px 0 var(--t-ink); }
.ct-done h3 { margin-bottom: 6px; font-size: 1.3rem; }
.ct-done p { margin-bottom: 18px; color: var(--t-muted); }
.ct-done .btn { width: 100%; }
.ct-again { margin-top: 14px; padding: 0; border: 0; background: none; font-size: .85rem; color: var(--t-muted); text-decoration: underline; }
.ct-again:hover { color: var(--t-ink); }

/* what's inside */
.ct-inside { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.ct-inside li { position: relative; display: flex; align-items: center; gap: 14px; padding: 20px 20px; border-radius: var(--t-r); background: #fff; border: 1px solid var(--t-line); box-shadow: var(--t-shadow-sm); transition: border-color .25s ease, transform .35s var(--t-ease); }
.ct-inside li:hover { border-color: var(--t-yellow); transform: translateY(-3px); }
.ct-inside b { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--t-r-sm); background: var(--t-ink); color: var(--t-yellow); font-family: var(--dk-font-head); font-weight: 800; }
.ct-inside span { font-family: var(--dk-font-head); font-weight: 700; color: var(--t-ink); line-height: 1.35; }
@media (max-width: 991.98px) { .ct-inside { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (max-width: 575.98px) {
  .ct-bv { padding: 10px; }
  .ct-bv-stage { height: auto; min-height: 0; aspect-ratio: 210 / 297; padding: 12px; }
  .ct-bv-stage.no-pages { aspect-ratio: auto; }
  .ct-bv-nav { width: 40px; height: 40px; font-size: 1rem; }
  .ct-bv-prev { left: 6px; }
  .ct-bv-next { right: 6px; }
  .ct-bv-thumb { width: 58px; }
  .ct-bv-fallback ol { grid-template-columns: 1fr; }
  .ct-dl-head, .ct-dl-body { padding: 20px; }
  .ct-inside { grid-template-columns: 1fr; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { .ct-bv-img { transition: none; } }

/* ================================================================ Legal pages (privacy-policy, term-condition) */
.ct-legal-body { max-width: 820px; }
.ct-prose > .lead { margin-bottom: 2rem; padding: 4px 0 4px 22px; border-left: 4px solid var(--t-yellow); font-size: 1.16rem; line-height: 1.75; color: var(--t-ink); }
.ct-prose ul.check-list { padding-left: 0; list-style: none; }
.ct-prose .check-list li { padding-left: 32px; }
.ct-prose code { padding: 2px 6px; border-radius: var(--t-r-xs); background: var(--t-cream); border: 1px solid var(--t-line); font-size: .88em; color: var(--t-gold-700); }
.ct-legal-card { position: relative; overflow: hidden; isolation: isolate; margin-top: 1.4rem; padding: 30px 32px; border-radius: var(--t-r); background: var(--t-ink); color: var(--t-on-dark-muted); }
.ct-legal-card::after { content: ""; position: absolute; z-index: -1; right: -70px; bottom: -90px; width: 220px; height: 220px; border-radius: 50%; border: 26px solid var(--t-yellow); }
.ct-prose .ct-legal-card h3 { margin: 0 0 16px; color: #fff; }
.ct-legal-card ul { margin: 0; padding: 0; list-style: none; }
.ct-legal-card li { display: flex; gap: 12px; margin-bottom: 10px; padding: 0; max-width: 520px; }
.ct-legal-card li .bi { flex: none; color: var(--t-yellow); line-height: 1.85; }
.ct-prose .ct-legal-card a:not(.btn) { color: #fff; text-decoration-color: rgba(255, 193, 7, .5); }
.ct-prose .ct-legal-card a:not(.btn):hover { color: var(--t-yellow); }
.ct-legal-card .btn { margin-top: 18px; --btn-fill: #fff; --btn-fill-color: var(--t-ink); }
.ct-legal-card .btn:hover { color: var(--t-ink); border-color: #fff; }
.ct-legal-toc ol { max-height: none; }
@media (min-width: 992px) { .ct-legal-toc ol { max-height: calc(100vh - 260px); } }
@media (max-width: 575.98px) { .ct-legal-card { padding: 24px 20px; } }

/* ================================================================ 404 */
.ct-404-hero { padding-bottom: 110px; }
.ct-404-num { position: absolute; z-index: 0; right: 10%; bottom: 64px; font-family: var(--dk-font-head); font-weight: 800; font-size: clamp(9rem, 4rem + 11vw, 15rem); line-height: 1; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 2px rgba(255, 193, 7, .55); pointer-events: none; user-select: none; }
.ct-404-num span { color: var(--t-yellow); -webkit-text-stroke: 0; }
.ct-404-hero .ct-search { max-width: 600px; }
@media (max-width: 1199.98px) { .ct-404-num { right: 3%; opacity: .5; } }
@media (max-width: 767.98px) { .ct-404-num { display: none; } .ct-404-hero { padding-bottom: 72px; } }
.ct-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; }
.ct-link { position: relative; display: flex; flex-direction: column; height: 100%; padding: 28px 26px 26px; border-radius: var(--t-r); background: #fff; border: 1px solid var(--t-line); box-shadow: var(--t-shadow-sm); color: var(--t-body); transition: transform .4s var(--t-ease), box-shadow .4s ease, border-color .3s ease; }
.ct-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--t-yellow); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--t-ease); }
.ct-link:hover { transform: translateY(-4px); box-shadow: var(--dk-shadow-hover); border-color: var(--t-line-2); color: var(--t-body); }
.ct-link:hover::after { transform: scaleX(1); }
.ct-link .ct-story-ico { margin-bottom: 20px; }
.ct-link h3 { margin: 0 0 8px; font-size: 1.2rem; }
.ct-link p { flex: 1; margin: 0 0 16px; font-size: .95rem; color: var(--t-muted); }
.ct-link .go { display: inline-flex; align-items: center; gap: 6px; font-family: var(--dk-font-head); font-weight: 800; font-size: .9rem; color: var(--t-gold-700); }
.ct-link:hover .go .bi { transform: translateX(3px); }
.ct-link .go .bi { transition: transform .3s var(--t-ease); }
.ct-lost { margin: 36px 0 0; text-align: center; color: var(--t-muted); }
.ct-lost a { font-weight: 500; color: var(--t-gold-700); text-decoration: underline; text-underline-offset: 3px; }
.ct-lost a:hover { color: var(--t-ink); }
@media (max-width: 991.98px) { .ct-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .ct-links { grid-template-columns: 1fr; gap: 16px; } }
