/* MedGuide USA — hand-built stylesheet (no framework) */
:root {
  --slate-50: #f8fafc; --slate-100: #f1f5f9; --slate-200: #e2e8f0;
  --slate-300: #cbd5e1; --slate-400: #94a3b8; --slate-500: #64748b;
  --slate-600: #475569; --slate-700: #334155; --slate-900: #0f172a;
  --brand-50: #f0fdfa; --brand-100: #ccfbf1; --brand-200: #99f6e4;
  --brand-300: #5eead4; --brand-500: #14b8a6; --brand-600: #0d9488;
  --brand-700: #0f766e; --brand-800: #115e59; --brand-900: #134e4a;
  --amber-50: #fffbeb; --amber-200: #fde68a; --amber-500: #f59e0b;
  --amber-600: #d97706; --amber-900: #78350f;
  --red-50: #fef2f2; --red-200: #fecaca; --red-400: #f87171;
  --red-900: #7f1d1d; --red-950: #450a0a;
  --maxw: 72rem; --prose: 48rem;
  --radius: 1rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #fff; color: var(--slate-600);
  -webkit-font-smoothing: antialiased; line-height: 1.65;
}
h1, h2, h3 { color: var(--slate-900); line-height: 1.25; }
a { color: inherit; }
::selection { background: var(--brand-100); color: var(--brand-900); }
:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; border-radius: 4px; }

.container { max-width: var(--maxw); margin: 0 auto; padding-left: 1rem; padding-right: 1rem; }
.prose { max-width: var(--prose); margin: 0 auto; padding: 2.5rem 1rem 4rem; }
.section { margin-top: 3rem; }
.section h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 1rem; }
.section p { margin: 0 0 1rem; }

.icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; vertical-align: -0.2em; }
.icon-sm { width: 1rem; height: 1rem; }
.icon-md { width: 1.35rem; height: 1.35rem; }
.icon-lg { width: 1.75rem; height: 1.75rem; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 60;
  background: var(--brand-600); color: #fff; padding: 0.5rem 1rem; border-radius: 0.5rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--slate-200);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; flex-wrap: wrap; padding-top: 0.4rem; padding-bottom: 0.4rem; }
.logo { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 1.125rem; font-weight: 800; letter-spacing: -0.02em; color: var(--slate-900); text-decoration: none; }
.logo-mark { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; background: var(--brand-600); color: #fff; border-radius: 0.55rem; }
.logo .accent { color: var(--brand-600); }
.nav-list { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; list-style: none; margin: 0; padding: 0; font-size: 0.875rem; font-weight: 500; color: var(--slate-600); }
.nav-list a { text-decoration: none; transition: color 0.15s; }
.nav-list a:hover { color: var(--brand-700); }

/* Hero */
.hero { background: linear-gradient(to bottom, var(--brand-50), #fff); border-bottom: 1px solid var(--slate-200); padding: 4rem 0 4.5rem; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  border: 1px solid var(--brand-200); background: #fff; color: var(--brand-800);
  border-radius: 9999px; padding: 0.35rem 1rem; font-size: 0.875rem; font-weight: 500; margin: 0;
}
.hero h1 { max-width: 48rem; margin: 1.5rem auto 0; font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; letter-spacing: -0.03em; }
.hero-sub { max-width: 42rem; margin: 1.25rem auto 0; font-size: 1.125rem; color: var(--slate-600); }
.hero-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.5rem; list-style: none; margin: 2rem auto 0; padding: 0; max-width: 42rem; font-size: 0.875rem; color: var(--slate-500); }
.hero-chips .icon { color: var(--brand-600); margin-right: 0.25rem; }

/* Search */
.search { position: relative; max-width: 36rem; margin: 2rem auto 0; }
.search-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--slate-400); pointer-events: none; display: inline-flex; }
#guide-search {
  width: 100%; height: 3.5rem; border-radius: 9999px;
  border: 1px solid var(--slate-300); background: #fff;
  padding: 0 1.25rem 0 3rem; font-size: 1rem; color: var(--slate-900);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
