/* Shared responsive layout, loaded after page styles. */
.section-divide-wrap > *, .right-section-inner-wrap > *,
.sajha-lekh-two-col-01 > *, .japan-showcase-layout > * { min-width: 0; }
.jp-daily-bar { padding: 7px 12px; margin: 4px 0 12px; background: var(--light); }
.jp-daily-bar__items { min-width: 0; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; }
.jp-daily-bar__guide { margin-left: auto; color: var(--blue); font-weight: 700; white-space: nowrap; }
.jp-quick-bar { padding: 14px 16px; gap: 12px; }
.jp-quick-bar__head { min-width: 0; }
.jp-quick-bar__brand { font-size: 18px; white-space: normal; margin: 0; }
.jp-quick-bar__head p { font-size: 14px; color: var(--dark-grey); margin: 4px 0 0; }
.jp-guide-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 9px 14px; border-radius: 8px; background: var(--blue); color: white; font-weight: 700; flex-shrink: 0; }
.info-grid.info-grid--guide { grid-template-columns: minmax(0, 1fr); }
.jg-modern, .jg-card, .jg-input-group, .jg-converter-box { min-width: 0; }
.jg-modern [hidden] { display: none !important; }
.jg-modern section[id] { scroll-margin-top: 130px; }
.jg-service-search label { display: block; font-weight: 700; margin-bottom: 6px; }
.jg-service-search input { width: 100%; min-width: 0; font: inherit; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--grey); color: var(--dark); }
.jg-service-search p { margin: 8px 0 0; }
.jg-nav-pills { flex-wrap: wrap; white-space: normal; overflow: visible; }
.jg-nav-pill { white-space: normal; }
.jg-rate-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.jg-remit-grid, .jg-links-grid, .jg-emergency-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.jg-input-wrap input { min-width: 0; }
.jg-link-card, .jg-remit-card, .jg-emergency-card { min-width: 0; overflow-wrap: anywhere; }
.jg-remit-card__top { flex-wrap: wrap; }
@media (max-width: 991px) {
  .section-divide .section-divide-wrap { grid-template-columns: minmax(0, 1fr); }
  .jp-daily-bar__items { font-size: 12px; }
  .jg-rate-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .container { padding-left: 12px; padding-right: 12px; }
  .jp-daily-bar { overflow: visible; white-space: normal; padding: 7px 9px; }
  .jp-daily-bar__items { gap: 5px 10px; }
  .jp-daily-bar__pill { gap: 4px; }
  .jp-quick-bar { align-items: stretch; padding: 12px; }
  .jp-guide-button { align-self: flex-start; font-size: 14px; }
  .sajha-lekh-two-col-01 { grid-template-columns: minmax(0, 1fr); }
  .sajha-lekh-news-01 figure.news_thumbnail { height: auto; max-height: none; aspect-ratio: 16 / 10; }
  .sajha-lekh-news-01 figure.news_thumbnail img { height: 100%; }
  .article-main-title { font-size: clamp(20px, 5vw, 25px); line-height: 1.45; padding: 8px 0; }
  .article-main-excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.6; }
  .news-auth-info, .news-auth-info-01, .news-auth-info-02 { flex-wrap: wrap; gap: 6px 10px; }
  .breaking-news-image { width: 100%; }
  .breaking-news-image figure.news_thumbnail { height: auto; aspect-ratio: 16 / 10; }
  .jg-card { padding: 12px; }
  .jg-card__header h2 { font-size: 18px !important; }
  .jg-converter-box { padding: 10px; }
  .jg-rate-tile { padding: 10px; }
  .jg-rate-tile__val { font-size: 16px; }
  .jg-nav-pill { font-size: 13px; padding: 7px 10px; }
}
@media (max-width: 575px) {
  body { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  .mobile-menu { bottom: env(safe-area-inset-bottom, 0px); height: 58px; border-radius: 18px; margin: 6px 8px; }
  .mobile-menu-wrap { padding: 0 12px; }
  .mobile-menu-wrap ul { align-items: center; }
  .mobile-menu-wrap ul li { flex: 1; min-width: 0; }
  .mobile-menu-wrap ul .mobile-menu-item-center { flex: 0 0 50px; }
  .mobile-menu-wrap ul li a { min-height: 44px; }
  .jg-remit-grid, .jg-links-grid, .jg-emergency-grid { grid-template-columns: minmax(0, 1fr); }
  .info-grid--guide .info-content { padding: 10px; }
}
@media (max-width: 359px) {
  .jp-daily-bar__guide { margin-left: 0; }
  .jg-rate-tiles { grid-template-columns: minmax(0, 1fr); }
}

/* Compact, dated NRB conversion alongside the daily clocks. */
.jp-daily-bar__exchange { display: grid; grid-template-columns: auto auto; align-items: center; gap: 0 10px; margin-left: auto; padding-left: 12px; border-left: 1px solid var(--border); }
.jp-exchange-label { font-size: 12px; font-weight: 600; }
.jp-daily-bar__exchange strong { color: var(--blue); font-size: 16px; white-space: nowrap; }
.jp-daily-bar__exchange small { grid-column: 1 / -1; font-size: 11px; color: var(--dark-grey); }
@media (max-width: 767px) {
  .jp-daily-bar__exchange { flex: 0 0 100%; margin: 2px 0 0; padding: 6px 0 0; border-left: 0; border-top: 1px solid var(--border); grid-template-columns: minmax(0, 1fr) auto; }
}

.jg-remit-controls { margin-bottom: 14px; max-width: 460px; }
.jg-remit-controls small { display: block; font-size: 12px; margin-top: 5px; }
.jg-remit-card--highest { border: 2px solid var(--blue); }
.jg-remit-card .jg-remit-rate, .jg-remit-card .jg-remit-estimate, .jg-remit-card .jg-remit-condition { margin: 0; }
.jg-remit-card .jg-remit-estimate strong { color: var(--blue); }
.jg-remit-card small, .jg-remit-condition { font-size: 12px; line-height: 1.5; color: var(--dark-grey); }

/* Useful daily services, with full guidance kept on the Japan Guide page. */
.jp-home-hub { padding: 16px; border: 1px solid var(--border); border-top: 3px solid var(--blue); border-radius: 12px; background: var(--light); }
.jp-home-hub__heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 12px; }
.jp-home-hub h2 { font-size: 23px; line-height: 1.4; }
.jp-home-hub__heading p, .japan-showcase__intro { font-size: 14px; color: var(--dark-grey); }
.jp-home-hub__all { color: var(--blue); font-size: 14px; font-weight: 700; }
.jp-home-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.jp-home-services > a { display: flex; align-items: flex-start; gap: 9px; padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--grey); min-width: 0; }
.jp-home-services > a:hover { border-color: var(--blue); }
.jp-home-services i { color: var(--blue); font-size: 23px; flex-shrink: 0; }
.jp-home-services strong, .jp-home-services small { display: block; }
.jp-home-services strong { font-size: 15px; line-height: 1.4; }
.jp-home-services small { font-size: 12px; line-height: 1.5; color: var(--dark-grey); margin-top: 3px; }
.jp-home-emergency { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 14px; }
.jp-home-emergency strong, .jp-home-emergency b { color: var(--blue); }
.jp-home-emergency a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; }
.jp-home-newcomer { border-top: 1px solid var(--border); padding-top: 10px; margin-top: 8px; font-size: 14px; }
.jp-home-newcomer summary { cursor: pointer; font-weight: 700; padding: 4px 0; }
.jp-home-newcomer__links { display: grid; gap: 8px; padding: 10px 0 2px; }
.jp-home-newcomer__links a { color: var(--blue); }
.jp-home-community { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; padding: 12px; background: var(--grey); border-radius: 8px; }
.jp-home-community p { flex: 1 1 240px; }
.jp-home-community strong, .jp-home-community p span { display: block; }
.jp-home-community strong { font-size: 15px; }
.jp-home-community p span { font-size: 13px; color: var(--dark-grey); }
.jp-home-community > a { color: var(--blue); font-size: 14px; font-weight: 700; padding: 5px 0; }
.jp-home-hub :focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.japan-showcase__intro { margin: -6px 0 12px; }
#japan-info-hub, #japan-news { scroll-margin-top: 130px; }
@media (max-width: 767px) {
  .jp-home-hub { padding: 8px; margin: 12px auto; }
  .jp-home-hub h2 { font-size: 21px; }
  .jp-home-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jp-home-services > a { padding: 9px 8px; gap: 6px; }
  .jp-home-services i { font-size: 19px; }
  .jp-home-services strong { font-size: 14px; }
  .jp-home-services small { font-size: 11px; }
  .jp-home-emergency { gap: 4px 12px; }
  .jp-home-emergency > strong { flex-basis: 100%; }
  .jp-home-community { padding: 10px; }
}

