/* tt mobile info — article body styles. Ported from ttshop-blog static/css/ttshop-shell.css
   (callout · table · caption · CTA card · hero overlay · naver-map · img-group), with the
   .article-content wrapper replaced by Blowfish's .article-content. Keep ports in sync by hand. */
/* ============ STANDARD CALLOUT / INFO-BOX VISUAL ============
   Source CMS uses many class names for promo/conclusion/highlight boxes
   that look different per article and break in dark mode. Force the same
   tasteful "conclusion-style" treatment globally: brand-tinted background,
   left border accent, centered text. Per-article <style> rules still set
   their own background — those get overridden by these tokens via higher
   specificity (.article-content + .class is (0,2,0), so we use main#main-content
   prefix to reach (1,0,2) and beat them). */
.article-content {
  --tt-callout-bg: #e6fffd;          /* light cyan brand tint */
  --tt-callout-accent: #27cdc9;
}
html.dark .article-content {
  --tt-callout-bg: #1e293b;           /* dark slate, matches conclusion var */
  --tt-callout-accent: #27cdc9;
}
.article-content :is(
  .ttshop-promo,
  .eg-summary,
  .promo-box,
  .highlight-box,
  .summary-box,
  .final-summary,
  .editor-highlight-box,
  .intro,
  .conclusion
) {
  background-color: var(--tt-callout-bg);
  color: var(--tt-body-text);
  border: none;
  border-left: 5px solid var(--tt-callout-accent);
  border-radius: 10px;
  padding: 20px 22px;
  margin: 28px 0;
  font-size: 1.05em;
  line-height: 1.75;
  text-align: left;
  box-shadow: none;
}
.article-content :is(.intro, .conclusion) {
  text-align: center;
  font-size: 1.1em;
}
html.dark .article-content :is(
  .ttshop-promo, .eg-summary, .promo-box, .highlight-box,
  .summary-box, .final-summary, .editor-highlight-box,
  .intro, .conclusion
) {
  border-top: 1px solid var(--tt-border-soft);
  border-right: 1px solid var(--tt-border-soft);
  border-bottom: 1px solid var(--tt-border-soft);
}

/* Standard info-box (address, store-info, contact-info) — neutral card,
   not brand-tinted. */
.article-content :is(
  .store-info-box,
  .store-info,
  .address-info,
  .contact-info,
  .event-info-box,
  .event-details-box,
  .attraction-details,
  .baking-times,
  .eg-coupon-box
) {
  background-color: var(--tt-card-bg);
  color: var(--tt-body-text);
  border: 1px solid var(--tt-border-soft);
  border-radius: 10px;
  padding: 18px 22px;
  margin: 24px 0;
  line-height: 1.7;
  box-shadow: none;
}

/* ============ STANDARD TABLE STYLE ============
   Single uniform border color across all internal/external lines so the
   table reads as one shape, not a patchwork. Border token is the same in
   both light and dark via :is(.dark *) override on --tt-table-line. */
.article-content { --tt-table-line: #d1d5db; }
html.dark .article-content { --tt-table-line: #475569; }
.article-content table {
  /* 2026-10-17: display:block(가로 스크롤용) 이면 표 칸이 내용 폭으로 줄고 테두리만 본문 폭이 돼
     오른쪽이 빈 박스처럼 보였다 → 표 그대로(display:table) 본문 폭을 채우고, 긴 글자는 칸 안에서 줄바꿈 */
  display: table;
  width: 100%;
  table-layout: auto;
  margin: 24px 0;
  border-collapse: collapse;
  font-size: 0.97em;
  line-height: 1.6;
}
/* Allow long unbreakable strings (Korean addresses, URLs, etc.) to wrap
   inside cells so the table prefers wrapping over horizontal scrolling. */
.article-content table th,
.article-content table td {
  word-break: break-word;
  overflow-wrap: anywhere;
}
.article-content table th,
.article-content table td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--tt-table-line);
}
.article-content table th {
  background-color: rgb(var(--color-neutral-100));
  font-weight: 600;
}
.dark .article-content table th { background-color: rgb(var(--color-neutral-800)); }
/* Auto-detect "header row":
   - Explicit <thead> always styled as header.
   - Tables WITHOUT <thead> get their first <tbody> row styled as header
     (covers source tables that mis-used <tr><th>label</th><td>label</td>).
   - Tables WITH <thead> must NOT also paint their first <tbody> row, or the
     real header is duplicated. */
