@font-face {
  font-family: Rubik;
  src: url("/assets/fonts/rubik-wordmark.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  unicode-range: U+0410, U+0413, U+041B, U+041E-0421, U+0423;
}

:root {
  color-scheme: light;
  --paper: #fbfbf7;
  --surface: #fff;
  --white: #fffef8;
  --ink: #1f3021;
  --body: #3b4938;
  --muted: #576752;
  --line: #dadecf;
  --green: #345331;
  --green-dark: #213e25;
  --sage: #edf2e7;
  --gold: #efc62e;
  --gold-dark: #735911;
  --error: #9a3128;
  --radius: 13px;
  --sans: "Golos Text", "Segoe UI", sans-serif;
  --display: "Roboto", "Arial Narrow", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.58 var(--sans); }
main { min-height: 62vh; outline: none; }
img { display: block; max-width: 100%; height: auto; }
svg { flex-shrink: 0; vertical-align: middle; }
a { color: inherit; text-underline-offset: .23em; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
input, select, textarea, button { caret-color: var(--green); }
:focus-visible { outline: 3px solid #96710b; outline-offset: 4px; }
::selection { background: var(--gold); color: var(--green-dark); }
h1, h2, h3, p, figure { margin: 0; }
p { color: var(--body); }
h1, h2 { font-family: var(--display); font-stretch: 84%; font-weight: 800; line-height: 1.09; letter-spacing: -.027em; }
h3 { line-height: 1.24; letter-spacing: -.018em; }
label { color: var(--ink); font-weight: 600; line-height: 1.35; }
[id] { scroll-margin-top: 145px; }
.container { width: min(100% - 96px, 1240px); margin-inline: auto; }
.muted { color: var(--muted); }
.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 { position: fixed; top: 8px; left: 8px; z-index: 10; padding: 10px 15px; background: var(--surface); }

.topbar { position: sticky; top: 0; z-index: 4; background: var(--surface); }
.utility-bar { background: var(--green-dark); color: var(--white); }
.utility-inner { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 39px; font-size: .78rem; font-weight: 500; }
.utility-inner > * { display: flex; align-items: center; gap: 7px; }
.utility-inner svg { color: var(--gold); }
.utility-inner a { text-decoration: none; }
.utility-inner a:hover { text-decoration: underline; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 26px; min-height: 82px; }
.brand {
  --logo-accent: #a16b0b;
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  color: var(--green-dark);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-mark, .brand-wordmark { display: block; }
.brand-wordmark {
  font: 800 clamp(1.19rem, 1.93vw, 1.62rem)/1 Rubik, var(--sans);
  letter-spacing: .016em;
  white-space: nowrap;
}
.topbar nav { align-self: stretch; display: flex; align-items: center; gap: clamp(15px, 2.3vw, 35px); }
.topbar nav > a:not(.button) { display: flex; align-items: center; min-height: 100%; position: relative; color: var(--body); text-decoration: none; font-size: .91rem; font-weight: 600; white-space: nowrap; }
.topbar nav > a:not(.button):hover, .topbar nav > a[aria-current] { color: var(--green-dark); }
.topbar nav > a[aria-current]:not(.button)::after { content: ""; position: absolute; inset: auto 1px 18px; height: 3px; border-radius: 50% 30% 52% 20%; background: var(--gold); }
.header-tools { display: flex; align-items: center; gap: 9px; }
.nav-toggle, .topbar .mobile-assistant { display: none; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 45px; width: fit-content; padding: 10px 16px; border: 1px solid transparent; border-radius: 7px; font-weight: 700; font-size: .91rem; line-height: 1.23; text-decoration: none; text-align: center; transition: background-color .18s, color .18s, border-color .18s; }
.button-primary { background: var(--green); color: white; }
.button-primary:hover { background: var(--green-dark); }
.button-gold { background: var(--gold); color: var(--ink); border-radius: 999px; white-space: nowrap; }
.button-gold:hover { background: #ffda4c; }
.button-outline { border-color: #f1f4df8c; background: #1d301c78; color: var(--white); border-radius: 999px; }
.button-outline:hover { background: var(--green-dark); border-color: var(--white); }
.button-pill { min-height: 52px; gap: 20px; padding: 5px 5px 5px 19px; border-radius: 999px; background: var(--surface); color: var(--green-dark); }
.button-pill span { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; background: var(--gold); color: var(--ink); border-radius: 50%; }
.button-pill:hover { background: #ffedaa; }
.button-secondary { background: var(--surface); border-color: #aebcaf; color: var(--green-dark); }
.button-secondary:hover { background: var(--sage); border-color: var(--green); }
.icon-button { display: inline-grid; place-items: center; width: 44px; min-height: 44px; color: var(--green); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 6px; }
.icon-button:hover { background: var(--sage); }
.header-search, .nav-toggle { border-radius: 50%; text-decoration: none; }
.nav-toggle { display: none; }
.text-link { display: inline-flex; align-items: center; gap: 8px; width: fit-content; color: var(--green); font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }

.hero { position: relative; isolation: isolate; color: var(--white); background: var(--green-dark); }
.hero::before, footer::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 10px; z-index: 1; pointer-events: none;
  background: var(--surface);
  clip-path: polygon(0 0,100% 0,100% 46%,96% 39%,93% 58%,89% 43%,85% 48%,84% 65%,81% 44%,76% 61%,71% 37%,68% 51%,64% 41%,59% 65%,54% 48%,51% 56%,45% 42%,40% 61%,38% 45%,32% 56%,29% 40%,27% 59%,21% 44%,17% 60%,13% 40%,9% 55%,4% 39%,0 65%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  z-index: 1;
  height: 29px;
  background: var(--gold);
  mask: url("/assets/grass-edge.png") left bottom / 384px 29px repeat-x;
  pointer-events: none;
}
.hero-slide {
  --shade: linear-gradient(90deg, #172517da 0%, #192717a6 38%, #202b1b24 74%);
  background-color: var(--green-dark);
  background-image: var(--shade), var(--hero-photo);
  background-size: cover;
  background-position: center 54%;
}
.hero-harvest { --hero-photo: url("/assets/zetva.jpg"); }
.hero-field { --hero-photo: url("/assets/polje.png"); background-position: center 58%; }
.hero-inner { display: flex; align-items: center; width: min(100% - 180px, 1160px); min-height: clamp(530px, 42vw, 640px); padding-block: 67px 82px; }
.hero-copy { max-width: min(100%, 900px); }
.hero h1 { font-stretch: 75%; font-size: clamp(3.25rem, 5.25vw, 5.25rem); text-transform: uppercase; font-weight: 800; line-height: 1.04; letter-spacing: -.023em; }
.hero h1 span { display: block; }
.hero h1::after {
  display: block; content: ""; width: min(227px, 39%); height: 5px; margin-top: 21px; background: var(--gold);
  clip-path: polygon(0 45%, 10% 18%, 30% 0, 53% 35%, 67% 22%, 87% 31%, 100% 63%, 98% 89%, 82% 70%, 48% 94%, 19% 83%, 2% 100%);
}
.hero-description { margin-top: 19px; color: #fbfbf1; max-width: 57ch; line-height: 1.63; font-size: clamp(.94rem, 1.35vw, 1.065rem); }
.hero .actions { margin-top: 25px; }
.hero .button-outline { min-height: 52px; padding-inline: 17px; }
.hero-controls { position: absolute; inset: 0; pointer-events: none; }
.hero-controls button { pointer-events: auto; }
.hero-arrow { position: absolute; top: 50%; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border-radius: 50%; border: 1px solid #fff8; background: #25362261; color: var(--white); }
.hero-arrow:hover { color: var(--ink); background: var(--gold); border-color: var(--gold); }
.hero-prev { left: clamp(8px, 2.1vw, 38px); }
.hero-next { right: clamp(8px, 2.1vw, 38px); }
.hero-dots { position: absolute; display: flex; align-items: center; left: 50%; bottom: 18px; transform: translateX(-50%); }
.hero-dots button { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; background: transparent; border: 0; }
.hero-dots button::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--white); }
.hero-dots button[aria-pressed=true]::before { width: 17px; background: var(--gold); border-radius: 7px; }
.hero-controls :focus-visible, .button-outline:focus-visible { outline-color: var(--gold); }
.hero-slide:not([hidden]) .hero-copy { animation: hero-appear .35s cubic-bezier(.2,.72,.25,1) both; }
@keyframes hero-appear { from { opacity: .45; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.weather-band { background: var(--green-dark); color: var(--white); }
.home-weather { display: grid; grid-template-columns: 1fr minmax(250px, 330px); align-items: center; gap: 28px; padding-block: 37px; }
.home-weather h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.home-weather p { color: #e4eddf; margin-top: 8px; }
.quick-weather { display: grid; gap: 10px; padding: 14px 17px 11px; background: var(--surface); color: var(--ink); border-radius: var(--radius); text-decoration: none; transition: background-color .2s; }
.quick-weather:hover { background: #f0f1e4; }
.weather-heading { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: .77rem; color: var(--muted); }
.weather-glance { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.03rem; line-height: 1.23; }
.weather-glance > svg { color: var(--gold-dark); }
.weather-glance small { display: block; margin-top: 5px; color: var(--muted); font-size: .76rem; font-weight: 400; }
.quick-weather-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 9px; color: var(--green); font-size: .82rem; font-weight: 700; }

.shortcut-band { padding-top: 37px; background: linear-gradient(var(--gold) 0 72%, var(--paper) 72%); }
.shortcut-band h2 { margin-bottom: 21px; font-size: clamp(1.9rem, 3.3vw, 3rem); }
.shortcuts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.shortcut-card { min-width: 0; display: grid; padding: 0 9px 9px; min-height: 244px; align-items: end; isolation: isolate; position: relative; overflow: hidden; border-radius: var(--radius); text-decoration: none; background: var(--green-dark); }
.shortcut-card:focus-visible { outline-offset: -4px; outline-color: var(--gold); }
.shortcut-photo { position: absolute; z-index: -1; inset: 0; background-image: url("/assets/urednicke-fotografije.png"); background-size: 300% auto; transition: opacity .2s; }
.shortcut-photo.photo-harvest { background-image: url("/assets/zetva.jpg"); background-size: cover; background-position: 79% center; }
.shortcut-card:hover .shortcut-photo { opacity: .83; }
.shortcut-caption { min-height: 85px; display: flex; align-items: center; gap: 8px; border-radius: 10px; background: var(--surface); padding: 10px; }
.shortcut-caption strong, .shortcut-caption small { display: block; }
.shortcut-caption strong { color: var(--ink); font-weight: 700; font-size: .94rem; line-height: 1.22; }
.shortcut-caption small { color: var(--muted); line-height: 1.35; margin-top: 4px; font-size: .76rem; }
.shortcut-caption .tool-icon { background: var(--sage); width: 38px; height: 38px; flex-basis: 38px; }
.shortcut-arrow { color: var(--green); margin-left: auto; }
.shortcut-card:hover strong { text-decoration: underline; }
.tool-icon { display: inline-grid; flex: 0 0 43px; width: 43px; height: 43px; place-items: center; background: #e4ead9; color: var(--green); border-radius: 9px; }

.home-knowledge { padding-block: 65px 72px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 25px; }
.section-head h2, .home-project h2 { font-size: clamp(2.05rem, 4.3vw, 3.4rem); }
.section-head p { margin-top: 8px; color: var(--muted); }
.section-head .button-pill, .project-copy .button-pill { border-color: var(--line); }
.knowledge-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 23px; }
.knowledge-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.card-hit { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.card-hit:focus-visible { outline-offset: -4px; }
.card-media { aspect-ratio: 1.95; background-color: #e5ead9; background-image: url("/assets/urednicke-fotografije.png"); background-size: 300% auto; }
.photo-soil { background-position: left 55%; }
.photo-maize { background-position: center 39%; }
.photo-water { background-position: right 45%; }
.graphic-thumb { background-image: none; overflow: hidden; display: grid; place-items: start center; }
.graphic-thumb img { width: 100%; object-fit: cover; object-position: top; }
.card-content { display: flex; flex: 1; flex-direction: column; padding: 20px 21px 18px; }
.card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 11px; color: var(--muted); font-size: .76rem; font-weight: 600; line-height: 1.38; }
.card-meta > span:first-child { background: #f8e49a; padding: 4px 8px; color: var(--green-dark); border-radius: 4px; }
.card-content h3 { font-family: var(--display); font-weight: 750; font-size: clamp(1.17rem, 2vw, 1.5rem); margin-block: 10px 8px; }
.card-content p { font-size: .89rem; color: var(--muted); }
.card-action { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 16px; color: var(--green); font-size: .88rem; font-weight: 700; }
.card-hit:hover .card-action { text-decoration: underline; }
.home-project { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(28px, 5vw, 77px); padding-block: 73px 67px; }
.home-project p { margin-block: 15px; max-width: 64ch; }
.project-image { display: block; border-radius: var(--radius); overflow: hidden; }
.project-image img { width: 100%; }

footer { position: relative; background: var(--green-dark); color: var(--white); }
footer::before { background: var(--paper); }
.footer-content { display: grid; grid-template-columns: 1.3fr .8fr 1fr; gap: 23px; align-items: start; padding-block: 42px 34px; }
.footer-brand .brand { --logo-accent: var(--gold); color: var(--white); }
.footer-brand p { color: #dbe6d6; font-size: .84rem; margin-top: 11px; }
footer nav { display: grid; gap: 9px; font-size: .87rem; }
footer a { width: fit-content; text-decoration: none; }
footer a:hover { text-decoration: underline; }

.page-head { background: var(--green-dark); color: var(--white); border-bottom: 3px solid var(--gold); padding-block: 50px 39px; }
.page-head h1, .reading-page h1 { font-size: clamp(2.35rem, 5.2vw, 4.1rem); }
.page-head p { color: #e5eee1; margin-top: 12px; max-width: 70ch; font-size: 1.04rem; }
.page-content { padding-block: 34px 67px; }
.filters { display: grid; grid-template-columns: minmax(260px, 1.5fr) minmax(145px, 1fr) minmax(145px, .75fr); gap: 16px; margin-top: 25px; align-items: end; }
.filters label, .fields label, .weather-location label { display: grid; gap: 7px; font-size: .89rem; }
input:not([type=checkbox]), select, textarea { display: block; width: 100%; min-width: 0; min-height: 46px; background: var(--surface); border: 1px solid #acb9ae; border-radius: 7px; color: var(--ink); font-weight: 400; font-size: 1rem; padding: 9px 11px; }
input::placeholder, textarea::placeholder { color: #59665b; opacity: 1; }
select { padding-right: 25px; }
textarea { resize: vertical; }
.search-input { display: block; position: relative; }
.search-input svg { position: absolute; top: 13px; left: 12px; color: var(--muted); pointer-events: none; }
.search-input input { padding-left: 41px; }
.result-count { color: var(--muted); font-size: .88rem; margin-block: 21px 14px; }
.empty { grid-column: 1 / -1; text-align: center; padding: 55px 15px; color: var(--muted); }
.empty p { margin-top: 8px; }
.notice { display: flex; align-items: flex-start; gap: 11px; padding: 12px 14px; color: var(--green-dark); background: #eef0e2; border-radius: 8px; }
.notice svg { margin-top: 2px; }
.notice p, .notice li, .notice a { font-size: .93rem; }
.notice ul { padding-inline-start: 20px; margin: 5px 0 0; }
.notice > div > p + a { margin-top: 8px; }
.reading-page { max-width: 850px; }
.reading-page article > * + *, .reading-page > p + p { margin-top: 20px; }
.backlink { margin-bottom: 26px; }
.lead { font-size: 1.14rem; }
.reading-links { display: grid; gap: 12px; margin-top: 22px; }
.reading-links h2 { font-size: 1.42rem; }
.guide-steps { padding-inline-start: 30px; }
.guide-steps li { padding: 10px 0 10px 7px; border-bottom: 1px solid var(--line); }
.guide-steps li::marker { color: var(--gold-dark); font-weight: 800; }
.infographic img { width: min(100%, 600px); border: 1px solid var(--line); border-radius: var(--radius); }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 58px; align-items: start; }
.about-grid h2 { margin-bottom: 10px; }
.about-grid h2:not(:first-child) { margin-top: 25px; }
.about-grid .text-link, .reading-page > button { margin-top: 12px; }

.tool-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); margin-bottom: 23px; }
.tool-tabs a { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 53px; padding: 10px; color: var(--muted); text-decoration: none; text-align: center; font-weight: 700; font-size: .93rem; border-bottom: 3px solid transparent; }
.tool-tabs a:hover { color: var(--green); background: #edf0e5; }
.tool-tabs a[aria-current] { color: var(--green-dark); border-bottom-color: var(--green); background: #edf0e5; }
.tools-layout, .assistant-layout, .weather-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(255px, 1fr); gap: 23px; align-items: start; }
.panel { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.panel > h2, .context-panel h2, .alert-panel h2 { font-size: 1.48rem; }
.panel > p { margin-top: 10px; }
.panel > .notice, .panel > .reading-links { margin-block: 16px; }
.tool-workspace { display: grid; gap: 15px; min-width: 0; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.fields-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.full-field { grid-column: 1 / -1; }
fieldset { margin: 22px 0 0; padding: 0 0 15px; min-width: 0; border: 0; border-bottom: 1px solid var(--line); }
legend { font-weight: 700; padding: 0; }
fieldset .fields { margin-top: 9px; }
.tool-actions { margin-top: 22px; }
.form-status, #place-status, #coordinate-status, #storage-status { margin-top: 10px; font-size: .9rem; color: var(--green); }
.form-status:empty, #place-status:empty, #coordinate-status:empty, #storage-status:empty { display: none; }
.form-error { color: var(--error); }
.context-panel { padding: 21px; background: #ebefe2; border-radius: var(--radius); min-width: 0; }
.context-heading { display: flex; align-items: center; gap: 10px; }
.context-panel dl { margin: 14px 0 18px; }
.context-panel dl div { display: grid; grid-template-columns: 1fr 1.08fr; gap: 12px; border-bottom: 1px solid #d8dfd0; padding-block: 10px; }
.context-panel dt { font-size: .87rem; font-weight: 600; color: var(--body); }
.context-panel dd { margin: 0; font-size: .87rem; font-weight: 700; overflow-wrap: anywhere; }
.soil-summary { margin: 18px 0 0; }
.soil-summary > div { display: grid; grid-template-columns: minmax(120px, 1fr) 2fr; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.soil-summary > div:last-child { border: 0; padding-bottom: 0; }
.soil-summary dt { font-weight: 700; }
.soil-summary dd { margin: 0; overflow-wrap: anywhere; }
.soil-summary p { margin-top: 4px; font-size: .91rem; }
#yield-result:not(:empty) { margin-top: 20px; }
.yield-output { background: var(--sage); border-radius: 8px; padding: 17px; }
.yield-output h3 { font-size: 1.7rem; font-variant-numeric: tabular-nums; margin-bottom: 8px; }

.weather-layout { grid-template-columns: minmax(255px, 1fr) minmax(0, 2fr); }
.weather-location form { display: grid; gap: 9px; margin-top: 13px; }
.place-list { max-height: 250px; overflow: auto; margin-top: 16px; scrollbar-color: #a8b7a4 transparent; }
.place-option, .prompt-option { width: 100%; display: flex; align-items: center; gap: 8px; min-height: 43px; border: 0; border-bottom: 1px solid var(--line); text-align: left; padding: 8px 5px; background: transparent; color: var(--green-dark); font-weight: 600; font-size: .89rem; }
.place-option > svg:last-child, .prompt-option > svg:last-child { margin-left: auto; }
.place-option small { color: var(--muted); display: block; font-weight: 400; }
.place-option:hover, .place-option[aria-current], .prompt-option:hover { background: #e4ead9; }
.place-option:focus-visible, .prompt-option:focus-visible { outline-offset: -3px; }
.coordinate-box { margin: 15px 0; }
.coordinate-box summary { cursor: pointer; font-weight: 600; }
.weather-workspace { display: grid; gap: 16px; }
.weather-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.weather-title h2 { font-size: 1.9rem; }
.place-caption { margin-bottom: 3px; color: var(--muted); font-size: .82rem; font-weight: 600; }
.weather-empty .tool-icon { margin-bottom: 12px; }
.current-weather { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; align-items: center; margin-block: 19px 25px; background: var(--sage); border-radius: 8px; padding: 16px; font-variant-numeric: tabular-nums; }
.current-weather > div { display: grid; gap: 4px; }
.current-weather > div:not(:first-child) { padding-left: 14px; border-left: 1px solid #cdd8c8; }
.current-weather > div span { font-size: .87rem; color: var(--muted); }
.current-weather .current-temp { display: flex; gap: 12px; align-items: center; }
.current-temp > svg { color: var(--gold-dark); }
.current-temp strong { font-size: clamp(1.35rem, 3vw, 2.4rem); line-height: 1.07; }
.current-temp p { font-size: .81rem; }
.daily-list { margin-top: 8px; }
.daily-row { display: grid; grid-template-columns: 1.35fr .4fr 1fr .85fr 1.06fr; align-items: center; gap: 7px; border-top: 1px solid var(--line); padding: 10px 0; font-size: .86rem; font-variant-numeric: tabular-nums; }
.daily-row > span { display: flex; align-items: center; gap: 4px; }
.weather-footnote { margin-top: 13px; border-top: 1px solid var(--line); padding-top: 12px; font-size: .83rem; }
.alert-panel .reading-links { margin-top: 11px; gap: 4px; }
.alert-panel #alert-result > p { margin-top: 10px; }
.alert-list { margin: 12px 0 0; padding-inline-start: 21px; }
.alert-list li { padding-block: 8px; border-top: 1px solid var(--line); }
.alert-list p { font-size: .88rem; }

.chat-panel { padding: 0; overflow: hidden; }
.chat-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.chat-toolbar > span { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.chat-log { min-height: 230px; max-height: 480px; overflow: auto; display: flex; flex-direction: column; gap: 16px; padding: 18px; scrollbar-color: #a8b7a4 transparent; }
.message { display: flex; align-items: start; gap: 9px; max-width: 92%; }
.message > div { padding: 10px 13px; background: var(--sage); border-radius: 9px; overflow-wrap: anywhere; }
.message p { white-space: pre-wrap; }
.message-user { align-self: end; }
.message-user > div { background: var(--green); }
.message-user p { color: white; }
.message-icon { display: inline-grid; place-items: center; flex: 0 0 32px; height: 32px; border-radius: 8px; background: var(--green); color: var(--gold); }
.message-links { display: grid; gap: 4px; margin-top: 9px; font-size: .87rem; }
.chat-form { padding: 14px 16px; border-top: 1px solid var(--line); }
.chat-compose { display: flex; gap: 9px; align-items: end; }
.chat-send { background: var(--green); color: white; }
.chat-send:hover { background: var(--green-dark); }
.chat-compose textarea { min-width: 0; flex: 1; }
.check-label { display: flex; align-items: center; gap: 7px; margin-top: 10px; font-size: .87rem; min-height: 30px; font-weight: 500; }
.check-label input { width: 17px; height: 17px; accent-color: var(--green); }
.chat-sidebar p { margin-block: 14px 8px; font-size: .89rem; }
.chat-sidebar .context-heading { margin-bottom: 10px; }

@media (max-width: 1130px) {
  .container { width: calc(100% - 56px); }
  .topbar-inner { gap: 18px; }
  .topbar nav { gap: 17px; }
  .hero-inner { width: calc(100% - 158px); }
  .shortcut-arrow { display: none; }
}

@media (max-width: 980px) {
  .topbar-inner { min-height: 70px; gap: 10px; }
  .nav-toggle { display: inline-grid; margin-left: auto; }
  .header-assistant { display: none; }
  .topbar nav { position: absolute; inset: 100% 0 auto; padding: 10px 28px 20px; background: var(--surface); align-items: stretch; gap: 0; flex-direction: column; box-shadow: 0 12px 20px #26382d20; }
  .topbar nav > a:not(.button) { display: flex; align-items: center; min-height: 43px; padding: 5px 0; }
  .topbar nav > a[aria-current]:not(.button)::after { width: 42px; inset: auto auto 1px 0; }
  .topbar .mobile-assistant { display: inline-flex; margin-top: 10px; }
  .nav-toggle[aria-expanded=false] + nav { display: none; }
  .hero-inner { min-height: 510px; }
  .shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shortcut-band { background: linear-gradient(var(--gold) 0 82%, var(--paper) 82%); }
  .shortcut-card { min-height: 210px; }
  .knowledge-grid { gap: 14px; }
  .about-grid, .home-project { gap: 24px; }
}

@media (max-width: 680px) {
  .container { width: calc(100% - 34px); }
  [id] { scroll-margin-top: 110px; }
  .utility-inner { min-height: 32px; font-size: .7rem; }
  .utility-inner > a { display: none; }
  .brand-mark { width: 36px; height: 32px; }
  .brand { gap: 6px; }
  .topbar-inner { min-height: 61px; }
  .topbar nav { padding-inline: 17px; }
  .hero-slide { --shade: linear-gradient(90deg, #192718eb, #1c2b1dbc 65%, #25362270); background-position: 80% center; }
  .hero-inner { padding-block: 48px 73px; min-height: 490px; }
  .hero h1 { font-size: clamp(1.65rem, 8.4vw, 3.5rem); }
  .hero h1::after { margin-top: 16px; }
  .hero-description { margin-top: 14px; }
  .hero .actions { margin-top: 20px; gap: 8px; }
  .hero .button-outline { min-height: 47px; }
  .hero-arrow { top: auto; bottom: 28px; width: 41px; height: 41px; }
  .hero-dots { bottom: 26px; }
  .hero-arrow svg { width: 23px; }
  .hero-prev { left: 17px; }
  .hero-next { right: 17px; }
  .shortcut-band { padding-top: 25px; }
  .shortcut-band h2 { margin-bottom: 13px; }
  .shortcuts { gap: 9px; }
  .shortcut-card { min-height: 171px; padding: 0 5px 5px; }
  .shortcut-caption { min-height: 80px; gap: 5px; padding: 6px; }
  .shortcut-caption strong { font-size: .79rem; }
  .shortcut-caption small { font-size: .68rem; }
  .shortcut-caption .tool-icon { flex-basis: 28px; width: 28px; height: 32px; }
  .shortcut-caption .tool-icon svg { width: 17px; }
  .home-weather { grid-template-columns: minmax(0, 1fr); gap: 14px; padding-block: 28px; }
  .home-knowledge { padding-block: 36px 42px; }
  .section-head { flex-direction: column; align-items: start; gap: 9px; margin-bottom: 17px; }
  .knowledge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-knowledge .knowledge-grid { grid-template-columns: minmax(0, 1fr); }
  .home-project, .about-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .home-project { padding-block: 40px; }
  .home-project .project-copy { grid-row: 1; }
  .footer-content { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .page-head { padding-block: 34px 29px; }
  .page-head p { font-size: .96rem; }
  .page-content { padding-block: 21px 46px; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; gap: 9px; }
  .filters label:first-child { grid-column: 1 / -1; }
  .tools-layout, .assistant-layout, .weather-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .tool-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-tabs a { justify-content: start; padding-inline: 6px; font-size: .84rem; text-align: left; }
  .tool-tabs a > svg { width: 17px; }
  .panel { padding: 16px; }
  .chat-panel { padding: 0; }
  .fields, .fields-three { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .soil-summary > div { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .daily-row { gap: 4px; font-size: .76rem; }
  .daily-row > span { gap: 2px; }
  .current-weather { padding: 12px 8px; gap: 5px; }
  .current-weather .current-temp { gap: 6px; }
  .current-temp > svg { width: 29px; }
  .current-weather > div:not(:first-child) { padding-left: 7px; }
  .current-weather > div span { font-size: .75rem; }
  .current-weather > div span svg { width: 13px; }
}

@media (max-width: 420px) {
  .hero .actions { align-items: start; flex-direction: column; }
  .shortcut-caption .tool-icon { display: none; }
  .knowledge-grid { grid-template-columns: minmax(0, 1fr); }
  .daily-row > span:last-child svg { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
}
