/* style.css */
:root {
  color-scheme: dark;
  --ink: #f7f0df;
  --muted: #b8b0a1;
  --bg: #17130b;
  --bg-soft: #211b0e;
  --panel: #292111;
  --panel-strong: #332916;
  --line: rgba(246, 207, 101, .18);
  --honey: #f4b728;
  --honey-light: #ffda6a;
  --amber: #dc8c16;
  --sage: #9ecbb8;
  --sage-deep: #285447;
  --danger: #ff856e;
  --shadow: 0 16px 42px rgba(0, 0, 0, .22);
  --radius: 22px;
  --max: 1180px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --ink: #27200f;
  --muted: #685f4d;
  --bg: #fbf7ed;
  --bg-soft: #f5eddb;
  --panel: #fffdf7;
  --panel-strong: #f7e8bd;
  --line: rgba(91, 61, 12, .17);
  --honey: #d78908;
  --honey-light: #f6bb2c;
  --amber: #ab6210;
  --sage: #2a7661;
  --sage-deep: #dcefe7;
  --danger: #bd402d;
  --shadow: 0 16px 42px rgba(70, 52, 17, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
main, .site-header, footer { position: relative; z-index: 1; }
.honey-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .32;
  background-image:
    linear-gradient(30deg, transparent 24%, rgba(244,183,40,.035) 25%, rgba(244,183,40,.035) 26%, transparent 27%, transparent 74%, rgba(244,183,40,.035) 75%, rgba(244,183,40,.035) 76%, transparent 77%),
    linear-gradient(150deg, transparent 24%, rgba(244,183,40,.035) 25%, rgba(244,183,40,.035) 26%, transparent 27%, transparent 74%, rgba(244,183,40,.035) 75%, rgba(244,183,40,.035) 76%, transparent 77%);
  background-size: 68px 118px;
}

.site-header {
  min-height: 76px;
  max-width: var(--max);
  margin: auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.brand strong {
  display: block;
  font-size: 1.15rem;
  letter-spacing: -.03em;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: .72rem;
}
.bee-mark {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}
.bee-mark svg { width: 34px; height: 34px; }
.header-actions { display: flex; gap: 8px; }
.icon-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: var(--panel);
}
.icon-button:hover { border-color: var(--honey); color: var(--honey); }
.icon-button svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.hero {
  max-width: var(--max);
  margin: 16px auto 30px;
  min-height: 435px;
  padding: clamp(30px, 6vw, 75px) 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(270px, .75fr);
  gap: 20px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: radial-gradient(circle at 20% 20%, rgba(244,183,40,.12), transparent 33%), var(--bg-soft);
  box-shadow: var(--shadow);
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--honey);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .13em;
}
h1, h2, h3, h4, p { margin-top: 0; }
h1 {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  letter-spacing: -.075em;
  line-height: .91;
}
h1 em {
  color: var(--honey);
  font-style: normal;
}
.hero-text { max-width: 640px; color: var(--muted); font-size: 1.04rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 26px; }
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-weight: 750;
  text-decoration: none;
}
.button-primary { background: var(--honey); color: #35240d; }
.button-primary:hover { background: var(--honey-light); }
.button-quiet { border-color: var(--line); background: var(--panel); }
.button-quiet:hover { border-color: var(--honey); }
.hero-comb {
  position: relative;
  min-height: 300px;
  isolation: isolate;
}
.comb-cell {
  position: absolute;
  width: 116px;
  aspect-ratio: 1/.866;
  clip-path: polygon(25% 6.7%,75% 6.7%,100% 50%,75% 93.3%,25% 93.3%,0 50%);
  background: linear-gradient(145deg, rgba(244,183,40,.85), rgba(173,102,15,.6));
  border: 1px solid rgba(255,229,136,.45);
  opacity: .65;
}
.comb-cell::after {
  content: "";
  position: absolute;
  inset: 8px;
  clip-path: inherit;
  background: var(--bg-soft);
  opacity: .8;
}
.c1 { left: 20%; top: 0; }.c2 { left: 52%; top: 0; }.c3 { left: 4%; top: 23%; }
.c4 { left: 36%; top: 23%; }.c5 { left: 68%; top: 23%; }.c6 { left: 20%; top: 46%; }
.c7 { left: 52%; top: 46%; }.c8 { left: 36%; top: 69%; }
.hero-bee { position: absolute; z-index: 2; width: min(82%, 285px); top: 63px; left: 12%; filter: drop-shadow(0 16px 12px rgba(0,0,0,.25)); }

.guide-nav {
  max-width: var(--max);
  margin: 0 auto 18px;
  padding: 0 20px 8px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.guide-nav::-webkit-scrollbar { display: none; }
.guide-nav a {
  flex: 0 0 auto;
  padding: 10px 13px;
  border-radius: 10px;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
}
.guide-nav a:hover { color: var(--honey); background: var(--panel); }

.section, .resources {
  max-width: var(--max);
  margin: 20px auto;
  padding: clamp(38px, 5vw, 68px) 20px;
}
.section-tint {
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(244,183,40,.055), transparent 45%), var(--bg-soft);
  border: 1px solid var(--line);
}
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, .58fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}
.section-heading h2, .resources h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(1.85rem, 4vw, 3.1rem);
  letter-spacing: -.055em;
  line-height: 1;
}
.section-heading > p { margin: 0; color: var(--muted); }

