/* Garden (/my-household/garden/). Drawn by js/nws-household-garden.js.
   Household brass for small accents and its tint for large areas, as Maintenance and Home & Contacts use them.
   The card language is the one in css/home-maintenance.css, with the prefix changed to hg-. */
.hg-wrap { max-width: 64rem; margin: 0 auto; padding: 1.5rem 1.5rem 3rem; font-family: 'IBM Plex Sans', system-ui, sans-serif; color: var(--ink, #143a22); }
.hg-beta { display: inline-block; font: 700 .6875rem 'IBM Plex Sans', sans-serif; text-transform: uppercase; letter-spacing: .1em; color: #ffffff; background: #8A5A12; padding: .2rem .6rem; border-radius: 999px; vertical-align: middle; margin-left: .5rem; }
.hg-main { --hg-c: #8A5A12; --hg-t: #F6EEDF; --hg-b: #E9DCC4; display: flex; flex-direction: column; gap: 1rem; }
.hg-main p { margin: 0; }
.hg-main ul { margin: 0; padding: 0; list-style: none; }
.hg-main fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

/* the row of sections inside the Garden tab */
.hg-secs { display: flex; flex-wrap: wrap; gap: .25rem; padding: .25rem; border-radius: .5rem; background: var(--hg-c); }
.hg-sec { min-height: 44px; padding: 0 .9rem; display: inline-flex; align-items: center; border-radius: .375rem; font-size: .95rem; font-weight: 500; text-decoration: none; color: #faf7f2; }
.hg-sec:hover { background: rgba(250, 247, 242, .16); }
.hg-sec[aria-current="page"] { background: #faf7f2; color: var(--ink, #143a22); font-weight: 600; }
.hg-print { margin-left: auto; gap: .45rem; border: 0; background: transparent; font-family: inherit; cursor: pointer; }
.hg-main a:focus-visible, .hg-main button:focus-visible, .hg-main input:focus-visible, .hg-main select:focus-visible, .hg-main textarea:focus-visible, .hg-main summary:focus-visible { outline: 3px solid var(--signal, #e07030); outline-offset: 2px; }

/* cards */
.hg-card { background: #fff; border: 1px solid var(--border-warm, #e2d9c9); border-top: 4px solid var(--hg-c); border-radius: .5rem; padding: 1rem; box-shadow: 0 1px 3px rgba(20, 58, 34, .12); display: flex; flex-direction: column; gap: .7rem; min-width: 0; }
.hg-card-h { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.hg-num { width: 28px; height: 28px; border-radius: 14px; background: var(--hg-c); color: #fff; font-size: .875rem; font-weight: 600; display: flex; align-items: center; justify-content: center; flex: none; }
.hg-card h2 { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.25rem; line-height: 1.3; margin: 0; }
.hg-group { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.1rem; line-height: 1.3; margin: .6rem 0 0; padding-top: .8rem; border-top: 2px solid var(--hg-b); display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.hg-cols { display: grid; gap: 1rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 720px) { .hg-cols { grid-template-columns: 1fr 1fr; } }

/* words */
.hg-desc { font-size: .95rem; line-height: 1.5; color: #3d5c49; }
.hg-para { font-size: 1rem; line-height: 1.5; }
.hg-small { font-size: .8125rem; line-height: 1.45; color: #475569; }
.hg-eyebrow { font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--hg-c); }
.hg-gap { margin-top: .6rem; }
.hg-fact { font-size: 1.0625rem; font-weight: 600; line-height: 1.35; }
.hg-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .9rem; }
.hg-facts > div { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.hg-note { padding: .75rem .9rem; border-radius: .5rem; background: var(--hg-t); font-size: .875rem; line-height: 1.5; }
.hg-note b { font-weight: 700; }
.hg-msg { padding: .6rem .9rem; border-radius: .5rem; border: 1px solid var(--hg-c); background: #fff; font-size: .9rem; line-height: 1.45; }
.hg-empty { padding: .9rem; border: 1px dashed #94a3b8; border-radius: .5rem; font-size: .9rem; color: #475569; }
.hg-a, .hg-main .hg-small a, .hg-main .hg-note a, .hg-main .hg-desc a { color: var(--ink, #143a22); text-decoration: underline; }
.hg-a:hover, .hg-link:hover { color: var(--signal-on-paper, #ad5625); }
.hg-link { font-size: .9rem; min-height: 44px; display: inline-flex; align-items: center; align-self: flex-start; color: var(--ink, #143a22); text-decoration: underline; }
.hg-src { color: #475569; font-size: .8125rem; }

/* buttons and fields */
.hg-btn { min-height: 44px; padding: 0 1rem; border: 1px solid var(--ink, #143a22); border-radius: .5rem; background: #fff; color: var(--ink, #143a22); font: 600 .9rem 'IBM Plex Sans', sans-serif; display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; cursor: pointer; }
.hg-btn:hover { border-color: var(--hg-c); color: var(--hg-c); }
.hg-btn-primary { min-height: 48px; padding: 0 1.25rem; border: 0; border-radius: .5rem; background: var(--signal, #e07030); color: #fff; font: 700 1rem 'IBM Plex Sans', sans-serif; display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; text-decoration: none; }
.hg-btn-primary:hover { background: var(--signal-hover, #c85a20); }
.hg-btn-quiet { min-height: 44px; padding: 0 .6rem; border: 0; background: transparent; color: var(--ink, #143a22); font: 600 .875rem 'IBM Plex Sans', sans-serif; text-decoration: underline; cursor: pointer; }
.hg-pill { min-height: 44px; padding: 0 .9rem; border-radius: 999px; border: 1px solid #7d8f84; background: #fff; color: var(--ink, #143a22); font: 600 .875rem 'IBM Plex Sans', sans-serif; cursor: pointer; }
.hg-pill[aria-pressed="true"] { border-color: var(--hg-c); background: var(--hg-c); color: #fff; }
.hg-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.hg-in { min-height: 44px; border: 1px solid #7d8f84; border-radius: .375rem; padding: 0 .6rem; font: 400 1rem 'IBM Plex Sans', sans-serif; color: var(--ink, #143a22); background: #fff; min-width: 0; width: 100%; box-sizing: border-box; }
textarea.hg-in { padding: .5rem .6rem; min-height: 88px; line-height: 1.45; }
.hg-in-num, .hg-in-day { width: 6rem; }
.hg-in-date { width: 11rem; max-width: 100%; }
.hg-field { display: flex; flex-direction: column; gap: .25rem; font-size: .875rem; font-weight: 600; min-width: 0; }
.hg-field small, .hg-md small { font-weight: 400; color: #475569; }
.hg-opt { font: 400 .8125rem 'IBM Plex Sans', sans-serif; color: #475569; }
.hg-inline { flex: 0 1 auto; }
.hg-grid2 { display: grid; gap: .8rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .hg-grid2 { grid-template-columns: 1fr 1fr; } }
.hg-md { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.hg-md legend { font-size: .875rem; font-weight: 600; padding: 0; margin-bottom: .25rem; width: 100%; }
.hg-md select.hg-in { width: auto; flex: 1 1 9rem; }
.hg-checkrow { display: flex; align-items: center; gap: .6rem; min-height: 44px; font-size: 1rem; font-weight: 600; cursor: pointer; }
.hg-checkrow input, .hg-check, .hg-station input { width: 22px; height: 22px; accent-color: var(--hg-c); flex: none; }
.hg-plain { font-weight: 400; font-size: .95rem; }
.hg-form { border: 2px solid var(--hg-c); border-radius: .5rem; padding: 1rem; display: flex; flex-direction: column; gap: .7rem; background: #fff; }
.hg-form-h { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.15rem; margin: 0; }
.hg-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.hg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* chips */
.hg-chips { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.hg-chip { font-size: .75rem; font-weight: 600; padding: .1rem .5rem; border-radius: .25rem; background: var(--hg-t); border: 1px solid var(--hg-b); color: var(--ink, #143a22); }
.hg-chip-est { background: #fff; border: 1px dashed var(--hg-c); color: #5e3d0a; }
.hg-chip-first { background: var(--ink, #143a22); border-color: var(--ink, #143a22); color: #fff; }
.hg-chip-warn { background: #fff; border-color: var(--ink, #143a22); }

/* the task list */
.hg-jobs { display: flex; flex-direction: column; }
.hg-job { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: .25rem .6rem; padding: .75rem 0; border-top: 1px solid var(--rule, #d4d0c8); }
.hg-job .hg-check { margin-top: .15rem; }
.hg-job-msg { display: block; }
.hg-job-b { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.hg-job-b b { font-size: 1rem; font-weight: 600; }
.hg-list { display: flex; flex-direction: column; }
.hg-list > li { padding: .6rem 0; border-top: 1px solid var(--rule, #d4d0c8); font-size: .95rem; line-height: 1.45; }
.hg-tight > li { padding: .3rem 0; border-top: 0; font-size: .875rem; }
.hg-rows { display: flex; flex-direction: column; }
.hg-row { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--rule, #d4d0c8); font-size: .95rem; }
.hg-row:last-child { border-bottom: 0; }
.hg-more > summary { min-height: 44px; display: inline-flex; align-items: center; cursor: pointer; font-size: .9rem; font-weight: 600; text-decoration: underline; }
.hg-more[open] { display: flex; flex-direction: column; gap: .5rem; }

/* one crop */
.hg-crop { padding: .75rem 0; border-top: 1px solid var(--rule, #d4d0c8); display: flex; flex-direction: column; gap: .4rem; }
.hg-crop-on { border-left: 4px solid var(--hg-c); padding-left: .75rem; background: linear-gradient(90deg, var(--hg-t), #fff 40%); }
.hg-crop-top { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .75rem; }
.hg-crop-name { font-size: 1.0625rem; }
.hg-crop-dates { font-size: .95rem; line-height: 1.5; }
.hg-amounts > li { font-size: .9rem; }
.hg-mine { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: flex-end; padding: .5rem 0; }
.hg-mine .hg-in { width: auto; }
.hg-mine .hg-in-num { width: 6rem; }
.hg-custom { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; }

/* stations */
.hg-stations { display: flex; flex-direction: column; }
.hg-station { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: .6rem; padding: .7rem 0; border-top: 1px solid var(--rule, #d4d0c8); font-size: .9rem; line-height: 1.45; cursor: pointer; }

@media (max-width: 480px) {
  .hg-wrap { padding: 1rem 1rem 2.5rem; }
  .hg-sec { flex: 1 1 auto; justify-content: center; padding: 0 .6rem; }
  .hg-mine select.hg-in, .hg-in-date { width: 100%; }
}
@media print {
  .hg-secs, .hg-actions, .hg-file, .hg-form, .hg-mine, .hg-check { display: none; }
  .hg-card { box-shadow: none; break-inside: avoid; }
  .hg-more > summary { display: none; }
}

/* beds (added 2026-11-19). One square is one foot; js sets each block's place from its data-g. */
.hg-bedwrap { overflow-x: auto; padding: 4px; }
.hg-bed { display: grid; grid-auto-rows: 64px; gap: 4px; min-width: min-content; }
.hg-sq { min-width: 44px; border: 2px dashed #94a3b8; border-radius: .25rem; background: #fff; color: #475569; font: 600 1.1rem 'IBM Plex Sans', sans-serif; cursor: pointer; }
.hg-sq:hover { border-color: var(--hg-c); color: var(--hg-c); }
.hg-blk { min-width: 44px; border: 1px solid var(--hg-c); border-radius: .25rem; padding: .25rem; overflow: hidden; cursor: pointer; font: 600 .875rem 'IBM Plex Sans', sans-serif; line-height: 1.25; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .1rem; }
.hg-blk span { font-weight: 400; font-size: .8125rem; }
.hg-blk-0 { background: var(--ink, #143a22); color: #faf7f2; }
.hg-blk-1 { background: #cfe0d2; color: var(--ink, #143a22); }
.hg-blk-2 { background: var(--hg-t); color: var(--ink, #143a22); }
.hg-blk-3 { background: var(--hg-c); color: #fff; }
.hg-blk[aria-pressed="true"] { outline: 3px solid var(--signal, #e07030); outline-offset: 1px; }
.hg-blk-clash { border: 3px dashed var(--ink, #143a22); }
.hg-scroll { overflow-x: auto; }
.hg-table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: .875rem; }
.hg-table th, .hg-table td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid #ece8df; vertical-align: top; font-weight: 400; }
.hg-table thead th { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--hg-c); border-bottom: 2px solid var(--border-warm, #e2d9c9); }
.hg-table tbody th { font-weight: 700; }
.hg-note p + p, .hg-note p + ul { margin-top: .4rem; }
@media print { .hg-sq { border-style: solid; color: transparent; } }
