/* 생약 쓰임새 — 모던 정보 사이트.
   글씨: Wanted Sans 하나로 굵기·자간만 바꿔 위계를 만든다 (제목 760, 본문 430).
   색: 바탕 #F3F5F4, 판 #FFFFFF, 먹 #0E1714, 보조 #5B6863, 선 #E2E7E4,
       강조·그래프 #0E8060(검증 통과) / 연한 강조 #E7F2EC, 황토 #B07D12 / 연한 황토 #F6EDD8.
   구조: 화면마다 머리글은 바탕 위에, 내용은 흰 판 하나에 넣고 판 안은 선으로 나눈다(카드 남발 안 함). */
:root {
  --bg: #F3F5F4; --sheet: #FFFFFF; --ink: #0E1714; --ink2: #5B6863; --ink3: #8C9893; --line: #E2E7E4; --line2: #EEF1EF;
  --acc: #0E8060; --acc-ink: #0A5A44; --acc-soft: #E7F2EC; --ochre: #B07D12; --ochre-soft: #F6EDD8;
  --font: 'Wanted Sans Variable', 'Wanted Sans', Pretendard, system-ui, sans-serif;
  --r: 12px; --r-sm: 8px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 430 15px/1.65 var(--font); word-break: keep-all; overflow-wrap: break-word; font-feature-settings: 'tnum' 0; }