.quick-grid, .build-grid, .queen-actions, .resource-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
}
.quick-card, .build-card, .queen-actions article {
  min-height: 188px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.quick-card .number, .build-icon {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 50%;
  color: #37260e;
  background: var(--honey);
  font-weight: 850;
  font-size: .78rem;
}
.quick-card h3, .build-card h3, .queen-actions h3 { margin-bottom: 8px; font-size: 1rem; }
.quick-card p, .build-card p, .queen-actions p { margin: 0; color: var(--muted); font-size: .91rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.caution-layout { margin-top: 13px; }
.callout {
  display: flex;
  gap: 14px;
  padding: 19px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
}
.callout.important { border-color: rgba(255,133,110,.42); }
.callout-symbol {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #3c250e;
  background: var(--honey);
  font-weight: 900;
}
.important .callout-symbol { color: white; background: var(--danger); }
.callout h3 { margin-bottom: 4px; font-size: 1rem; }
.callout p { margin: 0; color: var(--muted); font-size: .9rem; }
.inspection-strip {
  margin-top: 13px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--sage-deep);
  color: #f5fbf6;
}
:root[data-theme="light"] .inspection-strip { color: #173d33; }
.inspection-strip h3 { margin: 0; font-size: 1.35rem; }
.inspection-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  margin: 21px 0 0;
  padding: 0;
  list-style: none;
  font-size: .87rem;
}
.inspection-steps li { padding-right: 5px; }
.inspection-steps span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  border-radius: 50%;
  color: #193b32;
  background: var(--honey-light);
  font-weight: 850;
}

