/* ============================================================
   Diabetes Travel Helper - Shared Blog Stylesheet
   Edit this one file to update styles across all articles.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600&display=swap');

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

:root {
  --teal: #0d9488;
  --teal-light: #ccfbf1;
  --teal-dark: #0f766e;
  --text: #1c1917;
  --muted: #57534e;
  --border: #e7e5e4;
  --bg: #ffffff;
  --bg-subtle: #fafaf9;
  --callout-bg: #f0fdfa;
}

/* ── Base ── */
body {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
}
a { color: var(--teal-dark); }
a:hover { color: var(--teal); }

/* Body prose links — scoped so buttons/cards/nav are unaffected */
.article-wrap p a:not([class]),
.article-wrap li a:not([class]),
details p a:not([class]) {
  text-decoration: none;
  border-bottom: 1px solid rgba(13, 148, 136, 0.35);
}
.article-wrap p a:not([class]):hover,
.article-wrap li a:not([class]):hover,
details p a:not([class]):hover {
  border-bottom-color: var(--teal);
}

/* ── Nav ── */
.site-nav {
  background: var(--bg);
  border-bottom: 1px solid rgba(28, 26, 22, 0.08);
  padding: 16px 0;
}
.site-nav-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-nav-logo {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 18px;
  font-weight: 400;
  color: #1c1917;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.site-nav-logo span {
  color: #1C6459;
  font-style: italic;
}
.site-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: #6B6860;
  text-decoration: none;
  transition: color 150ms ease;
}
.site-nav-links a:hover,
.site-nav-links a.active { color: #1c1917; }
.site-nav-links a.active { color: #1C6459; }
.site-nav-tool-btn {
  padding: 8px 16px;
  background: #1C6459;
  color: #fff !important;
  border-radius: 8px;
  font-size: 13px !important;
  font-weight: 600 !important;
  transition: background 150ms ease !important;
}
.site-nav-tool-btn:hover {
  background: #0E3830 !important;
  color: #fff !important;
}
@media (max-width: 480px) {
  .site-nav-tool-btn { display: none; }
  .site-nav-links { gap: 16px; }
}

/* ── Layout ── */
.article-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ── Article Header ── */
.article-header { margin-bottom: 40px; }
.article-header .tag {
  display: inline-block;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
}
h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.article-header .intro {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 20px;
}
.article-meta {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  color: #a8a29e;
}
.divider {
  border: none;
  border-top: 2px solid var(--border);
  margin: 32px 0;
}

/* ── Body Typography ── */
h2 { font-size: 1.55rem; font-weight: 700; margin: 48px 0 20px; color: var(--text); padding-left: 14px; border-left: 3px solid var(--teal-light); }
h3 { font-size: 1.15rem; font-weight: 700; margin: 32px 0 10px; color: var(--text); }
p { margin-bottom: 20px; }
ul, ol { padding-left: 24px; margin-bottom: 20px; }
li { margin-bottom: 8px; }
strong { font-weight: 700; }

/* ── CTA Box ── */
.cta-box {
  background: var(--callout-bg);
  border: 1.5px solid #99f6e4;
  border-radius: 10px;
  padding: 24px 28px;
  margin: 36px 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.cta-box .cta-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--teal-dark);
}
.cta-box p {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 14px;
}
.cta-btn {
  display: inline-block;
  background: var(--teal);
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 6px;
  transition: background .15s;
}
.cta-btn:hover { background: var(--teal-dark); }

/* ── Tip Callout ── */
.tip {
  background: var(--bg-subtle);
  border-left: 4px solid var(--teal);
  padding: 16px 20px;
  margin: 28px 0;
  font-size: 0.95rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--muted);
  border-radius: 0 6px 6px 0;
}
.tip strong { color: var(--text); }

/* ── Warning Callout ── */
.warning {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  padding: 16px 20px;
  margin: 28px 0;
  font-size: 0.95rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #78350f;
  border-radius: 0 6px 6px 0;
}

