/* ==========================================================================
   J Young Clinic - Article & Content Stylesheet (Medical Luxury & Conversion)
   Colors: Ivory (#FBF7F1), Wine (#3A232B), Rose (#EE3760), Blush (#F4E5E1)
   Strictly no emojis; optimized for typography, speed, and mobile UX.
   ========================================================================== */

:root {
  color-scheme: light;
  --brand: #EE3760;
  --brand-dark: #A91F40;
  --brand-light: rgba(238, 55, 96, 0.08);
  --ivory: #FBF7F1;
  --paper: #FFFDFC;
  --blush: #F4E5E1;
  --blush-soft: rgba(244, 229, 225, 0.5);
  --stone: #D8CEC7;
  --taupe: #B8AAA0;
  --wine: #3A232B;
  --wine-2: #4A2A34;
  --charcoal: #292527;
  --muted: #6E6466;
  --gold: #B59A6A;
  --line: rgba(58, 35, 43, 0.12);
  --line-strong: rgba(58, 35, 43, 0.22);
  --shadow-sm: 0 4px 14px rgba(58, 35, 43, 0.04);
  --shadow-md: 0 12px 36px rgba(58, 35, 43, 0.07);
  --shadow-cta: 0 8px 24px rgba(238, 55, 96, 0.28);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --sans: "Prompt", "Sarabun", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Noto Sans Thai", Tahoma, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--charcoal);
  background-color: var(--ivory);
  font-family: var(--sans);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a {
  color: var(--wine);
  text-underline-offset: 0.18em;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--brand);
}

a:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: #FFFFFF;
  background: var(--wine);
  border-radius: 999px;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ==========================================================================
   Master Layout Container (.shell)
   ========================================================================== */
.shell {
  width: min(calc(100% - 40px), 1200px);
  margin-inline: auto;
}

.content {
  width: min(100% - 2.5rem, 74rem);
  margin-inline: auto;
}

/* ==========================================================================
   Master Site Header (Frosted Glass & Responsive Menu Drawer)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 248, 250, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid #e2e6ea;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  transition: background-color 250ms ease, box-shadow 250ms ease;
}

.header-inner {
  min-height: 68px;
  padding: 8px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

/* Clinic Brand Logo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  min-width: max-content;
}

.brand img.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 0;
  flex-shrink: 0;
  box-shadow: none;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong {
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #1e293b;
  white-space: nowrap;
}

.brand-copy small {
  font-size: 0.65625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #c9214b;
  text-transform: uppercase;
  margin-top: 3px;
  white-space: nowrap;
}

/* Desktop Navigation - Architectural Grey Capsule */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  background: #eef1f4;
  padding: 3px 5px;
  border-radius: 9999px;
  border: 1px solid #dfe3e8;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
  flex-shrink: 1;
}

.desktop-nav a {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: #4b5563;
  padding: 6px 11px;
  border-radius: 9999px;
  transition: all 150ms ease;
  text-decoration: none;
  white-space: nowrap;
}

.desktop-nav a:hover {
  color: #111827;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.desktop-nav a:focus-visible {
  outline: 2px solid #ee3760;
  outline-offset: 2px;
}

/* Header Fast Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-tel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.84375rem;
  font-weight: 600;
  color: #4b5563;
  background: #eef1f4;
  border: 1px solid #dfe3e8;
  padding: 7px 14px;
  border-radius: 9999px;
  transition: all 150ms ease;
  text-decoration: none;
}

.header-tel:hover {
  background: #ffffff;
  color: #c9214b;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.header-tel svg {
  width: 15px;
  height: 15px;
  color: #ee3760;
}

.header-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ee3760;
  color: #ffffff !important;
  font-size: 0.84375rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(238, 55, 96, 0.25);
  transition: all 150ms ease;
  white-space: nowrap;
}

.header-cta-btn:hover {
  background: #d6254f;
  transform: translateY(-1px);
}

.header-cta-btn svg {
  width: 16px;
  height: 16px;
}

/* Mobile Hamburger & Drawer (Pure CSS, 100% Offline Compatible) */
.nav-toggle-input {
  display: none;
}

.nav-toggle-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #1e293b;
  transition: all 150ms ease;
  user-select: none;
}

