/* Public columns share the clinic's typography and color tokens. */
body.health-public { background: var(--bg-soft); }
#health { scroll-margin-top: 14px; }
.health-section-heading { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; }
.health-section-heading h2 { margin: 0; text-align: center; }
.health-section-heading .health-more { justify-self: end; }
.health-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.health-card { min-width: 0; border: 1px solid var(--line); background: var(--paper); border-radius: 4px; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.health-card:hover { border-color: var(--gold); box-shadow: 0 8px 24px #163d320c; }
.health-card > a { display: flex; flex-direction: column; height: 100%; }
.health-card-image { position: relative; aspect-ratio: 1; overflow: hidden; background: transparent; }
.health-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.health-card:hover img { transform: scale(1.025); }
.health-sample { position: absolute; top: 12px; left: 12px; padding: 2px 9px; font-size: 12px; color: var(--green); background: #fffaf0eb; border: 1px solid var(--line); border-radius: 2px; }
.health-card-copy { padding: 22px 20px 26px; min-height: 152px; }
.health-category { color: var(--green-2); font-size: 13px; font-weight: 600; margin: 0 0 10px; overflow-wrap: anywhere; }
.health-card h3 { font-family: Pretendard, -apple-system, sans-serif; font-size: 19px; line-height: 1.6; margin: 0; color: var(--green); overflow-wrap: anywhere; word-break: keep-all; }
.health-more { padding: 6px 0; border-bottom: 1px solid var(--green); }
.health-public .site-header nav { flex-wrap: wrap; justify-content: flex-end; }
.health-page-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding-bottom: 36px; }
.health-page-heading h1 { font-size: 44px; line-height: 1.4; margin: 0; color: var(--green); overflow-wrap: anywhere; word-break: keep-all; }
.health-page-heading .eyebrow { margin-bottom: 12px; }
.health-manage-link { color: var(--green); font-weight: 600; border-bottom: 1px solid var(--green); white-space: nowrap; font-size: 14px; }
.health-categories { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 0 25px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 9px 0; }
.health-categories a { padding: 10px 0; color: #626a60; font-size: 15px; border-bottom: 2px solid transparent; overflow-wrap: anywhere; }
.health-categories a[aria-current] { color: var(--green); border-color: var(--green); font-weight: 700; }
.health-list-tools { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 0; }
.health-list-tools p { font-size: 14px; margin: 0; color: var(--muted); }
.health-list-tools strong { color: var(--green); }
.health-list-tools form { display: flex; align-items: center; border-bottom: 1px solid var(--green); max-width: 250px; }
.health-list-tools input { width: 100%; min-width: 0; background: transparent; border: 0; outline-offset: 4px; padding: 9px 0; font: inherit; font-size: 14px; }
.health-list-tools button { background: transparent; border: 0; color: var(--green); cursor: pointer; display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; }
.health-list-tools svg { width: 19px; height: 19px; }
.health-empty { text-align: center; padding: 85px 10px; color: var(--muted); }
.health-empty h2 { font-family: inherit; font-size: 20px; }
.health-empty a { border-bottom: 1px solid; }
.health-empty-inline { color: var(--muted); }
.health-pagination { justify-content: center; gap: 8px; margin-top: 48px; }
.health-pagination a { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); }
.health-pagination a[aria-current] { color: var(--paper); background: var(--green); }
.health-article { width: min(800px, calc(100% - 40px)); margin: 0 auto; padding: 40px 0 90px; }
.health-breadcrumb { flex-wrap: wrap; justify-content: flex-start; gap: 8px; font-size: 13px; font-weight: 400; color: var(--muted); padding-bottom: 38px; }
.health-breadcrumb a { overflow-wrap: anywhere; }
.health-article-heading h1 { font-size: 38px; line-height: 1.5; color: var(--green); word-break: keep-all; overflow-wrap: anywhere; margin: 12px 0 24px; }
.health-article-meta { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.health-article-meta span { margin: 0 8px; }
.health-article-cover { display: block; width: 100%; height: auto; background: transparent; }
.health-prose { padding-top: 34px; font-size: 18px; line-height: 1.95; overflow-wrap: anywhere; }
.health-prose p { margin: 0 0 1.4em; }
.health-prose h2, .health-prose h3, .health-prose h4 { font-family: Pretendard, sans-serif; color: var(--green); line-height: 1.55; margin: 1.8em 0 .7em; }
.health-prose h2 { font-size: 28px; }
.health-prose h3 { font-size: 23px; }
.health-prose h4 { font-size: 20px; }
.health-prose img { display: inline-block; max-width: 100%; height: auto; vertical-align: middle; background: transparent; }
.health-prose a { text-decoration: underline; color: var(--green-2); }
.health-prose blockquote { border-left: 3px solid var(--gold); margin: 24px 0; padding: 10px 24px; color: #4d5c51; }
.health-prose .ql-align-center { text-align: center; }
.health-prose .ql-align-right { text-align: right; }
.health-prose .ql-align-justify { text-align: justify; }
.health-prose .ql-size-small { font-size: 14px; }
.health-prose .ql-size-large { font-size: 24px; }
.health-prose .ql-size-huge { font-size: 32px; }
.health-prose .ql-indent-1 { padding-left: 2em; }
.health-prose .ql-indent-2 { padding-left: 4em; }
.health-prose .ql-indent-3 { padding-left: 6em; }
.health-article-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 30px; margin-top: 35px; border-top: 1px solid var(--line); }
.health-outline-button { display: inline-flex; justify-content: center; align-items: center; min-height: 42px; border: 1px solid var(--green); border-radius: 4px; padding: 8px 25px; color: var(--green); font: inherit; cursor: pointer; background: transparent; }

@media (min-width: 769px) {
  .health-article-heading h1 { max-width: none; font-size: 34px; text-align: left; }
  .health-article-meta { text-align: center; }
  .health-prose { font-size: 16px; }
  .health-prose h2 { font-size: 25px; }
  .health-prose h3 { font-size: 21px; }
  .health-prose h4 { font-size: 18px; }
  /* Sanity's explicit size marks must scale along with the default body text. */
  .health-prose span:is([style*="font-size:14px"], [style*="font-size: 14px"]) { font-size: 12.6px !important; }
  .health-prose span:is([style*="font-size:16px"], [style*="font-size: 16px"]) { font-size: 14.4px !important; }
  .health-prose span:is([style*="font-size:18px"], [style*="font-size: 18px"]) { font-size: 16.2px !important; }
  .health-prose span:is([style*="font-size:22px"], [style*="font-size: 22px"]) { font-size: 19.8px !important; }
  .health-prose span:is([style*="font-size:28px"], [style*="font-size: 28px"]) { font-size: 25.2px !important; }
  .health-prose span:is([style*="font-size:36px"], [style*="font-size: 36px"]) { font-size: 32.4px !important; }
  .health-prose .ql-size-small { font-size: 12.6px; }
  .health-prose .ql-size-large { font-size: 21.6px; }
  .health-prose .ql-size-huge { font-size: 28.8px; }
  .health-article-cover { width: 85%; margin-inline: auto; }
  .health-prose img { display: block; width: 85%; max-width: 85%; margin-inline: auto; }
  .health-prose img[width="640"] { width: 544px; }
  .health-prose img[width="400"] { width: 340px; }
  .health-prose img[width="240"] { width: 204px; }
}

/* The editor is a separate local tool; existing main-page styles stay untouched. */
.health-editor-page { background: #f1f3f0; color: #23372c; font-family: Pretendard, -apple-system, sans-serif; }
.health-editor-page button, .health-editor-page input, .health-editor-page select, .health-editor-page textarea { font: inherit; }
.health-editor-page button, .health-editor-page a, .health-editor-page input, .health-editor-page select { -webkit-tap-highlight-color: transparent; }
.health-editor-header { position: sticky; top: 0; z-index: 30; min-height: 76px; padding: 14px 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid #d9dfd9; background: #fff; }
.health-editor-brand { display: flex; align-items: center; gap: 12px; }
.health-editor-brand img { width: 36px; height: 36px; }
.health-editor-brand strong { display: block; font-size: 17px; }
.health-editor-brand small { display: block; color: #6f786f; font-size: 12px; }
.health-editor-actions { display: flex; align-items: center; gap: 8px; }
.editor-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 8px 13px; border-radius: 4px; border: 1px solid #cfd8d0; background: #fff; color: #234734; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; text-decoration: none; }
.editor-button:hover { background: #eef3ef; }
.editor-button.primary { background: #163d32; border-color: #163d32; color: #fff; }
.editor-button.danger { color: #ae3333; }
.editor-button:disabled { opacity: .5; cursor: wait; }
.editor-button[hidden] { display: none; }
.editor-button svg { width: 17px; height: 17px; flex-shrink: 0; }
.editor-icon-button { width: 40px; padding: 8px; }
.health-editor-layout { display: grid; grid-template-columns: 255px minmax(0, 1fr); min-height: calc(100vh - 76px); max-width: 1700px; margin: auto; }
.editor-library { background: #f7f8f6; border-right: 1px solid #d9dfd9; padding: 24px 18px; }
.editor-library summary { cursor: pointer; font-weight: 700; font-size: 15px; }
.editor-library-actions { display: flex; align-items: center; justify-content: space-between; margin: 18px 0; gap: 8px; }
.editor-library-actions select { width: 105px; border: 1px solid #d3dad3; border-radius: 4px; padding: 8px; background: white; font-size: 13px; }
.editor-post-list { display: flex; flex-direction: column; gap: 3px; }
.editor-post-item { width: 100%; padding: 14px 10px; background: transparent; border: 1px solid transparent; border-radius: 4px; cursor: pointer; text-align: left; color: #23372c; }
.editor-post-item:hover { background: #e9eeea; }
.editor-post-item[aria-current] { border-color: #b7c9bc; background: #e8efe9; }
.editor-post-item strong { display: block; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; word-break: keep-all; }
.editor-post-item small { display: block; color: #6f786f; font-size: 12px; margin-top: 6px; }
.editor-post-empty { font-size: 14px; color: #6f786f; padding: 14px 8px; }
.editor-workspace { padding: 30px; min-width: 0; }
.editor-workspace-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 20px; }
.editor-workspace-heading h1 { font-size: 24px; font-family: inherit; margin: 0; }
.editor-state { color: #657367; font-size: 13px; }
.editor-error { color: #a22b2b; border-left: 3px solid #b94b4b; padding: 10px 14px; background: #fff0ed; margin-bottom: 18px; font-size: 14px; }
.editor-error[hidden] { display: none; }
.editor-form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 230px; align-items: start; gap: 24px; }
.editor-document { border: 1px solid #d8ded7; background: #fff; border-radius: 4px; overflow: hidden; min-width: 0; }
.editor-title { width: 100%; border: 0; border-bottom: 1px solid #e5e9e3; font-size: 27px !important; font-weight: 700; padding: 25px 28px; resize: none; min-height: 96px; line-height: 1.5; border-radius: 0; color: #23372c; }
.editor-title:focus { outline: 2px solid #a1b6a7; outline-offset: -2px; }
#health-toolbar { border: 0; border-bottom: 1px solid #e5e9e3; background: #fafbf9; padding: 10px 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
#health-toolbar .ql-formats { margin-right: 8px; display: inline-flex; align-items: center; }
#health-toolbar button { width: 30px; height: 30px; border-radius: 3px; }
#health-toolbar button:hover { background: #e4ece4; }
#health-toolbar svg { width: 17px; height: 17px; }
#health-toolbar .ql-picker { font-size: 13px; color: #334c3c; }
#health-toolbar .ql-picker.ql-header { width: 90px; }
#health-toolbar .ql-picker.ql-size { width: 78px; }
#health-toolbar .ql-picker-label { display: flex; align-items: center; padding-right: 18px; }
#health-toolbar .ql-color .ql-picker-label, #health-toolbar .ql-background .ql-picker-label { padding: 2px; }
#health-toolbar .ql-color svg, #health-toolbar .ql-background svg, #health-toolbar .ql-align svg { width: 22px; height: 22px; }
#health-toolbar .ql-picker-options { z-index: 5; }
#health-editor { border: 0; font-family: inherit; font-size: 18px; min-height: 480px; }
#health-editor .ql-editor { padding: 28px; min-height: 480px; line-height: 1.95; overflow-wrap: anywhere; }
#health-editor .ql-editor.ql-blank::before { left: 28px; right: 28px; font-style: normal; color: #9aa598; }
#health-editor .ql-editor img { max-width: 100%; height: auto; cursor: pointer; }
.editor-settings { min-width: 0; }
.editor-field { display: block; margin-bottom: 23px; }
.editor-field > span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 9px; }
.editor-field select, .editor-field input { width: 100%; min-width: 0; padding: 11px 10px; border: 1px solid #cdd7cd; border-radius: 4px; color: #23372c; background: #fff; font-size: 14px; }
.editor-field select { text-overflow: ellipsis; }
.editor-publisher { padding: 0 0 20px; margin-bottom: 22px; border-bottom: 1px solid #d8ded7; }
.editor-publisher dt { font-size: 13px; color: #6b786c; margin-bottom: 4px; }
.editor-publisher dd { margin: 0; font-size: 15px; font-weight: 600; }
.editor-cover-button { padding: 0; width: 100%; display: grid; place-items: center; aspect-ratio: 1; background: #e7ece6; border: 1px dashed #b7c6b8; border-radius: 4px; color: #536b58; cursor: pointer; overflow: hidden; }
.editor-cover-button img { width: 100%; height: 100%; display: block; object-fit: cover; }
.editor-cover-button img[hidden] { display: none; }
.editor-cover-placeholder { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 14px; }
.editor-cover-placeholder svg { width: 26px; height: 26px; }
.editor-cover-placeholder[hidden] { display: none; }
.editor-cover-actions { display: flex; gap: 8px; margin-top: 10px; }
.editor-cover-actions button { width: 100%; }
.editor-setting-footer { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 20px; border-top: 1px solid #d8ded7; }
.editor-setting-footer [hidden] { display: none; }
.editor-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); padding: 12px 22px; max-width: calc(100% - 32px); background: #163d32; color: #fff; border-radius: 4px; font-size: 14px; z-index: 100; box-shadow: 0 5px 20px #163d3220; }
.editor-dialog { padding: 0; width: min(950px, calc(100% - 30px)); max-height: calc(100vh - 40px); border: 1px solid #d1d9d1; border-radius: 6px; }
.editor-dialog::backdrop { background: #1b302665; }
.editor-dialog-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; border-bottom: 1px solid #d8ded7; background: white; }
.editor-dialog-head h2 { font: 600 17px Pretendard, sans-serif; margin: 0; }
.editor-dialog iframe { display: block; width: 100%; height: calc(85vh - 70px); border: 0; }
.editor-image-form { padding: 24px; display: grid; gap: 18px; }
.editor-image-form img { max-height: 200px; max-width: 100%; margin: auto; }
.editor-image-form label { display: grid; gap: 8px; font-size: 14px; }
.editor-image-form input, .editor-image-form select { width: 100%; padding: 10px; border: 1px solid #cdd7cd; border-radius: 4px; background: white; }
.editor-image-form .editor-button { justify-self: end; }
@media (max-width: 1200px) {
  .health-editor-layout { grid-template-columns: 220px minmax(0, 1fr); }
  .editor-workspace { padding: 24px; }
  .editor-form-layout { grid-template-columns: minmax(0, 1fr) 200px; gap: 18px; }
  .health-editor-actions .editor-action-label { display: none; }
}
@media (max-width: 1000px) {
  .health-editor-layout { display: block; }
  .editor-library { border-right: 0; border-bottom: 1px solid #d9dfd9; padding: 14px 24px; }
  .editor-post-list { max-height: 170px; overflow-y: auto; }
  .editor-form-layout { grid-template-columns: minmax(0, 1fr) 220px; }
}
@media (max-width: 768px) {
  .health-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  .health-section-heading { grid-template-columns: 1fr auto; gap: 8px 12px; align-items: end; }
  .health-section-heading .eyebrow { grid-column: 1 / -1; }
  .health-section-heading h2 { text-align: left; font-size: 26px; word-break: keep-all; }
  .health-section-heading a { display: block; font-size: 14px; }
  .health-card-copy { padding: 17px 13px 21px; min-height: 148px; }
  .health-card h3 { font-size: 16px; }
  .health-card .health-category { font-size: 12px; }
  .health-page-heading { align-items: start; padding-bottom: 25px; }
  .health-page-heading h1 { font-size: 30px; }
  .health-categories { gap: 0 18px; }
  .health-categories a { font-size: 14px; }
  .health-list-tools { padding: 22px 0; }
  .health-list-tools form { max-width: 190px; }
  .health-article-heading h1 { font-size: 28px; }
  .health-prose { font-size: 17px; }
  .health-article { padding-top: 26px; }
  .health-breadcrumb { padding-bottom: 28px; font-size: 12px; }
  .health-editor-header { padding: 12px 16px; flex-wrap: wrap; gap: 14px; }
  .health-editor-brand small { font-size: 11px; }
  .health-editor-actions { margin-left: auto; }
  .health-editor-actions .editor-button { padding: 8px 10px; min-width: 38px; }
  .editor-workspace { padding: 22px 16px; }
  .editor-workspace-heading { flex-wrap: wrap; }
  .editor-form-layout { grid-template-columns: minmax(0, 1fr); }
  .editor-settings { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 18px; }
  .editor-settings .editor-publisher { grid-column: 1 / -1; }
  .editor-settings .editor-cover-field { grid-column: 1; grid-row: span 2; }
  .editor-setting-footer { grid-column: 1 / -1; }
  .editor-title { padding: 20px; font-size: 23px !important; }
  #health-editor .ql-editor { padding: 20px; }
  #health-editor .ql-editor.ql-blank::before { left: 20px; right: 20px; }
}
@media (prefers-reduced-motion: reduce) { .health-card, .health-card img { transition: none; } }