/* ── Product Card ── */
.product-card {
  border: 1px solid var(--border);
  border-top: 3px solid var(--teal-light);
  border-radius: 10px;
  padding: 20px 22px;
  margin: 32px 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.05), 0 4px 12px rgba(0,0,0,.04);
  transition: transform .15s ease, box-shadow .15s ease;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,.08), 0 8px 24px rgba(0,0,0,.06);
}
.product-card .pc-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--teal-dark);
  margin-bottom: 6px;
}
.product-card .pc-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.product-card .pc-stars {
  color: #f59e0b;
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.product-card .pc-desc {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.6;
}
.product-card .pc-btn {
  display: inline-block;
  background: transparent;
  color: var(--teal-dark) !important;
  border: 1.5px solid var(--teal);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 9px 18px;
  border-radius: 6px;
  transition: background .15s, color .15s, border-color .15s;
}
.product-card .pc-btn:hover {
  background: var(--teal);
  color: #fff !important;
  border-color: var(--teal);
}
.product-card .pc-note {
  display: none;
}

/* ── Tables (TSA rules, comparison) ── */
.rules-table,
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.9rem;
}
.rules-table th,
.compare-table th {
  background: var(--teal);
  color: #fff;
  text-align: left;
  padding: 10px 14px;
  font-weight: 600;
}
.rules-table td,
.compare-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.5;
}
.rules-table tr:nth-child(even) td,
.compare-table tr:nth-child(even) td { background: var(--bg-subtle); }
.rules-table .yes { color: #059669; font-weight: 700; }
.rules-table .check { color: #d97706; font-weight: 700; }
.rules-table .no { color: #dc2626; font-weight: 700; }
.compare-table .pro { color: #059669; }
.compare-table .con { color: #dc2626; }

/* ── Checklist Box ── */
.checklist-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 26px;
  margin: 28px 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.92rem;
}
.checklist-box h3 { margin-top: 0; font-size: 1rem; margin-bottom: 12px; color: var(--teal-dark); }
.checklist-box ul { margin-bottom: 0; }
.checklist-box li { margin-bottom: 6px; }

/* ── FAQ Section ── */
.faq-section { margin-top: 56px; }
.faq-section h2 { margin-top: 0; border-left: none; padding-left: 0; }
details {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}
summary {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 0.97rem;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-subtle);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(45deg);
  flex-shrink: 0;
  margin-left: 12px;
  margin-bottom: 3px;
  transition: transform .2s ease;
}
details[open] summary::after {
  transform: rotate(-135deg);
  margin-bottom: -2px;
}
details p {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.95rem;
  padding: 0 20px 16px;
  color: var(--muted);
  margin: 0;
}

/* ── Related Articles (injected by blog-nav.js) ── */
.related { margin-top: 64px; padding-top: 32px; border-top: 2px solid var(--border); }
.related h2 { margin-top: 0; font-size: 1.2rem; font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; border-left: none; padding-left: 0; }
.related-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 22px;
  margin-top: 12px;
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  transition: border-color .15s, box-shadow .15s;
}
.related-card:hover { border-color: var(--teal); box-shadow: 0 2px 8px rgba(13,148,136,.1); }
.related-card .rc-title { font-weight: 600; font-size: 0.97rem; color: var(--text); margin-bottom: 4px; }
.related-card .rc-desc { font-size: 0.88rem; color: var(--muted); }

/* ── Article Footer ── */
.article-footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  color: #a8a29e;
}

/* ── Mobile ── */
@media (max-width: 480px) {
  body { font-size: 17px; }
  .article-wrap { padding: 32px 16px 60px; }
  .rules-table,
  .compare-table { font-size: 0.82rem; }
  h2 { font-size: 1.35rem; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .product-card,
  summary::after {
    transition: none;
  }
  .product-card:hover {
    transform: none;
  }
}