.nav-toggle-btn svg {
  width: 20px;
  height: 20px;
}

.nav-toggle-btn .icon-close {
  display: none;
}

.nav-toggle-input:checked ~ .nav-toggle-btn {
  background: #fff2f5;
  border-color: #ee3760;
  color: #ee3760;
}

.nav-toggle-input:checked ~ .nav-toggle-btn .icon-menu {
  display: none;
}

.nav-toggle-input:checked ~ .nav-toggle-btn .icon-close {
  display: block;
}

.mobile-drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(250, 248, 246, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(238, 55, 96, 0.15);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  padding: 20px 24px 28px;
  flex-direction: column;
  gap: 12px;
  z-index: 99;
}

.nav-toggle-input:checked ~ .mobile-drawer {
  display: flex;
}

.mobile-drawer a.mobile-nav-link {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  padding: 10px 14px;
  border-radius: 10px;
  transition: all 150ms ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
}

.mobile-drawer a.mobile-nav-link:hover,
.mobile-drawer a.mobile-nav-link:focus {
  background: #fff2f5;
  color: #ee3760;
}

.mobile-drawer-footer {
  padding-top: 16px;
  margin-top: 8px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-drawer-footer .btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #22262d;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}

/* Legacy .site-nav compatibility if any */
.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.site-nav a {
  font-size: 0.96rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--charcoal);
  padding: 0.4rem 0.2rem;
}

.site-nav a:hover {
  color: var(--brand);
}

.site-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--brand);
  color: #FFFFFF !important;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(238, 55, 96, 0.25);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.site-nav .nav-cta:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

/* ==========================================================================
   Article Container & Typography
   ========================================================================== */

main {
  min-height: 65vh;
}

.content {
  padding-block: clamp(2rem, 4vw, 3.75rem);
}

.article {
  max-width: 52rem;
  margin-inline: auto;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--brand);
}

.breadcrumb span {
  color: var(--wine);
}

h1, h2, h3, h4 {
  color: var(--wine);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 750;
  color: var(--wine);
}

h2 {
  margin-top: 2.75rem;
  margin-bottom: 1rem;
  font-size: clamp(1.3rem, 3vw, 1.65rem);
  font-weight: 700;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.5rem;
}

h3 {
  margin-top: 1.85rem;
  margin-bottom: 0.75rem;
  font-size: 1.18rem;
  font-weight: 650;
  color: var(--wine-2);
}

p {
  margin-block: 1rem;
  color: var(--charcoal);
}

.article-lead {
  font-size: 1.15rem;
  line-height: 1.85;
  color: var(--wine-2);
  margin-bottom: 1.5rem;
}

.section-divider {
  border: 0;
  height: 1px;
  background: var(--line);
  margin-block: 2.5rem;
}

/* ==========================================================================
   Article Meta Box (Institutional E-E-A-T)
   ========================================================================== */