#guide-search::placeholder { color: var(--slate-400); }
#guide-search:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 4px var(--brand-100); }
.search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 0.5rem); z-index: 30;
  background: #fff; border: 1px solid var(--slate-200); border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12); overflow: hidden; text-align: left;
}
.search-item { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.75rem 1.25rem; text-decoration: none; transition: background 0.15s; }
.search-item:hover { background: var(--brand-50); }
.search-item + .search-item { border-top: 1px solid var(--slate-100); }
.search-item-name { display: block; font-weight: 600; color: var(--slate-900); }
.search-item-sub { display: block; font-size: 0.875rem; color: var(--slate-500); }
.search-item-arrow { color: var(--brand-600); font-weight: 700; }
.search-empty { margin: 0; padding: 0.85rem 1.25rem; font-size: 0.875rem; color: var(--slate-500); }

/* Notice strip */
.notice-strip { border-bottom: 1px solid var(--slate-200); background: #fff; }
.notice-inner { display: flex; gap: 0.75rem; align-items: flex-start; padding-top: 1.25rem; padding-bottom: 1.25rem; font-size: 0.875rem; }
.notice-inner p { margin: 0; }
.notice-inner strong { color: var(--slate-900); }
.notice-icon { color: var(--amber-500); margin-top: 0.15rem; }

/* Guides grid */
.guides-section { background: rgba(248, 250, 252, 0.6); padding: 4rem 0; }
.guides-section > .container > h2 { font-size: 1.875rem; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.section-sub { max-width: 42rem; margin: 0.75rem 0 0; }
.category { margin-top: 3rem; scroll-margin-top: 6rem; }
.category-head { display: flex; gap: 0.75rem; align-items: flex-start; }
.category-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: 0.55rem; background: rgba(13, 148, 136, 0.1); color: var(--brand-700); margin-top: 0.15rem; }
.category-head h3 { margin: 0; font-size: 1.25rem; font-weight: 800; }
.category-head p { margin: 0.25rem 0 0; font-size: 0.875rem; max-width: 48rem; }
.card-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; list-style: none; margin: 1.5rem 0 0; padding: 0; }
.card {
  display: flex; flex-direction: column; height: 100%;
  background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius);
  padding: 1.5rem; text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.card:hover { border-color: var(--brand-300); box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08); }
.card-head { display: flex; align-items: center; gap: 0.75rem; }
.card-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: 0.75rem; background: var(--brand-50); color: var(--brand-700); }
.card-title { margin: 0; font-size: 1rem; font-weight: 700; }
.card:hover .card-title { color: var(--brand-700); }
.card-sub { margin: 0.1rem 0 0; font-size: 0.875rem; color: var(--slate-500); }
.card-text { flex: 1; margin: 1rem 0 0; font-size: 0.875rem; }
.card-link { display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 1rem; font-size: 0.875rem; font-weight: 600; color: var(--brand-700); }
.card:hover .card-link .icon { transform: translateX(2px); }
.card-link .icon { transition: transform 0.15s; }

/* Trust band */
.trust-section { background: #fff; border-top: 1px solid var(--slate-200); padding: 4rem 0; }
.trust-heading { text-align: center; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.trust-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; list-style: none; margin: 2.5rem 0 0; padding: 0; }
.trust-card { background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 1.5rem; }
.trust-card h3 { margin: 1rem 0 0; font-size: 1rem; font-weight: 700; }
.trust-card p { margin: 0.5rem 0 0; font-size: 0.875rem; }
.trust-icon { color: var(--brand-600); }

/* Breadcrumbs */
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; list-style: none; margin: 0; padding: 0; font-size: 0.875rem; color: var(--slate-500); }
.breadcrumbs li { display: flex; align-items: center; gap: 0.4rem; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand-700); }
.crumb-sep { color: var(--slate-300); display: inline-flex; }
.crumb-current { font-weight: 500; color: var(--slate-700); }