p, li, td, dd, .prose { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
a { color: var(--acc-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.quiet { color: var(--ink2); }
.small { font-size: 13px; }
.warn { color: #8A5A0B; }
.num, .facts dd, .count .n, .r { font-variant-numeric: tabular-nums; }

/* 머리: 흰 띠 + 흐림, 메뉴는 알약 모양 */
.masthead { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.mast-row { display: flex; align-items: center; gap: 10px; padding-top: 14px; }
.title { font-weight: 800; font-size: 19px; letter-spacing: -0.03em; color: var(--ink); }
.title:hover { text-decoration: none; }
.test { font-size: 11.5px; font-weight: 600; color: var(--ochre); background: var(--ochre-soft); border-radius: 999px; padding: 0 8px; line-height: 20px; }
.sum { margin-left: auto; font-size: 12.5px; color: var(--ink2); text-align: right; }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 10px 24px 12px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { color: var(--ink2); padding: 0 14px; line-height: 32px; height: 32px; border-radius: 999px; white-space: nowrap; font-size: 14px; font-weight: 520; }
.tabs a:hover { background: var(--line2); color: var(--ink); text-decoration: none; }
.tabs a[aria-current="page"] { background: var(--ink); color: #fff; }

main { padding-bottom: 72px; }
.page-head { padding: 36px 0 18px; }
.page-head h1 { font-size: 30px; font-weight: 760; letter-spacing: -0.035em; line-height: 1.25; }
.page-head p { margin: 10px 0 0; color: var(--ink2); max-width: 44em; font-size: 15.5px; }
section { margin-top: 36px; }
section > h2, .sheet h2 { font-size: 16.5px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px; }
.cite { font-size: 12.5px; color: var(--ink3); margin: 14px 0 0; line-height: 1.6; }
.cite b { font-weight: 600; color: var(--ink2); }
.cite a { color: var(--ink2); text-decoration: underline; text-underline-offset: 2px; }

/* 입력·버튼: 한 줄은 높이 32px, 글씨 13.5px */
.controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 10px; }
input[type=search], input[type=text], input[type=password], select, button, .btn {
  height: 32px; font: inherit; font-size: 13.5px; font-weight: 500; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--sheet); color: var(--ink);
}
input[type=search], input[type=text], input[type=password] { padding: 0 12px; flex: 1 1 240px; min-width: 0; }
input::placeholder { color: var(--ink3); }
select { padding: 0 8px; }
button, .btn { padding: 0 14px; cursor: pointer; display: inline-flex; align-items: center; white-space: nowrap; }
button:hover, .btn:hover { border-color: #C8D0CC; text-decoration: none; }
button.primary, .btn.primary, button[aria-pressed="true"]:not(.seg button) { background: var(--ink); border-color: var(--ink); color: #fff; }
button:disabled { opacity: .5; cursor: default; }
.seg { display: inline-flex; padding: 2px; gap: 2px; background: var(--line2); border-radius: var(--r-sm); }
.seg button { border: 0; height: 28px; background: transparent; color: var(--ink2); border-radius: 6px; }
.seg button[aria-pressed="true"] { background: var(--sheet); color: var(--ink); box-shadow: 0 1px 2px rgba(14,23,20,.12); }

/* 흰 판 */
.index, .sheet, .tablewrap, .items, .sitelist, .hbars-wrap { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); }

/* 생약 색인 */
.index { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; }
.index th { text-align: left; font-weight: 560; font-size: 12.5px; color: var(--ink2); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #FAFBFA; }
.index td { padding: 12px 14px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
.index tr:last-child td { border-bottom: 0; }

.index .nm a { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.hanja { font-weight: 400; color: var(--ink3); margin-left: 6px; font-size: 13.5px; }
.latin { font-style: italic; color: var(--ink2); font-size: 13.5px; }
.book { font-size: 12.5px; color: var(--ink2); white-space: nowrap; }
.count { width: 200px; white-space: nowrap; }
.count .n { display: inline-block; width: 44px; text-align: right; margin-right: 10px; font-weight: 600; }
.count .track { display: inline-block; width: 120px; height: 6px; vertical-align: middle; background: var(--line2); border-radius: 999px; overflow: hidden; }
.count .fill { display: block; height: 100%; background: var(--acc); border-radius: 999px; }
.grade { font-size: 12.5px; white-space: nowrap; }
.grade.g4, .grade.g3 { color: var(--acc-ink); font-weight: 600; }
.grade.g4 { display: inline-block; background: var(--acc-soft); padding: 0 8px; line-height: 22px; border-radius: 999px; }
.grade.g0 { color: var(--ink3); }
.sites { font-size: 13px; color: var(--ink2); }
@media (max-width: 760px) {
  .wrap { padding: 0 16px; } .tabs { padding: 8px 16px 10px; }
  .index thead { display: none; }
  .index, .index tbody { display: block; }
  .index tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 12px 14px; border-bottom: 1px solid var(--line2); }
  .index tr:last-child { border-bottom: 0; }
  .index td { border: 0; padding: 0; }
  .index td.latin, .index td.book, .index td.sites, .index td.gradecell { grid-column: 1 / -1; justify-self: start; }
  .index td.count { grid-column: 2; grid-row: 1; width: auto; text-align: right; }
  .index td.count .track { display: none; }
  .page-head h1 { font-size: 24px; }
}

/* 생약 머리 */
.mono-head { padding: 32px 0 6px; }
.mono-head .back { font-size: 13px; color: var(--ink2); }
.mono-head h1 { font-size: 46px; font-weight: 800; letter-spacing: -0.045em; line-height: 1.1; margin-top: 14px; }
.mono-head h1 .hanja { font-size: 26px; font-weight: 400; margin-left: 12px; letter-spacing: 0; }
.mono-head .latin { font-size: 16px; margin-top: 6px; }
.mono-head .acts { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.origin { margin: 24px 0 0; padding: 18px 20px; background: var(--acc-soft); border-radius: var(--r); font-size: 15.5px; line-height: 1.85; color: #183A2F; max-width: 60em; }
.origin + .cite { margin-top: 8px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin: 24px 0 0; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.facts div { padding: 14px 18px; border-right: 1px solid var(--line2); }
.facts div:last-child { border-right: 0; }
.facts dt { font-size: 12.5px; color: var(--ink2); }
.facts dd { margin: 4px 0 0; font-size: 24px; font-weight: 720; letter-spacing: -0.02em; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; } .mono-head h1 { font-size: 36px; } .facts div { border-right: 0; border-bottom: 1px solid var(--line2); } }

.sitelist, .items { list-style: none; padding: 0; margin: 0; overflow: hidden; }
.sitelist > li, .items li { padding: 13px 16px; border-bottom: 1px solid var(--line2); }
.sitelist > li:last-child, .items li:last-child { border-bottom: 0; }
.sitelist .sn, .items .nm { font-weight: 640; color: var(--ink); }
.sitelist .sp { font-size: 13.5px; color: var(--ink2); margin-top: 2px; }
.items .meta { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 13px; color: var(--ink2); margin-top: 3px; }
.items .meta a { color: var(--ink2); }
.off { font-size: 11.5px; color: var(--ochre); background: var(--ochre-soft); border-radius: 999px; padding: 0 7px; margin-left: 6px; line-height: 18px; display: inline-block; }
.empty { color: var(--ink2); padding: 14px 16px; background: var(--sheet); border: 1px dashed var(--line); border-radius: var(--r); margin: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12.5px; line-height: 26px; padding: 0 10px; border-radius: 999px; background: var(--sheet); border: 1px solid var(--line); color: var(--ink); white-space: nowrap; }
a.chip:hover { border-color: var(--acc); text-decoration: none; }
.chip.linked { background: var(--acc-soft); border-color: transparent; color: var(--acc-ink); }

/* 가로 막대 */
.hbars { display: grid; grid-template-columns: minmax(70px, 130px) 1fr; gap: 8px 14px; align-items: center; font-size: 13.5px; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.hbars .lab { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbars .bar { display: flex; align-items: center; gap: 8px; }
.hbars .b { height: 10px; background: var(--acc); border-radius: 0 4px 4px 0; min-width: 2px; }
.hbars .v { font-variant-numeric: tabular-nums; color: var(--ink2); font-size: 12.5px; }

/* 세로 막대 */
.chart { position: relative; height: 230px; margin: 0; padding: 18px 18px 0 52px; background: var(--sheet); border: 1px solid var(--line); border-bottom: 0; border-radius: var(--r) var(--r) 0 0; }
.chart .plot { position: relative; height: 100%; }
.chart .grid { position: absolute; left: 52px; right: 18px; border-top: 1px solid var(--line2); }
.chart .grid span { position: absolute; left: -40px; top: -9px; width: 32px; text-align: right; font-size: 11.5px; color: var(--ink3); font-variant-numeric: tabular-nums; }
.chart .cols { position: absolute; left: 52px; right: 18px; top: 18px; bottom: 0; display: flex; align-items: flex-end; gap: 2px; border-bottom: 1px solid #C8D0CC; }
.chart .col { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.chart .col i { display: block; width: 100%; border-radius: 4px 4px 0 0; background: var(--acc); min-height: 1px; }
.chart .col:hover i, .chart .col:focus i { background: var(--acc-ink); }
.xaxis { display: flex; justify-content: space-between; padding: 6px 18px 12px 52px; font-size: 11.5px; color: var(--ink3); background: var(--sheet); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r) var(--r); }
.tip { position: fixed; pointer-events: none; background: var(--ink); color: #fff; font-size: 12.5px; padding: 6px 10px; border-radius: 6px; z-index: 20; white-space: nowrap; }

.tablewrap { overflow-x: auto; }
table.plain { width: 100%; border-collapse: collapse; font-size: 14px; }
table.plain th { text-align: left; font-weight: 560; font-size: 12.5px; color: var(--ink2); background: #FAFBFA; border-bottom: 1px solid var(--line); padding: 10px 14px; white-space: nowrap; }
table.plain td { border-bottom: 1px solid var(--line2); padding: 10px 14px; vertical-align: top; }
table.plain tr:last-child td { border-bottom: 0; }
table.plain .r { text-align: right; white-space: nowrap; }
.kv th { width: 130px; background: transparent; border-bottom: 1px solid var(--line2); vertical-align: top; }
.ee { white-space: pre-line; font-size: 14.5px; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }

.sources article { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; margin-top: 14px; }
.sources h2 { font-size: 17px; font-weight: 720; letter-spacing: -0.02em; margin-bottom: 12px; }
.sources dl { display: grid; grid-template-columns: 140px 1fr; gap: 8px 18px; margin: 0; font-size: 14px; }
.sources dt { color: var(--ink2); }
.sources dd { margin: 0; }
@media (max-width: 600px) { .sources dl { grid-template-columns: 1fr; gap: 0; } .sources dd { margin-bottom: 10px; } .sum { display: none; } }

.plate { display: none; }
@media print {
  body { background: #fff; } .masthead, .noprint { display: none !important; }
  #view > :not(.plate) { display: none; }
  .plate { display: block; border: 2px solid var(--ink); border-radius: 16px; padding: 32px; max-width: 520px; margin: 24px auto; }
  .plate h1 { font-size: 40px; font-weight: 800; letter-spacing: -0.04em; } .plate .big { font-size: 18px; margin-top: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* 생약 화면 안 탭: 밑줄형 (위 메뉴의 알약형과 구분) */
.subtabs { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin-top: 26px; }
.subtabs::-webkit-scrollbar { display: none; }
.subtabs a { color: var(--ink2); padding: 10px 0 11px; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: 15px; font-weight: 560; }
.subtabs a span { font-size: 12.5px; color: var(--ink3); font-weight: 500; margin-left: 2px; font-variant-numeric: tabular-nums; }
.subtabs a:hover { color: var(--ink); text-decoration: none; }
.subtabs a[aria-current="page"] { color: var(--ink); border-color: var(--acc); }
.subtabs a[aria-current="page"] span { color: var(--acc-ink); }
.subbody > .facts:first-child { margin-top: 20px; }
.row-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; }
.sitelist a.sn { font-size: 15.5px; }

/* 비율(%) 표시 */
.pct { color: var(--ink3); font-weight: 500; font-size: 0.86em; }
.facts dd .pct { display: block; font-size: 12.5px; margin-top: 1px; letter-spacing: 0; }
.hbars .v .pct { margin-left: 2px; }
.meta-line { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 13.5px; color: var(--ink2); margin-top: 6px; }
.chip small { color: var(--ink2); font-size: 11.5px; margin-left: 4px; }

/* 재배 기관 칸은 늘 한 줄 */
.index td.sites a { display: inline-block; max-width: 190px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }

/* 모바일에서는 표 머리글이 숨으므로 숫자 옆에 뜻을 붙인다 */
@media (max-width: 760px) { .index td.count .n::after { content: '건'; font-weight: 400; color: var(--ink2); font-size: 12px; margin-left: 1px; } .index td.count .n { width: auto; } }
.mono-head .back { display: inline-block; }

/* 분야별 구성 */
.secnav { margin-top: 18px; }
.overview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.dom-panel { margin: 0; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.dp-head { display: flex; align-items: baseline; justify-content: space-between; }
.dp-head h2 { margin: 0; }
.dp-head a { font-size: 13px; }
.dp-n { font-size: 28px; font-weight: 760; letter-spacing: -0.02em; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.dp-n small { font-size: 13px; font-weight: 500; color: var(--ink2); margin-left: 4px; }
.mini { list-style: none; padding: 0; margin: 8px 0 0; font-size: 13.5px; }
.mini li { padding: 4px 0; border-top: 1px solid var(--line2); }
.index.herbs .latin { font-size: 12.5px; }
.index .dl { display: none; }
@media (max-width: 760px) {
  .overview { grid-template-columns: 1fr; }
  .index.herbs td.dom { grid-column: 1 / -1; display: flex; gap: 8px; align-items: baseline; }
  .index.herbs td.count.dom { grid-row: auto; text-align: left; }
  .index .dl { display: inline-block; width: 46px; font-size: 12px; color: var(--ink2); }
  .index.herbs td.count .n::after { content: '건'; }
}
.mini li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dom-panel, .overview > * { min-width: 0; } /* 한 줄로 자른 긴 원료명이 칸을 넓히지 않게 */

/* 배경 덩굴: 화면 양쪽 가장자리, 아주 옅게 (넓은 화면에서만) */
@media (min-width: 1200px) {
  body { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='800' viewBox='0 0 120 800' fill='none' stroke='%230E8060' stroke-width='1.3' stroke-linecap='round' stroke-opacity='0.22'><path d='M20 0 C 60 60 10 120 40 180 S 80 300 35 360 S 10 480 50 540 S 70 660 30 720 S 20 800 40 800'/><path d='M40 180 q -14 -6 -12 -18 q 2 -8 10 -6 M50 540 q -14 -4 -12 -16'/><g fill='%230E8060' fill-opacity='0.07'><path d='M60 80 q 10 -14 22 -6 q -8 14 -22 6' transform='rotate(-20 60 80)'/><path d='M40 170 q 10 -14 22 -6 q -8 14 -22 6' transform='rotate(30 40 170)'/><path d='M72 260 q 10 -14 22 -6 q -8 14 -22 6' transform='rotate(-35 72 260)'/><path d='M38 350 q 10 -14 22 -6 q -8 14 -22 6' transform='rotate(25 38 350)'/><path d='M66 440 q 10 -14 22 -6 q -8 14 -22 6' transform='rotate(-15 66 440)'/><path d='M44 530 q 10 -14 22 -6 q -8 14 -22 6' transform='rotate(35 44 530)'/><path d='M70 620 q 10 -14 22 -6 q -8 14 -22 6' transform='rotate(-30 70 620)'/><path d='M40 710 q 10 -14 22 -6 q -8 14 -22 6' transform='rotate(20 40 710)'/></g></svg>"), url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='800' viewBox='0 0 120 800' fill='none' stroke='%230E8060' stroke-width='1.3' stroke-linecap='round' stroke-opacity='0.22'><path d='M100 0 C 60 60 110 120 80 180 S 40 300 85 360 S 110 480 70 540 S 50 660 90 720 S 100 800 80 800'/><path d='M80 180 q 14 -6 12 -18 q -2 -8 -10 -6 M70 540 q 14 -4 12 -16'/><g fill='%230E8060' fill-opacity='0.07'><path d='M60 80 q -10 -14 -22 -6 q -8 14 -22 6' transform='rotate(20 60 80)'/><path d='M80 170 q -10 -14 -22 -6 q -8 14 -22 6' transform='rotate(-30 80 170)'/><path d='M48 260 q -10 -14 -22 -6 q -8 14 -22 6' transform='rotate(35 48 260)'/><path d='M82 350 q -10 -14 -22 -6 q -8 14 -22 6' transform='rotate(-25 82 350)'/><path d='M54 440 q -10 -14 -22 -6 q -8 14 -22 6' transform='rotate(15 54 440)'/><path d='M76 530 q -10 -14 -22 -6 q -8 14 -22 6' transform='rotate(-35 76 530)'/><path d='M50 620 q -10 -14 -22 -6 q -8 14 -22 6' transform='rotate(30 50 620)'/><path d='M80 710 q -10 -14 -22 -6 q -8 14 -22 6' transform='rotate(-20 80 710)'/></g></svg>");
    background-repeat: repeat-y, repeat-y; background-position: left 8px top 120px, right 8px top 40px; background-attachment: fixed, fixed; background-size: 120px 800px, 120px 800px; }
}
@media (min-width: 761px) and (max-width: 1199px) {
  body { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='800' viewBox='0 0 120 800' fill='none' stroke='%230E8060' stroke-width='1.3' stroke-linecap='round' stroke-opacity='0.22'><path d='M100 0 C 60 60 110 120 80 180 S 40 300 85 360 S 110 480 70 540 S 50 660 90 720 S 100 800 80 800'/><path d='M80 180 q 14 -6 12 -18 q -2 -8 -10 -6 M70 540 q 14 -4 12 -16'/><g fill='%230E8060' fill-opacity='0.07'><path d='M60 80 q -10 -14 -22 -6 q -8 14 -22 6' transform='rotate(20 60 80)'/><path d='M80 170 q -10 -14 -22 -6 q -8 14 -22 6' transform='rotate(-30 80 170)'/><path d='M48 260 q -10 -14 -22 -6 q -8 14 -22 6' transform='rotate(35 48 260)'/><path d='M82 350 q -10 -14 -22 -6 q -8 14 -22 6' transform='rotate(-25 82 350)'/><path d='M54 440 q -10 -14 -22 -6 q -8 14 -22 6' transform='rotate(15 54 440)'/><path d='M76 530 q -10 -14 -22 -6 q -8 14 -22 6' transform='rotate(-35 76 530)'/><path d='M50 620 q -10 -14 -22 -6 q -8 14 -22 6' transform='rotate(30 50 620)'/><path d='M80 710 q -10 -14 -22 -6 q -8 14 -22 6' transform='rotate(-20 80 710)'/></g></svg>"); background-repeat: no-repeat; background-position: right -40px top 90px; background-attachment: fixed; background-size: 120px 800px; }
}
@media print { body { background-image: none !important; } }

/* 생약 목록 검색 조건은 한 줄에 (넓은 화면) */
@media (min-width: 761px) { .controls.filters { flex-wrap: nowrap; } .controls.filters input[type=search] { flex: 1 1 150px; min-width: 120px; } .controls.filters select { flex: 0 1 auto; min-width: 0; max-width: 160px; text-overflow: ellipsis; } }

/* 생약 목록: 의약품·식품·화장품 칸을 세로로 구분 (칸마다 옅은 바탕색 + 경계선) */
@media (min-width: 761px) {
  .index.herbs th.dom, .index.herbs td.dom { border-left: 1px solid var(--line); }
  .index.herbs td.dom.d3, .index.herbs th.dom.d3 { border-right: 1px solid var(--line); }
  .index.herbs .d1 { background: #F3F8F5; } .index.herbs .d2 { background: #FBF7EE; } .index.herbs .d3 { background: #F6F4FA; }
  .index.herbs th.d1 { background: #E7F2EC; } .index.herbs th.d2 { background: #F6EDD8; } .index.herbs th.d3 { background: #ECE8F4; }
  .index.herbs th.dom { color: var(--ink); font-weight: 650; }
}

/* 로그인 */
.me { display: inline-flex; gap: 8px; align-items: center; margin-left: 12px; font-size: 13px; }
.me button, .me .btn { height: 28px; font-size: 12.5px; padding: 0 10px; }
.authform { max-width: 420px; display: grid; gap: 12px; }
.authform label { display: grid; gap: 4px; font-size: 13.5px; color: var(--ink2); }
.authform input { height: 36px; font: inherit; font-size: 14px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; }
/* 재배 기관 아이콘 */
.siteicons { display: inline-flex; gap: 4px; align-items: center; }
.siteicons img { width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--line); display: block; }
.siteicons a:hover img { border-color: var(--acc); }
.index.herbs td.sites { width: 1%; white-space: nowrap; }
.index td.sites a { max-width: none; }

/* 생약 통합 표 선택 칸 */
.index th.pick, .index td.pick { width: 1%; text-align: center; padding-left: 10px; padding-right: 4px; }
.index td.pick input { width: 16px; height: 16px; accent-color: var(--acc); cursor: pointer; }
@media (max-width: 760px) { .index td.pick { grid-column: 2; grid-row: 1; justify-self: end; } }
/* 공정서 칸: 생약명과 구분 (경계선 + 표시 딱지) */
.index.herbs th.bk, .index.herbs td.bk { border-left: 1px solid var(--line); }
.bookpill { display: inline-block; font-size: 12px; line-height: 20px; padding: 0 8px; border-radius: 4px; white-space: nowrap; font-weight: 560; }
.bookpill.b-KP { background: #E3ECF7; color: #24456E; }
.bookpill.b-KHP { background: #EAF0E4; color: #3E5A23; }
.bookpill.b-NONE { background: #F0F0EE; color: #6E7370; font-weight: 500; }
/* 화장품 원료에서 해당 생약 부분 음영 */
table.plain mark { background: #FCE7A8; color: inherit; border-radius: 3px; padding: 0 2px; }
/* 표 위 안내 줄 */
.tablebar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; margin: 8px 0 6px; }
.pickhint { font-size: 12.5px; color: var(--ink2); background: var(--acc-soft); border-radius: 6px; padding: 3px 10px; }
.index.herbs th.pick, .index.herbs td.pick { border-left: 1px solid var(--line); }
@media (max-width: 760px) { .index td.pick { grid-column: 2; grid-row: 1; justify-self: end; } }
/* 공정서 팝업 */
button.bookpill { border: 0; cursor: pointer; height: auto; font: inherit; font-size: 12px; line-height: 20px; padding: 0 8px; }
button.bookpill:hover { filter: brightness(0.95); text-decoration: underline; }
.dlg { border: 0; border-radius: 14px; padding: 22px 24px; width: min(560px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(14,23,20,.25); color: var(--ink); font-family: var(--font); }
.dlg::backdrop { background: rgba(14,23,20,.35); }
.dlg-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.dlg-head h2 { font-size: 22px; font-weight: 760; letter-spacing: -0.02em; }
.dlg-head .latin { font-size: 14px; font-weight: 400; }
.dlg-dl { display: grid; grid-template-columns: 80px 1fr; gap: 6px 12px; font-size: 14px; margin: 12px 0; }
.dlg-dl dt { color: var(--ink2); } .dlg-dl dd { margin: 0; }
.dlg .origin { margin: 10px 0; font-size: 14.5px; }

/* 표 머리글 가운데 정렬 */
.index th, table.plain th { text-align: center; }

.gongjeon { display: inline-block; font-size: 11px; line-height: 18px; padding: 0 6px; border-radius: 4px; background: #F6EDD8; color: #6B4A06; margin-left: 4px; white-space: nowrap; }

/* 선택 칸 오른쪽 여백 */
.index th.pick, .index td.pick { padding-right: 16px; padding-left: 14px; }
/* 화장품 원료 표: 칸 너비를 정해 오른쪽이 잘리지 않게 */
.tablewrap table.plain.cos { table-layout: fixed; }
table.plain.cos th:nth-child(1) { width: 28%; } table.plain.cos th:nth-child(2) { width: 24%; } table.plain.cos th:nth-child(3) { width: 9%; } table.plain.cos th:nth-child(4) { width: 30%; } table.plain.cos th:nth-child(5) { width: 9%; }
table.plain.cos td { overflow-wrap: anywhere; word-break: break-word; }
/* 식품 원료 찾기 */
.searchbox { margin-top: 40px; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.searchbox h2 { margin-bottom: 10px; }
.searchbox input[type=search] { height: 40px; font-size: 15px; border: 2px solid var(--acc); }
.searchbox button.primary { height: 40px; font-size: 15px; padding: 0 22px; background: var(--acc); border-color: var(--acc); }
/* 의약품 칸 안의 공정서 딱지: 식품의 공전 딱지와 같은 크기 */
button.bookpill.sm { font-size: 11px; line-height: 18px; padding: 0 6px; margin-left: 4px; vertical-align: 1px; }
table.plain.cos th:nth-child(1) { width: 26%; } table.plain.cos th:nth-child(2) { width: 22%; } table.plain.cos th:nth-child(4) { width: 29%; } table.plain.cos th:nth-child(5) { width: 14%; }
table.plain.cos td:nth-child(5) { white-space: normal; }

/* 공전 딱지 버튼 + 팝업 */
button.gongjeon { border: 0; cursor: pointer; height: auto; font: inherit; font-size: 11px; line-height: 18px; padding: 0 6px; }
button.gongjeon:hover { filter: brightness(0.95); text-decoration: underline; }
.dlg-spec h3 { font-size: 14px; margin: 14px 0 6px; }
.dlg-spec table { width: 100%; }
/* 오른쪽 떠 있는 바로가기: 관련 사이트 */
.floatbar { position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 30; display: flex; flex-direction: column; gap: 8px; }
.floatbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 6px 6px; background: var(--sheet); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 2px 8px rgba(20, 40, 30, 0.10); text-decoration: none; color: var(--ink2); font-size: 11px; line-height: 1.2; width: 60px; text-align: center; }
.floatbar a:hover { border-color: var(--acc); color: var(--ink); }
.floatbar img { width: 36px; height: 36px; border-radius: 9px; display: block; }
@media (max-width: 760px) { .floatbar { top: auto; bottom: 16px; transform: none; right: 10px; } .floatbar span { display: none; } .floatbar a { width: auto; padding: 5px; } }
/* 표준품 이름 옆 분기별 분양량 막대 */
.stdname { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
svg.spark { flex: none; display: block; }
svg.spark rect { fill: #0E8060; }
svg.spark rect.z { fill: var(--line); }
.spark.none { flex: none; }
/* 화장품 칸: 품목 수와 사용제한 딱지를 한 줄에 */
.index.herbs td.d3 { white-space: nowrap; }
.index.herbs td.d3 .gongjeon.rstr { letter-spacing: -0.04em; padding: 0 5px; margin-left: 3px; }
th.sparkcell, td.sparkcell { width: 120px; }
th.sparkcell, td.sparkcell { width: 120px; }
.pickall { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-weight: inherit; }
.extlink { margin-left: 8px; color: var(--acc); font-weight: 560; white-space: nowrap; }
/* 보조 버튼: 흰 바탕과 구분되게 옅은 초록 바탕 + 초록 글씨 (주 버튼은 검정 그대로) */
button:not(.primary):not(.bookpill):not(.gongjeon):not([aria-pressed="true"]):not(.seg button), .btn:not(.primary) {
  background: var(--acc-soft); border-color: #BCD8CA; color: var(--acc-ink); font-weight: 560;
}
button:not(.primary):not(.bookpill):not(.gongjeon):not([aria-pressed="true"]):not(.seg button):hover, .btn:not(.primary):hover {
  background: #D6EADF; border-color: var(--acc);
}
td.sparkcell { text-align: center; } td.sparkcell svg.spark { margin: 0 auto; }
/* 분기별 분양 추이: 칸 너비에 맞게 늘리고, 연도마다 색을 달리 (dataviz 검증 팔레트 1~4번) */
th.sparkcell, td.sparkcell { width: 180px; }
td.sparkcell svg.spark { width: 100%; height: 26px; }
svg.spark rect.y0, .sparklegend i.y0 { fill: #2a78d6; background: #2a78d6; }
svg.spark rect.y1, .sparklegend i.y1 { fill: #eb6834; background: #eb6834; }
svg.spark rect.y2, .sparklegend i.y2 { fill: #1baf7a; background: #1baf7a; }
svg.spark rect.y3, .sparklegend i.y3 { fill: #eda100; background: #eda100; }
.sparklegend { display: flex; justify-content: center; gap: 8px; margin-top: 3px; font-weight: 400; font-size: 11.5px; color: var(--ink2); }
.sparklegend span { display: inline-flex; align-items: center; gap: 3px; }
.sparklegend i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.regalert { background: #FBE6E1; color: #8A2B17; border: 1px solid #F0C4B8; border-radius: 10px; padding: 10px 14px; margin: 14px 0; font-size: 14px; }

/* ===== 휴대폰 화면 정리 (760px 이하) ===== */
h1:focus { outline: none; }
@media (max-width: 760px) {
  /* 머리: 로그인 버튼은 오른쪽 끝, 메뉴는 간격을 줄여 한 화면에 더 보이게 */
  .mast-row { display: flex; align-items: center; gap: 8px; }
  .mast-row .me { margin-left: auto; }
  .tabs { gap: 2px; scrollbar-width: none; }
  .tabs a { padding: 6px 10px; font-size: 14px; }
  .page-head h1 { font-size: 22px; line-height: 1.35; }
  /* 거르기: 찾기 칸은 한 줄 전체, 선택 상자는 같은 너비 두 칸씩 */
  .controls.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .controls.filters input[type=search] { grid-column: 1 / -1; width: 100%; }
  .controls.filters select { width: 100%; min-width: 0; }
  .tablebar { flex-wrap: wrap; gap: 6px; }
  .tablebar .controls { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .tablebar .controls .btn { justify-content: center; }
  /* 생약 카드: 선택 상자는 이름 오른쪽 위, 칸 구분선 없이 */
  .index.herbs td.pick, .index.herbs th.pick { border: 0 !important; padding: 0 !important; }
  .index.herbs td.dom { border: 0; background: none; }
  /* 정렬 버튼 묶음: 넘치지 않게 줄 바꿈 */
  .seg { display: flex; flex-wrap: wrap; gap: 6px; background: none; padding: 0; }
  .seg button { flex: 1 1 auto; justify-content: center; border: 1px solid var(--line); border-radius: 8px; }
  .controls { flex-wrap: wrap; }
  /* 넓은 표 → 카드: 첫 칸은 제목처럼, 나머지는 '칸 제목 | 값' 두 줄 격자 */
  table.plain.stack, table.plain.stack tbody, table.plain.stack tr, table.plain.stack td { display: block; width: auto !important; }
  table.plain.stack thead { display: none; }
  table.plain.stack tr { padding: 12px 14px; border-bottom: 1px solid var(--line2); }
  table.plain.stack td { border: 0; padding: 2px 0; text-align: left !important; white-space: normal; }
  table.plain.stack td[data-label]:not(:first-child) { display: grid; grid-template-columns: 7.5em 1fr; gap: 8px; align-items: baseline; font-size: 13.5px; }
  table.plain.stack td[data-label]:not(:first-child)::before { content: attr(data-label); color: var(--ink2); font-size: 12.5px; font-weight: 500; }
  table.plain.stack td:first-child { font-size: 15px; margin-bottom: 4px; }
  table.plain.stack td.sparkcell svg.spark { width: 100%; max-width: 220px; }
  table.plain.stack td:empty { display: none; }
  .tablewrap { overflow-x: visible; }
  /* 가로 막대: 이름 칸을 좁히고 수치는 한 줄에 */
  .hbars { grid-template-columns: 5.5em 1fr; }
  .hbars .v { white-space: nowrap; font-size: 12.5px; }
  .hbars .v .pct { font-size: 11px; }
  /* 오른쪽 가운데에 붙은 작은 바로가기 */
  .floatbar { top: 50%; bottom: auto; transform: translateY(-50%); right: 0; }
  .floatbar a { width: auto; padding: 6px 5px 6px 7px; border-radius: 12px 0 0 12px; border-right: 0; }
  .floatbar img { width: 30px; height: 30px; border-radius: 8px; }
  /* 팝업: 화면 폭에 맞추고 버튼은 꽉 차게 */
  dialog.dlg { width: calc(100vw - 24px); max-width: none; padding: 18px 16px; }
  dialog.dlg .controls { display: grid; grid-template-columns: 1fr; gap: 8px; }
  dialog.dlg .controls .btn { justify-content: center; }
}
@media (max-width: 760px) {
  .index.herbs td.pick, .index.herbs td.sites { width: auto !important; }
  .index.herbs td.pick { min-width: 20px; text-align: right; }
  /* 카드 칸 안에 덧붙은 줄(로트 등)은 값 칸에 맞춘다 */
  table.plain.stack td[data-label]:not(:first-child) > div { grid-column: 2; }
  .seg { display: grid; grid-template-columns: repeat(3, 1fr); }
  .stdlegend-m { display: block; margin-top: 6px; }
  .stdlegend-m .sparklegend { justify-content: flex-start; }
}
.stdlegend-m { display: none; }
@media (max-width: 760px) {
  .controls .seg { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .seg button { padding: 0 6px; font-size: 13px; }
  .tablebar .stdlegend-m { display: block; }
}
@media (max-width: 760px) {
  /* 화장품 원료 카드: 글이 길어 칸 제목을 위에, 값은 아래 한 줄 전체 */
  table.plain.cos.stack td[data-label]:not(:first-child) { display: block; }
  table.plain.cos.stack td[data-label]:not(:first-child)::before { display: block; margin-top: 6px; }
}
@media (max-width: 760px) { table.plain.stack td.blank { display: none !important; } }
.sources dd, .sources dt { overflow-wrap: anywhere; word-break: keep-all; } .sources dd code, .sources dd a { word-break: break-all; }
/* 내 정보: 선택 품목의 분야별 수는 가운데 */
.index.mine td.dom, .index.mine th.dom { text-align: center; }
@media (max-width: 760px) {
  /* 정렬 버튼 5개: 위 3개·아래 2개가 모두 한 줄 너비를 채우게 */
  .controls .seg { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .seg button { grid-column: span 2; }
  .seg button:nth-child(n+4):nth-last-child(-n+2) { grid-column: span 3; }
  /* 내 정보 카드: 이름 줄 아래에 의약품·식품·화장품을 한 줄 세 칸으로 */
  .index.mine tr { grid-template-columns: repeat(3, 1fr) auto; }
  .index.mine td.nm { grid-column: 1 / 4; grid-row: 1; }
  .index.mine td.pick { grid-column: 4; grid-row: 1; }
  .index.mine td.dom { grid-column: auto; grid-row: 2; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 6px 0 0; }
  .index.mine td.dom .dl { margin: 0 0 2px; }
  .floatbar { gap: 6px; }
}
@media (max-width: 760px) {
  /* 머리 한 줄: 사이트 이름은 줄 바꿈 없이, 이름은 길면 줄임표 */
  .mast-row { flex-wrap: nowrap; }
  .mast-row .title { white-space: nowrap; font-size: 17px; }
  .mast-row .test { flex: none; }
  .mast-row .me { display: flex; align-items: center; gap: 6px; min-width: 0; }
  .mast-row .me > a { max-width: 4.5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
  .mast-row .me button, .mast-row .me .btn { flex: none; }
}
@media (max-width: 760px) { .mast-row .test { display: none; } }

/* ===== 머리 상자: 공정서 생약 사진(제주센터 작약·배초향·박하·감국·현호색·쥐오줌풀·삼백초) 위에 초록 그라데이션 ===== */
.masthead { position: static; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border: 0; padding-top: 14px; }
.mastbox { border-radius: 20px; overflow: hidden; padding: 16px 20px 12px; color: #fff;
  background: linear-gradient(100deg, rgba(10, 46, 34, .94) 0%, rgba(14, 70, 50, .80) 45%, rgba(14, 70, 50, .45) 100%), url('/img/band.jpg') center / cover, #0E4632; }
.mastbox .mast-row { padding-top: 0; }
.mastbox .title { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.mastbox .emblem { width: 44px; height: 44px; flex: none; filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)); }
.mastbox .wm { display: inline-flex; align-items: baseline; gap: 6px; line-height: 1.1; }
.mastbox .wm b { font-size: 24px; font-weight: 800; letter-spacing: -0.04em; color: #fff; }
.mastbox .wm span { font-size: 16px; font-weight: 600; color: #F4EBD3; letter-spacing: -0.02em; }
.mastbox .test { background: rgba(244, 235, 211, .2); color: #F4EBD3; }
.mastbox .me { margin-left: auto; color: #fff; }
.mastbox .me a { color: #fff; }
.mastbox .me button, .mastbox .me .btn { background: rgba(255,255,255,.14) !important; border-color: rgba(255,255,255,.35) !important; color: #fff !important; }
.mastbox .tabs { padding: 14px 0 2px; }
.mastbox .tabs a { color: rgba(255,255,255,.86); }
.mastbox .tabs a:hover { background: rgba(255,255,255,.14); color: #fff; }
.mastbox .tabs a[aria-current="page"] { background: #fff; color: #0A2E22; }
@media (max-width: 760px) {
  .masthead { padding-top: 10px; }
  .mastbox { border-radius: 16px; padding: 12px 12px 8px; }
  .mastbox .emblem { width: 34px; height: 34px; }
  .mastbox .wm b { font-size: 19px; } .mastbox .wm span { font-size: 13px; }
  .mastbox .tabs { padding: 10px 0 0; }
  .mast-row .title { font-size: inherit; }
}
/* 머리 사진: 삼백초 잎 한 장을 넓게 펼침. 글씨 쪽(왼쪽)만 짙게 */
.mastbox { background: linear-gradient(100deg, rgba(8, 40, 29, .90) 0%, rgba(12, 60, 43, .70) 38%, rgba(12, 60, 43, .25) 75%, rgba(12, 60, 43, .10) 100%), url('/img/band.jpg') 60% 45% / cover no-repeat, #0E4632; }
.mastbox .emblem { width: 46px; height: 46px; }
@media (max-width: 760px) { .mastbox .emblem { width: 36px; height: 36px; } }
@media (max-width: 760px) {
  /* 오른쪽 바로가기: 화면 끝에서 살짝 띄운 둥근 아이콘 단추 */
  .floatbar { right: 10px; gap: 10px; }
  .floatbar a { width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 3px 10px rgba(10, 40, 30, .22), 0 0 0 2px #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
  .floatbar img { width: 44px; height: 44px; border-radius: 50%; }
  .floatbar span { display: none; }
}

/* ===== 공통 검색창: 모든 메뉴에서 제목 바로 아래 같은 모양 ===== */
.searchbar { display: flex; gap: 8px; align-items: center; margin: 4px 0 22px; }
.searchbar input[type=search] { flex: 1 1 auto; min-width: 0; height: 36px; font-size: 14px; border: 1.5px solid var(--acc); border-radius: 10px; padding: 0 14px; background: #fff; }
.searchbar input[type=search]:focus { outline: none; box-shadow: 0 0 0 3px rgba(14, 128, 96, .15); }
.searchbar button, .searchbar .btn { height: 36px; font-size: 14px; padding: 0 18px; border-radius: 10px; flex: none; }
.searchbar button.primary { background: var(--acc); border-color: var(--acc); color: #fff; }
.resulthead { margin: 6px 0 12px; }
@media (max-width: 760px) { .searchbar { margin-bottom: 16px; } .searchbar button, .searchbar .btn { padding: 0 12px; } }
@media (max-width: 760px) { div.stdlegend-m { display: block; margin-top: 4px; } div.stdlegend-m .sparklegend { justify-content: flex-start; } }
/* 관찰 기록: 사진 격자 (사진 아래 날짜·장소) */
.obs h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.obsgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 10px 0; }
.obsgrid a { display: block; background: var(--sheet); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; color: var(--ink2); text-decoration: none; }
.obsgrid a:hover { border-color: var(--acc); }
.obsgrid img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--line2); }
.obsgrid span { display: block; padding: 6px 8px 8px; font-size: 12px; line-height: 1.45; }
@media (max-width: 760px) { .obsgrid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }
/* 관찰 지도 */
.obsmap { height: 420px; border-radius: 14px; border: 1px solid var(--line); overflow: hidden; background: #E8EEEA; z-index: 0; }
.obslegend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 4px; font-size: 13px; color: var(--ink2); }
.obslegend span { display: inline-flex; align-items: center; gap: 6px; }
.obslegend i:first-child { width: 11px; height: 11px; border-radius: 50%; display: inline-block; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.obslegend .ln { font-style: italic; }
.leaflet-container { font: inherit; }
@media (max-width: 760px) { .obsmap { height: 320px; } }
.via { color: var(--ink2); margin-top: 3px; } .via::before { content: "근거 "; color: var(--acc); font-weight: 600; }

/* ===== 그래프 등장 애니메이션: 화면에 보일 때 막대가 자라남 (JS가 .anim을 붙이고, 보이면 .go) ===== */
.anim .hbars .b, .hbars.anim .b { transform: scaleX(0); transform-origin: left center; }
.anim .chart .col i, .chart.anim .col i { transform: scaleY(0); transform-origin: center bottom; }
svg.spark.anim rect { transform: scaleY(0); transform-box: fill-box; transform-origin: center bottom; }
.hbars.go .b { transform: scaleX(1); transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.chart.go .col i { transform: scaleY(1); transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
svg.spark.go rect { transform: scaleY(1); transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
/* 막대마다 조금씩 늦게 (위에서 아래로, 왼쪽에서 오른쪽으로) */
.hbars.go .bar:nth-child(4) .b { transition-delay: 0.04s; } .hbars.go .bar:nth-child(6) .b { transition-delay: 0.08s; } .hbars.go .bar:nth-child(8) .b { transition-delay: 0.12s; } .hbars.go .bar:nth-child(10) .b { transition-delay: 0.16s; } .hbars.go .bar:nth-child(12) .b { transition-delay: 0.2s; } .hbars.go .bar:nth-child(14) .b { transition-delay: 0.24s; } .hbars.go .bar:nth-child(16) .b { transition-delay: 0.28s; } .hbars.go .bar:nth-child(n+18) .b { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .hbars.anim .b, .chart.anim .col i, svg.spark.anim rect { transform: none !important; transition: none !important; }
}