.article-meta-box {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  background: var(--blush-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.75rem;
  font-size: 0.92rem;
  color: var(--wine);
}

.meta-item strong {
  color: var(--wine);
  font-weight: 700;
}

/* ==========================================================================
   Emergency First Aid Box
   ========================================================================== */

.emergency-box {
  background: #FFF9F6;
  border: 1px solid #EACBC0;
  border-left: 5px solid var(--brand);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.65rem;
  margin: 1.75rem 0 2rem;
  box-shadow: var(--shadow-sm);
}

.emergency-title {
  margin: 0 0 0.85rem;
  color: var(--brand-dark);
  font-size: 1.08rem;
}

.emergency-box ol {
  margin: 0 0 0.85rem;
  padding-left: 1.35rem;
}

.emergency-box li {
  margin-bottom: 0.55rem;
  line-height: 1.65;
}

.emergency-box li strong {
  color: var(--wine);
}

.emergency-note {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  border-top: 1px solid #F0D9D0;
  padding-top: 0.65rem;
}

/* ==========================================================================
   Figures & Images
   ========================================================================== */

.article-figure {
  margin: 1.75rem 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--ivory);
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.article-figure figcaption {
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  color: var(--muted);
  background: var(--paper);
  border-top: 1px solid var(--line);
  text-align: center;
}

/* ==========================================================================
   Comparison Table (Responsive & Horizontal Scroll on Mobile)
   ========================================================================== */

.table-swipe-hint {
  display: none;
  font-size: 0.84rem;
  color: var(--muted);
  text-align: right;
  margin: 0 0 0.4rem;
}

.table-responsive {
  overflow-x: auto;
  margin: 1rem 0 2rem;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-strong);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.comparison-table {
  width: 100%;
  min-width: 580px; /* Crucial: Prevents table from collapsing into narrow single-letter columns! */
  border-collapse: collapse;
  text-align: left;
  font-size: 0.96rem;
  line-height: 1.6;
}

.comparison-table thead th {
  background: var(--wine);
  color: #FFFFFF;
  padding: 1rem 1.25rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.comparison-table thead th:first-child {
  width: 25%;
}

.comparison-table thead th:last-child {
  background: var(--wine-2);
}

.comparison-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  word-break: normal;
}

.comparison-table tbody tr:nth-child(even) {
  background: rgba(244, 229, 225, 0.28);
}

.comparison-table tbody tr:hover {
  background: rgba(244, 229, 225, 0.55);
}

.comparison-table td strong {
  color: var(--wine);
}

/* ==========================================================================
   Callout & Routine Cards
   ========================================================================== */

.callout-box {
  background: var(--blush-soft);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 1.35rem 1.6rem;
  margin: 1.85rem 0;
}

.callout-box h3 {
  margin-top: 0;
  color: var(--brand-dark);
}

.callout-box ul {
  margin: 0;
  padding-left: 1.35rem;
}

.callout-box li {
  margin-bottom: 0.45rem;
}

.step-list {
  padding-left: 1.35rem;
  margin: 1.25rem 0;
}

.step-list li {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.step-list strong {
  color: var(--wine);
}

/* Routine Steps Container & Cards (Tonight's Routine) */
.routine-grid {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin: 1.5rem 0 2rem;
}

.routine-card {
  background: rgba(251, 247, 241, 0.85);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.routine-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(58, 35, 43, 0.08);
}

.routine-badge {
  display: inline-block;
  background: var(--wine);
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 650;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 0.65rem;
}

.routine-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: var(--wine);
}

.routine-card p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.68;
  color: var(--charcoal);
}

.routine-card-warning {
  background: #FFF5F2;
  border-color: rgba(238, 55, 96, 0.35);
  border-left: 4px solid var(--brand);
}

.routine-badge-warning {
  background: var(--brand-dark);
}

/* ==========================================================================
   Soft Consultative CTA Cards (Conversion Core)
   ========================================================================== */

