/* Medical Chart Help — modern static theme
   Design: clinical, trustworthy, fast. System fonts only (no web-font requests).
   Color palette: #0e6ba8 (primary), #0a4f7c (deep), #f4f8fb (surface), #1f2937 (text). */

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Helvetica Neue",Arial,sans-serif;
  font-size:17px;line-height:1.65;color:#1f2937;background:#fff;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
}
img,svg,video{max-width:100%;height:auto;display:block}
a{color:#0e6ba8;text-decoration:none;transition:color .15s ease}
a:hover{color:#0a4f7c;text-decoration:underline}
:focus-visible{outline:3px solid #0e6ba8;outline-offset:2px;border-radius:3px}
hr{border:0;border-top:1px solid #e5e7eb;margin:2rem 0}

/* Skip link */
.skip{position:absolute;left:-9999px;top:0;background:#0a4f7c;color:#fff;padding:.6rem 1rem;border-radius:0 0 6px 0;font-weight:600;z-index:1000}
.skip:focus{left:0}

/* Layout — article column matches the original medicalcharthelp.com width
   (Newsmag .td-container 1021px / .td-pb-span8 680px / .td-pb-span4 340px)
   so AdSense slots inherit the same dimensions that already perform well. */
.container{max-width:1040px;margin:0 auto;padding:0 20px}
.layout{
  display:grid;grid-template-columns:minmax(0,680px) 320px;
  gap:21px;margin:24px auto;max-width:1040px;padding:0 20px;
  justify-content:center;
}
.layout--full{display:block}
@media (max-width:1023px){
  .layout{grid-template-columns:minmax(0,1fr) 300px;gap:24px;max-width:980px}
}
@media (max-width:880px){
  .layout{grid-template-columns:1fr;gap:30px;max-width:680px}
}

/* Header — slim 50px bar, light gradient, logo left + hamburger right */
.site-header{
  background:linear-gradient(180deg,#ffffff 0%,#f3f6fa 100%);
  border-bottom:1px solid #e5e7eb;
  position:sticky;top:0;z-index:100;
  box-shadow:0 1px 2px rgba(0,0,0,.05);
}
.header-bar{
  display:flex;align-items:center;justify-content:space-between;
  gap:12px;padding:0 20px;
  max-width:1040px;margin:0 auto;
  height:50px;
}
.brand{display:inline-flex;align-items:center;text-decoration:none;flex-shrink:0;line-height:0}
.brand:hover{text-decoration:none}
.brand img{display:block;height:36px;width:auto;max-width:240px}
@media (max-width:480px){.brand img{height:30px}}

/* Hamburger button — always visible on every breakpoint */
.nav-toggle{
  display:inline-flex;align-items:center;justify-content:center;
  width:40px;height:40px;
  background:transparent;border:1px solid #d8e0e8;border-radius:8px;
  cursor:pointer;color:#0a4f7c;
  transition:background .15s,border-color .15s;
}
.nav-toggle:hover{background:#fff;border-color:#0e6ba8}
.nav-toggle:focus-visible{outline:2px solid #0e6ba8;outline-offset:2px}
.nav-toggle-bars{display:block;position:relative;width:20px;height:14px}
.nav-toggle-bars span{
  position:absolute;left:0;right:0;height:2px;border-radius:2px;
  background:#0a4f7c;transition:transform .2s ease,opacity .15s ease,top .2s ease;
}
.nav-toggle-bars span:nth-child(1){top:0}
.nav-toggle-bars span:nth-child(2){top:6px}
.nav-toggle-bars span:nth-child(3){top:12px}
.nav-toggle.is-open .nav-toggle-bars span:nth-child(1){top:6px;transform:rotate(45deg)}
.nav-toggle.is-open .nav-toggle-bars span:nth-child(2){opacity:0}
.nav-toggle.is-open .nav-toggle-bars span:nth-child(3){top:6px;transform:rotate(-45deg)}

/* Drawer-style nav: hidden by default on every viewport, slides down on click */
.main-nav{
  position:absolute;top:50px;left:0;right:0;
  background:#fff;border-bottom:1px solid #e5e7eb;
  box-shadow:0 8px 24px rgba(10,79,124,.10);
  display:none;flex-direction:column;
  padding:8px 0;
}
.main-nav.is-open{display:flex}
.main-nav a{
  padding:12px 24px;color:#1f2937;font-weight:500;font-size:.98rem;
  border-bottom:1px solid #f3f4f6;
}
.main-nav a:last-of-type{border-bottom:0}
.main-nav a:hover{background:#f4f8fb;color:#0a4f7c;text-decoration:none}
.main-nav a.is-active{color:#0e6ba8;background:#f4f8fb;font-weight:600}

.search-form{
  display:flex;align-items:center;gap:6px;
  margin:10px 24px 6px;padding:4px 4px 4px 14px;
  background:#f4f8fb;border:1px solid #e5e7eb;border-radius:999px;
}
.search-form input{flex:1;border:0;background:transparent;font:inherit;font-size:.92rem;outline:none;min-width:0;color:#1f2937;padding:6px 0}
.search-form button{border:0;background:#0e6ba8;color:#fff;padding:7px 16px;border-radius:999px;font-weight:600;cursor:pointer;font-size:.85rem}
.search-form button:hover{background:#0a4f7c}

/* Center the drawer on wider screens */
@media (min-width:760px){
  .main-nav{
    left:auto;right:20px;top:54px;width:300px;
    border:1px solid #e5e7eb;border-radius:12px;
  }
}

/* Lock body scroll when drawer is open on mobile */
@media (max-width:759px){
  body.nav-open{overflow:hidden}
}

/* Hero (homepage) */
.hero{
  background:linear-gradient(135deg,#0a4f7c 0%,#0e6ba8 60%,#1486d0 100%);
  color:#fff;padding:36px 20px 32px;text-align:center;
  border-bottom:1px solid #084369;
  position:relative;overflow:hidden;
}
.hero::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(1200px 360px at 50% -20%,rgba(255,255,255,.18),transparent 60%);
}
.hero-inner{position:relative;max-width:760px;margin:0 auto}
.hero h1{margin:0 0 .55rem;font-size:2.05rem;line-height:1.15;letter-spacing:-.01em;font-weight:800}
.hero p{margin:0 auto;max-width:640px;font-size:1.02rem;opacity:.95;line-height:1.55}
.hero-cta{margin-top:18px;display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.hero-cta .btn{padding:10px 20px;font-size:.95rem;border-radius:999px;font-weight:600;text-decoration:none;display:inline-block;transition:transform .12s,box-shadow .12s,background .12s}
.btn--primary{background:#fff;color:#0a4f7c;box-shadow:0 1px 0 rgba(0,0,0,.05),0 6px 18px rgba(8,67,105,.28)}
.btn--primary:hover{transform:translateY(-1px);box-shadow:0 1px 0 rgba(0,0,0,.05),0 10px 22px rgba(8,67,105,.36)}
.btn--ghost{background:transparent;color:#fff;border:1.5px solid rgba(255,255,255,.55)}
.btn--ghost:hover{background:rgba(255,255,255,.12);border-color:#fff}
@media (max-width:600px){
  .hero{padding:28px 16px 26px}
  .hero h1{font-size:1.6rem}
  .hero p{font-size:.97rem}
  .hero-cta .btn{padding:9px 16px;font-size:.9rem}
}

/* Centered section heading variant + supporting subline (used on homepage) */
.section-title--centered{text-align:center;border-bottom:none;padding-bottom:0;margin:32px 0 6px}
.section-sub{text-align:center;color:#475569;max-width:560px;margin:0 auto 22px;font-size:1rem}
.home-section{margin-top:34px}
.home-cta-row{text-align:center;margin:32px 0 0}

/* Homepage Latest Articles — fixed 3-column grid that matches Browse by Topic */
.home-section .post-grid{
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}
@media (max-width:900px){.home-section .post-grid{grid-template-columns:repeat(2,1fr);gap:18px}}
@media (max-width:520px){.home-section .post-grid{grid-template-columns:1fr;gap:16px}}

/* Homepage widget row (replaces the old sidebar). Two equal cards side by side. */
.home-widgets{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;margin-top:8px;
}
@media (max-width:760px){.home-widgets{grid-template-columns:1fr;gap:18px}}
.home-widget{
  background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:22px 22px 18px;
  box-shadow:0 1px 2px rgba(15,23,42,.04);
}
.home-widget .widget-title{
  margin:0 0 14px;padding-bottom:10px;border-bottom:2px solid #0e6ba8;
  font-size:1rem;text-transform:uppercase;letter-spacing:.06em;color:#0a4f7c;font-weight:700;
}
.home-widget .cat-list{list-style:none;margin:0;padding:0}
.home-widget .cat-list li{border-bottom:1px solid #f1f5f9}
.home-widget .cat-list li:last-child{border-bottom:0}
.home-widget .cat-list a{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:11px 4px;color:#1f2937;font-weight:500;text-decoration:none;
  transition:color .12s ease,padding .12s ease;
}
.home-widget .cat-list a:hover{color:#0e6ba8;padding-left:8px}
.home-widget .cat-count{
  background:#eef6fb;color:#0a4f7c;font-size:.8rem;font-weight:600;
  padding:2px 10px;border-radius:999px;min-width:36px;text-align:center;
}
.home-widget .pop-list{display:flex;flex-direction:column;gap:0}
.pop-item{
  display:grid;grid-template-columns:80px 1fr;gap:12px;align-items:center;
  padding:11px 0;border-bottom:1px solid #f1f5f9;color:#1f2937;text-decoration:none;
  transition:color .12s ease;
}
.pop-item:last-child{border-bottom:0}
.pop-item:hover{color:#0e6ba8;text-decoration:none}
.pop-item img{width:80px;height:60px;object-fit:cover;border-radius:8px;background:#f4f8fb}
.pop-thumb-ph{display:block;width:80px;height:60px;border-radius:8px;background:linear-gradient(135deg,#e8f1f8,#d0e4f1)}
.pop-title{font-size:.95rem;line-height:1.35;font-weight:500}

/* Collapsible mission card on the homepage */
.mission{margin:48px auto 56px}
.mission-card{
  background:linear-gradient(180deg,#f4f8fb 0%,#eaf2f8 100%);
  border:1px solid #d6e4ee;border-radius:14px;
  box-shadow:0 1px 3px rgba(15,23,42,.04),0 6px 18px rgba(15,23,42,.04);
  overflow:hidden;
}
.mission-card > summary{
  list-style:none;cursor:pointer;
  display:flex;align-items:center;gap:14px;flex-wrap:wrap;
  padding:18px 22px;
  position:relative;
}
.mission-card > summary::-webkit-details-marker{display:none}
.mission-eyebrow{
  font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  color:#fff;background:#0e6ba8;padding:4px 10px;border-radius:999px;
}
.mission-title{font-size:1.15rem;font-weight:700;color:#0a4f7c;flex:1;min-width:0}
.mission-toggle{
  font-size:.9rem;color:#0e6ba8;font-weight:600;
  display:inline-flex;align-items:center;gap:6px;
}
.mission-toggle::before{content:"Read more"}
.mission-card[open] .mission-toggle{color:#64748b}
.mission-card[open] .mission-toggle::before{content:"Collapse"}
.mission-toggle::after{
  content:"";width:9px;height:9px;
  border-right:2px solid currentColor;border-bottom:2px solid currentColor;
  transform:rotate(45deg);margin-left:4px;transition:transform .2s;
}
.mission-card[open] .mission-toggle::after{transform:rotate(-135deg);margin-bottom:-3px}
.mission-body{padding:4px 24px 24px;border-top:1px solid #d6e4ee;background:#fff}
.mission-body > :first-child{margin-top:14px}
@media (max-width:600px){
  .mission{margin:36px auto 40px}
  .mission-card > summary{padding:14px 16px;gap:10px}
  .mission-title{font-size:1.02rem}
  .mission-body{padding:4px 16px 20px}
}

/* Categories grid */
/* Category grid — 3 columns x 2 rows on desktop, fills nicely on mobile */
.cat-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;margin:28px 0 10px;
}
@media (max-width:900px){.cat-grid{grid-template-columns:repeat(2,1fr);gap:16px}}
@media (max-width:520px){.cat-grid{grid-template-columns:1fr;gap:14px}}

.cat-card{
  background:#fff;border:1px solid #e5e7eb;border-radius:14px;
  padding:28px 22px;text-align:center;
  color:#0a4f7c;font-weight:700;font-size:1.12rem;
  display:flex;flex-direction:column;align-items:center;gap:14px;
  transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease,background .15s ease;
  box-shadow:0 1px 2px rgba(15,23,42,.04);
  min-height:170px;justify-content:center;
}
.cat-card:hover{
  border-color:#0e6ba8;background:linear-gradient(180deg,#fbfdff 0%,#eef6fb 100%);
  transform:translateY(-3px);text-decoration:none;
  box-shadow:0 10px 24px rgba(14,107,168,.15);
}
.cat-card svg{
  width:56px;height:56px;color:#0e6ba8;
  padding:12px;background:#eef6fb;border-radius:14px;
  transition:background .15s ease,color .15s ease;
}
.cat-card:hover svg{background:#0e6ba8;color:#fff}
.cat-card strong{font-size:1.12rem;line-height:1.25}
.cat-card span.count{display:block;font-weight:500;font-size:.85rem;color:#64748b;margin-top:2px;letter-spacing:.01em}

/* Article card list */
.section-title{font-size:1.5rem;margin:40px 0 16px;padding-bottom:10px;border-bottom:2px solid #0e6ba8;color:#0a4f7c}
.post-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:22px}
.post-card{background:#fff;border:1px solid #e5e7eb;border-radius:10px;overflow:hidden;display:flex;flex-direction:column;transition:transform .15s,box-shadow .15s}
.post-card:hover{transform:translateY(-3px);box-shadow:0 10px 24px rgba(0,0,0,.08);text-decoration:none}
.post-card a{color:inherit;text-decoration:none;display:flex;flex-direction:column;height:100%}
.post-card .thumb{aspect-ratio:16/9;background:#f4f8fb;overflow:hidden;display:flex;align-items:center;justify-content:center}
.post-card .thumb img{width:100%;height:100%;object-fit:cover}
.post-card .thumb.placeholder{background:linear-gradient(135deg,#e8f1f8,#d0e4f1);color:#0a4f7c}
.post-card .body{padding:14px 16px;display:flex;flex-direction:column;flex:1}
.post-card .cat-tag{font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:#0e6ba8;margin-bottom:6px}
.post-card h3{margin:0 0 6px;font-size:1.05rem;line-height:1.35;color:#1f2937}

/* Pagination */
.pagination{display:flex;gap:8px;justify-content:center;margin:40px 0;flex-wrap:wrap}
.pagination a,.pagination span{padding:8px 14px;border:1px solid #e5e7eb;border-radius:6px;font-weight:500;color:#0a4f7c;background:#fff}
.pagination a:hover{background:#f4f8fb;text-decoration:none}
.pagination .current{background:#0e6ba8;color:#fff;border-color:#0e6ba8}
.pagination .disabled{color:#d1d5db;cursor:not-allowed;background:#f9fafb}

/* Article (single post) */
article.post{background:#fff;border-radius:10px}
article.post header h1{font-size:2.25rem;line-height:1.15;margin:0 0 14px;color:#0a4f7c;letter-spacing:-.015em;font-weight:700}
@media (max-width:600px){article.post header h1{font-size:1.6rem}}

/* Post meta = breadcrumbs row sitting right below the title.
   Compact, single-line, scrolls horizontally on narrow screens. */
.post-meta{margin:0 0 26px;padding:0 0 16px;border-bottom:1px solid #eef2f6}
.post-meta .breadcrumbs{margin:0}

.breadcrumbs{
  font-size:.82rem;color:#64748b;font-weight:500;
  display:flex;align-items:center;flex-wrap:nowrap;gap:6px;
  overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;
  white-space:nowrap;
}
.breadcrumbs::-webkit-scrollbar{display:none}
.breadcrumbs a{
  color:#0e6ba8;text-decoration:none;
  padding:4px 10px;border-radius:999px;background:#f4f8fb;
  transition:background .15s,color .15s;
  flex:0 0 auto;
}
.breadcrumbs a:hover{background:#e2eef7;color:#0a4f7c;text-decoration:none}
.breadcrumbs span[aria-current]{
  color:#0a4f7c;font-weight:600;
  padding:4px 10px;
  flex:1 1 auto;min-width:0;
  overflow:hidden;text-overflow:ellipsis;
  max-width:60ch;
}
.breadcrumbs .bc-sep{
  width:14px;height:14px;color:#cbd5e1;flex:0 0 auto;
}

/* Article body — comfy reading typography (no drop cap, plain first paragraph) */
.post-content{font-size:1.05rem;line-height:1.72;color:#1f2937}
.post-content > p:first-of-type{font-size:1.08rem;color:#111827}

.post-content h2,
.post-content h3,
.post-content h4{
  color:#0a4f7c;letter-spacing:-.005em;font-weight:700;
  scroll-margin-top:80px;
}
.post-content h2{
  font-size:1.7rem;margin:2.6rem 0 1rem;line-height:1.25;
  padding-bottom:.45rem;
  border-bottom:1px solid #e2eaf2;
  position:relative;
}
.post-content h2::before{
  content:"";position:absolute;left:0;bottom:-1px;
  width:48px;height:3px;background:#0e6ba8;border-radius:2px;
}
.post-content h3{font-size:1.32rem;margin:2.1rem 0 .7rem;line-height:1.32}
.post-content h4{font-size:1.12rem;margin:1.7rem 0 .55rem;line-height:1.4}

.post-content p{margin:0 0 1.15rem}
.post-content p.educational-note,
.post-content .educational-note{
  margin:0 0 1.15rem;padding:12px 16px;background:#f0f9ff;border-left:4px solid #0e6ba8;
  border-radius:0 8px 8px 0;font-size:.95rem;color:#334155;line-height:1.5;
}
.post-content strong,.post-content b{color:#0a4f7c;font-weight:700}

.post-content a{
  color:#0e6ba8;text-decoration:underline;
  text-decoration-color:rgba(14,107,168,.32);text-underline-offset:3px;
  text-decoration-thickness:1.5px;
  transition:color .15s,text-decoration-color .15s;
}
.post-content a:hover{color:#0a4f7c;text-decoration-color:#0e6ba8}

/* Lists — custom bullets in brand color */
.post-content ul,.post-content ol{margin:0 0 1.3rem;padding-left:0;list-style:none}
.post-content ul > li,.post-content ol > li{
  position:relative;padding:.18rem 0 .18rem 1.7rem;
}
.post-content ul > li::before{
  content:"";position:absolute;left:.35rem;top:.78em;
  width:7px;height:7px;border-radius:50%;
  background:#0e6ba8;box-shadow:0 0 0 3px rgba(14,107,168,.14);
}
.post-content ol{counter-reset:li}
.post-content ol > li{counter-increment:li}
.post-content ol > li::before{
  content:counter(li);position:absolute;left:0;top:.18rem;
  width:1.4rem;height:1.4rem;border-radius:50%;
  background:#0e6ba8;color:#fff;font-size:.78rem;font-weight:700;
  display:flex;align-items:center;justify-content:center;
}
.post-content li > ul,.post-content li > ol{margin-top:.4rem;margin-bottom:.4rem}

/* Figures / images — fill the article column, no awkward side gutters */
.post-content figure{margin:1.6rem 0;text-align:center}
.post-content img{
  display:block;height:auto;
  max-width:100%;width:100%;        /* always fill the column */
  margin:1.4rem auto;border-radius:10px;
  box-shadow:0 1px 3px rgba(15,23,42,.08),0 6px 18px rgba(15,23,42,.06);
  background:#f4f8fb;
}
.post-content figure img{margin:0 auto}
.post-content .alignleft,
.post-content .alignright,
.post-content .aligncenter{display:block;margin-left:auto;margin-right:auto}
.post-content figcaption,
.post-content .wp-caption-text{
  font-size:.85rem;color:#64748b;text-align:center;
  margin:.6rem auto 0;max-width:60ch;font-style:italic;
}
.post-content .wp-caption{max-width:100%!important;margin:1.5rem auto}
.post-content img.aligncenter{margin-left:auto;margin-right:auto}

/* Sandbox for inline calculator widgets.
   The wrapper is a contained, fresh stacking context so rogue rules inside
   (e.g. body{height:100vh; display:flex; align-items:center}) are confined
   to this island and can't break header / footer / sidebar. We also cancel
   the most common sandbox-busting properties with !important so the widget
   sizes naturally to its content inside the article column. */
.mch-widget{
  display:block!important;
  position:relative!important;
  height:auto!important;min-height:0!important;max-height:none!important;
  width:100%!important;max-width:100%!important;
  margin:1.6rem 0!important;
  padding:0!important;
  background:transparent!important;
  align-items:initial!important;justify-content:initial!important;
  contain:layout paint;isolation:isolate;
}
.mch-widget .container{
  max-width:100%!important;width:100%!important;
  height:auto!important;max-height:none!important;
  margin:0 auto!important;
  box-sizing:border-box;
}
.mch-widget input,
.mch-widget select,
.mch-widget button,
.mch-widget textarea{width:auto;max-width:100%}

/* ── Post-content typography cleanup ──────────────────────────────────────
   Neutralises ChatGPT-UI wrapper class artefacts (flex utilities, Tailwind
   sizing, react-scroll-to-bottom residue) that can slip through from scraped
   live-site content. We undo flex layouts and hard-coded sizes so the column
   reads as normal flowing text. */
.post-content [class*="flex-"]:not([class*="flex-shrink"]):not([class*="flex-grow"]),
.post-content [class*="overflow-"],
.post-content [class*="h-full"],
.post-content [class*="min-h-"],
.post-content [class*="max-w-"],
.post-content [class*="w-full"],
.post-content [class*="gap-"],
.post-content [class*="py-["],
.post-content [class*="px-"],
.post-content [class*="md:"],
.post-content [class*="lg:"],
.post-content [class*="xl:"],
.post-content [class*="whitespace-"],
.post-content [class*="break-words"],
.post-content [class*="items-end"],
.post-content [class*="agent-turn"],
.post-content [class*="conversation-turn"],
.post-content [class*="text-message"],
.post-content [class*="text-token-"],
.post-content [class*="react-scroll"] {
  display:block!important;
  position:static!important;
  width:auto!important;max-width:100%!important;
  height:auto!important;min-height:0!important;max-height:none!important;
  padding:0!important;margin:0!important;
  overflow:visible!important;
  background:transparent!important;
  color:inherit!important;
  font-size:inherit!important;
  align-items:initial!important;
  justify-content:initial!important;
  flex-direction:initial!important;
  gap:0!important;
  transform:none!important;
  box-shadow:none!important;
  border:none!important;
  border-radius:0!important;
}

/* Make prose/markdown wrappers completely transparent */
.post-content .prose,
.post-content .markdown,
.post-content [class*="prose "],
.post-content [class*=" prose"] {
  all:unset;display:block;
}

/* h3 decorated like h2 but smaller — calculator pages use lots of h3 */
.post-content h3{
  font-size:1.28rem;margin:2rem 0 .65rem;line-height:1.35;
  color:#0a4f7c;font-weight:700;letter-spacing:-.008em;
  padding-bottom:.3rem;border-bottom:1px solid #eef2f8;position:relative;
}
.post-content h3::before{
  content:"";position:absolute;left:0;bottom:-1px;
  width:32px;height:2px;background:#0e6ba8;border-radius:2px;
}

/* Callout box — used in AI-generated calculator descriptions */
.post-content .callout,
.post-content .note-box,
.post-content .info-box{
  margin:1.4rem 0;padding:14px 18px;
  background:#f0f9ff;border-left:4px solid #0e6ba8;
  border-radius:0 8px 8px 0;font-size:.95rem;color:#334155;line-height:1.55;
}

/* Tables on calculator pages — same style as main table rules */
.post-content table th,
.post-content table td{
  padding:10px 14px;text-align:left;vertical-align:top;
  border-bottom:1px solid #eef2f6;
}

/* Never center-align paragraph text; that was a ChatGPT export artefact */
.post-content p{text-align:left!important}

/* Normalise any stray dark-mode prose colours from the ChatGPT UI */
.post-content [class*="dark:"]{color:inherit!important;background:inherit!important}

/* Input / select inside calculator content should look good */
.post-content input[type="number"],
.post-content input[type="text"],
.post-content select{
  padding:8px 12px;border:1.5px solid #cbd5e1;border-radius:8px;
  font-size:.95rem;font-family:inherit;color:#1f2937;
  background:#fff;width:auto;max-width:100%;
  transition:border-color .15s;
}
.post-content input[type="number"]:focus,
.post-content input[type="text"]:focus,
.post-content select:focus{border-color:#0e6ba8;outline:none}

/* Calculator result boxes */
.post-content .result,
.post-content #result,
.post-content [id$="-result"]{
  margin:1.2rem 0;padding:16px 20px;
  background:linear-gradient(135deg,#f0f9ff 0%,#e8f4fd 100%);
  border:1.5px solid #bae0f5;border-radius:10px;
  font-size:1.05rem;font-weight:600;color:#0a4f7c;
  text-align:center;
}

/* Button styling for calculator submit buttons */
.post-content button[type="submit"],
.post-content input[type="submit"],
.post-content button:not([class]){
  display:inline-block;padding:10px 24px;
  background:#0e6ba8;color:#fff;border:none;
  border-radius:8px;font-size:.97rem;font-weight:600;
  cursor:pointer;font-family:inherit;
  transition:background .15s;margin-top:.5rem;
}
.post-content button[type="submit"]:hover,
.post-content input[type="submit"]:hover,
.post-content button:not([class]):hover{background:#0a4f7c}

/* Blockquote — fancy with quote mark */
.post-content blockquote{
  margin:1.8rem 0;padding:18px 22px 18px 56px;position:relative;
  background:linear-gradient(180deg,#f4f8fb 0%,#eef4f9 100%);
  border-left:4px solid #0e6ba8;border-radius:0 12px 12px 0;
  color:#334155;font-style:italic;font-size:1.05rem;line-height:1.65;
}
.post-content blockquote::before{
  content:"\201C";position:absolute;left:14px;top:-2px;
  font-family:Georgia,serif;font-size:3.2rem;line-height:1;
  color:#0e6ba8;opacity:.55;font-style:normal;
}
.post-content blockquote p:last-child{margin-bottom:0}
.post-content blockquote cite{display:block;margin-top:.6rem;font-size:.88rem;color:#64748b;font-style:normal}
.post-content blockquote cite::before{content:"— "}

/* Tables — nicer headers, striped rows, mobile scroll */
.post-content table{
  border-collapse:separate;border-spacing:0;width:100%;
  margin:1.6rem 0;font-size:.95rem;
  border:1px solid #e5e7eb;border-radius:10px;overflow:hidden;
  box-shadow:0 1px 2px rgba(15,23,42,.04);
}
.post-content th,.post-content td{
  padding:11px 14px;text-align:left;vertical-align:top;
  border-bottom:1px solid #eef2f6;
}
.post-content th{
  background:linear-gradient(180deg,#f4f8fb 0%,#eaf2f9 100%);
  color:#0a4f7c;font-weight:700;font-size:.82rem;
  text-transform:uppercase;letter-spacing:.04em;
  border-bottom:2px solid #d6e4ef;
}
.post-content tbody tr:nth-child(even){background:#fafcfe}
.post-content tbody tr:hover{background:#f4f8fb}
.post-content tbody tr:last-child td{border-bottom:0}
.post-content td a{font-weight:500}
@media (max-width:640px){
  .post-content table{display:block;overflow-x:auto;white-space:nowrap;-webkit-overflow-scrolling:touch}
}

/* Inline code & code blocks */
.post-content code{
  background:#f1f5f9;padding:2px 7px;border-radius:5px;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:.9em;color:#0a4f7c;border:1px solid #e2e8f0;
}
.post-content pre{
  background:#0f1f2e;color:#e2e8f0;padding:18px 20px;
  border-radius:10px;overflow-x:auto;margin:1.6rem 0;
  font-size:.92rem;line-height:1.55;
  box-shadow:0 1px 3px rgba(15,23,42,.2);
}
.post-content pre code{background:transparent;padding:0;color:inherit;border:0;font-size:inherit}

/* Horizontal rule between sections */
.post-content hr{
  border:0;height:1px;
  background:linear-gradient(90deg,transparent,#cbd5e1,transparent);
  margin:2.5rem 0;
}

/* Definition lists */
.post-content dl{margin:1.4rem 0}
.post-content dt{font-weight:700;color:#0a4f7c;margin-top:.8rem}
.post-content dd{margin:.2rem 0 .6rem 1.2rem;color:#374151}

/* Pull-out callouts (manual: .callout / .callout-info / .callout-warn) */
.post-content .callout,
.post-content .callout-info,
.post-content .callout-warn,
.post-content .callout-tip{
  margin:1.6rem 0;padding:16px 18px 16px 54px;position:relative;
  border-radius:10px;border:1px solid #d6e4ef;background:#f4f8fb;color:#0a4f7c;
}
.post-content .callout::before,
.post-content .callout-info::before,
.post-content .callout-warn::before,
.post-content .callout-tip::before{
  content:"";position:absolute;left:18px;top:18px;width:22px;height:22px;
  background:#0e6ba8;border-radius:50%;
  mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2Zm1 15h-2v-6h2Zm0-8h-2V7h2Z'/></svg>") center/contain no-repeat;
  -webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2Zm1 15h-2v-6h2Zm0-8h-2V7h2Z'/></svg>") center/contain no-repeat;
}
.post-content .callout-warn{background:#fff7ed;border-color:#fed7aa;color:#9a3412}
.post-content .callout-warn::before{background:#ea580c}
.post-content .callout-tip{background:#ecfdf5;border-color:#a7f3d0;color:#065f46}
.post-content .callout-tip::before{background:#059669}
.post-content .callout p:last-child,
.post-content .callout-info p:last-child,
.post-content .callout-warn p:last-child,
.post-content .callout-tip p:last-child{margin-bottom:0}

.post-footer{margin-top:32px;padding-top:24px;border-top:1px solid #e5e7eb;display:flex;flex-wrap:wrap;gap:14px;justify-content:space-between;align-items:center}
.share{display:flex;gap:8px;align-items:center;font-size:.9rem;color:#6b7280}
.share a{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;background:#f4f8fb;border-radius:50%;color:#0a4f7c}
.share a:hover{background:#0e6ba8;color:#fff;text-decoration:none}
.share svg{width:16px;height:16px}

/* Related */
.related{margin:42px 0 0}
.related h2{font-size:1.3rem;margin:0 0 16px;padding-bottom:10px;border-bottom:2px solid #0e6ba8;color:#0a4f7c}
.related-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:18px}

/* Sidebar */
.sidebar{display:flex;flex-direction:column;gap:24px}
.widget{background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:18px}
.widget h3{margin:0 0 12px;font-size:1rem;text-transform:uppercase;letter-spacing:.05em;color:#0a4f7c;padding-bottom:8px;border-bottom:2px solid #0e6ba8}
.widget ul{list-style:none;margin:0;padding:0}
.widget li{padding:8px 0;border-bottom:1px solid #f3f4f6;font-size:.95rem}
.widget li:last-child{border-bottom:0}
.widget a{color:#374151}
.widget a:hover{color:#0e6ba8}
.widget .post-mini{display:flex;gap:10px;align-items:flex-start;padding:10px 0;border-bottom:1px solid #f3f4f6}
.widget .post-mini:last-child{border-bottom:0}
.widget .post-mini img{width:64px;height:48px;object-fit:cover;border-radius:6px;flex-shrink:0;background:#f4f8fb}
.widget .post-mini .pm-body{flex:1;min-width:0}
.widget .post-mini h4{margin:0;font-size:.9rem;line-height:1.3;font-weight:500}
.widget .post-mini h4 a{color:#1f2937}
.widget .post-mini h4 a:hover{color:#0e6ba8}

/* Ad blocks. NB: do NOT use display:flex+align-items:center here — that
   shrinks an empty <ins> to content-width=0 and AdSense throws
   "No slot size for availableWidth=0" before it can fill the unit. */
.ad-block{display:block;margin:24px auto;text-align:center;min-height:90px;width:100%;max-width:100%}
.ad-label{display:block;font-size:.7rem;text-transform:uppercase;letter-spacing:.1em;color:#9ca3af;margin:0 0 6px;text-align:center}
.ad-block ins.adsbygoogle{display:block;margin:0 auto;width:100%;min-width:300px}

/* Collapse unfilled / blocked ad slots so they don't leave blank space + label
   behind. Three layers of defense:
     1. AdSense-provided unfilled signal (modern + legacy CSS).
     2. JS-applied .ad-collapsed class (covers ad blockers, unapproved domains,
        network failures — anything that prevents AdSense from running).
     3. Reset min-height + margins on collapsed wrappers so reflow is clean. */
ins.adsbygoogle[data-ad-status="unfilled"]{display:none!important}
.ad-block:has(ins.adsbygoogle[data-ad-status="unfilled"]),
.ad-block.ad-collapsed,
.ad-block.is-unfilled{display:none!important;margin:0!important;padding:0!important;min-height:0!important;height:0!important;border:0!important}

/* Footer */
.site-footer{background:#0a4f7c;color:#cbd5e1;margin-top:60px;padding:40px 20px 20px}
.footer-grid{max-width:1040px;margin:0 auto;display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:30px}
.footer-col h4{color:#fff;margin:0 0 14px;font-size:1rem;text-transform:uppercase;letter-spacing:.05em}
.footer-col ul{list-style:none;padding:0;margin:0}
.footer-col li{margin:6px 0}
.footer-col a{color:#cbd5e1;font-size:.95rem}
.footer-col a:hover{color:#fff}
.footer-bottom{max-width:1040px;margin:30px auto 0;padding-top:20px;border-top:1px solid rgba(255,255,255,.12);text-align:center;font-size:.85rem;color:#94a3b8}
.footer-bottom a{color:#cbd5e1}

/* 404 */
.notfound{text-align:center;padding:80px 20px;max-width:680px;margin:0 auto}
.notfound h1{font-size:5rem;margin:0;color:#0e6ba8;line-height:1}
.notfound h2{margin:.5rem 0 1rem;color:#0a4f7c}
.notfound p{color:#6b7280;margin:0 0 24px}
.btn{display:inline-block;background:#0e6ba8;color:#fff;padding:12px 26px;border-radius:8px;font-weight:600}
.btn:hover{background:#0a4f7c;text-decoration:none;color:#fff}

/* Contact form */
.form-row{margin-bottom:16px}
.form-row label{display:block;font-weight:600;margin-bottom:6px;color:#374151;font-size:.95rem}
.form-row input,.form-row textarea{width:100%;padding:10px 12px;border:1px solid #d1d5db;border-radius:6px;font:inherit;color:#1f2937;background:#fff}
.form-row input:focus,.form-row textarea:focus{outline:0;border-color:#0e6ba8;box-shadow:0 0 0 3px rgba(14,107,168,.15)}
.form-row textarea{min-height:140px;resize:vertical}
.form-actions{margin-top:12px}
button.btn{border:0;cursor:pointer;font:inherit}

/* Print friendliness */
@media print{
  .site-header,.site-footer,.sidebar,.ad-block,.post-footer,.related,.search-form,.nav-toggle{display:none!important}
  .layout{display:block;max-width:100%}
  body{font-size:12pt}
}