/* Guide page */
.eyebrow { margin: 0; font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--brand-700); }
.guide-header { margin-top: 2rem; }
.guide-header h1 { margin: 0.5rem 0 0; font-size: clamp(1.75rem, 3.5vw, 2.25rem); font-weight: 800; letter-spacing: -0.03em; }
.author-badge {
  display: inline-flex; align-items: center; gap: 0.75rem; margin-top: 1.5rem;
  border: 1px solid var(--slate-200); background: #fff; border-radius: 9999px;
  padding: 0.5rem 1rem; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
.author-badge-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 9999px; background: var(--brand-50); color: var(--brand-700); }
.author-badge-title { margin: 0; font-size: 0.875rem; font-weight: 700; color: var(--slate-900); }
.author-badge-sub { margin: 0.1rem 0 0; font-size: 0.8rem; color: var(--slate-500); }

.fact-box { margin-top: 2rem; border: 1px solid var(--brand-200); background: rgba(240, 253, 250, 0.6); border-radius: var(--radius); padding: 1.5rem; }
.fact-box h2 { display: flex; align-items: center; gap: 0.5rem; margin: 0; font-size: 1.125rem; font-weight: 800; color: var(--brand-900); }
.fact-grid { display: grid; gap: 1rem 1.5rem; grid-template-columns: 1fr; margin: 1rem 0 0; }
.fact-grid dt { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--brand-700); }
.fact-grid dd { margin: 0.15rem 0 0; font-size: 0.875rem; font-weight: 500; color: var(--slate-900); }

.steps { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.steps li { display: flex; gap: 1rem; margin-bottom: 1rem; }
.steps p { margin: 0.15rem 0 0; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 2rem; height: 2rem; border-radius: 9999px;
  background: var(--brand-600); color: #fff; font-size: 0.875rem; font-weight: 700;
}

.callout-red { margin-top: 3rem; border: 1px solid var(--red-200); background: var(--red-50); border-radius: var(--radius); padding: 1.5rem; }
.callout-red h2 { display: flex; align-items: center; gap: 0.5rem; margin: 0; font-size: 1.25rem; font-weight: 800; color: var(--red-900); }
.callout-red ul { margin: 1rem 0 0; padding-left: 1.5rem; font-size: 0.9rem; color: var(--red-950); }
.callout-red li { margin-bottom: 0.65rem; }
.callout-red li::marker { color: var(--red-400); }

.faq-box { border: 1px solid var(--slate-200); border-radius: var(--radius); background: #fff; overflow: hidden; margin-top: 1.5rem; }
.faq-box details + details { border-top: 1px solid var(--slate-200); }
.faq-box summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.5rem; cursor: pointer; list-style: none;
}
.faq-box summary::-webkit-details-marker { display: none; }
.faq-box summary h3 { margin: 0; font-size: 1rem; font-weight: 600; }
.faq-box summary:hover h3 { color: var(--brand-700); }
.chev { color: var(--slate-400); transition: transform 0.2s; }
.faq-box details[open] .chev { transform: rotate(180deg); }
.faq-answer { margin: 0; padding: 0 1.5rem 1.1rem; }

.disclaimer-box { margin-top: 3rem; border: 1px solid var(--slate-300); background: var(--slate-100); border-radius: var(--radius); padding: 1.5rem; }
.disclaimer-box h2 { display: flex; align-items: center; gap: 0.5rem; margin: 0; font-size: 1.125rem; font-weight: 800; }
.disclaimer-box h2 .icon { color: var(--brand-700); }
.disclaimer-box p { margin: 0.75rem 0 0; font-size: 0.875rem; }

.related-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.related-list li + li { margin-top: 0.75rem; }
.related-item {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  border: 1px solid var(--slate-200); background: #fff; border-radius: 0.75rem;
  padding: 1rem 1.25rem; text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.related-item:hover { border-color: var(--brand-300); box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06); }
.related-name { display: block; font-weight: 600; color: var(--slate-900); }
.related-item:hover .related-name { color: var(--brand-700); }
.related-sub { display: block; font-size: 0.875rem; color: var(--slate-500); }
.related-arrow { color: var(--brand-600); }

/* Static pages */
.page-title { margin: 2rem 0 0; font-size: clamp(1.75rem, 3.5vw, 2.25rem); font-weight: 800; letter-spacing: -0.03em; }
.lede { font-size: 1.125rem; color: var(--slate-600); margin: 1.25rem 0 0; }
.pillar-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; list-style: none; margin: 2.5rem 0 0; padding: 0; }
.pillar-card { background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 1.5rem; }
.pillar-card h2 { margin: 1rem 0 0; font-size: 1.05rem; font-weight: 700; }
.pillar-card p { margin: 0.5rem 0 0; font-size: 0.875rem; }
.notice-box { display: flex; gap: 0.75rem; align-items: flex-start; margin-top: 1.5rem; border: 1px solid var(--amber-200); background: var(--amber-50); border-radius: var(--radius); padding: 1.25rem; font-size: 0.875rem; color: var(--amber-900); }
.notice-box p { margin: 0; }
.notice-box p + p { margin-top: 0.5rem; }
.notice-box .notice-icon { color: var(--amber-600); }
.contact-list { list-style: none; margin: 2.5rem 0 0; padding: 0; }
.contact-card { border: 1px solid var(--slate-200); border-radius: var(--radius); background: #fff; padding: 1.5rem; }
.contact-card + .contact-card { margin-top: 1.25rem; }
.contact-head { display: flex; align-items: center; gap: 0.75rem; }
.contact-head h2 { margin: 0; font-size: 1.05rem; font-weight: 700; }
.contact-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 0.75rem; background: var(--brand-50); color: var(--brand-700); }
.contact-card p { margin: 0.75rem 0 0; font-size: 0.875rem; }
.contact-mail { display: inline-block; margin-top: 0.75rem; font-size: 0.875rem; font-weight: 700; color: var(--brand-700); text-decoration: none; }
.contact-mail:hover { color: var(--brand-800); text-decoration: underline; }