.hive-picker, .region-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.hive-choice, .region-selector button {
  min-height: 44px;
  flex: 0 0 auto;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: var(--panel);
  font-weight: 700;
}
.hive-choice.active, .region-selector button.active {
  border-color: var(--honey);
  color: #37260e;
  background: var(--honey);
}
.hive-explorer {
  display: grid;
  grid-template-columns: minmax(275px, .8fr) minmax(0, 1.2fr);
  gap: 18px;
}
.hive-diagram-wrap {
  min-height: 410px;
  display: grid;
  align-content: center;
  border-radius: var(--radius);
  background: radial-gradient(circle at 50% 15%, rgba(244,183,40,.12), transparent 45%), #19170f;
  overflow: hidden;
}
:root[data-theme="light"] .hive-diagram-wrap { background: radial-gradient(circle at 50% 15%, rgba(244,183,40,.18), transparent 45%), #eadfca; }
.hive-diagram { position: relative; min-height: 350px; display: grid; place-items: end center; padding: 35px 20px 20px; }
.diagram-label { position: absolute; top: 20px; left: 20px; color: #d9c99a; font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.hive-parts { width: min(85%, 300px); display: flex; flex-direction: column; align-items: center; }
.hive-part { width: 90%; height: 37px; position: relative; margin: 2px 0; border: 2px solid #715016; background: linear-gradient(#d69924, #a86a14); box-shadow: inset 0 7px 0 rgba(255,225,121,.18), 0 4px 0 rgba(0,0,0,.18); }
.hive-part span { position: absolute; inset: 5px 12px; border-top: 1px solid rgba(70,38,5,.5); border-bottom: 1px solid rgba(255,229,136,.4); }
.hive-part.roof { width: 108%; height: 25px; border-radius: 11px 11px 3px 3px; background: #35584d; border-color: #203e35; }
.hive-part.inner-cover, .hive-part.excluder { width: 95%; height: 10px; background: #d7bd78; border-color: #8f7433; }
.hive-part.excluder { background: repeating-linear-gradient(90deg,#8aa99d 0 2px,#30574b 2px 5px); }
.hive-part.brood { height: 59px; background: linear-gradient(#c9821c, #895113); }
.hive-part.bottom { width: 100%; height: 17px; background: #41685b; border-color: #26453b; }
.hive-part.stand { width: 118%; height: 24px; margin-top: 8px; border-radius: 3px; background: #5f421e; border-color: #3f2c13; }
.hive-parts.horizontal, .hive-parts.topbar { width: min(90%, 360px); }
.hive-part.long-roof { width: 110%; height: 33px; border-radius: 16px 16px 3px 3px; background: #35584d; border-color: #203e35; }
.hive-part.long-box { width: 100%; height: 92px; background: linear-gradient(90deg,#a56815,#db9b24,#a56815); }
.hive-part.long-bottom { width: 105%; height: 15px; background: #41685b; border-color: #26453b; }
.hive-part.long-stand { width: 112%; height: 30px; margin-top: 9px; background: #5f421e; border-color: #3f2c13; }
.hive-part.top-bars { width: 100%; height: 12px; background: repeating-linear-gradient(90deg,#e7b94e 0 10px,#5d3d10 10px 12px); border-color: #68470f; }
.hive-part.trapezoid { width: 94%; height: 112px; clip-path: polygon(4% 0,96% 0,82% 100%,18% 100%); background: linear-gradient(90deg,#a56815,#df9f29,#a56815); border: 0; box-shadow: inset 0 0 0 2px #715016, 0 4px 0 rgba(0,0,0,.18); }
.hive-part.warre-roof { width: 112%; height: 45px; border-radius: 18px 18px 4px 4px; background: #35584d; border-color: #203e35; }
.hive-part.quilt { width: 91%; height: 29px; background: repeating-linear-gradient(45deg,#c6a967 0 6px,#9a7837 6px 12px); border-color: #745719; }
.hive-part.warre-box { height: 49px; }
.diagram-caption { margin: 0; padding: 0 20px 20px; text-align: center; color: var(--muted); font-size: .85rem; }
.hive-detail { padding: clamp(19px, 4vw, 40px); border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.hive-detail h3 { margin-bottom: 11px; font-size: 1.8rem; letter-spacing: -.04em; }
.hive-detail > p:not(.eyebrow) { color: var(--muted); }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 21px 0; }
.pros-cons h4 { margin: 0 0 7px; color: var(--honey); font-size: .84rem; text-transform: uppercase; letter-spacing: .08em; }
.pros-cons ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: .87rem; }
.pros-cons li + li { margin-top: 7px; }
.build-note { padding: 14px; border-left: 3px solid var(--honey); background: rgba(244,183,40,.08); color: var(--muted); font-size: .88rem; }
.build-grid { margin-top: 17px; grid-template-columns: repeat(3, 1fr); }

.queen-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: 16px; }
.queen-card, .queen-flow, .triage-decision, .region-intro, .log-form, .apiary-summary {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.queen-card { min-height: 350px; padding: 25px; display: grid; align-content: center; gap: 18px; }
.queen-diagram { position: relative; width: 168px; height: 135px; margin: 0 auto; }
.queen-cell { position: absolute; width: 80px; aspect-ratio: 1/.866; clip-path: polygon(25% 6.7%,75% 6.7%,100% 50%,75% 93.3%,25% 93.3%,0 50%); background: #d68a18; }
.cell-top { left: 43px; top: 0; }.cell-mid { left: 0; top: 48px; }.cell-low { right: 0; top: 48px; }
.queen-crown { position: absolute; z-index: 1; left: 57px; top: 43px; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; color: #38270e; background: var(--honey-light); font-size: 1.45rem; font-weight: 900; }
.check-list { margin: 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 23px; color: var(--muted); font-size: .9rem; }
.check-list li + li { margin-top: 8px; }
.check-list li::before { content: ""; position: absolute; left: 1px; top: .43em; width: 10px; height: 5px; border-left: 2px solid var(--honey); border-bottom: 2px solid var(--honey); transform: rotate(-45deg); }
.queen-flow { padding: 24px; }
.queen-flow h3 { margin-bottom: 16px; }
.flowchart { display: grid; gap: 10px; }
.flow-node { padding: 13px; border: 1px solid var(--line); border-radius: 13px; color: var(--muted); background: var(--bg-soft); font-size: .88rem; }
.flow-node.start { color: #3b290e; background: var(--honey); border-color: var(--honey); font-weight: 850; }
.flow-node.good { border-color: rgba(158,203,184,.38); background: rgba(158,203,184,.1); }
.flow-branches { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.branch-label { display: block; margin: 6px 0; color: var(--honey); font-size: .73rem; font-weight: 800; text-transform: uppercase; }
.flow-arrow { color: var(--honey); text-align: center; font-weight: 900; font-size: 1.25rem; }
.flow-warning { padding: 11px 13px; border-radius: 12px; color: var(--muted); background: rgba(255,133,110,.08); font-size: .85rem; }
.queen-actions { margin-top: 16px; grid-template-columns: repeat(3, 1fr); }
.queen-actions article { min-height: 200px; }

.triage-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.search-box { min-height: 46px; min-width: min(100%, 290px); flex: 1 1 290px; display: flex; align-items: center; gap: 10px; padding: 0 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); }
.search-box:focus-within { border-color: var(--honey); }
.search-box svg { width: 19px; flex: 0 0 auto; fill: none; stroke: var(--muted); stroke-width: 2; }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; }
.search-box input::placeholder { color: var(--muted); }
.symptom-chips { display: flex; flex: 2 1 400px; gap: 7px; overflow-x: auto; padding: 2px; scrollbar-width: none; }
.symptom-chips::-webkit-scrollbar { display: none; }
.symptom-chip { min-height: 40px; flex: 0 0 auto; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--panel); font-size: .82rem; font-weight: 700; }
.symptom-chip.active { color: #37260e; background: var(--honey); border-color: var(--honey); }
.triage-decision { display: grid; grid-template-columns: .8fr 1.2fr; gap: 15px; align-items: center; padding: 18px; margin-bottom: 16px; }
.triage-decision h3 { margin: 0; font-size: 1.1rem; }
.decision-buttons { display: flex; flex-wrap: wrap; gap: 7px; }
.decision-buttons button { min-height: 40px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--bg-soft); font-size: .84rem; }
.decision-buttons button.active, .decision-buttons button:hover { border-color: var(--honey); color: var(--honey); }
.route-result { grid-column: 1 / -1; margin: 0; padding-top: 11px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.threat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.threat-card { padding: 18px; border: 1px solid var(--line); border-top-width: 3px; border-radius: var(--radius); background: var(--panel); }
.urgency-critical { border-top-color: var(--danger); }
.urgency-high { border-top-color: var(--honey); }
.urgency-medium { border-top-color: var(--sage); }
.threat-topline { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 13px; }
.severity, .category, .strength {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.severity { color: #412d0c; background: var(--honey-light); }
.urgency-critical .severity { color: white; background: var(--danger); }
.category { color: var(--muted); background: var(--bg-soft); }
.threat-card h3 { min-height: 48px; margin-bottom: 13px; font-size: 1.02rem; line-height: 1.2; }
.threat-card details { border-top: 1px solid var(--line); }
.threat-card summary { padding: 11px 0 0; color: var(--honey); cursor: pointer; font-size: .85rem; font-weight: 750; }
.threat-card dl { margin: 13px 0 0; }
.threat-card dl > div + div { margin-top: 12px; }
.threat-card dt { margin-bottom: 3px; color: var(--ink); font-size: .78rem; font-weight: 800; }
.threat-card dd { margin: 0; color: var(--muted); font-size: .84rem; }
.empty-state { grid-column: 1 / -1; padding: 30px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; }
.empty-state p { margin: 8px 0 0; }
.not-diagnosis { margin-top: 15px; padding: 16px; border-radius: 14px; border-left: 4px solid var(--danger); color: var(--muted); background: rgba(255,133,110,.08); font-size: .89rem; }
.not-diagnosis strong { color: var(--ink); }

.season-board { display: grid; grid-template-columns: .78fr 1.22fr; gap: 16px; }
.region-intro { padding: 25px; }
.region-intro h3 { font-size: 1.65rem; line-height: 1.05; letter-spacing: -.045em; }
.region-intro > p:not(.eyebrow) { color: var(--muted); }
.microclimate-note { margin-top: 24px; padding: 13px; border-radius: 13px; color: var(--muted); background: rgba(244,183,40,.08); font-size: .85rem; }
.microclimate-note strong { color: var(--honey); }
.season-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.season-card { min-height: 190px; padding: 19px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.season-number { color: var(--honey); font-size: .77rem; font-weight: 900; letter-spacing: .1em; }
.season-card h4 { margin: 15px 0 7px; font-size: 1.03rem; }
.season-card p { margin: 0; color: var(--muted); font-size: .88rem; }

.log-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 16px; }
.log-form { padding: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.log-form label { display: grid; gap: 6px; margin-bottom: 14px; color: var(--muted); font-size: .83rem; font-weight: 750; }
.log-form input, .log-form select, .log-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  color: var(--ink);
  background: var(--bg-soft);
}
.log-form textarea { min-height: 102px; resize: vertical; }
.log-form input:focus, .log-form select:focus, .log-form textarea:focus { border-color: var(--honey); }
fieldset { margin: 0 0 14px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
legend { padding: 0 6px; color: var(--muted); font-size: .8rem; font-weight: 800; }
.check-options { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.check-options label { display: flex; align-items: center; gap: 6px; margin: 0; font-size: .8rem; }
.check-options input { width: 16px; min-height: 16px; accent-color: var(--honey); }
.save-status { display: inline-block; min-height: 1.3em; margin: 10px 0 0; color: var(--sage); font-size: .84rem; }
.log-side { min-width: 0; }
.apiary-summary { padding: 22px; margin-bottom: 12px; }
.apiary-summary strong { display: block; margin: 5px 0; font-size: 1.6rem; letter-spacing: -.04em; }
.apiary-summary p { color: var(--muted); font-size: .88rem; }
.text-button { min-height: 42px; padding: 0; border: 0; color: var(--honey); background: transparent; font-size: .87rem; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.log-list { display: grid; gap: 10px; max-height: 530px; overflow: auto; padding-right: 3px; }
.log-entry, .empty-log { padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: var(--panel); }
.log-entry-head { display: flex; justify-content: space-between; gap: 10px; }
.log-entry-head strong { display: block; font-size: .94rem; }
.log-entry-head span:not(.strength) { color: var(--muted); font-size: .78rem; }
.entry-actions { display: flex; align-items: flex-start; gap: 6px; }
.entry-actions button { width: 27px; height: 27px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--bg-soft); font-size: 1.1rem; line-height: 1; }
.entry-actions button:hover { color: white; background: var(--danger); border-color: var(--danger); }
.strength { color: #354219; background: #d7e99d; }
.strength.steady { color: #1c584a; background: #a8d7c5; }
.strength.weak { color: #693b0e; background: #f6cf78; }
.strength.urgent { color: white; background: var(--danger); }
.log-entry p { margin: 9px 0 0; color: var(--muted); font-size: .84rem; }
.log-entry .observations { color: var(--honey); font-size: .78rem; }
.log-entry small { display: block; margin-top: 9px; color: var(--sage); font-size: .76rem; }
.empty-log { color: var(--muted); text-align: center; font-size: .9rem; }

.resources { padding-bottom: 60px; }
.resources h2 { margin-bottom: 24px; }
.resource-grid { grid-template-columns: repeat(4, 1fr); }
.resource-grid a {
  min-height: 136px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  text-decoration: none;
}
.resource-grid a:hover { border-color: var(--honey); transform: translateY(-2px); }
.resource-grid strong { color: var(--honey); font-size: .95rem; }
.resource-grid span { color: var(--muted); font-size: .84rem; }
.resource-note { margin: 17px 0 0; color: var(--muted); font-size: .84rem; }
footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 25px 20px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .8rem;
  text-align: center;
}
.bee-dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--honey); }

@media (max-width: 900px) {
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .threat-grid { grid-template-columns: 1fr 1fr; }
  .resource-grid { grid-template-columns: 1fr 1fr; }
  .hive-explorer, .queen-layout, .season-board, .log-layout { grid-template-columns: 1fr; }
  .hive-diagram-wrap { min-height: 350px; }
  .section-heading { grid-template-columns: 1fr; gap: 10px; }
  .section-heading > p { max-width: 700px; }
  .inspection-steps { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 620px) {
  .site-header { padding-inline: 15px; }
  .brand small { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; margin-top: 5px; border-radius: 23px; }
  .hero-comb { min-height: 220px; width: 82%; margin: auto; }
  .comb-cell { width: 88px; }
  .hero-bee { top: 42px; }
  .section, .resources { padding: 39px 15px; }
  .section-tint { border-radius: 22px; }
  .quick-grid, .two-col, .build-grid, .queen-actions, .resource-grid, .threat-grid { grid-template-columns: 1fr; }
  .inspection-steps { grid-template-columns: 1fr 1fr; }
  .pros-cons, .flow-branches, .season-columns, .form-row { grid-template-columns: 1fr; }
  .triage-decision { grid-template-columns: 1fr; }
  .threat-card h3 { min-height: 0; }
  .queen-card { min-height: auto; }
  .hive-detail { padding: 20px; }
  .guide-nav { padding-inline: 15px; }
}

@media print {
  :root { color-scheme: light; --bg: #fff; --bg-soft: #fff; --panel: #fff; --ink: #111; --muted: #444; --line: #ccc; }
  .honey-bg, .header-actions, .guide-nav, .hero-actions, .hive-picker, .region-selector, .triage-controls, .triage-decision, .text-button, .entry-actions button { display: none !important; }
  .site-header, .section, .resources, footer { max-width: none; }
  .hero, .section-tint, .quick-card, .build-card, .queen-actions article, .threat-card, .log-form, .apiary-summary { box-shadow: none; break-inside: avoid; }
  .section { padding: 24px 0; margin: 0; }
  .hero { display: block; border: 0; min-height: auto; padding: 24px 0; background: none; box-shadow: none; }
  .hero-comb { display: none; }
  details { display: block; }
  details summary { display: none; }
  .threat-card dl { display: block; }
}
