/* Tripnook brand on Kadence. Self-hosted Poppins and Inter. No Google Fonts CDN. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter/inter-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/inter/inter-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/poppins/poppins-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/poppins/poppins-latin-700-normal.woff2") format("woff2");
}

:root {
  --global-palette1: #0F4C81;
  --global-palette2: #0A365C;
  --global-palette3: #12263A;
  --global-palette4: #2D3748;
  --global-palette5: #4A5568;
  --global-palette6: #718096;
  --global-palette7: #EDF2F7;
  --global-palette8: #F7FAFC;
  --global-palette9: #ffffff;
  --global-palette11: #18B7A0;
  --global-palette14: #FF8C42;
  --global-palette-highlight: #0F4C81;
  --global-palette-highlight-alt: #0A365C;
  --global-palette-btn-bg: #0F4C81;
  --global-palette-btn-bg-hover: #0A365C;
  --global-palette-btn: #ffffff;
  --global-palette-btn-hover: #ffffff;
  --tn-primary: #0F4C81;
  --tn-teal: #18B7A0;
  --tn-accent: #FF8C42;
  --global-body-font-family: Inter, system-ui, sans-serif;
  --global-heading-font-family: Poppins, Inter, system-ui, sans-serif;
  --global-primary-nav-font-family: Inter, system-ui, sans-serif;
  --global-fallback-font: sans-serif;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--global-body-font-family);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--global-palette4);
  background: var(--global-palette9);
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.site-title {
  font-family: var(--global-heading-font-family);
  color: var(--global-palette3);
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--global-palette7);
}

.site-header .site-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--tn-primary);
}

.site-header .site-title a,
.site-header a.brand {
  color: var(--tn-primary);
  text-decoration: none;
}

.site-header .site-header-row-container-inner,
.site-header-inner-wrap {
  min-height: 4.5rem;
}

#site-navigation .menu a,
.mobile-menu a {
  color: var(--global-palette3);
  font-size: 0.95rem;
  font-weight: 500;
}

#site-navigation .menu a:hover,
#site-navigation .menu a:focus,
.mobile-menu a:hover,
.mobile-menu a:focus {
  color: var(--tn-primary);
}

/* Comfortable tap targets on phone menus and the toggle. */
.menu-toggle,
.mobile-toggle-open,
button.menu-toggle-open,
#mobile-header .menu-toggle-icon,
#mobile-header button {
  min-width: 44px;
  min-height: 44px;
}

#site-navigation .menu a,
.mobile-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

a {
  color: var(--tn-primary);
}

a:hover,
a:focus {
  color: var(--global-palette2);
}

.wp-block-button__link,
.button,
.kb-button {
  background: var(--tn-primary);
  color: #fff;
  border-radius: 8px;
  min-height: 44px;
}

.tn-site-footer {
  background: #0A365C;
  color: #F7FAFC;
  padding: 2.5rem 1.5rem 1.75rem;
  font-size: 0.95rem;
}

.tn-site-footer a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.tn-site-footer a:hover,
.tn-site-footer a:focus {
  color: var(--tn-teal);
}

.tn-site-footer__inner {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .tn-site-footer__inner {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
  }
}

.tn-site-footer h2 {
  color: #ffffff;
  font-size: 1.05rem;
  margin: 0 0 0.6rem;
}

.tn-site-footer p,
.tn-site-footer li {
  color: #EDF2F7;
}

.tn-site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tn-site-footer li {
  margin: 0 0 0.45rem;
}

.tn-site-footer li a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.tn-site-footer__note {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #EDF2F7;
}

/* Hide the default Kadence "Theme by Kadence WP" credit; we replace the html. */
#colophon .footer-html-inner a[href*="kadencewp.com"] {
  display: none;
}

@media (max-width: 767px) {
  .site-header .site-title {
    font-size: 1.2rem;
  }
}

