/* DoseAlert Help Centre — shared styles */
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:'Figtree','DM Sans',sans-serif;color:#1a1a1a;background:#f8f7f4;line-height:1.7;-webkit-font-smoothing:antialiased;font-size:16.5px}
a{color:#1A7A5A;text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;height:auto}
code,kbd{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;background:#eceae5;padding:2px 6px;border-radius:5px;font-size:0.92em}
kbd{box-shadow:0 1px 0 #d6d3cc}

/* layout */
.topbar{background:#0F1F18;color:#fff;padding:14px 24px;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:20}
.topbar-left{display:flex;align-items:center;gap:12px}
.topbar .logo-icon{width:32px;height:32px;background:#0F1F18;border:1px solid rgba(255,255,255,0.15);border-radius:8px;display:flex;align-items:center;justify-content:center}
.topbar .logo-icon svg{width:22px;height:22px}
.topbar .logo-text{font-family:'Fraunces',serif;font-size:18px;font-weight:600;color:#9FE1CB}
.topbar-right{display:flex;gap:18px;font-size:14px}
.topbar-right a{color:#c3e9d7}
.topbar-right a:hover{color:#fff;text-decoration:none}

.shell{max-width:1200px;margin:0 auto;padding:32px 24px 80px;display:grid;grid-template-columns:260px 1fr;gap:40px}
@media (max-width:860px){
  .shell{grid-template-columns:1fr;gap:24px}
  .sidebar{position:static;max-height:none;border-right:0;border-bottom:1px solid #e8e6e1;padding-bottom:20px}
}

/* sidebar */
.sidebar{position:sticky;top:80px;align-self:start;max-height:calc(100vh - 110px);overflow-y:auto;padding-right:16px;border-right:1px solid #e8e6e1;font-size:15px}
.sidebar h3{font-family:'Fraunces',serif;font-size:13px;text-transform:uppercase;letter-spacing:0.8px;color:#9b9b9b;margin:20px 0 8px;font-weight:600}
.sidebar h3:first-child{margin-top:0}
.sidebar ul{list-style:none;padding:0;margin:0}
.sidebar li{margin:2px 0}
.sidebar a{display:block;padding:6px 10px;border-radius:8px;color:#333;font-weight:500}
.sidebar a:hover{background:#eceae5;text-decoration:none;color:#1A7A5A}
.sidebar a.active{background:#E8F8F0;color:#1A7A5A;font-weight:600}

/* main content */
.main{max-width:760px;min-width:0}
.crumb{font-size:13px;color:#9b9b9b;margin-bottom:10px}
.crumb a{color:#9b9b9b}
.crumb a:hover{color:#1A7A5A}

/* search */
.search{position:relative;margin-bottom:28px}
.search input{width:100%;padding:14px 16px 14px 46px;border:1px solid #d6d3cc;border-radius:12px;font-size:16px;font-family:inherit;background:#fff;box-shadow:0 1px 0 rgba(0,0,0,0.02)}
.search input:focus{outline:none;border-color:#2DB88A;box-shadow:0 0 0 3px rgba(45,184,138,0.18)}
.search::before{content:'';position:absolute;left:16px;top:50%;transform:translateY(-50%);width:18px;height:18px;background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239b9b9b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>") no-repeat center/contain}
.search-results{position:absolute;top:100%;left:0;right:0;background:#fff;border:1px solid #e8e6e1;border-radius:12px;margin-top:6px;max-height:420px;overflow-y:auto;box-shadow:0 10px 30px rgba(0,0,0,0.08);z-index:30;display:none}
.search-results.open{display:block}
.search-result{display:block;padding:12px 16px;border-bottom:1px solid #f0ede7;color:inherit}
.search-result:last-child{border-bottom:0}
.search-result:hover{background:#faf9f7;text-decoration:none}
.search-result .sr-title{font-weight:600;color:#1a1a1a;font-size:15px;margin-bottom:2px}
.search-result .sr-snippet{font-size:13px;color:#6b6b6b}
.search-result mark{background:#fff3a3;color:inherit;padding:0 2px;border-radius:3px}
.search-empty{padding:16px;color:#9b9b9b;font-size:14px;text-align:center}

/* headings */
h1{font-family:'Fraunces',serif;font-size:clamp(28px,4.5vw,38px);font-weight:600;margin-bottom:8px;line-height:1.2}
h2{font-family:'Fraunces',serif;font-size:24px;font-weight:600;margin:40px 0 12px;color:#1a1a1a;scroll-margin-top:90px}
h3{font-size:18px;font-weight:600;margin:24px 0 8px;color:#1a1a1a;scroll-margin-top:90px}
h4{font-size:16px;font-weight:600;margin:16px 0 6px;color:#1a1a1a}
.lede{font-size:17px;color:#4a4a4a;margin-bottom:28px}

/* content */
.main p{margin-bottom:14px;color:#333}
.main ul,.main ol{margin:4px 0 16px 24px}
.main li{margin-bottom:6px;color:#333}
.main strong{color:#1a1a1a}
.main hr{border:0;border-top:1px solid #e8e6e1;margin:40px 0}

/* callouts */
.callout{background:#fff;border-left:4px solid #2DB88A;border-radius:10px;padding:16px 18px;margin:20px 0;box-shadow:0 1px 0 rgba(0,0,0,0.02)}
.callout.tip{border-left-color:#2DB88A;background:#f3fbf7}
.callout.note{border-left-color:#4A90D9;background:#f2f8ff}
.callout.warn{border-left-color:#E8A82E;background:#fff9ec}
.callout.danger{border-left-color:#E8614D;background:#fdf0ee}
.callout .label{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:0.8px;display:block;margin-bottom:6px}
.callout.tip .label{color:#1A7A5A}
.callout.note .label{color:#2A6FB8}
.callout.warn .label{color:#B38016}
.callout.danger .label{color:#B84333}
.callout p:last-child{margin-bottom:0}

/* "I am..." primary starting points (landing) */
.help-starts{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin:28px 0 16px}
@media (max-width:720px){ .help-starts{grid-template-columns:1fr} }
.help-start{display:flex;gap:18px;background:#fff;border:1px solid #e8e6e1;border-radius:16px;padding:22px 24px;color:inherit;transition:border-color .15s,transform .15s,box-shadow .15s;text-decoration:none;align-items:flex-start}
.help-start:hover{border-color:#2DB88A;transform:translateY(-2px);box-shadow:0 10px 24px rgba(0,0,0,0.06);text-decoration:none}
.help-start-ico{font-size:28px;flex-shrink:0;width:52px;height:52px;background:#E8F8F0;border-radius:14px;display:flex;align-items:center;justify-content:center}
.help-start-contact .help-start-ico{background:#FFF5E6}
.help-start-body h3{font-family:'Fraunces',serif;font-size:18px;font-weight:600;line-height:1.3;margin:4px 0 6px;color:#1a1a1a}
.help-start-body p{font-size:14.5px;color:#4a4a4a;line-height:1.55;margin:0}
.help-start-body p strong{color:#1A7A5A}

/* topic cards (landing page) */
.topic-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;margin:16px 0 32px}
.topic-card{display:block;background:#fff;border:1px solid #e8e6e1;border-radius:14px;padding:20px;color:inherit;transition:transform .15s,box-shadow .15s,border-color .15s}
.topic-card:hover{text-decoration:none;transform:translateY(-2px);box-shadow:0 8px 24px rgba(0,0,0,0.06);border-color:#2DB88A}
.topic-card .ico{width:36px;height:36px;background:#E8F8F0;color:#1A7A5A;border-radius:10px;display:flex;align-items:center;justify-content:center;margin-bottom:10px;font-size:20px}
.topic-card h3{font-family:'Fraunces',serif;font-size:17px;margin:0 0 4px;color:#1a1a1a}
.topic-card p{margin:0;font-size:14px;color:#6b6b6b}

/* step list */
.steps{counter-reset:step;list-style:none;margin:16px 0 24px!important;padding:0!important}
.steps>li{counter-increment:step;position:relative;padding:4px 0 8px 44px;margin:0 0 10px;border-left:2px solid transparent}
.steps>li::before{content:counter(step);position:absolute;left:0;top:2px;width:30px;height:30px;background:#E8F8F0;color:#1A7A5A;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:14px}
.steps>li strong{display:block;color:#1a1a1a;margin-bottom:2px}

/* table */
.kvtable{width:100%;border-collapse:collapse;margin:16px 0 24px;background:#fff;border:1px solid #e8e6e1;border-radius:12px;overflow:hidden}
.kvtable th,.kvtable td{padding:12px 14px;text-align:left;font-size:14px;border-bottom:1px solid #f0ede7;vertical-align:top}
.kvtable th{background:#faf9f7;font-weight:600;color:#1a1a1a;width:34%}
.kvtable tr:last-child th,.kvtable tr:last-child td{border-bottom:0}

/* on this page (toc) */
.toc{background:#fff;border:1px solid #e8e6e1;border-radius:12px;padding:16px 20px;margin-bottom:28px}
.toc-label{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:0.8px;color:#9b9b9b;margin-bottom:8px}
.toc ul{list-style:none;margin:0;padding:0}
.toc li{margin:4px 0}
.toc a{font-size:14px;color:#1A7A5A}

/* footer */
.help-footer{max-width:760px;margin:60px auto 0;padding:24px 24px 48px;border-top:1px solid #e8e6e1;font-size:13px;color:#9b9b9b;text-align:center}
.help-footer a{color:#9b9b9b;margin:0 8px}
.help-footer a:hover{color:#1A7A5A}

/* utility */
.chip{display:inline-block;background:#E8F8F0;color:#1A7A5A;padding:2px 10px;border-radius:100px;font-size:12px;font-weight:600}
.chip.warn{background:#fff0d0;color:#B38016}
.chip.blue{background:#e0ecff;color:#2A6FB8}
.chip.coral{background:#fdd9d2;color:#B84333}

/* skip visible elements for screen-reader-only text */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* highlight query match */
mark{background:#fff3a3;color:inherit;padding:0 2px;border-radius:3px}
