/* ===========================================================================
   E-Ticket Dominican Republic — stylesheet
   A travel-guide look, distinct from the sister sites: deep teal + the logo's
   gold on a cream ground, pill-shaped kickers, generously rounded cards, a centred
   hero with a photo banner and overlapping stat chips. No flag-literal colours
   and no split or veiled hero.
   =========================================================================== */

:root {
  --teal: #0F766E;
  --teal-deep: #0B554F;
  --teal-ink: #0a3b37;
  --gold: #C9A227;        /* the logo's gold */
  --gold-deep: #A8871D;

  --cream: #FBF7EF;
  --cream-2: #F3ECDE;
  --paper: #ffffff;
  --line: #e6ddcb;
  --line-strong: #d3c7ac;

  --ink: #1f2a28;
  --ink-soft: #5c6b68;

  --r: 16px;
  --r-lg: 26px;
  --r-pill: 999px;

  --shadow: 0 1px 2px rgb(10 59 55 / 6%), 0 10px 30px rgb(10 59 55 / 8%);
  --shadow-lg: 0 24px 60px rgb(10 59 55 / 14%);

  --gap: clamp(1rem, 3vw, 2rem);
  --band: clamp(3rem, 7vw, 5.5rem);

  --font: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
          Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
html, body { max-width: 100%; overflow-x: clip; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1rem, .97rem + .16vw, 1.07rem);
  line-height: 1.68;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.16; font-weight: 750; letter-spacing: -.02em; text-wrap: balance; color: var(--teal-ink); }
h1 { font-size: clamp(2rem, 1.35rem + 2.7vw, 3.15rem); }
h2 { font-size: clamp(1.45rem, 1.15rem + 1.4vw, 2.05rem); }
h3 { font-size: clamp(1.1rem, 1rem + .55vw, 1.32rem); }

p { margin: 0 0 1.1em; }
a { color: var(--teal); text-underline-offset: 2px; }
a:hover { color: var(--teal-deep); }
img, svg { max-width: 100%; height: auto; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
::selection { background: rgb(201 162 39 / 24%); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: .5rem; z-index: 90; background: var(--teal-ink); color: #fff; padding: .6rem 1rem; border-radius: var(--r); }
.skip:focus { left: .5rem; color: #fff; }

/* --- container ----------------------------------------------------------- */

.shell { width: min(100% - 2.5rem, 1160px); margin-inline: auto; }
.shell--reading { width: min(100% - 2.5rem, 760px); }

/* --- pills / kickers ----------------------------------------------------- */

.pill {
  display: inline-block;
  margin: 0 0 1rem;
  padding: .32rem .85rem;
  border-radius: var(--r-pill);
  background: var(--cream-2);
  color: var(--teal-deep);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.pill--hero { background: rgb(15 118 110 / 12%); }
.pill--gold { background: rgb(201 162 39 / 18%); color: var(--gold-deep); }

.head { position: relative; margin-bottom: 1.7rem; }

/* --- buttons ------------------------------------------------------------- */

.btn {
  --bg: var(--teal);
  --fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .78rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--fg);
  font-weight: 650;
  font-size: .96rem;
  text-decoration: none;
  transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:hover { color: var(--fg); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--go { --bg: var(--gold); --fg: var(--teal-ink); }
.btn--go:hover { --bg: var(--gold-deep); --fg: var(--teal-ink); }
.btn--outline { --bg: transparent; --fg: #fff; border-color: rgb(255 255 255 / 55%); }
.btn--outline:hover { --bg: rgb(255 255 255 / 14%); }
/* Light-background outline button (teal text). Use this on cream, not btn--outline,
   whose white text is meant for dark/photo backgrounds. */
.btn--ghost { --bg: transparent; --fg: var(--teal); border-color: var(--line-strong); }
.btn--ghost:hover { --bg: var(--cream-2); border-color: var(--teal); }
.btn--sm { padding: .48rem 1.05rem; font-size: .88rem; }
.btn--lg { padding: .92rem 1.8rem; font-size: 1.02rem; }

/* --- masthead ------------------------------------------------------------ */

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgb(251 247 239 / 88%);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.masthead__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 74px; padding-block: .55rem; }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit; min-width: 0; }
.brand__mark { flex: none; border-radius: 11px; }
.brand__text { display: grid; min-width: 0; }
.brand__name { font-weight: 780; font-size: 1.02rem; line-height: 1.2; letter-spacing: -.02em; color: var(--teal-ink); }
.brand__tag { font-size: .72rem; color: var(--ink-soft); line-height: 1.3; }

.nav { display: flex; align-items: center; gap: .4rem 1.15rem; flex-wrap: wrap; justify-content: flex-end; }
.nav__link { color: var(--ink); text-decoration: none; font-weight: 620; font-size: .93rem; padding: .28rem 0; border-bottom: 2px solid transparent; }
.nav__link:hover { color: var(--teal); border-bottom-color: var(--gold); }

.lang { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--r-pill); overflow: hidden; }
.lang__opt { padding: .26rem .64rem; font-size: .77rem; font-weight: 700; letter-spacing: .04em; color: var(--ink-soft); text-decoration: none; }
.lang__opt + .lang__opt { border-left: 1px solid var(--line-strong); }
.lang__opt:hover { background: var(--cream-2); color: var(--ink); }
.lang__opt.on { background: var(--teal); color: #fff; }

@media (max-width: 780px) { .brand__tag { display: none; } .nav__link { display: none; } }
@media (max-width: 470px) {
  .masthead__row { flex-wrap: wrap; }
  .brand { flex: 1 1 100%; }
  .nav { flex: 1 1 100%; justify-content: space-between; padding-bottom: .2rem; }
}

/* --- hero ---------------------------------------------------------------- */

.hero { padding-top: var(--band); background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%); }
.hero__top { text-align: center; max-width: 46rem; margin-inline: auto; }
.hero__lead { font-size: clamp(1.05rem, .98rem + .4vw, 1.22rem); color: var(--ink-soft); max-width: 40rem; margin-inline: auto; }
.hero__points { list-style: none; margin: 1.5rem auto 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem .9rem; max-width: 42rem; }
.hero__points li { position: relative; padding-left: 1.5rem; font-size: .92rem; color: var(--teal-deep); font-weight: 550; }
.hero__points li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 1rem; height: 1rem; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E") center / 66% no-repeat;
}
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 1.9rem; }

.hero__stage { position: relative; margin-top: clamp(2rem, 4vw, 3rem); padding-bottom: var(--band); }
.hero__frame {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--paper);
  aspect-ratio: 2 / 1;
  background: var(--cream-2);
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 48%; }

