/* eastjakarta.com additions on top of hark.css */
.nav { gap: 12px; }
.x-brand { font-weight: 600; white-space: nowrap; color: var(--text-primary); text-decoration: none; }
.x-nav { overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; min-width: 0; }
.x-nav::-webkit-scrollbar { display: none; }
.x-nav a { white-space: nowrap; }
.x-nav a[aria-current="page"] { font-weight: 600; }
.x-crumbs { font: var(--type-caption, 13px/1.4 sans-serif); color: var(--text-secondary); padding: 4px 2px; }
.x-crumbs a { color: inherit; }
.x-price { font: var(--type-label); color: var(--text-primary); }

.x-news { display: flex; gap: 8px; flex-wrap: wrap; }
.x-news input { flex: 1 1 220px; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--stroke-secondary); background: var(--fill-primary-on, #fff); color: var(--text-primary); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.faq h3 { margin-top: 1.2em; }
button.btn { cursor: pointer; }
.x-lang { flex: 0 0 auto; font: 600 13px/1 var(--font-mono, monospace); letter-spacing: .04em; padding: 8px 10px; border-radius: 999px; border: 1px solid var(--stroke-secondary, rgba(0,0,0,.15)); color: var(--text-primary); text-decoration: none; }
.x-lang:hover { background: var(--fill-secondary, rgba(0,0,0,.05)); }
.x-foot { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px 24px; margin-bottom: 16px; }
.x-fcol { display: flex; flex-direction: column; gap: 6px; }
.x-fcol a { color: var(--text-secondary); text-decoration: none; font-size: 14px; }
.x-fcol a:hover { color: var(--text-primary); text-decoration: underline; }
.x-fhead { font-weight: 600; margin: 0 0 4px; color: var(--text-primary); }
.x-fmeta { display: flex; flex-wrap: wrap; gap: 8px 16px; }

/* ===== 2026-10 update: header, logo, responsive text, images, restaurants ===== */

/* --- Responsive text: long words and long lines wrap instead of overflowing --- */
html { -webkit-text-size-adjust: 100%; }
h1, h2, h3, h4, p, li, dt, dd, th, td, a, span, small, figcaption, blockquote, .btn, .pill, .chip {
  overflow-wrap: break-word; word-wrap: break-word; min-width: 0;
}
h1, h2, h3 { overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; }
.hero h1 { font-size: clamp(1.9rem, 1.1rem + 3.6vw, 3.4rem); line-height: 1.08; }
.hero__copy { min-width: 0; max-width: min(40rem, 100%); }
.hero__sub { max-width: min(46ch, 100%); }
.main, .section, .cards > div, .pair > *, .prose, .breakdown, .callout { min-width: 0; }
.btn { white-space: normal; text-align: center; height: auto; line-height: 1.25; }
.links { flex-wrap: wrap; }
/* the "Know before you go" rows: values wrap and stack on narrow screens */
.breakdown .row { flex-wrap: wrap; }
.breakdown dt { flex: 0 0 auto; max-width: 100%; }
.breakdown dd { white-space: normal; text-align: right; flex: 1 1 14rem; min-width: 0; }
@media (max-width: 599px) {
  .breakdown .row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .breakdown dd { text-align: left; flex-basis: auto; }
  .cards, .cards:has(> :nth-child(4):last-child) { grid-template-columns: minmax(0, 1fr); }
  .head__sub { text-align: left; }
}
th, td, .rowhead, td.num, td .chip { white-space: normal; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.x-crumbs { overflow-wrap: anywhere; line-height: 1.5; }
.x-foot a, .x-fmeta a { overflow-wrap: anywhere; }

/* --- Header --- */
.x-header {
  position: sticky; top: 0; z-index: 50;
  margin-inline: calc(var(--gutter) * -1); padding: 8px var(--gutter);
  background: color-mix(in srgb, var(--fill-primary-on) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid var(--stroke-secondary);
}
.x-bar { display: flex; align-items: center; gap: 12px; min-height: 52px; max-width: var(--page-max); margin: 0 auto; }
.x-brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; color: var(--text-primary); text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; }
.x-mark { width: 34px; height: 34px; flex: none; border-radius: 9px; }
.x-tld { color: #0b6e4f; }
:root[data-theme="dark"] .x-tld { color: #4fc79a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .x-tld { color: #4fc79a; } }
.x-menu { flex: 1 1 auto; min-width: 0; }
.x-list, .x-sub { list-style: none; margin: 0; padding: 0; }
.x-list { display: flex; align-items: center; justify-content: center; gap: 2px; }
.x-list > li { position: relative; }
.x-top {
  display: inline-flex; align-items: center; gap: 4px; padding: 9px 12px; border: 0; border-radius: 999px; background: none;
  font: inherit; font-size: 15px; font-weight: 500; color: var(--text-primary); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.x-top:hover, .x-has-sub:focus-within > .x-top { background: var(--fill-tertiary); }
.x-top[aria-current="page"], .x-has-sub.is-active > .x-top { color: #0b6e4f; font-weight: 600; }
:root[data-theme="dark"] .x-top[aria-current="page"], :root[data-theme="dark"] .x-has-sub.is-active > .x-top { color: #4fc79a; }
.x-caret { transition: transform .2s ease; opacity: .7; }
.x-sub {
  position: absolute; top: calc(100% + 6px); left: 50%; transform: translate(-50%, 4px); min-width: 230px; padding: 8px;
  background: var(--fill-primary-on); border: 1px solid var(--stroke-secondary); border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0,0,0,.14), 0 2px 6px rgba(0,0,0,.06);
  opacity: 0; visibility: hidden; transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.x-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.x-sub a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--text-primary); text-decoration: none; font-size: 15px; }
.x-sub a:hover, .x-sub a:focus-visible { background: var(--fill-tertiary); }
.x-sub a[aria-current="page"] { font-weight: 600; color: #0b6e4f; }
@media (hover: hover) and (min-width: 1061px) {
  .x-has-sub:hover > .x-sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .x-has-sub:hover > .x-top .x-caret { transform: rotate(180deg); }
}
@media (min-width: 1061px) {
  .x-has-sub.is-open > .x-sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .x-has-sub.is-open > .x-top .x-caret { transform: rotate(180deg); }
}
.x-tools { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; margin-left: auto; }
.x-header .theme-btn { background: var(--fill-tertiary); color: var(--text-primary); width: 38px; height: 38px; }
.x-header .x-lang { padding: 10px 11px; }
.x-burger { display: none; width: 42px; height: 42px; border: 0; border-radius: 12px; background: var(--fill-tertiary); color: var(--text-primary); cursor: pointer; padding: 0; position: relative; }
.x-burger span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.x-burger span:nth-child(1) { top: 14px; } .x-burger span:nth-child(2) { top: 20px; } .x-burger span:nth-child(3) { top: 26px; }
.x-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.x-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.x-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1060px) {
  .x-burger { display: inline-block; }
  .x-menu {
    position: absolute; left: 0; right: 0; top: 100%;
    max-height: calc(100vh - 70px); max-height: calc(100dvh - 70px); overflow-y: auto; overscroll-behavior: contain;
    background: var(--fill-primary-on); border-bottom: 1px solid var(--stroke-secondary); box-shadow: 0 24px 40px rgba(0,0,0,.12);
    padding: 8px var(--gutter) 20px; display: none;
  }
  .x-header.is-open .x-menu { display: block; }
  .x-list { flex-direction: column; align-items: stretch; gap: 0; max-width: var(--page-max); margin: 0 auto; }
  .x-list > li { border-bottom: 1px solid var(--stroke-secondary); }
  .x-list > li:last-child { border-bottom: 0; }
  .x-top { width: 100%; justify-content: space-between; padding: 15px 4px; border-radius: 0; font-size: 17px; min-height: 44px; }
  .x-top:hover, .x-has-sub:focus-within > .x-top { background: none; }
  .x-sub { position: static; transform: none; min-width: 0; padding: 0 0 10px 8px; border: 0; box-shadow: none; background: none; opacity: 1; visibility: visible; display: none; }
  .x-sub::before { display: none; }
  .x-has-sub.is-open > .x-sub { display: block; }
  .x-has-sub.is-open > .x-top .x-caret { transform: rotate(180deg); }
  .x-sub a { padding: 12px; font-size: 16px; }
}
@media (max-width: 420px) {
  .x-word { font-size: 15px; }
  .x-mark { width: 30px; height: 30px; }
  .x-tools { gap: 6px; }
  .x-header .x-lang { padding: 9px 8px; }
}
@media (max-width: 350px) { .x-tld { display: none; } }
.x-noscroll { overflow: hidden; }

/* --- Card thumbnails --- */
.cards > .x-card-img { padding: 0 0 22px; overflow: hidden; display: flex; flex-direction: column; gap: 10px; }
.cards > .x-card-img > :not(.x-thumb-link):not(.x-thumb):not(.x-r-media) { margin-inline: 24px; }
.cards > .x-card-img > .x-thumb-link, .cards > .x-card-img > .x-thumb, .cards > .x-card-img > .x-r-media { margin: 0 0 6px; }
.x-thumb-link { display: block; }
.x-thumb { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--fill-tertiary); transition: transform .4s ease; }
.x-thumb-link { overflow: hidden; }
.x-card-img:hover .x-thumb { transform: scale(1.03); }

/* --- Restaurants --- */
.x-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.x-chip { padding: 9px 14px; border-radius: 999px; background: var(--fill-tertiary); color: var(--text-primary); text-decoration: none; font-size: 14px; font-weight: 500; }
.x-chip:hover { background: color-mix(in srgb, #0b6e4f 16%, var(--fill-tertiary)); }
.x-rest-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)) !important; }
.x-r-media { position: relative; margin: 0; }
.x-r-media figcaption { position: absolute; left: 10px; bottom: 10px; padding: 3px 8px; border-radius: 999px; font-size: 11px; background: rgba(0,0,0,.55); color: #fff; }
.x-r-ph { aspect-ratio: 16 / 10; display: grid; place-items: center; background: linear-gradient(135deg, #0b6e4f, #13936a 55%, #f6b93b 160%); color: #fff; }
.x-r-ph span { font-weight: 600; font-size: 18px; letter-spacing: .01em; padding: 0 16px; text-align: center; }
.x-r-meta { display: grid; gap: 2px; font-size: var(--size-small, 14px); color: var(--text-secondary); }
.x-pill-pick { background: #0b6e4f !important; color: #fff !important; }
.section[id] { scroll-margin-top: 84px; }
.x-credit-img { width: 96px; height: 64px; object-fit: cover; border-radius: 8px; }
.hero__credit a { color: inherit; text-decoration: none; }
.hero__credit { max-width: calc(100% - 32px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
