.health-page{background:#f5f7ef;color:#263d2e}.health-hero{display:grid;grid-template-columns:1.3fr 1fr;gap:2rem;align-items:center;background:#e7efd8;border-radius:30px;padding:32px;margin:25px 0}.health-hero h1{font:500 clamp(1.2rem,2.2vw,2.25rem)/1.15 Georgia,serif;letter-spacing:-.04em;margin:18px 0}.health-hero p{max-width:48ch}.health-hero img{width:100%;height:260px;object-fit:contain;border-radius:0;background:transparent}.health-kicker{font-size:12px;letter-spacing:.14em;font-weight:800;color:#5b7449}.health-button{display:inline-block;border:1px solid #a4bb8c;background:#e5efd7;color:#29432d;border-radius:999px;padding:10px 17px;text-decoration:none;font:inherit;cursor:pointer}.health-button:disabled{opacity:.6;cursor:wait}.health-horse-picker{display:flex;align-items:end;flex-wrap:wrap;gap:16px;margin:24px 0}.health-horse-picker label{min-width:220px}.health-page label{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:600;margin-bottom:13px}.health-page input:not([type=checkbox]),.health-page select,.health-page textarea{box-sizing:border-box;width:100%;padding:11px;border:1px solid #c8d4be;border-radius:10px;background:#fff;font:inherit;color:#263d2e}.health-page textarea{resize:vertical}.health-page input[type=checkbox]{width:18px;height:18px}.health-tabs{display:flex;gap:6px;align-items:stretch;overflow-x:auto;padding:12px 10px 0}.health-tabs a{background:#dce5d2;color:#445d3c;border:1px solid #becdb1;border-bottom:0;border-radius:16px 16px 0 0;padding:16px;text-decoration:none;flex:1;min-width:125px;text-align:center;font-size:14px;font-weight:700}.health-tabs a.active{background:#fffef9;position:relative;z-index:1;box-shadow:0 -4px 0 #86a36a}.health-sheet{background:#fffef9;border:1px solid #c9d4c0;border-radius:20px;padding:30px;box-shadow:0 12px 35px #314b2010;min-height:400px}.health-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.health-passport{display:grid;grid-template-columns:minmax(200px,300px) 1fr;gap:30px;margin-bottom:24px}.health-portrait{width:100%;max-height:300px;object-fit:contain;border-radius:18px;background:#edf2e5}.health-photo-placeholder,.health-empty{padding:30px;background:#edf2e5;border-radius:18px;margin-bottom:20px}.health-details{display:grid;grid-template-columns:140px 1fr;gap:12px}.health-details dt{color:#658057}.health-details dd{margin:0}.health-hint{font-size:13px;color:#5b6c55;line-height:1.6}.health-check{flex-direction:row!important;align-items:center}.health-editor{background:#f0f4e8;padding:18px;border-radius:16px;margin:20px 0}.health-page summary{cursor:pointer;font-weight:700;padding:8px 0}.health-record{border:1px solid #d8dfce;border-radius:18px;padding:20px;margin:20px 0}.health-record header{display:flex;justify-content:space-between;gap:15px;align-items:start}.health-record h3{margin:10px 0}.health-status{font-size:12px;background:#f2edcf;padding:5px 10px;border-radius:20px}.health-pre{white-space:pre-wrap;overflow-wrap:anywhere}.health-files{display:flex;flex-wrap:wrap;gap:15px;margin-bottom:15px}.health-file{width:180px;max-width:100%;padding:10px;border-radius:12px;background:#f3f5ee;overflow-wrap:anywhere}.health-file img{width:100%;height:130px;object-fit:contain}.health-file span{display:block;font-size:12px}.health-delete{border:1px solid #e6c6ba;background:#fbede6;border-radius:20px;padding:7px 13px;color:#834a3d;cursor:pointer;margin-top:10px}.health-alert{padding:15px;border-radius:14px;background:#e2efd6}.health-error{background:#fae1d7}.health-paging,.health-calendar-nav,.health-calendar-links{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:20px 0}.health-calendar-nav{align-items:center}.health-calendar-nav form{display:flex;align-items:end;gap:12px}.health-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.health-weekday{text-align:center;font-weight:700;padding:10px}.health-day{min-height:110px;background:#edf3e3;border-radius:10px;padding:8px;overflow-wrap:anywhere}.health-day.muted{opacity:.45}.health-day a{display:block;font-size:11px;margin-top:6px;color:#31532c}.health-agenda{margin:20px 0}.health-agenda article{display:flex;gap:10px;flex-wrap:wrap;padding:12px;border-bottom:1px solid #e1e8d9}.health-compare{margin-top:35px}.health-compare-image{width:100%;height:330px;object-fit:contain;background:#eef1e9;border-radius:15px}.health-reminder-note{background:#eef3e6;border-radius:18px;padding:20px;line-height:1.7}.health-footer{text-align:center;padding:35px;font-size:13px}.health-footer a{color:#3c6135}.health-page a:focus-visible,.health-page button:focus-visible{outline:3px solid #64884c;outline-offset:3px}
@media(max-width:720px){.health-hero{grid-template-columns:1fr;padding:22px;gap:15px}.health-hero img{height:220px}.health-sheet{padding:18px}.health-form-grid,.health-passport{grid-template-columns:1fr}.health-portrait{max-height:250px}.health-tabs a{padding:12px 10px}.health-calendar{gap:2px}.health-day{min-height:65px;padding:5px}.health-day a{font-size:10px;max-height:38px;overflow:hidden}.health-calendar-nav form{flex-wrap:wrap}.health-horse-picker>span{font-size:12px}.health-record{padding:15px}.health-compare-image{height:250px}.site-header nav{flex-wrap:wrap}}

.health-landing-visual{height:240px;padding:0;background:#edf3e4;overflow:hidden}.health-landing-visual img{display:block;height:100%;width:100%;object-fit:contain;border-radius:0}.health-landing-card .card-content>p{font-size:12px;color:#617453}

/* Align the horse picker with the notebook content and center calendar controls. */
.health-horse-picker{padding:0 30px}.health-horse-picker label{margin-bottom:0}.health-calendar-title{text-align:center}.health-calendar-nav{display:grid;grid-template-columns:auto minmax(180px,280px) auto;justify-content:center;align-items:end;gap:22px}.health-calendar-nav form{display:block;margin:0}.health-calendar-nav label{margin:0;text-align:center;align-items:center}.health-calendar-nav input{width:100%}.health-calendar-nav>a{align-self:end}.health-page main[aria-busy="true"]{cursor:progress}
@media(max-width:720px){.health-horse-picker{padding:0 18px}.health-calendar-nav{grid-template-columns:auto minmax(140px,1fr) auto;gap:10px}.health-calendar-nav form{min-width:0}}

/* Matching pill navigation at the top and bottom of the health module. */
.health-page .site-header{height:auto;min-height:96px;flex-wrap:wrap;padding-top:18px;padding-bottom:18px}
.health-module-nav{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px}
.health-module-nav a{text-decoration:none;font-size:.9rem;font-weight:650}
.health-module-nav a:hover{text-decoration:none}
.health-bottom-navigation{padding:30px clamp(18px,5vw,75px) 20px}
@media(max-width:560px){.health-module-nav a{font-size:.73rem}.health-bottom-navigation{padding:24px 18px 18px}}

/* Soften the JPEG scene edges against the card without a transparent image asset. */
.health-landing-visual img{width:auto;max-width:100%;margin:0 auto;-webkit-mask-image:linear-gradient(to right,transparent,#000 8px,#000 calc(100% - 8px),transparent),linear-gradient(to bottom,transparent,#000 8px,#000 calc(100% - 8px),transparent);-webkit-mask-composite:source-in;mask-image:linear-gradient(to right,transparent,#000 8px,#000 calc(100% - 8px),transparent),linear-gradient(to bottom,transparent,#000 8px,#000 calc(100% - 8px),transparent);mask-composite:intersect}

/* CSP-safe temporary override while restoring the viewport after navigation. */
html.health-scroll-restore{scroll-behavior:auto!important}

/* Passport: title and horse name share the first row; artwork stays in the tab. */
.health-passport{grid-template-columns:minmax(200px,300px) minmax(240px,1fr) minmax(180px,300px);align-items:start}
.health-passport-photo h2{margin:0 0 24px;line-height:1.3}
.health-passport-data h3{margin:0 0 24px;line-height:1.3}
.health-passport-art{isolation:isolate;background:#fffef9;align-self:center}
.health-passport-art img{display:block;width:100%;height:auto;max-height:360px;object-fit:contain;mix-blend-mode:multiply}
@media(max-width:1000px) and (min-width:721px){.health-passport{grid-template-columns:minmax(200px,260px) minmax(0,1fr)}.health-passport-art{grid-column:1/-1;justify-self:center;width:220px}}
@media(max-width:720px){.health-passport{grid-template-columns:minmax(0,1fr)}.health-passport-art{justify-self:center;width:min(100%,240px)}.health-details{grid-template-columns:minmax(100px,140px) minmax(0,1fr)}}

/* Module menus: current Health page matches the other public modules. */
.health-page .health-module-nav a[aria-current="page"]{background:#e2edd7}
.health-page .health-module-nav a,
.health-page .health-module-nav a:hover,
.health-page .health-module-nav a:focus-visible,
.health-page .health-module-nav a:active{text-decoration:none}

/* Homepage Calendar: same 240px illustration height as the other cards, full frame. */
.calendar-landing-visual.calendar-home-full-image{height:240px;background:#f8f2f2}
.calendar-landing-visual.calendar-home-full-image img{display:block;width:100%;height:100%;max-width:100%;object-fit:contain;margin:0;-webkit-mask-image:none;mask-image:none;border-radius:0}

/* Tight vertical illustration spacing in Health and Calendar banners. */
.health-page .health-hero{padding-top:8px;padding-bottom:8px}

.health-warning-dialog {
  box-sizing: border-box;
  width: min(440px, calc(100% - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  padding: clamp(18px, 4vw, 26px);
  border: 1px solid #bacbad;
  border-radius: 22px;
  background: #fffef9;
  color: #263d2e;
  box-shadow: 0 20px 70px #20301845;
}
.health-warning-dialog::backdrop { background: #1b2e2380; }
.health-warning-dialog h2 { margin: 0 0 10px; font-size: 22px; }
.health-warning-dialog p { margin: 0 0 20px; }
.health-warning-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.health-warning-actions [hidden] { display: none; }
.health-warning-actions .health-warning-delete { background: #fbede6; border-color: #e6c6ba; color: #834a3d; }