.article-content table thead th,
.article-content table thead td,
.article-content table:not(:has(thead)) tbody tr:first-child th,
.article-content table:not(:has(thead)) tbody tr:first-child td {
  background-color: rgb(var(--color-primary-700));   /* 진한 teal — 흰 글자 대비 확보 (밝은 #27CDC9 위 흰 글자는 읽기 어려웠다) */
  color: #ffffff;
  border-color: rgb(var(--color-primary-700));
  font-weight: 600;
}
/* Mobile: tighter padding so wide tables fit. */
@media (max-width: 640px) {
  .article-content table th,
  .article-content table td {
    padding: 8px 10px;
  }
}
/* Caption sits tight under its image. Pull it up with negative margin
   to fully collapse the image's inline baseline whitespace + the
   wrapper's bottom margin. */
.article-content .image-caption,
.article-content p.image-caption,
.article-content span.image-caption,
.article-content figcaption {
  margin-top: -16px !important;
  margin-bottom: 16px !important;
  padding-top: 0 !important;
  font-size: 13px;
  line-height: 1.4;
  color: var(--tt-muted-text);
  text-align: center;
}
/* Strip the bottom margin from the immediately-preceding image wrapper
   so the caption can sit flush. Avoid `div:has(+ .image-caption)` —
   that would also match shortcode wrappers (.bf-shortcode containing
   an iframe), where `line-height: 0` was collapsing map embeds. */
.article-content p:has(> img + .image-caption),
.article-content p:has(> a > img):has(+ .image-caption),
.article-content a:has(+ .image-caption) {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  line-height: 0;
}
/* Source CMS sometimes places `<br style="clear:both">` between the
   image and its caption (legacy float-clear hack). In our flex-column
   .image-container the <br> just adds a phantom line-height row. Hide
   it so the caption sits directly under the image. */
.article-content .image-container br,
.article-content .map-container br {
  display: none;
}
/* Eliminate any flex gap between image and caption in containers that
   are explicitly column-flex from inline styles. */
.article-content .image-container,
.article-content .map-container {
  gap: 0 !important;
  row-gap: 0 !important;
}
/* ============ KT SIM CTA shortcode (used in article body) ============ */
main#main-content .tt-cta {
  margin: 2.5em 0;
  text-align: center;
}
main#main-content .tt-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #27CDC9 0%, #1eb2af 100%);
  color: #fff !important;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 24px;
  text-decoration: none !important;
  box-shadow: 0 6px 18px rgba(39, 205, 201, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  max-width: 100%;
  text-align: center;
  line-height: 1.4;
  white-space: nowrap;
}
main#main-content .tt-cta-label,
main#main-content .tt-cta-arrow {
  white-space: nowrap;
}
@media (max-width: 400px) {
  main#main-content .tt-cta-btn { font-size: 14px; padding: 12px 18px; }
}

/* Card variant — eyebrow label, teaser (one phrase per line), button.
   Tighter spacing to body, mobile-first Japanese line-break. */
main#main-content .tt-cta-card {
  max-width: 560px;
  margin: 1.2em auto 1.6em;        /* tighter to surrounding prose */
  padding: 20px 22px 22px;
  background: linear-gradient(135deg,
    rgba(39, 205, 201, 0.08) 0%,
    rgba(39, 205, 201, 0.02) 60%,
    var(--tt-card-bg) 100%);
  border: 1px solid rgba(39, 205, 201, 0.35);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(39, 205, 201, 0.08);
}
html.dark main#main-content .tt-cta-card {
  background: linear-gradient(135deg,
    rgba(39, 205, 201, 0.18) 0%,
    rgba(39, 205, 201, 0.04) 60%,
    var(--tt-card-bg) 100%);
  border-color: rgba(39, 205, 201, 0.4);
}
main#main-content .tt-cta-card .tt-cta-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #1aa59e;
  margin-bottom: 8px;
  text-align: left;
}
html.dark main#main-content .tt-cta-card .tt-cta-eyebrow { color: #27CDC9; }