/* Guide and article layouts (Japan rebuild). Tables scroll on small screens. */
.tn-guide,
.tn-home {
  max-width: 48rem;
}
.tn-lead {
  font-size: 1.0625rem;
  line-height: 1.65;
  max-width: 42rem;
}
.tn-meta,
.tn-credit,
.tn-disclosure {
  font-size: 0.9rem;
  color: var(--global-palette5, #4A5568);
}
.tn-breadcrumbs {
  font-size: 0.9rem;
  margin: 0 0 1.25rem;
  max-width: 72rem;
}
.tn-breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  align-items: center;
}
.tn-breadcrumbs li:not(:last-child)::after {
  content: "›";
  margin-left: 0.5rem;
  color: var(--global-palette6, #718096);
}
.tn-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  margin: 1rem 0 1.5rem;
}
.tn-table-wrap table {
  width: 100%;
  min-width: 28rem;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.tn-table-wrap th,
.tn-table-wrap td {
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--global-palette7, #EDF2F7);
  vertical-align: top;
}
.tn-table-wrap th {
  background: var(--global-palette8, #F7FAFC);
  font-weight: 600;
}
.tn-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
}
.tn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  background: var(--tn-primary, #0F4C81);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
}
.tn-btn:hover,
.tn-btn:focus {
  background: var(--global-palette2, #0A365C);
  color: #fff !important;
}
.tn-btn--teal {
  /* 1.0.8: darker brand teal so white button text passes WCAG AA (5.1:1). */
  background: #0E7C6B;
}
.tn-btn--teal:hover,
.tn-btn--teal:focus {
  background: #0A5F52;
}
.tn-grid {
  display: grid;
  gap: 1.25rem;
  margin: 1.25rem 0 1.75rem;
}
@media (min-width: 768px) {
  .tn-grid--2 { grid-template-columns: 1fr 1fr; }
  .tn-grid--3 { grid-template-columns: 1fr 1fr 1fr; }
}

/* Home city grid (7 cards): 2 columns from 768px, 4 from 1280px.
   Center a leftover last card at tablet so it is not a left-aligned orphan. */
@media (min-width: 768px) {
  .tn-grid.tn-grid--cities {
    grid-template-columns: repeat(2, 1fr);
  }
  .tn-grid.tn-grid--cities > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: 100%;
    max-width: calc((100% - 1.25rem) / 2);
    justify-self: center;
  }
}
@media (min-width: 1280px) {
  .tn-grid.tn-grid--cities {
    grid-template-columns: repeat(4, 1fr);
  }
  .tn-grid.tn-grid--cities > :last-child:nth-child(odd) {
    grid-column: auto;
    max-width: none;
    justify-self: stretch;
  }
}
.tn-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--global-palette7, #EDF2F7);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  min-height: 44px;
}
.tn-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.tn-card__body {
  padding: 0.9rem 1rem 1.1rem;
}
.tn-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}
.tn-card figure {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: none;
  box-shadow: none;
}
.tn-card figcaption,
.tn-card .tn-credit {
  display: none !important;
}
.tn-photo-credits {
  margin: 2.25rem auto 1rem;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  max-width: 50rem;
}
.tn-photo-credits h2 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}
.tn-photo-credits__list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--global-palette5, #4A5568);
}
.tn-photo-credits__list li {
  margin: 0 0 0.3rem;
}
.tn-photo-credits__place {
  font-weight: 600;
  color: var(--global-palette4, #2D3748);
}
.tn-video {
  margin: 1.25rem auto 1.75rem;
  width: 100%;
  max-width: 72rem;
}
.tn-video__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  border-radius: 12px;
  overflow: hidden;
}
.tn-video__frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.tn-video figcaption {
  font-size: 0.85rem;
  color: var(--global-palette5, #4A5568);
  margin-top: 0.4rem;
}
.tn-journey {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.35rem;
  align-items: center;
  margin: 1rem 0 1.5rem;
}
.tn-journey a,
.tn-journey span.tn-journey__place {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--global-palette8, #F7FAFC);
  border: 1px solid var(--global-palette7, #EDF2F7);
  text-decoration: none;
  color: var(--tn-primary, #0F4C81);
  font-weight: 600;
}
.tn-journey .tn-journey__arrow {
  color: var(--global-palette6, #718096);
  min-width: auto;
  padding: 0;
  border: 0;
  background: none;
}
.tn-figure {
  margin: 1.25rem 0 1.5rem;
}
.tn-figure img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.tn-figure figcaption {
  font-size: 0.85rem;
  color: var(--global-palette5, #4A5568);
  margin-top: 0.4rem;
}
.tn-faq-item {
  margin: 0 0 1.1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--global-palette7, #EDF2F7);
}
.tn-quiz {
  max-width: 40rem;
  margin: 1rem 0 2rem;
  padding: 1.1rem 1.15rem 1.3rem;
  border: 1px solid var(--global-palette7, #EDF2F7);
  border-radius: 12px;
  background: var(--global-palette8, #F7FAFC);
}
.tn-quiz fieldset {
  border: 0;
  margin: 0 0 1rem;
  padding: 0;
}
.tn-quiz legend {
  font-weight: 600;
  margin: 0 0 0.5rem;
}
.tn-quiz label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
}
.tn-quiz select,
.tn-quiz button {
  min-height: 44px;
  font-size: 1rem;
}
.tn-hero-home img {
  width: 100%;
  height: auto;
  max-height: 28rem;
  object-fit: cover;
  border-radius: 12px;
}
@media (max-width: 767px) {
  .tn-hero-home .tn-lead {
    font-size: 1rem;
  }
}

/* QA fixes: tablet logo, centred content, stacked tables, uncrowded currency, single footer credit. */

@media screen and (min-width: 720px) and (max-width: 1024px) {
  #mobile-header .site-branding .site-title.vs-md-false,
  #mobile-header .site-title.vs-md-false {
    display: block !important;
  }
  #mobile-header .site-branding,
  #mobile-header a.brand,
  #mobile-header .site-title-wrap {
    display: flex;
    align-items: center;
    min-height: 44px;
  }
}

.entry-content .tn-guide,
.entry-content .tn-home {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}
.tn-guide > p,
.tn-guide > h2,
.tn-guide > h3,
.tn-guide > ul,
.tn-guide > ol,
.tn-guide > .tn-lead,
.tn-guide > .tn-meta,
.tn-guide > .tn-disclosure,
.tn-guide > .tn-faq-item,
.tn-home > p,
.tn-home > h2,
.tn-home > .tn-lead,
.tn-home > .tn-meta {
  max-width: 50rem;
  margin-left: auto;
  margin-right: auto;
}
.tn-figure,
.tn-hero-home,
.tn-grid,
.tn-table-wrap,
.tn-journey,
.tn-cta-row,
.tn-quiz,
.tn-video {
  width: 100%;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}
.tn-photo-credits {
  width: 100%;
  max-width: 50rem;
  margin-left: auto;
  margin-right: auto;
}
.tn-figure img,
.tn-hero-home img {
  width: 100%;
  height: auto;
  display: block;
}

.tn-breadcrumbs {
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1025px) {
  .menu-item.tn-currency-menu-item {
    margin-left: 0.85rem;
    padding-left: 0.85rem;
    border-left: 1px solid var(--global-palette7, #EDF2F7);
  }
  .menu-item.tn-currency-menu-item .tn-currency-picker-wrap--compact {
    position: relative;
  }
  .menu-item.tn-currency-menu-item .tn-currency-picker-wrap--compact label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

.tn-site-footer__legal {
  margin: 1.5rem auto 0;
  max-width: 72rem;
  font-size: 0.9rem;
  color: #F7FAFC;
}
#colophon .tn-footer-credit-empty,
#colophon .site-bottom-footer-wrap:has(.tn-footer-credit-empty) {
  display: none;
}

@media (max-width: 639px) {
  .tn-table-wrap {
    overflow-x: visible;
  }
  .tn-table-wrap table {
    min-width: 0;
    width: 100%;
  }
  .tn-table-wrap thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .tn-table-wrap tbody,
  .tn-table-wrap tr,
  .tn-table-wrap td,
  .tn-table-wrap th {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  .tn-table-wrap tr {
    margin: 0 0 0.9rem;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--global-palette7, #EDF2F7);
    border-radius: 10px;
    background: #fff;
  }
  .tn-table-wrap td {
    border-bottom: 0;
    padding: 0.35rem 0;
  }
  .tn-table-wrap td::before {
    content: attr(data-label);
    display: block;
    font-weight: 600;
    color: var(--global-palette3, #12263A);
    margin-bottom: 0.15rem;
  }
  .tn-table-wrap td:empty::before {
    display: none;
  }
}

/* Cinematic hero (1.0.5). Full-bleed photo, dark gradient, H1, subline, CTA. */
.tn-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  width: 100%;
  min-height: clamp(380px, 60vh, 760px);
  overflow: hidden;
  background: #0F4C81;
  color: #fff;
  box-sizing: border-box;
}
.tn-hero--home {
  min-height: clamp(460px, 80vh, 940px);
}
.tn-hero--inline {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 2rem;
}
.tn-hero .tn-hero__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: var(--tn-focal, 50% 50%);
  border-radius: 0;
}
.tn-hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(7, 22, 38, 0.86) 0%, rgba(7, 22, 38, 0.55) 34%, rgba(7, 22, 38, 0.18) 66%, rgba(7, 22, 38, 0.08) 100%),
    linear-gradient(90deg, rgba(7, 22, 38, 0.45) 0%, rgba(7, 22, 38, 0) 62%);
}
.tn-hero__inner {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 3.25rem;
  box-sizing: border-box;
}
.tn-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.85rem;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}
.tn-hero__eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 3px;
  border-radius: 2px;
  background: #18B7A0;
}
.tn-hero h1.tn-hero__title,
.tn-hero h2.tn-hero__title {
  margin: 0 0 0.9rem;
  max-width: 20ch;
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(2.15rem, 5.2vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
  overflow-wrap: break-word;
}
.tn-hero--home h1.tn-hero__title {
  font-size: clamp(2.3rem, 6vw, 4.6rem);
  max-width: 17ch;
}
.tn-hero__subline {
  margin: 0;
  max-width: 40rem;
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(1.02rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}
.tn-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}
.tn-hero a.tn-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  box-sizing: border-box;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.tn-hero a.tn-hero__btn--primary {
  background: #FF8C42;
  color: #0B2236;
  border: 2px solid #FF8C42;
}
.tn-hero a.tn-hero__btn--primary:hover,
.tn-hero a.tn-hero__btn--primary:focus-visible {
  background: #fff;
  border-color: #fff;
  color: #0F4C81;
}
.tn-hero a.tn-hero__btn--ghost {
  background: rgba(7, 22, 38, 0.25);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.85);
}
.tn-hero a.tn-hero__btn--ghost:hover,
.tn-hero a.tn-hero__btn--ghost:focus-visible {
  background: #18B7A0;
  border-color: #18B7A0;
  color: #0B2236;
}
.tn-hero a.tn-hero__btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
body.tn-has-hero .content-area {
  margin-top: 2rem;
}
@media (max-width: 767px) {
  .tn-hero {
    min-height: clamp(360px, 56vh, 620px);
  }
  .tn-hero--home {
    min-height: clamp(540px, 74vh, 760px);
  }
  .tn-hero--home h1.tn-hero__title {
    font-size: clamp(1.95rem, 8.4vw, 2.6rem);
  }
  .tn-hero--home .tn-hero__subline {
    font-size: 1rem;
  }
  .tn-hero--home .tn-hero__ctas {
    margin-top: 1.2rem;
    gap: 0.6rem;
  }
  .tn-hero .tn-hero__img {
    object-position: var(--tn-focal-m, var(--tn-focal, 50% 50%));
  }
  .tn-hero__inner {
    padding: 3rem 1.15rem 2.25rem;
  }
  .tn-hero__shade {
    background: linear-gradient(to top, rgba(7, 22, 38, 0.88) 0%, rgba(7, 22, 38, 0.6) 42%, rgba(7, 22, 38, 0.2) 75%, rgba(7, 22, 38, 0.1) 100%);
  }
  .tn-hero a.tn-hero__btn {
    flex: 1 1 auto;
  }
  body.tn-has-hero .content-area {
    margin-top: 1.25rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tn-hero a.tn-hero__btn {
    transition: none;
  }
}

/* Guides page destination cards (1.0.7). Reuses .tn-grid--cities: 1 / 2 / 4 columns. */
a.tn-card--guide {
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
a.tn-card--guide:hover,
a.tn-card--guide:focus-visible {
  box-shadow: 0 10px 28px rgba(15, 76, 129, 0.16);
  transform: translateY(-2px);
}
a.tn-card--guide:focus-visible {
  outline: 3px solid #0F4C81;
  outline-offset: 3px;
}
.tn-card--guide .tn-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.tn-card--guide h3 {
  color: #0F4C81;
}
.tn-card--guide p {
  margin: 0 0 0.75rem;
}
.tn-card__more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 24px;
  font-weight: 600;
  color: #0F4C81;
}
a.tn-card--guide:hover .tn-card__more,
a.tn-card--guide:focus-visible .tn-card__more {
  text-decoration: underline;
}
@media (prefers-reduced-motion: reduce) {
  a.tn-card--guide {
    transition: none;
  }
  a.tn-card--guide:hover,
  a.tn-card--guide:focus-visible {
    transform: none;
  }
}

/* 1.0.8: entry-requirements note (global visitors) */
.tn-note {
  border-left: 4px solid var(--tn-primary, #0F4C81);
  background: #f3f7fb;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
}
.tn-note > :first-child { margin-top: 0; }
.tn-note > :last-child { margin-bottom: 0; }
.tn-note h2, .tn-note h3 { font-size: 1.15rem; margin-bottom: .5rem; }


/* 1.0.10: final visual fixes. */
/* Lazy photos get a soft tint while they load, so a slow image never reads as a blank gap. */
.tn-guide img,
.tn-card img,
.entry-content figure img {
  background: #E8EEF4;
}
/* Wide hero: from tablet up the box matches a 16:9 photo, so the whole frame shows. */
@media (min-width: 768px) {
  .tn-hero--wide {
    min-height: clamp(380px, 56.25vw, 760px);
  }
}
/* Home hero on phones: the photo fills the top two-thirds (less zoom, so Fuji and the
   pagoda both fit) and fades into a deep blue panel that carries the headline. */
@media (max-width: 767px) {
  .tn-hero--home {
    min-height: clamp(560px, 72vh, 680px);
    background: #0B1D30;
  }
  .tn-hero--home .tn-hero__img {
    inset: 0 0 auto 0;
    height: 66%;
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  }
}
/* Collapsible table groups (official figures on First-Time Japan). */
.tn-collapse {
  margin: 0 0 0.75rem;
  border: 1px solid var(--global-palette7, #EDF2F7);
  border-radius: 10px;
  background: #fff;
}
.tn-collapse > summary {
  cursor: pointer;
  list-style: none;
  padding: 0.85rem 1rem;
  font-weight: 600;
  color: var(--global-palette3, #12263A);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 44px;
  box-sizing: border-box;
}
.tn-collapse > summary::-webkit-details-marker {
  display: none;
}
.tn-collapse > summary::after {
  content: "+";
  font-size: 1.25rem;
  line-height: 1;
  color: #0F4C81;
}
.tn-collapse[open] > summary::after {
  content: "\2212";
}
.tn-collapse > summary:focus-visible {
  outline: 2px solid #0F4C81;
  outline-offset: 2px;
}
.tn-collapse .tn-collapse__count {
  font-weight: 400;
  color: var(--global-palette5, #4A5568);
  font-size: 0.9rem;
  margin-left: auto;
  white-space: nowrap;
}
.tn-collapse .tn-table-wrap {
  margin: 0;
  padding: 0 0.5rem 0.5rem;
  box-sizing: border-box;
  width: 100%;
}
.tn-collapse .tn-table-wrap table {
  min-width: 0;
}
@media (max-width: 639px) {
  .tn-table-wrap--compact tr {
    padding: 0.6rem 0.75rem;
    margin-bottom: 0.6rem;
  }
  .tn-table-wrap--compact td {
    padding: 0.2rem 0;
  }
  .tn-table-wrap--compact td::before {
    display: none;
  }
  .tn-table-wrap--compact td:first-child {
    font-weight: 600;
    color: var(--global-palette3, #12263A);
  }
  .tn-table-wrap--compact td:last-child {
    font-size: 0.85rem;
  }
  .tn-table-wrap--compact td:last-child::before {
    content: "Source: ";
    display: inline;
    font-weight: 400;
    color: var(--global-palette5, #4A5568);
  }
}


/* 1.1.0: line icons (Lucide subset, inline SVG, decorative). */
.tn-icon {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  vertical-align: -0.2em;
  margin-right: 0.4em;
  color: #0F4C81;
}
.tn-icon--accent {
  color: #18B7A0;
}
.tn-icon--cta {
  color: #FF8C42;
}
h2 > .tn-icon {
  width: 0.9em;
  height: 0.9em;
  vertical-align: -0.08em;
  margin-right: 0.4em;
}
h3 > .tn-icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.12em;
}
.tn-card h3 > .tn-icon {
  width: 0.85em;
  height: 0.85em;
  margin-right: 0.3em;
  vertical-align: -0.06em;
}
.tn-card__more .tn-icon {
  width: 1em;
  height: 1em;
  margin: 0 0 0 0.3em;
  vertical-align: -0.15em;
  transition: transform 0.15s ease;
}
a.tn-card:hover .tn-card__more .tn-icon,
a.tn-card:focus-visible .tn-card__more .tn-icon {
  transform: translateX(3px);
}
.tn-disclosure.tn-has-icon {
  position: relative;
  padding-left: 1.6em;
}
.tn-disclosure.tn-has-icon > .tn-icon {
  position: absolute;
  left: 0;
  top: 0.2em;
  margin: 0;
  width: 1.05em;
  height: 1.05em;
}
.tn-btn .tn-icon,
.tn-site-footer .tn-icon {
  color: currentColor;
}
.tn-btn .tn-icon {
  margin-right: 0.45em;
}
.tn-footer-mail .tn-icon {
  width: 1em;
  height: 1em;
  margin-right: 0.35em;
  vertical-align: -0.15em;
}
.tn-quiz legend .tn-icon {
  color: #18B7A0;
}
.tn-quiz label .tn-icon {
  width: 1.05em;
  height: 1.05em;
  margin: 0 0.3em 0 0.15em;
}
#tn-discover-results ol li .tn-icon {
  color: #18B7A0;
  width: 1em;
  height: 1em;
  margin-right: 0.3em;
}
@media (prefers-reduced-motion: reduce) {
  .tn-card__more .tn-icon {
    transition: none;
  }
}
@media print {
  .tn-icon {
    color: #000 !important;
  }
}
