/*
 * Go PH Travel Guide — canonical article presentation
 * Owner: Travel Guide article runtime/template
 * Runtime: /assets/css/travel-guide-article-canonical.css
 *
 * The article template is intentionally self-contained here. Shared public
 * foundations remain in global.css/page-template.css; this file owns only
 * Travel Guide article layout, typography, cards and responsive behavior.
 */

/* ========================================================================== *
   1. Article theme + layout tokens
   ========================================================================== */
.goph-travel-article {
  --tg-shell-max: 1148px;
  --tg-main-max: 820px;
  --tg-sidebar-width: 300px;
  --tg-column-gap: 28px;
  --tg-surface: #fff;
  --tg-page-bg: #f7f9fc;
  --tg-ink: var(--goph-ink, #142033);
  --tg-navy: var(--goph-navy, #0b2d62);
  --tg-blue: var(--goph-blue, #0757b7);
  --tg-muted: var(--goph-muted, #5f6d80);
  --tg-body: #43546b;
  --tg-line: #d9e2ec;
  --tg-soft-line: #e5eaf0;
  --tg-gold: var(--goph-gold, #e3a300);
  --tg-radius-card: 16px;
  --tg-radius-hero: 18px;

  min-height: 40vh;
  color: var(--tg-ink);
  background: var(--tg-page-bg);
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
}

/* ========================================================================== *
   2. Page shell / desktop grid
   ========================================================================== */
.goph-travel-article .tg-article-shell {
  width: min(var(--tg-shell-max), 100%);
  margin-inline: auto;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, var(--tg-main-max)) var(--tg-sidebar-width);
  gap: var(--tg-column-gap);
  align-items: start;
}

.goph-travel-article .tg-article-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
  min-width: 0;
}

/* ========================================================================== *
   3. Article header / breadcrumbs / metadata
   ========================================================================== */
.goph-travel-article .tg-article-header {
  margin: 0 0 18px;
}

.goph-travel-article .tg-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  color: #6b778a;
  font-size: 12px;
  font-weight: 600;
}

.goph-travel-article .tg-breadcrumb a {
  color: #315b91;
  text-decoration: none;
}

.goph-travel-article .tg-breadcrumb a:hover {
  text-decoration: underline;
}

.goph-travel-article .tg-article-header h1 {
  margin: 0;
  color: var(--tg-navy);
  font-family: "Plus Jakarta Sans", "DM Sans", sans-serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.goph-travel-article .tg-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 13px;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}

.goph-travel-article .tg-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ========================================================================== *
   4. Article body surface + hero
   ========================================================================== */
.goph-travel-article .goph-article {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: clamp(1rem, 2.5vw, 1.35rem);
  box-sizing: border-box;
  overflow: visible;
  background: var(--tg-surface);
  border: 1px solid var(--tg-line);
  border-radius: var(--tg-radius-hero);
  box-shadow: 0 10px 28px rgba(15, 42, 78, 0.055);
}

.goph-travel-article .article-hero {
  position: relative;
  margin: 0 0 18px;
  overflow: hidden;
  background: var(--tg-surface);
  border: 1px solid var(--tg-line);
  border-radius: var(--tg-radius-hero);
  box-shadow: 0 10px 28px rgba(15, 42, 78, 0.07);
}

.goph-travel-article .article-hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}

.goph-travel-article .article-hero figcaption {
  padding: 7px 12px;
  color: #64748b;
  background: var(--tg-surface);
  font-size: 11px;
  line-height: 1.45;
}

.goph-travel-article .article-hero figcaption.image-credit {
  display: none;
}

/* ========================================================================== *
   5. Article content hierarchy + callouts
   ========================================================================== */
.goph-travel-article .goph-article__content > section {
  margin: 1.35rem 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.goph-travel-article .goph-article__content > section h2 {
  margin: 0 0 0.75rem;
  color: var(--tg-navy);
  font-family: "Plus Jakarta Sans", "DM Sans", sans-serif;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  line-height: 1.18;
}

.goph-travel-article .goph-article__content > section h3 {
  margin: 1.25rem 0 0.45rem;
  color: #20385e;
  font-size: 1rem;
}

.goph-travel-article .goph-article p {
  margin: 0.8rem 0;
  color: var(--tg-body);
  line-height: 1.72;
}

.goph-travel-article .goph-article ul,
.goph-travel-article .goph-article ol {
  color: var(--tg-body);
  line-height: 1.7;
}

.goph-travel-article .goph-article li {
  margin: 0.35rem 0;
}

.goph-travel-article .goph-article__content > section.quick-answer {
  padding: 1rem 1.1rem;
  background: linear-gradient(135deg, #fff, #f5f9ff);
  border: 1px solid #c9dced;
  border-left: 4px solid var(--tg-gold);
  border-radius: 12px;
}

.goph-travel-article .goph-article__content > section.faq {
  padding: 1rem 1.1rem;
  background: var(--tg-surface);
  border: 1px solid var(--tg-line);
  border-radius: 12px;
}

.goph-travel-article .goph-article__content > section.travel-guide-service-cta,
.goph-travel-article .goph-article__content > section.travel-cta {
  padding: 1rem 1.1rem;
  background: linear-gradient(135deg, #fff, #eef5ff);
  border: 1px solid var(--tg-line);
  border-left: 4px solid var(--tg-gold);
  border-radius: 12px;
}

/* ========================================================================== *
   6. Article component variants
   ========================================================================== */
.goph-travel-article .goph-article__content {
  min-width: 0;
}

.goph-travel-article .goph-article__content > .tg-article-section {
  margin: 1.5rem 0;
}

.goph-travel-article .goph-article__content > .tg-content-section:first-of-type {
  margin-top: 1.35rem;
}

.goph-travel-article .goph-article__content > .tg-note-section {
  padding: 1rem 1.1rem;
  background: #f7fbff;
  border: 1px solid #cfe0f1;
  border-left: 4px solid var(--tg-blue);
  border-radius: 12px;
}

.goph-travel-article .goph-article__content > .tg-comparison-section {
  padding: 1rem 1.1rem;
  background: #fbfcfe;
  border: 1px solid var(--tg-line);
  border-radius: 12px;
}

.goph-travel-article .goph-article__content > .tg-safety-section {
  padding: 1rem 1.1rem;
  background: #fffaf0;
  border: 1px solid #efdca6;
  border-left: 4px solid var(--goph-gold-text);
  border-radius: 12px;
}

.goph-travel-article .tg-contextual-cta,
.goph-travel-article .tg-service-cta {
  margin-top: 1.5rem !important;
}

.goph-travel-article .tg-contextual-cta {
  padding: 1.15rem 1.2rem !important;
  background: linear-gradient(135deg, #fff8dc, #fffdf5) !important;
  border: 1px solid #efd88b !important;
  border-left: 4px solid var(--tg-gold) !important;
  border-radius: var(--tg-radius-card) !important;
}

.goph-travel-article .tg-contextual-cta h2,
.goph-travel-article .tg-service-cta h2 {
  margin-bottom: .55rem !important;
}

.goph-travel-article .tg-contextual-cta p,
.goph-travel-article .tg-service-cta p {
  max-width: 68ch;
}

.goph-travel-article .tg-service-cta {
  padding: 1.1rem 1.2rem !important;
  background: linear-gradient(135deg, #f5f9ff, #ffffff) !important;
  border: 1px solid var(--tg-line) !important;
  border-left: 4px solid var(--tg-blue) !important;
  border-radius: var(--tg-radius-card) !important;
}

/* Main related-article grid shown below the article body. */
.goph-travel-article .tg-related {
  margin: 1.75rem 0 0;
  padding: 1.35rem 0 0;
  border-top: 1px solid var(--tg-line);
}

.goph-travel-article .tg-related > h2 {
  margin: 0 0 1rem;
  color: var(--tg-navy);
  font-family: "Plus Jakarta Sans", "DM Sans", sans-serif;
  font-size: 1.35rem;
  line-height: 1.2;
}

.goph-travel-article .tg-related__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.goph-travel-article .tg-related-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  background: var(--tg-surface);
  border: 1px solid var(--tg-line);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(15, 42, 78, 0.045);
}

.goph-travel-article .tg-related-card > img {
  display: block;
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}

.goph-travel-article .tg-related-card__body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  padding: 13px 14px 14px;
}

.goph-travel-article .tg-related-card__category {
  color: var(--goph-gold-text);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.goph-travel-article .tg-related-card h3 {
  margin: .45rem 0 0;
  color: var(--tg-navy);
  font-family: "Plus Jakarta Sans", "DM Sans", sans-serif;
  font-size: 14px;
  line-height: 1.35;
}

.goph-travel-article .tg-related-card h3 a {
  color: inherit;
  text-decoration: none;
}

.goph-travel-article .tg-related-card h3 a:hover {
  text-decoration: underline;
}

.goph-travel-article .tg-related-card__link {
  margin-top: auto;
  padding-top: 10px;
  color: var(--tg-blue);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.goph-travel-article .tg-related-card__link:hover {
  text-decoration: underline;
}

/* ========================================================================== *
   6. Article CTAs + actions
   ========================================================================== */
.goph-travel-article .cta-button,
.goph-travel-article .travel-cta a,
.goph-travel-article .travel-guide-service-cta a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  color: #fff !important;
  background: var(--tg-navy);
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(11, 45, 98, 0.16);
  font-weight: 800;
  text-decoration: none !important;
}

.goph-travel-article .tg-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 22px 0;
  padding: 16px 0;
  border-top: 1px solid var(--tg-line);
  border-bottom: 1px solid var(--tg-line);
}

.goph-travel-article .tg-share button {
  min-height: 40px;
  padding: 8px 13px;
  color: var(--tg-navy);
  background: var(--tg-surface);
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  font-weight: 800;
  cursor: pointer;
}

.goph-travel-article .tg-share button:hover {
  background: #f1f5f9;
}

/* ========================================================================== *
   7. Verification / source block
   ========================================================================== */
.goph-travel-article .tg-verified-sources {
  padding: 1rem 1.2rem;
  background: var(--tg-surface);
  border: 1px solid var(--tg-line);
  border-radius: var(--tg-radius-card);
}

.goph-travel-article .tg-verified-sources h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.goph-travel-article .tg-verified-sources p,
.goph-travel-article .tg-verified-sources li {
  font-size: 0.85rem;
}

/* ========================================================================== *
   8. Sidebar cards / navigation
   ========================================================================== */
.goph-travel-article .tg-sidebar-card {
  overflow: hidden;
  background: var(--tg-surface);
  border: 1px solid var(--tg-line);
  border-radius: var(--tg-radius-card);
  box-shadow: 0 8px 24px rgba(15, 42, 78, 0.045);
}

.goph-travel-article .tg-sidebar-card__head {
  padding: 14px 15px;
  color: var(--tg-navy);
  border-bottom: 1px solid var(--tg-soft-line);
  font-family: "Plus Jakarta Sans", "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.goph-travel-article .tg-sidebar-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.goph-travel-article .tg-sidebar-list li + li {
  border-top: 1px solid #edf1f5;
}

.goph-travel-article .tg-sidebar-list a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  color: #334c6c;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.goph-travel-article .tg-sidebar-list a:hover {
  color: var(--tg-blue);
  background: #f7faff;
}

.goph-travel-article .tg-sidebar-num {
  display: grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  border-radius: 50%;
  color: #fff;
  background: var(--tg-navy);
  font-size: 10px;
}

.goph-travel-article .tg-explore {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding: 12px;
}

.goph-travel-article .tg-explore a {
  padding: 9px 8px;
  color: #24486f;
  border: 1px solid var(--tg-line);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.goph-travel-article .tg-explore a:hover {
  background: #f4f8fd;
}

.goph-travel-article .tg-service-links a {
  justify-content: space-between;
}

.goph-travel-article .tg-promo {
  padding: 14px;
  color: #41556f;
  font-size: 12px;
  line-height: 1.55;
}

.goph-travel-article .tg-promo strong {
  display: block;
  margin-bottom: 5px;
  color: var(--tg-navy);
  font-size: 14px;
}

.goph-travel-article .tg-promo a {
  display: inline-flex;
  margin-top: 9px;
  color: var(--tg-blue);
  font-weight: 800;
  text-decoration: none;
}

.goph-travel-article .tg-social {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
}

.goph-travel-article .tg-social a {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  color: var(--tg-navy);
  background: #eef5ff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
}

/* ========================================================================== *
   9. Service flow
   ========================================================================== */
.goph-travel-article .goph-service-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
  padding: 16px;
  background: var(--tg-surface);
  border: 1px solid var(--tg-line);
  border-radius: var(--tg-radius-card);
  box-shadow: 0 8px 24px rgba(15, 42, 78, 0.045);
}

.goph-travel-article .goph-service-step {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  background: #f8fbff;
  border: 1px solid #e0e9f2;
  border-radius: 10px;
}

.goph-travel-article .goph-service-step-icon {
  display: grid;
  place-items: center;
  grid-row: span 2;
  width: 28px;
  height: 28px;
  color: #fff;
  background: var(--tg-navy);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
}

.goph-travel-article .goph-service-step strong {
  color: var(--tg-navy);
  font-size: 12px;
  line-height: 1.3;
}

.goph-travel-article .goph-service-step span {
  color: var(--tg-muted);
  font-size: 11px;
  line-height: 1.35;
}

/* ========================================================================== *
   10. Shared article safety / accessibility rules
   ========================================================================== */
.goph-travel-article .goph-article img,
.goph-travel-article .goph-article video,
.goph-travel-article .goph-article iframe {
  max-width: 100%;
  height: auto;
}

.goph-travel-article .goph-article__content {
  min-width: 0;
}

.goph-travel-article .goph-article__content pre,
.goph-travel-article .goph-article__content table {
  max-width: 100%;
  overflow: auto;
}

.goph-travel-article .goph-article__content code {
  overflow-wrap: anywhere;
}

/* Historical article CTA navigation remains supported for the 129 legacy
   article variants that still emit .travel-back. */
.goph-travel-article .travel-back {
  margin: 1.5rem 0 0;
}

.goph-travel-article .travel-back a {
  color: var(--tg-navy);
  font-weight: 700;
  text-decoration: none;
}

.goph-travel-article .travel-back a:hover {
  text-decoration: underline;
}

/* ========================================================================== *
   11. Responsive layout
   ========================================================================== */
@media (max-width: 980px) {
  .goph-travel-article .tg-article-shell {
    grid-template-columns: 1fr;
  }

  .goph-travel-article .tg-article-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .goph-travel-article .tg-sidebar-card:first-child {
    grid-column: 1 / -1;
  }

  .goph-travel-article .goph-service-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .goph-travel-article .tg-article-shell {
    display: block;
  }

  .goph-travel-article .tg-article-header {
    margin-bottom: 12px;
  }

  .goph-travel-article .tg-breadcrumb {
    margin-bottom: 9px;
    font-size: 11px;
  }

  .goph-travel-article .tg-article-header h1 {
    font-size: clamp(1.8rem, 8vw, 2.45rem);
  }

  .goph-travel-article .tg-meta {
    gap: 5px 12px;
    font-size: 11px;
  }

  .goph-travel-article .goph-article {
    padding: 10px;
    border-radius: 14px;
    box-shadow: none;
  }

  .goph-travel-article .article-hero {
    margin-bottom: 14px;
    border-radius: 14px;
  }

  .goph-travel-article .article-hero figcaption {
    position: absolute;
    right: 10px;
    bottom: 10px;
    left: 10px;
    padding: 6px 8px;
    color: #fff;
    background: rgba(8, 25, 47, 0.82);
    border-radius: 8px;
    font-size: 10px;
  }

  .goph-travel-article .article-hero figcaption a {
    color: #fff;
  }

  .goph-travel-article .goph-article__content > section.quick-answer,
  .goph-travel-article .goph-article__content > section.faq,
  .goph-travel-article .goph-article__content > section.travel-guide-service-cta,
  .goph-travel-article .goph-article__content > section.travel-cta {
    border-radius: 12px;
  }

  .goph-travel-article .goph-article__content > section h2 {
    font-size: 1.18rem;
  }

  .goph-travel-article .tg-article-sidebar {
    display: block;
    margin-top: 20px;
  }

  .goph-travel-article .tg-sidebar-card {
    margin-top: 12px;
    box-shadow: none;
  }

  .goph-travel-article .tg-sidebar-card:first-child {
    display: block;
  }

  .goph-travel-article .tg-related__grid {
    grid-template-columns: 1fr;
  }

  .goph-travel-article .tg-share {
    margin: 18px 0;
    padding: 14px 0;
  }

  .goph-travel-article .goph-service-flow {
    grid-template-columns: 1fr;
    margin: 18px 0;
    padding: 12px;
  }
}


@media (prefers-reduced-motion: reduce) {
  .goph-travel-article * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

/* Article navigation back-link — Travel Guide article ownership. */
.goph-travel-article .tg-article-back {
  margin: 1rem 0 0;
}

.goph-travel-article .tg-article-back a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--tg-navy);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.goph-travel-article .tg-article-back a:hover {
  text-decoration: underline;
}