main#main-content .tt-cta-card .tt-cta-teaser {
  margin: 0 0 16px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--tt-body-text);
  text-align: left;
  font-weight: 600;
  /* Short teaser stays on one line. Long teaser wraps only when it
     would overflow the card — the shortcode inserts `<wbr>` after
     every 「、」「。」 so those are the preferred break points. With
     word-break:keep-all browsers won't split mid-character / mid-word. */
  word-break: keep-all;
  line-break: strict;
  overflow-wrap: anywhere;
}
main#main-content .tt-cta-card .tt-cta-btn {
  display: flex;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  padding: 14px 24px;
  font-size: 15.5px;
}
@media (max-width: 640px) {
  main#main-content .tt-cta-card {
    margin: 1em 0 1.4em;
    padding: 16px 16px 18px;
    border-radius: 12px;
  }
  main#main-content .tt-cta-card .tt-cta-eyebrow { font-size: 11px; }
  main#main-content .tt-cta-card .tt-cta-teaser {
    font-size: 14.5px;
    line-height: 1.65;
  }
  main#main-content .tt-cta-card .tt-cta-btn { font-size: 14.5px; padding: 12px 20px; }
}
@media (max-width: 380px) {
  main#main-content .tt-cta-card .tt-cta-teaser { font-size: 13.5px; }
}
main#main-content .tt-cta-label {
  text-align: center;
}
main#main-content .tt-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(39, 205, 201, 0.36);
}
main#main-content .tt-cta-arrow {
  font-size: 18px;
  line-height: 1;
}

/* ============ Map link card (naver.me / maps.app.goo.gl — non-embeddable) ============ */
main#main-content .bf-map-link {
  margin: 1.2em 0;
  text-align: left;
}
main#main-content .bf-map-link a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #f4f6f8;
  border: 1px solid #d8dde2;
  border-radius: 8px;
  color: #1f2937 !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.15s ease, border-color 0.15s ease;
}
main#main-content .bf-map-link a:hover {
  background: #e9eef3;
  border-color: #b6bfc8;
}
main#main-content .bf-map-link-arrow {
  margin-left: auto;
  color: #27CDC9;
  font-weight: 700;
}

/* ── K Magazine hero title overlay (2026-06) ─────────────────────────────
   The theme (layouts/partials/hero/big.html) paints the article title over
   the hero image so hero.webp can be generated WITH NO baked-in text. Mirrors
   the og share-card style (gen-og-card.js): Hiragino Sans 700, white, bottom
   scrim + category accent bar. Opt-in via highResImages / heroTitleOverlay. */
