:root {
  color-scheme: light;
  background: #f1f4f0;
  color: #16312b;
  font-family: system-ui, sans-serif;
  line-height: 1.55;
  --border: #c5d0c7;
  --muted: #4a625a;
  --green: #205044;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
.shell { width: min(64rem, calc(100% - 2rem)); margin-inline: auto; }
.intro { padding-block: 1.5rem; }
.brand { font-weight: 850; }
.intro-download { display: inline-flex; align-items: center; min-height: 44px; font-weight: 750; }
a { color: var(--green); text-underline-offset: .2em; }
h1, h2 { margin: 0; letter-spacing: -.035em; line-height: 1.25; }
h1 { font-size: clamp(2rem, 6vw, 3.3rem); margin-top: .7rem; }
h2 { font-size: 1.25rem; margin-bottom: .8rem; }
p { margin: .45rem 0 .9rem; }
.quiet, small { color: var(--muted); font-size: .9rem; }
small { font-weight: 400; }
.tabs, .buttons, .item-bottom { display: flex; flex-wrap: wrap; gap: .55rem; }
.tabs { margin-bottom: 1rem; }
button, input { font: inherit; }
button { cursor: pointer; min-height: 44px; border-radius: .5rem; font-weight: 750; padding: .45rem .8rem; }
.tabs button, .secondary { border: 1px solid var(--border); background: #fff; color: var(--green); }
.tabs [aria-selected="true"], .primary { border: 1px solid var(--green); background: var(--green); color: #fff; }
button:disabled { opacity: .6; cursor: default; }
:focus-visible { outline: 3px solid #9a4d19; outline-offset: 3px; }
.card { padding: clamp(1rem, 3vw, 1.4rem); border: 1px solid var(--border); border-radius: .8rem; background: #fff; margin-bottom: .9rem; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
label { display: block; font-weight: 650; min-width: 0; }
input:not([type="radio"], [type="checkbox"]) {
  width: 100%; min-width: 0; min-height: 44px; margin-top: .2rem; padding: .35rem .55rem;
  border: 1px solid #81978e; border-radius: .35rem; color: inherit; background: white;
}
input:invalid { border-color: #a3331d; }
input:where([type="radio"], [type="checkbox"]) { accent-color: var(--green); }
.wide, .item-name { grid-column: 1 / -1; }
fieldset { border: 1px solid var(--border); border-radius: .55rem; min-width: 0; margin: 0 0 .7rem; padding: .65rem; }
legend { font-weight: 750; padding-inline: .25rem; }
#tax-mode { display: flex; flex-wrap: wrap; gap: .4rem .8rem; }
.totals { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; background: #e7f0e7; padding: .75rem; border-radius: .55rem; margin: .75rem 0; }
.totals dd { margin: 0; font-size: 1.1rem; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.check { margin: .6rem 0; }
.item-bottom { margin-top: .55rem; align-items: center; font-size: .9rem; }
.item-bottom output { font-weight: 750; }
.remove { margin-left: auto; color: #842e20; border: 1px solid var(--border); background: white; }
.download-list { margin: 0; padding: 0; list-style: none; display: grid; gap: .65rem; }
.download-list li { padding: .75rem; border: 1px solid var(--border); border-radius: .55rem; }
.download-list h3 { margin: 0 0 .25rem; font-size: 1rem; }
.referrals a { font-weight: 700; display: inline-block; margin-right: .6rem; }
summary { cursor: pointer; padding-block: .4rem; }
footer { padding-bottom: 1.5rem; }
.print-document { display: none; }
@media (min-width: 45rem) {
  .parties, .referrals { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
  .download-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .item .fields { grid-template-columns: 2fr 1fr 1fr 1fr 1.25fr; }
  .item .wide, .item .item-name { grid-column: auto; }
}
@page { size: A4; margin: 11mm; }
@media print {
  :root { color: #111; background: #fff; font-size: 9pt; }
  .editor { display: none; }
  .print-document { display: block; }
  .print-document h1 { text-align: center; font-size: 21pt; margin: 0 0 5mm; }
  .print-document h2 { font-size: 10pt; margin-bottom: 1mm; }
  .print-document dl { display: grid; grid-template-columns: auto 1fr; column-gap: 3mm; margin: 0 0 2mm; }
  .print-document dd { margin: 0; overflow-wrap: anywhere; }
  .print-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 5mm; margin: 2mm 0; }
  .print-document table { width: 100%; border-collapse: collapse; table-layout: fixed; }
  .print-document th, .print-document td { border: .25mm solid #aaa; padding: .7mm 1mm; overflow-wrap: anywhere; }
  .print-document td:nth-child(n+4):nth-child(-n+7) { text-align: right; }
  .print-document thead { display: table-header-group; }
  .print-document tr, .print-parties, .print-summary { break-inside: avoid; }
  .print-summary { margin-top: 3mm; }
  .print-notice { font-size: 8pt; }
}

.item-error { color: #842e20; font-size: .9rem; margin: .45rem 0 0; }

/* 회의 #51 결정 4: 공급받는 자가 학교·급식 기관이면 공고 메일 받기 띠(band.mjs) */
.inst-band{margin:.6rem 0 0;padding:.7rem .9rem;border-radius:.7rem;background:#fff6dc;border:1px solid #f0d98a;font-size:.93rem;line-height:1.5}
.inst-band a{font-weight:800;color:#205044;white-space:nowrap}
@media print{.inst-band{display:none!important}}
