@font-face {
  font-family: NurseryIcons;
  src: url("icons.ttf") format("truetype");
  font-display: block;
}

:root {
  --bg: #f6f6f0;
  --surface: #fffefa;
  --text: #202e28;
  --muted: #58675e;
  --line: #d8ddd2;
  --accent: #27573d;
  --accent-soft: #e7eddf;
  --radius: 12px;
  --title-face: Georgia, "Times New Roman", serif;
  --gutter: clamp(18px, 3vw, 52px);
}
body { font: 15px/1.5 "Segoe UI", Arial, sans-serif; }
.skip-link { position: fixed; top: -6rem; left: 1rem; z-index: 8; padding: .7rem 1rem; background: white; }
.skip-link:focus { top: 1rem; }
.shell { display: grid; grid-template-columns: 234px minmax(0, 1fr); align-items: start; }
.site-header {
  position: sticky; top: 0; height: 100vh; height: 100dvh;
  display: flex; flex-direction: column; color: var(--text);
  background: #eff1e9; border-right: 1px solid var(--line);
}
.masthead { padding: 26px 14px 30px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); }
.brand span { margin: 0; color: inherit; font: bold 21px/1.1 var(--title-face); }
.brand small, .user-box small { display: block; color: var(--muted); font: 13px/1.5 "Segoe UI", Arial, sans-serif; }
.brandmark { display: grid; place-items: center; width: 38px; height: 38px; color: #fff9df; background: #244c36; border-radius: 50%; font: 34px/1 var(--title-face); }
#site-navigation { min-height: 0; flex: 1; display: flex; flex-direction: column; overflow-y: auto; }
.nav { display: flex; flex-direction: column; flex-wrap: nowrap; gap: 3px; padding: 3px 12px; background: transparent; }
.nav a { gap: 12px; border: 0; border-radius: 8px; padding: 10px 12px; color: var(--text); font-size: 15px; }
.primary-nav > a:hover, .secondary-nav a:hover { background: #e2e8dc; color: var(--accent); }
.primary-nav > a.active, .primary-nav > a[aria-current] { background: #d7e4ce; color: #21492f; font-weight: 650; }
.secondary-nav { margin: 1px 0 6px 22px; padding: 0 0 0 6px; border: 0; border-left: 1px solid #b8c8b5; }
.secondary-nav a { padding: 6px 10px; font-size: 14px; min-height: 36px; }
.secondary-nav a[aria-current] { color: var(--accent); background: #e2e9db; font-weight: 650; }
.glyph { font: normal 16px NurseryIcons; min-width: 18px; text-align: center; }
.user-box { justify-content: space-between; margin: auto 14px 0; padding: 18px 1px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.main { max-width: 1600px; margin: 0 auto; padding: 0 var(--gutter) 20px; }
.topbar { min-height: 52px; margin: 0 calc(0px - var(--gutter)); padding: 0 var(--gutter); background: var(--surface); }
.crumbs a { text-underline-offset: 3px; }
.page { padding-top: 24px; }
.page > h1, .page-head h1, .hero h1 { font: normal clamp(32px, 3.4vw, 52px)/1.09 var(--title-face); letter-spacing: -.035em; margin: 0 0 14px; }
.page > h2, .section-head h2, .card > h2 { font: normal clamp(23px, 2vw, 32px)/1.16 var(--title-face); letter-spacing: -.025em; }
.page .hero {
  display: flex; flex-direction: column; justify-content: center; min-height: 192px;
  padding: 30px clamp(20px, 3vw, 44px); border-radius: 16px; color: #fffefa;
  background: linear-gradient(90deg, #213f2d 3%, rgb(32 61 43 / 94%) 28%, rgb(34 54 34 / 62%) 52%, transparent 88%), url("orchard.jpg") center 56%/cover, #25462d;
}
.hero h1 { font-size: clamp(38px, 4vw, 62px); margin: 6px 0; }
.hero time { color: #e7efdF; }
.hero time::first-letter { text-transform: uppercase; }
.page .hero p { margin: 0; font-size: 16px; color: #f2f5ea; }
.quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card, .tile { padding: clamp(16px, 1.7vw, 26px); }
.tile { align-items: flex-start; }
.tile h3, .tile h2 { margin: 0; font-size: 17px; }
.tile:hover { border-color: #8fa58a; box-shadow: 0 3px 16px rgb(44 65 39 / 8%); }
.iconbox { width: 39px; height: 39px; margin-bottom: 9px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.quick-grid .tile:nth-child(2) .iconbox { background: #f1ebda; color: #805e2b; }
.section-head, .batch-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.section-head { justify-content: space-between; margin: 28px 0 12px; }
.section-head h2 { margin: 0; }
.batch-tabs { margin: 14px 0; }
.batch-tabs a { border-radius: 999px; padding: 7px 12px; border: 1px solid var(--line); text-decoration: none; background: var(--surface); }
.batch-tabs a[aria-current] { background: var(--accent); color: white; border-color: var(--accent); }
.button, button, .stat, .alert, .notice { border-radius: 8px; }
button:disabled { cursor: default; }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea {
  border: 1px solid #abb7a7; border-radius: 7px; min-height: 40px; margin-top: 4px; max-width: min(100%, 520px);
}
textarea { display: block; width: 100%; padding: 8px 10px; font: inherit; }
input[type="file"] { width: 100%; border: 1px dashed #a6b79e; border-radius: 9px; padding: 14px; background: #f5f7f0; }
input[type="file"]::file-selector-button { padding: 7px 12px; margin-right: 8px; color: var(--accent); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
fieldset { min-width: 0; margin: 12px 0; padding: 14px; border: 1px solid var(--line); border-radius: 8px; }
legend { padding: 0 6px; font-weight: 600; }
#scenario-editor button[name="edit"], #scenario-editor button[value="load"] { background: var(--surface); color: var(--accent); border-color: var(--line); margin-block: 4px; }
.page > p[role="alert"], .page > p[role="status"] { padding: 12px 16px; border-radius: 8px; background: var(--warn-soft); color: var(--text); }
.page > p[role="status"] { background: var(--accent-soft); }
th, td { padding: 10px 12px; }
tbody tr:target { outline: 2px solid var(--accent); outline-offset: -2px; background: var(--accent-soft); }
.sheet-scroll { border: 1px solid var(--line); border-radius: 8px; }
.sheet-scroll th:first-child { position: sticky; left: 0; background: var(--accent-soft); }
.sheet-scroll thead th:first-child { z-index: 1; }
@media (max-width: 1020px) and (min-width: 761px) {
  .shell { grid-template-columns: 205px minmax(0, 1fr); }
  .masthead { padding-inline: 10px; }
  .brand span { font-size: 19px; }
}
@media (max-width: 760px) {
  .shell { display: block; }
  .site-header { position: static; height: auto; border: 0; border-bottom: 1px solid var(--line); }
  .masthead { flex-wrap: nowrap; min-height: 62px; padding: 9px var(--gutter); }
  .menu-toggle:not([hidden]) { margin: 0; }
  .user-box { margin-top: 12px; }
  .topbar { min-height: 38px; }
  .quick-grid { grid-template-columns: 1fr; gap: 9px; }
  .quick-grid .tile { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 3px 12px; }
  .quick-grid .iconbox { grid-row: 1 / span 3; margin: 0; }
  .quick-grid .badge { justify-self: start; }
  .page .hero { min-height: 148px; }
  .page { padding-top: 16px; }
  .filters select { min-width: 0; }
  .table-wrap .mobile-rows { min-width: 0; }
  .mobile-rows, .mobile-rows tbody, .mobile-rows tr { display: block; }
  .mobile-rows thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .mobile-rows td { display: grid; grid-template-columns: minmax(72px, 33%) minmax(0, 1fr); gap: 8px; text-align: left; white-space: normal; border: 0; overflow-wrap: anywhere; }
  .mobile-rows td::before { content: attr(data-label); color: var(--muted); font-size: 13px; }
  .mobile-rows tr + tr { border-top: 1px solid var(--line); }
  .mobile-rows td > div, .mobile-rows td select { min-width: 0; }
}