/* 404 */
.not-found { text-align: center; padding-top: 6rem; padding-bottom: 6rem; }
.not-found .page-title { margin-top: 0.75rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 2rem;
  background: var(--brand-600); color: #fff; font-size: 0.875rem; font-weight: 700;
  border-radius: 9999px; padding: 0.75rem 1.5rem; text-decoration: none; transition: background 0.15s;
}
.btn:hover { background: var(--brand-700); }

/* Footer */
.site-footer { border-top: 1px solid var(--slate-200); background: var(--slate-50); margin-top: 0; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; padding-top: 3rem; }
.footer-blurb { margin: 1rem 0 0; font-size: 0.875rem; }
.footer-heading { margin: 0; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--slate-900); }
.footer-list { list-style: none; margin: 1rem 0 0; padding: 0; font-size: 0.875rem; }
.footer-list li { margin-bottom: 0.5rem; }
.footer-list a { text-decoration: none; color: var(--slate-600); transition: color 0.15s; }
.footer-list a:hover { color: var(--brand-700); }
.footer-notice {
  display: flex; gap: 0.75rem; align-items: flex-start; margin-top: 2.5rem;
  border: 1px solid var(--amber-200); background: var(--amber-50);
  border-radius: 0.5rem; padding: 1rem; font-size: 0.875rem; color: var(--amber-900);
}
.footer-notice .icon { color: var(--amber-600); margin-top: 0.1rem; }
.footer-notice p { margin: 0; }
.footer-bottom { border-top: 1px solid var(--slate-200); margin-top: 2rem; padding: 1.5rem 0; font-size: 0.875rem; color: var(--slate-500); }
.footer-bottom p { margin: 0; }

/* Responsive */
@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .fact-grid { grid-template-columns: repeat(2, 1fr); }
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
}