/* Stat chips overlapping the bottom edge of the photo. */
.chips {
  margin: 0;
  position: relative;
  z-index: 2;
  margin-top: -2.4rem;
  width: min(100% - 2rem, 940px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.chips__item { padding: 1.1rem 1rem; text-align: center; border-left: 1px solid var(--line); }
.chips__item:first-child { border-left: 0; }
.chips__item dt { font-size: 1.5rem; font-weight: 800; color: var(--teal); letter-spacing: -.02em; line-height: 1; }
.chips__item dd { margin: .35rem 0 0; font-size: .8rem; color: var(--ink-soft); }
@media (max-width: 620px) {
  .chips { grid-template-columns: repeat(2, 1fr); margin-top: -1.5rem; }
  .chips__item:nth-child(3) { border-left: 0; }
  .chips__item:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* --- steps --------------------------------------------------------------- */

.steps { padding-block: var(--band); }
.steps__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.steps__item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 1.6rem 1.5rem; }
.steps__n {
  display: grid; place-items: center;
  width: 2.4rem; height: 2.4rem; margin-bottom: .9rem;
  border-radius: 50%;
  background: rgb(15 118 110 / 12%);
  color: var(--teal-deep); font-weight: 800; font-size: 1.05rem;
}
.steps__item h3 { margin-bottom: .35rem; }
.steps__item p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* --- pitch (editorial link block) ---------------------------------------- */

.pitch { padding-block: var(--band); background: var(--teal-ink); color: #fff; }
.pitch h2 { color: #fff; }
.pitch__grid { display: grid; gap: var(--gap); }
@media (min-width: 900px) { .pitch__grid { grid-template-columns: 5fr 6fr; align-items: start; gap: clamp(2rem, 4vw, 4rem); } }
.pitch__intro p { color: rgb(255 255 255 / 82%); }
.pitch .link-more { color: var(--gold); font-weight: 650; text-decoration: none; }
.pitch .link-more:hover { text-decoration: underline; }

.pitch__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.pitch__links a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem .3rem;
  color: #fff; text-decoration: none;
  border-bottom: 1px solid rgb(255 255 255 / 14%);
  font-weight: 550;
}
.pitch__links li:first-child a { border-top: 1px solid rgb(255 255 255 / 14%); }
.pitch__links a:hover { color: var(--gold); }
.pitch__arrow { color: var(--gold); flex: none; transition: transform .15s ease; }
.pitch__links a:hover .pitch__arrow { transform: translateX(4px); }

/* --- essay --------------------------------------------------------------- */

.essay { padding-block: var(--band); }

.prose { font-size: 1.04rem; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { margin-top: 2.5rem; scroll-margin-top: 6rem; }
.prose h3 { margin-top: 2rem; scroll-margin-top: 6rem; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--gold); }

.prose blockquote {
  margin: 1.9rem 0;
  padding: 1.1rem 1.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--r) var(--r) 0;
}
.prose blockquote p:last-child { margin-bottom: 0; }

.prose figure { margin: 2.1rem 0; }
.prose figure img { width: 100%; border-radius: var(--r); border: 1px solid var(--line); background: var(--paper); }
.prose figcaption { margin-top: .55rem; font-size: .85rem; color: var(--ink-soft); text-align: center; }

.prose table { width: 100%; border-collapse: collapse; margin: 1.9rem 0; font-size: .93rem; background: var(--paper); border-radius: var(--r); overflow: hidden; }
.prose :is(th, td) { padding: .68rem .85rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose thead th { background: var(--teal); color: #fff; border-color: var(--teal); font-weight: 650; }
.prose tbody tr:nth-child(even) { background: var(--cream); }

.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; background: var(--cream-2); padding: .12em .4em; border-radius: 5px; }

/* main.js wraps wide tables so they scroll in place; the query is the fallback */
.table-scroll { overflow-x: auto; margin: 1.9rem 0; -webkit-overflow-scrolling: touch; border-radius: var(--r); }
.table-scroll table { margin: 0; min-width: 34rem; }
@media (max-width: 640px) { .prose > table { display: block; overflow-x: auto; } }

/* --- callouts ------------------------------------------------------------ */

.callout { margin: 2.1rem 0; padding: 1.2rem 1.4rem; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); }
.callout > *:last-child { margin-bottom: 0; }
.callout strong { display: block; margin-bottom: .35rem; font-size: 1.02rem; color: var(--teal-ink); }
.callout--tip { border-left: 5px solid var(--gold); background: #faf3dd; }
.callout--cta {
  border: 0;
  padding: 2rem 1.6rem;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
}
.callout--cta strong { color: #fff; font-size: 1.15rem; }
.callout--cta p { color: rgb(255 255 255 / 85%); }
.callout--cta a:not(.btn) { color: #fff; }
.callout--cta .btn { margin-top: .6rem; }

/* --- magazine index ------------------------------------------------------ */

.idx__head { padding-block: var(--band) 0; }
.idx__intro { font-size: 1.08rem; color: var(--ink-soft); }
.idx__body { padding-block: var(--band); }
.idx__foot { padding-bottom: var(--band); }

.feature {
  display: grid;
  gap: 0;
  margin-bottom: var(--gap);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform .16s ease, box-shadow .16s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
@media (min-width: 760px) { .feature { grid-template-columns: 1.1fr 1fr; align-items: stretch; } }
.feature__media { display: block; background: var(--cream-2); aspect-ratio: 16 / 9; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__body { padding: clamp(1.4rem, 3vw, 2.2rem); display: flex; flex-direction: column; justify-content: center; }
.feature__title { display: block; font-size: clamp(1.3rem, 1.1rem + .9vw, 1.7rem); font-weight: 750; letter-spacing: -.02em; color: var(--teal-ink); margin: .3rem 0 .5rem; }
.feature__desc { color: var(--ink-soft); font-size: .98rem; }
.feature__more { margin-top: 1rem; font-weight: 650; color: var(--gold-deep); }

.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.tile { display: flex; flex-direction: column; height: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; color: inherit; transition: transform .16s ease, box-shadow .16s ease; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tile__media { display: block; aspect-ratio: 16 / 9; background: var(--cream-2); }
.tile__media img { width: 100%; height: 100%; object-fit: cover; }
.tile__body { padding: 1.05rem 1.15rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.tile__date { font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); }
.tile__title { display: block; font-weight: 700; font-size: 1.08rem; color: var(--teal-ink); margin: .35rem 0 .4rem; line-height: 1.3; }
.tile__desc { font-size: .91rem; color: var(--ink-soft); }

/* --- guide page ---------------------------------------------------------- */

.guide { padding-block: clamp(1.4rem, 4vw, 2.4rem) var(--band); }
.crumbs { font-size: .84rem; color: var(--ink-soft); margin-bottom: 1.3rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--teal); text-decoration: underline; }

.guide__head { padding-bottom: 1.7rem; border-bottom: 1px solid var(--line); margin-bottom: 2.2rem; }
.guide__lede { font-size: 1.12rem; color: var(--ink-soft); }
.guide__meta { font-size: .83rem; color: var(--ink-soft); display: flex; gap: .5rem; flex-wrap: wrap; margin: 0; }

.guide__foot { margin-top: 2.9rem; padding-top: 1.7rem; border-top: 1px solid var(--line); display: flex; gap: .8rem; flex-wrap: wrap; }

/* --- faq ----------------------------------------------------------------- */

.faq { padding-block: var(--band); }
.is-home .faq { background: var(--cream-2); }
.faq__list { display: grid; gap: .7rem; }
.faq__item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.faq__q { cursor: pointer; list-style: none; padding: 1rem 3rem 1rem 1.2rem; font-weight: 650; position: relative; color: var(--teal-ink); }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; font-weight: 400; line-height: 1; color: var(--gold);
}
.faq__item[open] .faq__q::after { content: "\2212"; }
.faq__q:hover { background: var(--cream); }
.faq__a { padding: 0 1.2rem 1.1rem; color: var(--ink-soft); }
.faq__a p:last-child { margin-bottom: 0; }

/* --- form pages ---------------------------------------------------------- */

.formhead { padding-block: var(--band) 1.4rem; text-align: center; }
.formhead p { color: var(--ink-soft); }
.formbody { padding-block: 1.5rem var(--band); }
.formbody .shell { max-width: 900px; }

/* --- footer -------------------------------------------------------------- */

.colophon { background: var(--teal-ink); color: rgb(255 255 255 / 78%); padding-block: var(--band) 2rem; font-size: .92rem; }
.colophon a { color: rgb(255 255 255 / 84%); text-decoration: none; }
.colophon a:hover { color: #fff; text-decoration: underline; }
.colophon__grid { display: grid; gap: 2.2rem; }
@media (min-width: 760px) { .colophon__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .colophon__grid { grid-template-columns: 1.7fr .75fr .75fr 1.4fr; } }

.brand--foot .brand__name { color: #fff; }
.brand--foot .brand__tag { color: rgb(255 255 255 / 58%); display: block; }

.colophon__secure { margin: 1.25rem 0; font-size: .84rem; color: rgb(255 255 255 / 66%); }
.pay__label { font-size: .72rem; text-transform: uppercase; letter-spacing: .11em; color: rgb(255 255 255 / 48%); margin-bottom: .5rem; }
.pay { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.pay img { display: block; border-radius: 5px; box-shadow: 0 0 0 1px rgb(255 255 255 / 12%); }

.colophon__col h2 { font-size: .77rem; text-transform: uppercase; letter-spacing: .13em; color: #fff; margin-bottom: .85rem; }
.colophon__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .48rem; }
.colophon__help p { font-size: .86rem; }
.colophon__notice { font-size: .78rem; color: rgb(255 255 255 / 60%); line-height: 1.6; }
.colophon__notice a { text-decoration: underline; }

.colophon__base { margin: 2.3rem 0 0; padding-top: 1.35rem; border-top: 1px solid rgb(255 255 255 / 14%); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.colophon__base small { font-size: .75rem; color: rgb(255 255 255 / 50%); }

/* --- print --------------------------------------------------------------- */

@media print {
  .masthead, .colophon, .guide__foot, .callout--cta, .skip { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .prose a::after { content: " (" attr(href) ")"; font-size: .85em; color: #555; }
}
