*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --teal: #02607E;
  --teal-dark: #024D64;
  --max-w: 1280px;
}
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.6; color: #333; background: #e9ecef; }
body.nav-open { overflow: hidden; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.page-wrap { max-width: 1280px; margin: 0 auto; background: #fff; box-shadow: 0 0 20px rgba(0,0,0,0.08); border-radius: 10px; overflow: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Topbar */
.topbar-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.footer-inner { max-width: 1280px; margin: 0 auto; }
.nav-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; width: 100%; }
.topbar { background: var(--teal-dark); padding: 8px 20px; }
.topbar-logo img { max-width: 200px; display: block; }
.topbar-social { display: flex; gap: 12px; align-items: center; }
.topbar-social a { display: inline-flex; align-items: center; }
.topbar-social svg { width: 20px; height: 20px; fill: #fff; }
.topbar-social svg:hover { opacity: 0.8; }

/* Navbar */
.navbar { background: var(--teal); padding: 0 20px; overflow-x: auto; }
.nav-links { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.nav-links li a { display: block; color: #fff; font-size: 14px; font-weight: 700; padding: 8px 10px; white-space: nowrap; text-decoration: none; transition: background .2s; }
.nav-links li a:hover { background: rgba(255,255,255,.12); text-decoration: none; }

/* Hamburger */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; margin-right: 8px; }
.hamburger span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; transition: .3s; }

/* Mobile Drawer */
.mobile-drawer { position: fixed; top: 0; left: -280px; width: 280px; height: 100vh; background: var(--teal-dark); z-index: 10001; transition: transform .3s ease; overflow-y: auto; }
.mobile-drawer.open { transform: translateX(280px); }
.mobile-drawer-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,.5); z-index: 10000; }
.mobile-drawer-overlay.open { display: block; }
.mobile-drawer .close-btn { position: absolute; top: 10px; right: 14px; font-size: 28px; color: #fff; background: none; border: none; cursor: pointer; }
.mobile-drawer ul { list-style: none; margin-top: 40px; }
.mobile-drawer ul li a { display: block; padding: 12px 20px; color: #fff; font-size: 15px; border-bottom: 1px solid rgba(255,255,255,.1); text-decoration: none; }
.mobile-drawer ul li a:hover { background: rgba(255,255,255,.1); }

/* Cookie Banner */
.cookie-banner { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: #1a1a2e; color: #fff; padding: 14px 24px; z-index: 9999; align-items: center; justify-content: center; gap: 16px; font-size: 14px; }
.cookie-banner a { color: #7dd3fc; }
.cookie-banner button { background: var(--teal); color: #fff; border: none; padding: 8px 20px; border-radius: 4px; cursor: pointer; font-size: 14px; }
.cookie-banner button:hover { background: var(--teal-dark); }

/* Content */
.content-grid { display: grid; grid-template-columns: 1fr 300px; gap: 30px; margin-top: 20px; }
/* Also apply grid to .container wrapping article + sidebar */
.content-body { display: grid; grid-template-columns: 1fr 300px; gap: 30px; margin-top: 20px; }
.main-content { min-width: 0; }
.main-content h1 { color: var(--teal-dark); font-size: 2rem; margin-bottom: 10px; line-height: 1.3; }
.main-content h2 { color: var(--teal); font-size: 1.4rem; margin: 28px 0 12px; padding-bottom: 6px; border-bottom: 2px solid #e0e0e0; }
.main-content h3 { color: #333; font-size: 1.15rem; margin: 20px 0 8px; }
.main-content p { margin-bottom: 14px; }
.main-content ul, .main-content ol { margin: 10px 0 16px 24px; }
.main-content li { margin-bottom: 6px; }
.main-content table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.main-content th, .main-content td { border: 1px solid #ddd; padding: 10px 12px; text-align: left; }
.main-content th { background: var(--teal); color: #fff; }
.main-content tr:nth-child(even) { background: #f8f9fa; }

/* Highlight Box */
.highlight-box { background: linear-gradient(135deg, #e0f7fa, #f0f4f8); border-left: 4px solid var(--teal); padding: 20px; border-radius: 6px; margin: 20px 0; }
.highlight-box h3 { color: var(--teal-dark); margin-bottom: 8px; }

/* Sidebar */
/* Article content lists */
article ul, article ol { margin: 0 0 16px 24px; padding: 0; line-height: 1.7; }
article li { margin-bottom: 6px; color: #333; }
article ul { list-style: disc; }
article ol { list-style: decimal; }
article ul ul { list-style: circle; margin-top: 6px; }

/* Table of Contents */
.toc { background: #f0f7fa; border-left: 4px solid var(--teal); border-radius: 6px; padding: 18px 24px; margin-bottom: 28px; }
.toc h3 { color: var(--teal-dark); font-size: 1.15rem; margin: 0 0 10px; }
.toc ol { margin: 0 0 0 20px; padding: 0; }
.toc li { margin-bottom: 4px; }
.toc a { color: var(--teal); text-decoration: none; font-weight: 600; }
.toc a:hover { text-decoration: underline; }

.sidebar-box { background: #f8f9fa; border-radius: 8px; padding: 20px; margin-bottom: 20px; }
.sidebar-box h3 { color: var(--teal-dark); font-size: 1.1rem; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--teal); }
.sidebar-box ul { list-style: none; padding: 0; margin: 0; }
.sidebar-box li { margin-bottom: 8px; }
.sidebar-box li a { color: var(--teal); font-weight: 600; text-decoration: none; }
.sidebar-box li a:hover { text-decoration: underline; }

/* FAQ */
.faq-section { margin-top: 30px; }
.faq-item { border: 1px solid #e0e0e0; border-radius: 6px; margin-bottom: 10px; overflow: hidden; }
.faq-q { background: #f8f9fa; padding: 14px 18px; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-q:hover { background: #eef2f5; }
.faq-a { padding: 14px 18px; display: none; border-top: 1px solid #e0e0e0; }
.faq-item.active .faq-a { display: block; }
.faq-q::after { content: '+'; font-size: 1.3rem; font-weight: 700; color: var(--teal); transition: transform .2s; }
.faq-item.active .faq-q::after { content: '\2212'; }

/* Breadcrumb */
.breadcrumb { padding: 12px 0; font-size: 13px; color: #666; margin-bottom: 10px; }
.breadcrumb a { color: var(--teal); }
.breadcrumb span { margin: 0 6px; }

/* Footer */
.site-footer { background: var(--teal-dark); color: rgba(255,255,255,.85); padding: 30px 20px 20px; text-align: center; margin-top: 40px; border-radius: 0 0 10px 10px; overflow: hidden; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin-bottom: 16px; }
.footer-links a { color: rgba(255,255,255,.85); font-size: 13px; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-guides { margin-bottom: 16px; }
.footer-guides h4 { color: #fff; font-size: 13px; margin-bottom: 8px; }
.footer-guides-list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; }
.footer-guides-list a { color: rgba(255,255,255,.75); font-size: 12px; }
.footer-guides-list a:hover { color: #fff; }
.footer-social { display: flex; justify-content: center; gap: 14px; margin-bottom: 14px; }
.footer-social a { display: inline-flex; }
.footer-social svg { width: 20px; height: 20px; fill: rgba(255,255,255,.85); }
.footer-social svg:hover { fill: #fff; }
.footer-copyright { font-size: 12px; margin-bottom: 4px; }
.footer-disclaimer { font-size: 11px; color: rgba(255,255,255,.6); margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.1); }
.footer-disclaimer a { color: #7dd3fc; }

/* Back to Top */
.back-to-top { position: fixed; bottom: 60px; right: 24px; width: 44px; height: 44px; border-radius: 50%; background: var(--teal); color: #fff; font-size: 20px; border: none; cursor: pointer; display: none; align-items: center; justify-content: center; z-index: 999; box-shadow: 0 2px 8px rgba(0,0,0,.2); transition: background .2s; }
.back-to-top:hover { background: var(--teal-dark); }
.back-to-top.show { display: flex; }

/* Responsive */
@media (max-width: 900px) {
  .topbar-social { display: none; }
  .hamburger { display: block; }
  .nav-links { display: none; }
  .content-grid { grid-template-columns: 1fr; }
  .content-body { grid-template-columns: 1fr; }
  .topbar { padding: 6px 12px; }
  .topbar-logo img { max-width: 160px; }
  .cookie-banner { flex-direction: column; gap: 10px; text-align: center; }
}
@media (max-width: 600px) {
  .main-content h1 { font-size: 1.5rem; }
  .main-content h2 { font-size: 1.2rem; }
  .container { padding: 0 12px; }
  .main-content table { display: block; overflow-x: auto; }
  .footer-social { display: none; }
}

/* Guide Index Cards */
.guides-container { padding: 40px 0; }
.guides-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.guide-card {
  display: block; background: #fff; border: 1px solid #e0e0e0; border-radius: 12px;
  overflow: hidden; transition: transform 0.2s, box-shadow 0.2s;
}
.guide-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); text-decoration: none !important; }
.guide-card-icon {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  padding: 28px 24px 20px; text-align: center; color: #fff;
}
.icon-circle {
  width: 56px; height: 56px; background: rgba(255,255,255,0.2); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.icon-circle svg { width: 28px; height: 28px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.guide-card-icon h2 { font-size: 1.2rem; margin: 0; color: #fff; font-weight: 700; }
.guide-card-body { padding: 20px 24px; }
.guide-card-body p { font-size: 0.92rem; color: #555; line-height: 1.6; margin: 0 0 16px; }
.read-guide {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--teal); font-weight: 600; font-size: 0.9rem;
}
.read-guide svg { width: 16px; height: 16px; stroke: var(--teal); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) { .guides-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .guides-grid { grid-template-columns: 1fr; } .guides-container { padding: 24px 0; } }