.soft-consult-card {
  background: linear-gradient(155deg, #FFFDFC 0%, #FFF5F2 100%);
  border: 1px solid rgba(238, 55, 96, 0.24);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 4.5vw, 2.5rem);
  margin: 2.75rem 0;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.consult-card-highlight {
  border-color: rgba(181, 154, 106, 0.4);
  background: linear-gradient(155deg, #FFFDFC 0%, #FAF5EE 100%);
}

.consult-badge {
  display: inline-block;
  background: rgba(238, 55, 96, 0.1);
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  border: 1px solid rgba(238, 55, 96, 0.15);
}

.consult-card-highlight .consult-badge {
  background: rgba(181, 154, 106, 0.15);
  color: #7A5B28;
  border-color: rgba(181, 154, 106, 0.3);
}

.soft-consult-card h3 {
  margin: 0 0 0.85rem;
  color: var(--wine);
  font-size: clamp(1.22rem, 2.6vw, 1.55rem);
  font-weight: 750;
  line-height: 1.4;
}

.soft-consult-card p {
  color: var(--charcoal);
  max-width: 40rem;
  margin: 0 auto 1.5rem;
  font-size: 1rem;
  line-height: 1.7;
}

.consult-actions {
  margin: 1.5rem 0 1.25rem;
}

.button-consult {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #FFFFFF !important;
  font-size: 1.05rem;
  font-weight: 650;
  padding: 0.95rem 2.25rem;
  border-radius: 999px;
  text-decoration: none;
  min-height: 52px;
  box-shadow: var(--shadow-cta);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.button-consult:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(238, 55, 96, 0.36);
}

.consult-assurance {
  margin-top: 1.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(58, 35, 43, 0.1);
  text-align: left;
  font-size: 0.9rem;
  color: var(--muted);
}

.consult-assurance p {
  margin: 0 0 0.5rem;
  color: var(--wine);
  font-size: 0.92rem;
}

.consult-assurance ul {
  margin: 0;
  padding-left: 1.25rem;
}

.consult-assurance li {
  margin-bottom: 0.35rem;
  line-height: 1.6;
}

.consult-note {
  margin-top: 1.25rem !important;
  font-size: 0.86rem !important;
  color: var(--muted) !important;
  line-height: 1.55 !important;
}

/* ==========================================================================
   Article References (E-E-A-T Academic Footer)
   ========================================================================== */

.article-references {
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px dashed var(--line-strong);
  font-size: 0.9rem;
  color: var(--muted);
}

.article-references h4 {
  margin: 0 0 0.65rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--wine);
}

.article-references ul {
  margin: 0;
  padding-left: 1.35rem;
}

.article-references li {
  margin-bottom: 0.35rem;
}

/* ==========================================================================
   Responsive & Mobile Ergonomics (Refined Studio Standard)
   ========================================================================== */

@media (max-width: 991px) {
  .desktop-nav {
    display: none !important;
  }

  .header-actions .header-tel {
    display: none !important;
  }

  .nav-toggle-btn {
    display: flex !important;
  }
}

@media (max-width: 48rem) {
  .shell {
    width: min(calc(100% - 28px), 1200px);
  }

  .header-inner {
    padding-block: 0.5rem;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  /* Keep mobile header clean */
  .site-nav a:not(.nav-cta) {
    display: none;
  }

  .site-nav {
    gap: 0;
  }

  .site-nav .nav-cta {
    padding: 0.48rem 1.05rem;
    font-size: 0.86rem;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
  }

  .brand-copy strong {
    font-size: 0.95rem;
  }

  .brand-copy small {
    font-size: 0.6rem;
  }

  .header-cta-btn {
    padding: 6px 12px;
    font-size: 0.78rem;
  }

  .header-cta-btn svg {
    width: 14px;
    height: 14px;
  }

  .nav-toggle-btn {
    width: 38px;
    height: 38px;
  }

  .article {
    padding: 1.35rem 1.15rem;
    border-radius: var(--radius-md);
  }

  .article-lead {
    font-size: 1.05rem;
  }

  .table-swipe-hint {
    display: block;
  }

  .button-consult {
    width: 100%;
    padding: 0.95rem 1.25rem;
    font-size: 0.98rem;
  }

  .emergency-box {
    padding: 1.15rem 1.25rem;
  }

  .routine-card {
    padding: 1.15rem 1.25rem;
  }
}

@media (max-width: 30rem) {
  .header-inner {
    padding-inline: 0.25rem;
    gap: 0.4rem;
  }

  .header-cta-btn {
    padding: 5px 9px;
    font-size: 0.72rem;
  }

  .header-cta-btn .header-cta-text {
    font-size: 0.72rem;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
  }

  .brand-copy strong {
    font-size: 0.88rem;
  }

  .brand-copy small {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ==========================================================================
   Master Executive Global Clinic Footer (SSOT)
   ========================================================================== */
.site-footer {
  background: #262626 !important;
  color: #f1f5f9 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
  padding: 72px 0 36px;
  position: relative;
}

.site-footer .footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer .footer-brand-col .brand {
  margin-bottom: 16px;
}

.site-footer .footer-brand-col .brand img.brand-logo {
  width: 60px;
  height: 60px;
}

.site-footer .footer-brand-col .brand-copy strong,
.site-footer .footer-brand-title {
  color: #ffffff !important;
}

.site-footer .footer-brand-col .brand-copy small,
.site-footer .footer-brand-sub {
  color: #ffd6e0 !important;
}

.site-footer .footer-brand-col p,
.site-footer .footer-brand-col div,
.site-footer p {
  color: #e2e8f0 !important;
  line-height: 1.68;
}

.site-footer .footer-brand-col p {
  margin: 16px 0 24px;
  font-size: 0.9375rem;
  max-width: 320px;
}

.site-footer .footer-col h4 {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffffff !important;
  margin-top: 0;
  margin-bottom: 20px;
}

.site-footer .footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer .footer-col ul li a,
.site-footer .footer-col a {
  color: #f1f5f9 !important;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 150ms ease;
}

.site-footer .footer-col a:hover {
  color: #ffffff !important;
  text-decoration: underline;
}

.site-footer .footer-branch-info {
  font-size: 0.875rem;
  line-height: 1.65;
  color: #e2e8f0 !important;
  margin-bottom: 12px;
}

.site-footer .footer-branch-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.site-footer .footer-branch-links a {
  color: #ffffff !important;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
  transition: all 150ms ease;
}

.site-footer .footer-branch-links a:hover {
  background: #ee3760 !important;
  border-color: #ee3760 !important;
  color: #ffffff !important;
}

.site-footer .footer-bottom {
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.84rem;
  color: #cbd5e1 !important;
}

.site-footer .footer-bottom p {
  color: #cbd5e1 !important;
  font-size: 0.84rem !important;
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 991px) {
  .site-footer .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 600px) {
  .site-footer {
    padding: 44px 0 36px;
  }

  .site-footer .footer-top {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .site-footer .footer-brand-col p {
    max-width: 100%;
  }
}

/* ==========================================================================
   Legacy article components
   Older pages use these class names without their own styles. Design taken
   from the original LINE CTA card (/ติดอันดับ-คลินิกความงาม/). :where() keeps
   specificity at one class so a page's own <style> still wins.
   ========================================================================== */

:where(.article) .lead-text {
  font-size: 1.15rem;
  line-height: 1.85;
  color: var(--wine-2);
  margin-bottom: 1.5rem;
}

:where(.article) .line-cta-card {
  background: linear-gradient(135deg, #FFFDFB 0%, #FBF7F1 100%);
  border: 1px solid rgba(181, 154, 106, 0.45);
  border-left: 5px solid var(--brand);
  border-radius: var(--radius-md);
  padding: 1.85rem 2rem;
  margin: 2.25rem 0;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

:where(.article) .line-cta-card h3 {
  margin: 0 0 0.6rem 0;
  font-size: 1.28rem;
  color: var(--wine);
  font-weight: 700;
}

:where(.article) .line-cta-card p {
  margin: 0 auto 1.25rem;
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--charcoal);
  max-width: 42rem;
}

:where(.article) .cta-actions {
  display: flex;
  justify-content: center;
  margin-bottom: 0.85rem;
}

:where(.article) .btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #06C755;
  color: #FFFFFF !important;
  font-size: 1rem;
  font-weight: 650;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(6, 199, 85, 0.35);
  transition: all 0.22s ease;
}

:where(.article) .btn-line:hover {
  background: #05b34c;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 199, 85, 0.45);
}

:where(.article) .cta-guarantee {
  margin: 0 !important;
  font-size: 0.82rem !important;
  color: var(--muted) !important;
  line-height: 1.5;
}

:where(.article) .references-section {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

:where(.article) .references-section h3,
:where(.article) .references-heading {
  font-size: 1rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

:where(.article) .citation-list {
  margin: 0;
  padding-left: 1.35rem;
  font-size: 0.9rem;
  color: var(--muted);
}

:where(.article) .citation-list li {
  margin-bottom: 0.35rem;
}

:where(.article) .article-image {
  margin: 1.75rem 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--ivory);
}

:where(.article) .article-image img {
  display: block;
  width: 100%;
  height: auto;
}

:where(.article) .article-image figcaption {
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  color: var(--muted);
  background: var(--paper);
  border-top: 1px solid var(--line);
  text-align: center;
}

:where(.article) .depth-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.35rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 16px rgba(58, 35, 43, 0.04);
}

:where(.article) .depth-card h4 {
  margin: 0 0 0.4rem;
  color: var(--wine);
}

:where(.article) .depth-card p:last-child {
  margin-bottom: 0;
}

@media (max-width: 600px) {
  :where(.article) .lead-text {
    font-size: 1.05rem;
  }

  :where(.article) .line-cta-card {
    padding: 1.5rem 1.15rem;
  }

  :where(.article) .btn-line {
    width: 100%;
    padding: 0.85rem 1.25rem;
  }
}
