:root{--ink:#263c37;--muted:#6c7b74;--green:#175b50;--green-hover:#10483f;--mint:#e5f0e9;--border:#e3e7de;--paper:#fffefa;--bg:#f5f5ef;--coral:#bc684d;--soft-coral:#f8eee5;--radius:17px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--bg);font-size:15px;line-height:1.6;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}a{color:var(--green);text-decoration:none}a:hover{text-decoration:underline}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #88bcb0;outline-offset:3px}button{color:inherit}.topbar{background:var(--paper);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:20}.header-inner{max-width:1392px;margin:auto;padding:17px 32px;display:flex;align-items:center;gap:15px}.brand{display:flex;align-items:center;gap:10px;font-size:21px;letter-spacing:-.8px;font-weight:700;color:var(--ink);white-space:nowrap}.brand:hover{text-decoration:none}.brand-light{font-weight:400}.brand-icon{width:35px;height:35px;border-radius:10px;display:grid;place-items:center;background:var(--green)}.brand-icon svg{width:27px;height:27px;stroke:#fff;fill:var(--green);stroke-width:1.6;stroke-linecap:round}.preview-badge{font-size:10px;letter-spacing:1px;text-transform:uppercase;border:1px solid #d6dfce;color:#7b8a6d;border-radius:5px;padding:2px 6px}.header-actions{margin-left:auto;display:flex;align-items:center;gap:20px}#account-actions{display:flex;align-items:center;gap:12px}.header-actions select{border:0;background:transparent;color:var(--muted);max-width:125px}
.account-menu{position:relative;flex-shrink:0}
.account-trigger{list-style:none;cursor:pointer;display:flex;align-items:center;gap:7px;padding:7px 10px;border:1px solid var(--border);border-radius:8px;white-space:nowrap;font-size:13px;font-weight:600;background:var(--paper)}
.account-trigger::-webkit-details-marker{display:none}
.account-trigger::marker{content:''}
.account-trigger:hover,.account-menu[open] .account-trigger{background:var(--mint)}
.account-trigger:focus-visible{outline:3px solid #88bcb0;outline-offset:3px}
.account-trigger .nickname{display:block;max-width:170px;overflow:hidden;text-overflow:ellipsis}.account-chevron{font-size:12px;color:var(--muted)}
.account-dropdown{position:absolute;right:0;top:calc(100% + 8px);z-index:30;width:max-content;min-width:158px;background:var(--paper);border:1px solid var(--border);border-radius:10px;box-shadow:0 8px 24px #182f2624;padding:5px}
.account-dropdown>a,.account-dropdown>button{display:block;width:100%;box-sizing:border-box;padding:10px 12px;text-align:left;border:0;border-radius:6px;background:transparent;font-size:13px;color:var(--ink);font-family:inherit;cursor:pointer;white-space:nowrap;text-decoration:none}
.account-dropdown>a:hover,.account-dropdown>button:hover{background:var(--mint);text-decoration:none}
.account-dropdown>button[data-action="logout"]{color:#a74236;border-top:1px solid var(--border);border-radius:0 0 6px 6px}
.profile-title{display:flex;align-items:center;justify-content:space-between;gap:12px}
.profile-title .page-title{margin-bottom:16px}
.profile-title .logout-link{margin-bottom:16px;color:#a74236}.page-shell{max-width:1392px;margin:32px auto 65px;display:grid;grid-template-columns:205px minmax(0,1fr) 260px;gap:30px;padding:0 32px}.sidebar{padding-top:8px}.sidebar nav{display:flex;flex-direction:column;gap:6px}.nav-link{display:flex;align-items:center;gap:12px;color:var(--muted);border-radius:9px;padding:10px 12px;font-size:14px}.nav-link.active{background:var(--mint);color:var(--green);font-weight:650}.nav-link:hover{background:#e9eee4;text-decoration:none}.icon{width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.sidebar-label{font-size:10px;letter-spacing:1.7px;color:#8a948b;font-weight:650;text-transform:uppercase;margin:30px 12px 10px}.sidebar-note{border-top:1px solid var(--border);margin:32px 12px 0;padding-top:23px;font-size:12px;color:var(--muted);line-height:1.8}.sidebar-note strong{color:var(--green);display:block;font-family:Georgia,serif;font-size:20px;line-height:1.4;font-weight:400;margin-bottom:8px}.hero{padding:32px 34px;background:var(--green);color:#fff;position:relative;border-radius:var(--radius);overflow:hidden;margin-bottom:26px}.hero:after{content:"";position:absolute;width:170px;height:210px;right:-30px;bottom:-110px;border:28px solid #79a39433;border-radius:50% 50% 0 0;transform:rotate(-30deg)}.eyebrow{font-size:10px;text-transform:uppercase;letter-spacing:2px;font-weight:650;color:#b8d3bd;margin-bottom:12px}.hero h1{font-family:Georgia,"Times New Roman",serif;font-size:36px;line-height:1.2;font-weight:400;letter-spacing:-.8px;max-width:450px;margin:0 0 14px}.hero p{color:#d4e5db;font-size:13px;max-width:400px;margin:0 0 24px}.hero .button{background:#f2f2df;color:var(--green);border:0;padding:9px 17px;font-size:12px}.hero-subnote{font-size:10px;color:#c1d6c8;margin-left:12px}.button{border:1px solid var(--border);border-radius:8px;background:var(--paper);padding:9px 16px;font-size:13px;font-weight:600;display:inline-flex;justify-content:center;align-items:center;gap:7px;text-decoration:none;line-height:1.5}.button:hover{text-decoration:none;background:#eef1e8}.button.primary{background:var(--green);color:#fff;border-color:var(--green)}.button.primary:hover{background:var(--green-hover)}.button.danger{color:#a74236;border-color:#e7bfb6}.button.small{font-size:11px;padding:6px 10px}.button.ghost{border-color:transparent;background:transparent;padding-left:0;color:var(--muted)}.button.active{color:var(--green);background:var(--mint);border-color:#bfdbce}.search-card{border:1px solid var(--border);background:var(--paper);padding:17px;border-radius:12px;margin-bottom:25px}.search-field{display:flex;gap:10px;align-items:center}.search-field>input{flex:1;min-width:0;border:0;background:transparent;padding:7px 0;font-size:13px;outline-offset:0}.search-field .icon{color:#7b9284}.filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:12px;padding-top:13px;border-top:1px solid #edf0e7}.filter-grid label{font-size:10px;color:var(--muted)}.filter-grid select{width:100%;border:1px solid var(--border);background:#fafbf5;color:var(--ink);border-radius:6px;padding:6px;font-size:11px;margin-top:4px}.feed-heading{display:flex;align-items:center;justify-content:space-between;margin:8px 0 14px;gap:10px}.feed-heading h2{font-family:Georgia,serif;font-size:22px;font-weight:400;margin:0}.feed-heading select{background:transparent;border:0;color:var(--muted);font-size:12px;max-width:145px}.subtle{color:var(--muted);font-size:12px}.topic-card,.panel{border:1px solid var(--border);background:var(--paper);border-radius:12px;padding:23px;margin-bottom:13px}.topic-card{transition:box-shadow .15s}.topic-card-main{cursor:pointer}.topic-card:hover{box-shadow:0 4px 16px #204c3a08}.topic-meta{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:11px;flex-wrap:wrap}.avatar{display:inline-flex;align-items:center;justify-content:center;width:25px;height:25px;background:#e7eadd;color:#6a7a5f;border-radius:50%;font-size:10px;font-weight:650}.topic-card h3{font-family:Georgia,serif;font-size:21px;font-weight:400;line-height:1.4;letter-spacing:-.2px;margin:11px 0 9px}.topic-card h3 a{color:var(--ink)}.summary{font-size:13px;color:var(--muted);margin:0 0 13px;line-height:1.8}.tags{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}.tag{font-size:10px;background:#eef2e7;color:#687a57;padding:3px 8px;border-radius:5px}.tag.symptom{background:#f6eee5;color:#9a7558}.tag.treatment{background:#eaf0f4;color:#6e8090}.card-footer{display:flex;align-items:center;gap:15px;padding-top:14px;margin-top:14px;border-top:1px solid #eff0e9;flex-wrap:wrap}.text-action{display:inline-flex;align-items:center;gap:5px;background:none;border:0;padding:0;color:var(--muted);font-size:11px}.text-action.active{color:var(--green);font-weight:650}.text-action .icon,.text-action svg{width:16px;height:16px}.spacer{margin-left:auto}.rail-panel{background:var(--paper);border:1px solid var(--border);border-radius:12px;padding:22px;margin-bottom:20px}.rail-panel h3{font-family:Georgia,serif;font-size:20px;font-weight:400;margin:0 0 12px;line-height:1.3}.rail-panel p{font-size:12px;color:var(--muted);line-height:1.8}.rail-panel.accent{background:#edf0e4;border-color:transparent}.rail-panel.accent .icon{color:#7c8f5f;margin-bottom:14px}.rail-line{display:flex;gap:10px;margin:13px 0;align-items:flex-start;font-size:12px;color:var(--muted)}.rail-line .icon{color:var(--green);width:16px;height:16px}.rail-caption{font-size:10px;letter-spacing:1.5px;text-transform:uppercase;color:#8b947e;margin-bottom:15px}.rail-panel .button{width:100%;margin-top:8px}.empty{padding:42px 20px;text-align:center}.empty>.icon{width:50px;height:50px;border-radius:50%;background:var(--mint);color:var(--green);margin-bottom:12px}.empty h3{font-family:Georgia,serif;font-size:24px;font-weight:400;margin:2px 0 10px}.empty p{max-width:350px;margin:0 auto 20px;font-size:13px;color:var(--muted)}.notice{padding:13px 16px;background:var(--soft-coral);color:#8d654c;border-radius:8px;font-size:12px;margin:14px 0}.notice.info{background:var(--mint);color:var(--green)}.notice.error{background:#fae9e2;color:#973d31}.form-grid{display:grid;gap:18px}.form-grid label{display:block;font-size:13px;font-weight:600}.form-grid input,.form-grid textarea,.form-grid select{display:block;width:100%;background:var(--paper);border:1px solid #d6ded2;border-radius:8px;color:var(--ink);padding:10px 12px;margin-top:6px;font-size:14px}.form-grid textarea{min-height:180px;resize:vertical;line-height:1.8}.form-grid .short{min-height:90px}.form-grid small{font-size:11px;font-weight:400;color:var(--muted)}.form-grid .check{display:inline-flex;align-items:center;gap:7px;margin:3px 10px 3px 0;font-size:12px;font-weight:400}.check input{width:auto;margin:0}.form-actions{display:flex;gap:10px;justify-content:flex-end;align-items:center}.page-title{font-family:Georgia,serif;font-size:32px;font-weight:400;line-height:1.25;margin:16px 0 24px}.back-link{font-size:12px;color:var(--muted)}.article-title{font-family:Georgia,serif;font-size:32px;font-weight:400;line-height:1.3;margin:18px 0}.prose{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.9}.deleted{color:#8b938b;font-style:italic}.translation-note{font-size:10px;color:#899482;margin:9px 0}.translation-note button{font-size:10px;background:none;border:0;text-decoration:underline;color:var(--green);padding:0 5px}.progress-panel{border-left:3px solid #7b9e7a;background:#f2f5e9;padding:18px 20px;margin:20px 0;border-radius:0 10px 10px 0}.progress-panel h3{font-size:15px;margin:0 0 10px}.progress-item{border-top:1px solid #dde4d3;padding:10px 0;font-size:12px}.progress-item a{display:block}.comment{padding:20px 0;border-bottom:1px solid var(--border);scroll-margin-top:100px}.comment.nested{margin-left:min(calc(var(--depth)*18px),72px);padding-left:12px;border-left:2px solid #e4eadd}.comment .prose{font-size:13px;margin:12px 0}.comment .card-footer{border:0;padding:0;margin:10px 0 0}.comment:target,.comment.just-posted{background:#edf3e7;border-radius:8px}.comment.just-posted{outline:2px solid #7b9e7a;outline-offset:2px;transition:background-color .3s ease}.tabs{display:flex;flex-wrap:wrap;gap:5px;border-bottom:1px solid var(--border);padding-bottom:12px;margin-bottom:20px}.tabs .button{font-size:11px}.notification{display:flex;gap:12px;align-items:flex-start;border-bottom:1px solid var(--border);padding:18px 0}.notification.unread{border-left:3px solid var(--green);padding-left:12px}.notification a{font-size:13px}.notification small{display:block;color:var(--muted);font-size:11px}.count{border-radius:20px;padding:0 5px;font-size:10px;min-width:16px;text-align:center;background:var(--coral);color:#fff}.bell{position:relative;border:0;background:transparent;display:flex;align-items:center;color:var(--muted);gap:3px}.metric-table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:11px}.metric-table th,.metric-table td{padding:8px;border-bottom:1px solid var(--border);text-align:left}.table-wrap{overflow:auto}.admin-row{padding:15px 0;border-top:1px solid var(--border);font-size:12px}.admin-row p{white-space:pre-wrap;overflow-wrap:anywhere;max-height:140px;overflow:auto}.admin-row .button{margin:4px 4px 4px 0}.admin-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:15px 0}.stat{background:var(--mint);padding:15px;border-radius:9px;font-size:11px;color:var(--muted)}.stat strong{display:block;font-family:Georgia,serif;font-size:26px;color:var(--green);font-weight:400}dialog{border:1px solid var(--border);border-radius:16px;background:var(--paper);padding:32px;max-width:520px;width:calc(100% - 32px);color:var(--ink);max-height:90vh;overflow:auto}dialog::backdrop{background:#1a302b66;backdrop-filter:blur(3px)}.dialog-close{position:absolute;right:12px;top:8px;font-size:25px;background:transparent;border:0;color:var(--muted)}dialog h2{font-family:Georgia,serif;font-size:26px;font-weight:400;margin:0 0 16px}dialog p{font-size:13px;color:var(--muted)}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:var(--ink);color:#fff;padding:12px 20px;border-radius:9px;font-size:13px;box-shadow:0 8px 30px #0002;z-index:50;max-width:90vw}.loading{text-align:center;padding:80px 10px}.spinner{display:inline-block;width:24px;height:24px;border:2px solid var(--border);border-top-color:var(--green);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}footer{border-top:1px solid var(--border);padding:22px 32px;text-align:center;font-size:11px;color:#7d897d;max-width:1328px;margin:0 auto}mark{background:#e6e9b4;color:inherit;padding:0 2px;border-radius:2px}.sr-only,.skip-link:not(:focus){position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip-link:focus{display:block;padding:10px}.stack{display:flex;gap:8px;flex-wrap:wrap}.status{font-size:10px;color:var(--coral)}.privacy-copy h3{font-family:Georgia,serif;font-size:21px;font-weight:400}.privacy-copy p{font-size:13px;color:var(--muted)}.load-more{display:block;margin:25px auto}.mobile-nav{display:none}
@media(min-width:1500px){.page-shell{gap:38px;grid-template-columns:215px minmax(0,1fr) 270px}.hero{padding:36px}}@media(max-width:1180px){.right-rail{display:none}.page-shell{grid-template-columns:180px minmax(0,1fr);max-width:1020px;gap:24px}.header-inner{max-width:1020px}.hero h1{font-size:36px}}@media(max-width:700px){.header-inner{padding:12px 16px;gap:8px;display:grid;grid-template-columns:auto minmax(0,1fr) auto}.brand{font-size:17px;letter-spacing:-.6px;gap:7px}.brand-icon{width:28px;height:28px}.brand-icon svg{width:23px;height:23px}.preview-badge{display:block;min-width:0;max-width:100%;justify-self:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:0;padding:3px 5px}.header-actions{gap:4px}.header-actions select{width:77px;font-size:11px}#account-actions{gap:3px}#account-actions .button{padding:7px 10px;font-size:11px}.page-shell{display:block;margin:0 auto 35px;padding:0 16px}.sidebar{padding:12px 0 18px;overflow:auto}.sidebar nav{flex-direction:row;gap:4px;min-width:max-content}.sidebar .sidebar-label,.sidebar .sidebar-note,.sidebar .secondary-nav{display:none}.sidebar .nav-link{font-size:11px;padding:7px 10px;gap:6px}.sidebar .nav-link .icon{width:16px;height:16px}.hero{padding:25px 24px;margin-bottom:20px}.hero h1{font-size:31px;max-width:310px}.hero p{font-size:12px;max-width:280px}.hero-subnote{display:block;margin:10px 0 0}.search-card{padding:13px;margin-bottom:20px}.filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.topic-card,.panel{padding:18px}.topic-card h3{font-size:20px}.article-title{font-size:27px}.card-footer{gap:14px}.comment.nested{margin-left:min(calc(var(--depth)*10px),30px);padding-left:9px}.feed-heading h2{font-size:20px}.feed-heading select{max-width:125px}.page-title{font-size:28px}.admin-grid{grid-template-columns:repeat(2,1fr)}footer{padding:20px;font-size:10px}.header-actions .nickname{display:none}.account-trigger{padding:6px 7px;gap:5px}.account-dropdown{min-width:142px}.button{padding:9px 13px}dialog{padding:27px 22px}.prose{font-size:13px}.search-field .button{font-size:11px}}@media(max-width:480px){.header-inner{grid-template-columns:minmax(0,1fr) auto}.brand{grid-column:1;grid-row:1}.header-actions{grid-column:2;grid-row:1}.preview-badge{grid-column:1/-1;grid-row:2;justify-self:center;max-width:100%}}@media(max-width:360px){.header-inner{grid-template-columns:1fr}.brand{grid-column:1;grid-row:1}.header-actions{grid-column:1;grid-row:2;justify-self:end}.preview-badge{grid-column:1;grid-row:3}}.preview-badge[hidden]{display:none!important}@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important}}

.comment[class-depth="0"]{ --depth:0; }
.comment[class-depth="1"]{ --depth:1; }
.comment[class-depth="2"]{ --depth:2; }
.comment[class-depth="3"]{ --depth:3; }
.comment[class-depth="4"]{ --depth:4; }
/* New-post navigation matches regular links, including the compact mobile row. */
.sidebar .nav-compose{border:0;background:transparent;text-align:left;width:100%;line-height:1.6;white-space:nowrap}
.sidebar .nav-compose:hover{background:#e9eee4}
@media(max-width:700px){.sidebar .nav-compose{width:auto;flex-shrink:0}}
/* iOS Safari zooms the visual viewport when a focused form control uses text smaller than 16px. Keep readable controls without disabling pinch zoom. */
@supports (-webkit-touch-callout: none) {
  input:not([type="checkbox"]):not([type="radio"]),
  textarea,
  select { font-size: 16px !important; }
}

/* On narrow screens all four primary actions must fit without horizontal scrolling,
   even with longer Spanish, Portuguese, German and French translations. */
@media(max-width:700px) {
  .sidebar .primary-nav {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    width:100%;
    min-width:0;
    gap:4px;
    align-items:stretch;
  }
  .sidebar .primary-nav .nav-link {
    box-sizing:border-box;
    width:100%;
    min-width:0;
    min-height:64px;
    padding:8px 3px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:4px;
    line-height:1.25;
    text-align:center;
    white-space:normal;
    overflow-wrap:anywhere;
  }
  .sidebar .primary-nav .nav-compose {
    width:100%;
    min-width:0;
    flex-shrink:1;
    white-space:normal;
    background:var(--green);
    color:white;
    font-weight:650;
  }
  .sidebar .primary-nav .nav-compose:hover { background:var(--green-hover); }
}
/* Safari's dynamic browser chrome and long forms must not clip the close control.
   Only the modal content scrolls; the close control stays accessible in the header. */
dialog {
  padding:0;
  overflow:hidden;
  max-height:calc(100vh - 32px);
  max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
}
dialog[open] { display:flex; flex-direction:column; }
.dialog-header {
  flex:0 0 auto;
  display:flex;
  justify-content:flex-end;
  padding:4px 8px 0;
  background:var(--paper);
}
dialog .dialog-close {
  position:static;
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  padding:0;
  line-height:1;
  flex-shrink:0;
}
dialog #modal-content {
  min-height:0;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
  padding:0 32px 32px;
}
@media(max-width:700px) {
  dialog #modal-content { padding:0 22px 27px; }
}

/* Keep the programmatically focusable main region free of Safari's blue outline when a modal closes. */
#main:focus{outline:none}