/* One aligned desktop row, followed by full-width news sections. */
.home-category-services { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.home-category-services > * { min-width: 0; margin: 12px 0; }
.home-category-services .core-two-col-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1200px) {
  .home-category-services--with-news { grid-template-columns: minmax(0, 2fr) minmax(270px, 1fr); align-items: stretch; }
  .home-category-services--with-news .core-two-col-grid { align-items: stretch; }
  .home-category-services--with-news .core-category-card { display: flex; flex-direction: column; min-width: 0; }
  .home-category-services--with-news .core-category-card__wrap { flex: 1; }
  .home-category-services--with-news .core-category-card__lead:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
  .home-category-services--with-news .core-category-card__lead .article-title { font-size: 19px; }
  .home-category-services--with-news .core-category-card__lead figure.news_thumbnail { height: auto; aspect-ratio: 16 / 10; }
  .home-category-services--with-news .jp-home-hub { padding: 10px; }
  .home-category-services--with-news .jp-home-hub h2 { font-size: 20px; }
  .home-category-services--with-news .jp-home-hub__heading { margin-bottom: 8px; gap: 4px; }
  .home-category-services--with-news .jp-home-services { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .home-category-services--with-news .jp-home-services > a { padding: 7px 6px; gap: 5px; }
  .home-category-services--with-news .jp-home-services i { font-size: 17px; }
  .home-category-services--with-news .jp-home-services strong { font-size: 13px; }
  .home-category-services--with-news .jp-home-services small { font-size: 11px; }
  .home-category-services--with-news .jp-home-emergency { gap: 2px 10px; margin-top: 8px; padding-top: 6px; font-size: 13px; }
  .home-category-services--with-news .jp-home-emergency > strong { flex-basis: 100%; }
  .home-category-services--with-news .jp-home-emergency a { min-height: 30px; }
  .home-category-services--with-news .jp-home-newcomer { padding-top: 6px; margin-top: 6px; font-size: 12px; }
  .home-category-services--with-news .jp-home-community { padding: 7px 8px; margin-top: 8px; gap: 2px; }
  .home-category-services--with-news .jp-home-community p { flex-basis: 100%; }
  .home-category-services--with-news .jp-home-community strong { font-size: 13px; }
  .home-category-services--with-news .jp-home-community p span { display: none; }
  .home-category-services--with-news .jp-home-community > a { font-size: 13px; padding: 2px 0; }
  .right-section > .social .sajha-lekh-news-01 figure.news_thumbnail { height: auto; max-height: 320px; aspect-ratio: 16 / 9; }
  .right-section > .social .article-main-title { font-size: 24px; }
  .right-section > .social .sajha-lekh-news-04 .article-title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}
@media (max-width: 767px) {
  .home-category-services .core-two-col-grid { grid-template-columns: minmax(0, 1fr); }
}