.ts-hero-fig {
  position: relative;
}
.ts-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(16px, 4vw, 44px);
  border-radius: 0.5rem; /* match .rounded-lg on the hero <img> */
  background: linear-gradient(
    to top,
    rgba(18, 26, 44, 0.74) 0%,
    rgba(18, 26, 44, 0.42) 32%,
    rgba(18, 26, 44, 0.08) 60%,
    rgba(18, 26, 44, 0) 78%
  );
  pointer-events: none;
}
.ts-hero-overlay__bar {
  width: 64px;
  height: 6px;
  border-radius: 3px;
  margin-bottom: 14px;
  background: var(--ts-hero-accent, #27cdc9);
}
.ts-hero-overlay__title {
  color: #fff;
  font-weight: 700;
  font-size: clamp(21px, 3.4vw, 40px);
  line-height: 1.3;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  font-family: "Apple SD Gothic Neo", "Noto Sans KR", "Hiragino Sans", "Noto Sans JP",
    -apple-system, sans-serif;
  max-width: 92%;
  /* hero overlay shows only the main headline (1 line by design). Safety net at
     2 lines for the .Title fallback case (posts without an og_headline yet). */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 640px) {
  .ts-hero-overlay__title {
    max-width: 100%;
  }
}

/* NAVER 지도 임베드 ({{< naver-map >}}) */
.naver-map-wrap { position: relative; margin: 12px 0 16px; }
.naver-map {
  width: 100%;
  height: 360px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}
/* 좌상단 info 카드 (Google iframe place 카드 유사) */
.naver-map-card {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 72%;
  padding: 9px 13px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}
.naver-map-card__name { font-weight: 700; font-size: 14px; color: #111827; }
.naver-map-card__addr { font-size: 12px; color: #6b7280; line-height: 1.4; }
.naver-map-card__link {
  margin-top: 3px;
  font-size: 12px;
  font-weight: 600;
  color: #03c75a;            /* NAVER green */
  text-decoration: none;
}
.naver-map-card__link:hover { text-decoration: underline; }
/* 다크모드: html.dark .article-content :where(span,div,…) 가 카드 글자색을 밝게 강제하므로
   (라인 285), 같은 .article-content 스코프로 카드를 어둡게 + 글자를 밝게 재지정 (특이도 우선) */
html.dark .article-content .naver-map-card {
  background: #1f2937;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
  border: 1px solid #374151;
}
html.dark .article-content .naver-map-card__name { color: #f9fafb; }
html.dark .article-content .naver-map-card__addr { color: #cbd5e1; }
html.dark .article-content .naver-map-card__link { color: #34d399; }

/* ── img-group: 세로로 긴 이미지를 한 행으로 묶는다 (2026-08-29) ──────────────
   본문 인라인은 700px 폭으로 서빙되므로 portrait/square 소스는 높이가 화면을 넘는다
   (1122×1402 → 875px, 1200×1200 → 700px).

   🔑 **폭 균등분할(1fr 1fr)이 아니라 높이 통일이다.** 비율이 다른 두 장을 같은 폭에
   두면 높이가 어긋나 아랫변이 들쭉날쭉해진다(425px vs 340px). 셀마다 인라인 style 로
   `flex: <종횡비> 1 0` 을 주면 폭이 종횡비 비중대로 나뉘고 **높이가 같아진다**.
   그래서 grid 가 아니라 flex 다 — grid 의 fr 은 종횡비를 모른다. */
.bf-img-group {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 1.25rem 0 0;
}
.bf-img-group__cell {
  margin: 0;
  min-width: 0;          /* flex 아이템 기본 min-width:auto 가 축소를 막는 것 방지 */
}
.bf-img-group__cell img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}
/* 🚨 그룹 직후 캡션 — 전역 `.image-caption { margin-top: -16px !important }` 를 되돌린다.
   그 음수 마진은 **단독 <img> 아래 inline baseline 여백을 걷어내려고** 있는 것인데,
   .bf-img-group 은 flex + 자식이 display:block 이라 걷어낼 여백이 없다. 그대로 두면
   그룹 하단 margin 8px − 16px = **8px 만큼 캡션이 사진 위로 파고든다**(2026-08-29 실측).
   전역 규칙이 !important 라 셀렉터 특이도를 맞추고 !important 로 이겨야 한다. */
.article-content .bf-img-group + .image-caption {
  margin-top: 6px !important;
}

/* 좁은 화면에서 2열은 둘 다 못 읽는다 — 세로로 쌓고 flex 배분을 해제한다. */
@media (max-width: 600px) {
  .bf-img-group { flex-direction: column; gap: 10px; }
  .bf-img-group__cell { flex: none !important; }
}

/* ── img-group zoom="true": 가운데 정렬 썸네일 + 탭 확대 (2026-10-13) ────────────
   글자 판독이 목적인 세로로 긴 이미지 묶음(굿즈 목록 등) 전용 opt-in.
   🚨 모바일에서도 세로로 쌓지 않는다 — 1:3~1:6 이미지를 100vw 로 쌓으면 장당 화면 3~6배 높이가 된다. */
.bf-img-group--zoom {
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}
.bf-img-group--zoom .bf-zoom { display: block; cursor: zoom-in; }
@media (max-width: 600px) {
  .bf-img-group.bf-img-group--zoom { flex-direction: row; gap: 8px; }
  /* 기존 모바일 규칙 `flex: none !important` 를 이겨야 한다 — 종횡비는 셀 인라인 변수 --a 로 받는다 */
  .bf-img-group.bf-img-group--zoom .bf-img-group__cell { flex: var(--a) 1 0 !important; }
}
.bf-zoom-dialog {
  width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh;
  margin: 0; padding: 48px 0 24px; border: 0;
  background: rgba(20, 20, 22, 0.94);
  overflow-y: auto;
}
.bf-zoom-dialog::backdrop { background: rgba(20, 20, 22, 0.94); }
.bf-zoom-dialog img {
  display: block; margin: 0 auto;
  width: auto; max-width: min(100vw, 900px); height: auto;
}
.bf-zoom-dialog__close {
  position: fixed; top: 10px; right: 14px;
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.92); color: #212225;
  font-size: 26px; line-height: 40px; cursor: pointer;
}

/* AI 일러스트 고지 (partials/sharing-links.html) */
.ai-disclosure { margin: 2rem 0 0.5rem; font-size: 0.8rem; color: rgb(var(--color-neutral-500)); }

/* 참고한 공식 자료 — 접힘 블록 (docs/ttmobile-info-rewrite.md §2) */
.article-content details.info-refs { margin: 0.5rem 0 1.5rem; padding: 0.75rem 1rem; border: 1px solid rgb(var(--color-neutral-200)); border-radius: 0.5rem; font-size: 0.9rem; }
.article-content details.info-refs summary { cursor: pointer; font-weight: 600; }
.article-content details.info-refs ol { margin: 0.75rem 0 0; }
.dark .article-content details.info-refs { border-color: rgb(var(--color-neutral-700)); }

/* 함께 보면 좋은 글 — {{< related >}} : 링크마다 한 줄 카드 (2026-10-17) */
.article-content .related-links { display: flex; flex-direction: column; gap: 8px; margin: 18px 0 26px; }
.article-content .related-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border: 1px solid rgb(var(--color-neutral-200)); border-left: 4px solid rgb(var(--color-primary-400));
  border-radius: 10px; background: rgb(var(--color-neutral-50));
  text-decoration: none !important; color: rgb(var(--color-neutral-800)) !important;
  transition: border-color .15s, background-color .15s, transform .15s;
}
.article-content .related-link:hover { border-color: rgb(var(--color-primary-400)); background: rgb(var(--color-primary-50)); transform: translateX(2px); }
.article-content .related-link__thumb { flex: none; width: 56px; height: 42px; object-fit: cover; border-radius: 6px; margin: 0 !important; }
.article-content .related-link__title { flex: 1; min-width: 0; font-weight: 600; font-size: 0.95rem; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.article-content .related-link__arrow { flex: none; font-size: 1.4rem; line-height: 1; color: rgb(var(--color-primary-600)); }
.dark .article-content .related-link { background: rgb(var(--color-neutral-800)); border-color: rgb(var(--color-neutral-700)); border-left-color: rgb(var(--color-primary-400)); color: rgb(var(--color-neutral-100)) !important; }
.dark .article-content .related-link:hover { background: rgb(var(--color-neutral-700)); }
@media (max-width: 480px) { .article-content .related-link__title { white-space: normal; } }
.article-content .related-link--pending { border-style: dashed; border-left-style: solid; border-left-color: rgb(var(--color-neutral-300)); color: rgb(var(--color-neutral-500)) !important; background: transparent; }
.article-content .related-link--pending:hover { transform: none; background: transparent; border-color: rgb(var(--color-neutral-200)); }
.article-content .related-link__badge { flex: none; font-size: 0.72rem; padding: 2px 8px; border-radius: 999px; background: rgb(var(--color-neutral-100)); color: rgb(var(--color-neutral-500)); }

/* ============ SITE CHROME — ttmobile.jp global header / footer ============
   Replicates the main site's MUI MainLayoutTopbar + Footer (measured 2026-10-18):
   header 64px white, menu 17.6px/500 #000, 신청하기 pill #0097a7, 로그인 pill #ecf0f2,
   footer #2d3033 / text #c6c8ca / accent #00acc1 / copyright #76787a, content max 1200px.
   The main site's chrome has no dark mode → these colours stay fixed in both appearances.
   Markup: layouts/partials/header/ttmobile.html, header/ttmobile-lang.html, footer.html. */
:root {
  --ttm-primary: #0097a7;
  --ttm-primary-light: #00acc1;
  --ttm-ink: #222222;
  --ttm-pill: #ecf0f2;
  --ttm-red: #fe2e36;
  --ttm-footer-bg: #2d3033;
  --ttm-footer-text: #c6c8ca;
  --ttm-footer-muted: #76787a;
  --ttm-font: "Noto Sans KR", "Noto Sans JP", "Apple SD Gothic Neo", "Hiragino Sans", "Malgun Gothic", "Yu Gothic", Meiryo, system-ui, sans-serif;
}
.ttm-header-spacer { height: 88px; }               /* 64px bar + breathing room above the hero/breadcrumbs */
.ttm-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 64px; background: #fff; color: var(--ttm-ink);
  font-family: var(--ttm-font); font-weight: 500;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.ttm-topbar-inner {
  max-width: 1280px; height: 100%; margin: 0 auto; padding: 0 40px;
  display: flex; align-items: center; gap: 16px;
}
.ttm-topbar-left { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.ttm-logo { display: flex; align-items: center; }
.ttm-logo img { width: 108px; height: auto; display: block; }
.ttm-topmenu { flex: 1 1 auto; display: flex; justify-content: center; align-items: stretch; gap: 16px; height: 64px; }
.ttm-topmenu a {
  display: flex; align-items: center; justify-content: center; min-width: 103px; padding: 0 12px;
  color: #000; font-size: 1.1rem; font-weight: 500; text-decoration: none; letter-spacing: 0.01em;
  border-bottom: 3px solid transparent; white-space: nowrap;
}
.ttm-topmenu a:hover { color: var(--ttm-primary); }
.ttm-topmenu a.is-current { color: var(--ttm-primary); border-bottom-color: var(--ttm-primary); }
.ttm-toolbox { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: 0 0 auto; }
.ttm-btn {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  border-radius: 9999px; font-family: var(--ttm-font); font-size: 14px; font-weight: 500;
  line-height: 1.7; padding: 6px 16px; text-decoration: none !important;
}
.ttm-btn-apply { background: var(--ttm-primary); color: #fff !important; }
.ttm-btn-apply:hover { background: #00838f; }
.ttm-btn-login { background: var(--ttm-pill); color: #000 !important; padding: 6px 16px; font-size: 14.4px; }
.ttm-btn-login:hover { background: #dfe5e8; }
.ttm-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 9999px; cursor: pointer; color: #555;
  background: transparent; border: 0; list-style: none;
}
.ttm-icon-btn::-webkit-details-marker { display: none; }
.ttm-icon-btn:hover { background: rgba(0, 0, 0, 0.05); color: #000; }
.ttm-icon-btn svg { width: 24px; height: 24px; fill: currentColor; }
.ttm-topbar a:focus-visible, .ttm-icon-btn:focus-visible, .ttm-drawer a:focus-visible,
.ttm-footer a:focus-visible { outline: 2px solid var(--ttm-primary); outline-offset: 2px; }

/* language menu */
.ttm-lang { position: relative; }
.ttm-lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 140px; margin: 0; padding: 8px 0;
  list-style: none; background: #fff; border-radius: 4px;
  box-shadow: 0 5px 5px -3px rgba(0,0,0,.2), 0 8px 10px 1px rgba(0,0,0,.14), 0 3px 14px 2px rgba(0,0,0,.12);
}
.ttm-lang-menu li { margin: 0; padding: 0; }
.ttm-lang-menu a {
  display: block; padding: 6px 16px; color: var(--ttm-ink); font-size: 15px; text-decoration: none;
}
.ttm-lang-menu a:hover { background: rgba(0, 0, 0, 0.04); }
.ttm-lang-menu a.is-current { background: rgba(0, 151, 167, 0.08); color: var(--ttm-primary); }

/* responsive split — MUI md = 900px */
.ttm-only-mobile { display: none !important; }
@media (max-width: 899.98px) {
  .ttm-only-desktop { display: none !important; }
  .ttm-only-mobile { display: inline-flex !important; }
  .ttm-topbar-inner { padding: 0 8px 0 4px; gap: 4px; }
  .ttm-toolbox { gap: 2px; }
  .ttm-btn-apply { padding: 4px 14px; font-size: 13.5px; margin-right: 4px; }
  .ttm-header-spacer { height: 76px; }
}

/* mobile drawer (left, 270px) */
.ttm-drawer-toggle { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.ttm-drawer-backdrop {
  position: fixed; inset: 0; z-index: 110; background: rgba(0, 0, 0, 0.5);
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.ttm-drawer {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 120; width: 270px; max-width: 85vw;
  background: #ebeff3; font-family: var(--ttm-font); overflow-y: auto;
  border-radius: 0 16px 16px 0; transform: translateX(-105%); visibility: hidden;
  transition: transform .25s ease, visibility .25s;
}
.ttm-drawer-toggle:checked ~ .ttm-drawer-backdrop { opacity: 1; visibility: visible; }
.ttm-drawer-toggle:checked ~ .ttm-drawer { transform: none; visibility: visible; }
.ttm-drawer-head { padding: 8px 8px 20px 10px; }
.ttm-drawer-top { display: flex; align-items: center; justify-content: space-between; }
.ttm-drawer-lead { margin: 18px 14px 14px; font-size: 16px; line-height: 1.5; color: #222; font-weight: 500; }
.ttm-drawer-auth { display: flex; gap: 8px; margin: 0 14px; }
.ttm-drawer-auth .ttm-btn { flex: 1; border-radius: 6px; padding: 8px 0; }
.ttm-btn-login-red { background: var(--ttm-red); color: #fff !important; }
.ttm-btn-signup { background: #fff; color: #222 !important; }
.ttm-drawer-nav { background: #fff; padding: 20px 0; border-radius: 0 0 16px 0; }
.ttm-drawer-nav a {
  display: block; padding: 13px 32px; color: #000; font-size: 18px; font-weight: 500; text-decoration: none;
}
.ttm-drawer-nav a:hover { background: rgba(0, 0, 0, 0.04); }
.ttm-drawer-nav a.is-current { color: var(--ttm-primary); }
@media (min-width: 900px) { .ttm-drawer, .ttm-drawer-backdrop { display: none; } }

/* footer — full-bleed dark band breaking out of Blowfish's padded max-w-7xl body
   (100vw + negative margin; html overflow-x: clip stops the scrollbar-width overflow) */
html { overflow-x: clip; }
.ttm-footer {
  width: 100vw; margin: 64px 0 0 calc(50% - 50vw); padding: 0 40px;
  background: var(--ttm-footer-bg); color: var(--ttm-footer-text);
  font-family: var(--ttm-font); font-weight: 500;
}
.ttm-footer-inner { max-width: 1200px; margin: 0 auto; padding: 48px 24px 32px; display: flex; align-items: flex-start; }
.ttm-footer-logo { flex: 0 0 auto; display: block; }
.ttm-footer-logo img { width: 136px; height: auto; display: block; }
.ttm-footer-body { margin-left: 48px; min-width: 0; }
.ttm-footer-clauses { display: flex; flex-wrap: wrap; align-items: center; font-size: 12.8px; line-height: 1.7; }
.ttm-footer-clauses a { color: var(--ttm-footer-text); text-decoration: none; }
.ttm-footer-clauses a + a { margin-left: 8px; padding-left: 8px; border-left: 1px solid #55585b; }
.ttm-footer-clauses a.is-accent { color: var(--ttm-primary-light); }
.ttm-footer-clauses a:hover { text-decoration: underline; }
.ttm-footer-address {
  display: flex; flex-direction: column; margin-top: 8px;
  font-style: normal; font-size: 12.8px; line-height: 1.7; color: var(--ttm-footer-text);
}
.ttm-footer-address strong { font-weight: 700; }
.ttm-footer-copy { margin: 16px 0 0; font-size: 14px; color: var(--ttm-footer-muted); }
@media (max-width: 899.98px) {
  .ttm-footer { padding: 0; }
  .ttm-footer-inner { flex-direction: column; padding: 48px 24px 32px; }
  .ttm-footer-body { margin: 24px 0 0; }
  .ttm-footer-clauses { flex-direction: column; align-items: flex-start; }
  .ttm-footer-clauses a + a { margin-left: 0; padding-left: 0; border-left: 0; }
}
