:root {
  --bg: #f2efe8;
  --surface: #f8f5ee;
  --surface-strong: #fffdf7;
  --ink: #171a17;
  --muted: #6c7069;
  --faint: #989b93;
  --line: #d9d5cc;
  --line-dark: #c0bcb2;
  --signal: #b8cf3f;
  --signal-soft: #e7edbd;
  --accent: #2f4ec8;
  --accent-soft: #dfe4f6;
  --positive: #49604e;
  --page: 1580px;
  --radius: 3px;
  --shadow: 0 22px 55px rgba(26, 29, 23, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(rgba(20,22,18,.055) .45px, transparent .55px);
  background-size: 5px 5px;
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
  font-size: 14px;
  line-height: 1.58;
  letter-spacing: -0.012em;
  word-break: keep-all;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; letter-spacing: inherit; }
button { color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
.boot { min-height: 100vh; display: grid; place-items: center; font: 600 13px/1 Inter, Arial, sans-serif; letter-spacing: .09em; }

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(23,25,21,.09);
  background: rgba(242,241,235,.9);
  backdrop-filter: blur(18px) saturate(115%);
}
.header-inner {
  max-width: var(--page);
  height: 62px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 7px; font: 650 13px/1 Inter, Arial, sans-serif; letter-spacing: .07em; }
.brand b { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: var(--signal); font-size: 11px; font-weight: 500; letter-spacing: 0; }
.nav { display: flex; align-items: center; gap: 27px; }
.nav a { font: 450 11.5px/1 Inter, "Pretendard Variable", sans-serif; color: var(--muted); transition: .15s ease; }
.nav a:hover, .nav a.active { color: var(--ink); }
.nav a.active::after { content: ""; display: block; height: 2px; margin-top: 7px; background: var(--signal); }
.nav a span { margin-left: 3px; color: var(--faint); font-size: 9px; }

.main { max-width: var(--page); min-height: calc(100vh - 134px); margin: 0 auto; padding: 0 32px 104px; }

/* Home */
.home-top {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 318px;
  gap: 18px;
  min-height: 414px;
  padding: 62px 0 58px;
  align-items: stretch;
}
.home-top::after {
  content: "";
  position: absolute;
  left: 0; right: 336px; bottom: 58px; height: 5px;
  background: repeating-linear-gradient(90deg, rgba(23,25,21,.13) 0 1px, transparent 1px 10px);
  opacity: .28; pointer-events: none;
}
.home-search-block { width: 100%; max-width: none; padding: 0 18px 10px 0; position: relative; z-index: 1; }
.home-kicker { height: 22px; margin-bottom: 27px; display: flex; align-items: center; gap: 10px; color: var(--faint); font: 560 8px/1 Inter, sans-serif; letter-spacing: .095em; }
.home-kicker::before { content: ""; width: 8px; height: 8px; background: var(--accent); display: block; }
.home-kicker i { width: 34px; height: 1px; display: block; background: var(--line-dark); }
.search { position: relative; width: 100%; }
.search-icon {
  position: absolute; left: 14px; top: 50%; width: 13px; height: 13px;
  border: 1.5px solid var(--muted); border-radius: 50%; transform: translateY(-55%); pointer-events: none;
}
.search-icon::after { content: ""; position: absolute; width: 5px; height: 1.5px; right: -4px; bottom: -2px; background: var(--muted); transform: rotate(45deg); transform-origin: left center; }
.search input {
  width: 100%; height: 42px; padding: 0 14px 0 40px; border: 1px solid var(--line); border-radius: var(--radius); outline: none;
  background: var(--surface-strong); color: var(--ink); font-size: 12.5px; transition: border-color .15s ease, background .15s ease;
}
.search input::placeholder { color: #9ca097; }
.search input:focus { border-color: var(--accent); background: #fff; }
.search-large input {
  height: 84px; padding: 0 18px 0 55px; border: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); border-radius: 0; background: rgba(255,255,255,.08);
  font-size: clamp(22px, 2.25vw, 34px); font-weight: 430; letter-spacing: -.045em;
}
.search-large::after { content: "SEARCH / MATERIALS"; position: absolute; right: 0; top: -18px; color: var(--accent); font: 600 7.5px/1 Inter,sans-serif; letter-spacing: .09em; }
.search-large .search-icon { left: 5px; width: 19px; height: 19px; border-color: var(--ink); }
.search-large .search-icon::after { width: 8px; right: -7px; bottom: -3px; background: var(--ink); }
.quick-use { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 25px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.quick-use button {
  min-height: 43px; padding: 0 12px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: #4b4f47; text-align: left; font-size: 10px;
  transition: background .15s ease, color .15s ease; position: relative;
}
.quick-use button::after { content: "↗"; position: absolute; right: 9px; top: 50%; transform: translateY(-50%); color: var(--faint); font-size: 8px; }
.quick-use button:hover { background: var(--accent); color: #fff; }
.quick-use button:hover::after { color: #fff; }
.brief-wrap { margin-top: 24px; border-top: 3px solid var(--signal); border-bottom: 1px solid var(--line); background: rgba(255,253,247,.28); }
.brief-trigger { width: 100%; min-height: 48px; padding: 0 1px; border: 0; background: transparent; display: flex; align-items: center; justify-content: space-between; font: 560 10px/1 Inter, sans-serif; text-transform: uppercase; letter-spacing: .07em; }
.brief-trigger span::after { content: " / NATURAL LANGUAGE"; color: var(--faint); font-weight: 450; }
.brief-trigger i { width: 23px; height: 23px; display: grid; place-items: center; background: var(--signal); font-style: normal; font-size: 15px; font-weight: 350; }
.brief-panel { padding: 0 0 14px; }
.brief-panel textarea { width: 100%; resize: vertical; min-height: 108px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 0; outline: none; background: var(--surface-strong); color: var(--ink); font-size: 12px; line-height: 1.65; }
.brief-panel textarea:focus { border-color: var(--accent); }
.brief-bottom { margin-top: 8px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.brief-bottom span { color: var(--faint); font: 450 9px/1 Inter, sans-serif; letter-spacing: .03em; }
.brief-bottom button { padding: 6px 9px; border: 0; background: var(--accent); color: #fff; font: 540 9px/1 Inter, sans-serif; }

.index-rail {
  position: relative;
  min-height: 100%;
  padding: 16px 18px 16px 20px;
  background: var(--accent);
  color: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.index-rail::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none; opacity: .32;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.18) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.13) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, #000 0, rgba(0,0,0,.75) 62%, transparent 100%);
}
.index-rail::after {
  content: ""; position: absolute; right: -26px; top: 118px; width: 104px; height: 104px; border-radius: 50%; border: 18px solid var(--signal); opacity: .95;
}
.index-rail > * { position: relative; z-index: 1; }
.rail-heading { display: flex; align-items: center; justify-content: space-between; min-height: 22px; color: rgba(255,255,255,.76); font: 600 7.5px/1 Inter, sans-serif; letter-spacing: .09em; }
.rail-live { display: inline-flex; align-items: center; gap: 5px; color: #fff; }
.rail-live i { width: 7px; height: 7px; border-radius: 0; background: var(--signal); box-shadow: none; }
.rail-count { margin-top: 31px; display: flex; align-items: flex-end; gap: 12px; }
.rail-count b { color: var(--signal); font: 500 72px/.72 Inter, sans-serif; letter-spacing: -.09em; }
.rail-count span { padding-bottom: 2px; color: #fff; font: 650 9px/1.16 Inter, sans-serif; letter-spacing: .08em; }
.rail-rule { margin-top: 23px; display: flex; align-items: center; gap: 8px; }
.rail-rule span { height: 1px; flex: 1; background: rgba(255,255,255,.62); }
.rail-rule b { font: 560 7px/1 Inter,sans-serif; letter-spacing: .08em; }
.rail-stats { margin: 18px 0 0; border-top: 1px solid rgba(255,255,255,.48); }
.rail-stats div { min-height: 35px; margin: 0; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.28); }
.rail-stats dt { color: rgba(255,255,255,.7); font: 550 7.5px/1 Inter, sans-serif; letter-spacing: .075em; }
.rail-stats dd { margin: 0; color: #fff; font: 620 10px/1 Inter, sans-serif; }
.rail-subhead { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; color: rgba(255,255,255,.62); font: 560 6.8px/1 Inter,sans-serif; letter-spacing: .08em; }
.rail-subhead b { font-weight: 560; }
.rail-origins { margin-top: 8px; display: grid; gap: 0; border-top: 1px solid rgba(255,255,255,.28); }
.rail-origins span { min-height: 27px; display: grid; grid-template-columns: 24px 1fr; gap: 6px; align-items: center; border-bottom: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.88); font: 540 7.5px/1.2 Inter, sans-serif; text-transform: uppercase; letter-spacing: .045em; }
.rail-origins span b { color: var(--signal); font: 650 7px/1 Inter, sans-serif; letter-spacing: .04em; }
.rail-mark { margin-top: auto; padding-top: 15px; display: flex; align-items: center; gap: 9px; }
.rail-mark span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--signal); color: var(--ink); font: 350 20px/1 Inter, sans-serif; }
.rail-mark b { color: rgba(255,255,255,.82); font: 600 7px/1 Inter, sans-serif; letter-spacing: .085em; }

.home-materials { position: relative; border-top: 1px solid var(--ink); padding-top: 0; }
.home-materials::before { content: ""; position: absolute; top: -5px; left: 0; width: 88px; height: 5px; background: var(--signal); }
.simple-head, .page-title-row { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.simple-head h1, .page-title-row h1 { margin: 0; font: 560 12px/1 Inter, "Pretendard Variable", sans-serif; letter-spacing: .02em; }
.editorial-head { min-height: 74px; }
.editorial-head > div { display: flex; align-items: center; gap: 10px; }
.section-no { width: 23px; height: 23px; display: grid; place-items: center; background: var(--accent); color: white; font: 650 7px/1 Inter, sans-serif; letter-spacing: .02em; }
.section-meta { padding-left: 12px; margin-left: 4px; border-left: 1px solid var(--line-dark); color: var(--faint); font: 520 7.5px/1 Inter,sans-serif; letter-spacing: .075em; }
.simple-head a, .text-action { padding: 0 0 3px; border: 0; border-bottom: 1px solid var(--ink); background: transparent; color: var(--ink); font: 500 9px/1 Inter, sans-serif; }
.simple-head a:hover, .text-action:hover { color: var(--accent); border-color: var(--accent); }
.page-title-row > span { color: var(--faint); font: 500 8.5px/1 Inter, sans-serif; letter-spacing: .08em; }

/* Cards */
.material-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 34px 14px; }
.home-grid { gap: 38px 14px; }
.home-grid .card:nth-child(4n+2) .material-index { background: var(--accent-soft); color: var(--accent); }
.card { min-width: 0; }
.card-media { position: relative; aspect-ratio: 1 / .82; overflow: hidden; border-radius: 0; background: #e7e6df; }
.card-media::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(22,24,20,.08); pointer-events: none; }
.material-image, .material-fallback { width: 100%; height: 100%; display: block; object-fit: cover; transform: scale(1.003); transition: transform .34s cubic-bezier(.2,.65,.3,1), filter .2s ease; }
.card:hover .material-image, .card:hover .material-fallback { transform: scale(1.03); }
.material-index, .media-role { position: absolute; z-index: 2; top: 8px; font: 560 8px/1 Inter, sans-serif; letter-spacing: .05em; }
.material-index { left: 8px; min-width: 25px; padding: 5px 6px; background: rgba(247,247,242,.9); backdrop-filter: blur(7px); }
.media-role { right: 8px; padding: 5px 6px; background: var(--signal); color: var(--ink); }
.card-actions { position: absolute; z-index: 3; right: 8px; bottom: 8px; display: flex; gap: 5px; opacity: 0; transition: opacity .15s ease; }
.card:hover .card-actions { opacity: 1; }
.icon-btn { width: 28px; height: 28px; padding: 0; border: 1px solid rgba(20,22,18,.15); border-radius: 50%; background: rgba(250,250,246,.9); backdrop-filter: blur(8px); display: grid; place-items: center; font: 500 11px/1 Inter, sans-serif; }
.icon-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.feedstock-line { min-height: 24px; padding: 8px 1px 0; display: flex; align-items: center; gap: 7px; overflow: hidden; color: #797d73; font: 500 8px/1 Inter, sans-serif; text-transform: uppercase; letter-spacing: .055em; white-space: nowrap; text-overflow: ellipsis; }
.feedstock-line span { width: 18px; height: 3px; flex: 0 0 auto; background: var(--signal); }
.card-body { padding: 7px 1px 0; }
.card-name h3 { margin: 0; font: 545 11.5px/1.4 Inter, "Pretendard Variable", sans-serif; letter-spacing: -.015em; }
.card-name .ko-name { margin-top: 2px; color: var(--muted); font-size: 10px; line-height: 1.48; }
.card-meta { margin-top: 8px; display: flex; justify-content: space-between; gap: 8px; color: #8c9086; font: 450 8.5px/1.3 Inter, "Pretendard Variable", sans-serif; }

/* Explore */
.page-title-row { padding: 54px 0 16px; }
.page-title-row h1 { font-size: 22px; font-weight: 510; letter-spacing: -.035em; }
.explore-toolbar { position: sticky; top: 62px; z-index: 45; padding: 11px 0; display: grid; grid-template-columns: minmax(230px, 1fr) auto auto; gap: 8px; align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(242,239,232,.95); backdrop-filter: blur(16px); }
.filters { display: flex; gap: 5px; }
.filter { position: relative; }
.filter > button { height: 37px; padding: 0 10px; display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: #5d6158; font: 500 9px/1 Inter, sans-serif; }
.filter > button.active { background: var(--signal); color: var(--ink); border-color: #9fae59; }
.chevron { width: 5px; height: 5px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.filter-menu { display: none; position: absolute; top: 43px; left: 0; min-width: 222px; max-height: 340px; overflow: auto; padding: 6px; border: 1px solid var(--line); border-radius: 5px; background: rgba(255,254,249,.985); box-shadow: var(--shadow); }
.filter.open .filter-menu { display: block; }
.filter-option { width: 100%; padding: 8px 7px; border: 0; border-radius: 3px; display: flex; align-items: center; gap: 9px; background: transparent; text-align: left; font: 450 9.5px/1.3 Inter, "Pretendard Variable", sans-serif; }
.filter-option:hover { background: #f0f1e8; }
.check { width: 11px; height: 11px; border: 1px solid var(--line-dark); border-radius: 1px; }
.filter-option.selected .check { background: var(--signal); border-color: #94a357; box-shadow: inset 0 0 0 2px #fff; }
.clear-btn { height: 37px; padding: 0 5px; border: 0; background: transparent; color: var(--muted); font: 450 9px/1 Inter, sans-serif; }
.active-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 13px 0 0; }
.active-chips button { padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: #5e6259; font-size: 9px; }
.result-meta { padding: 17px 0 13px; color: var(--faint); font: 450 9px/1 Inter, sans-serif; }
.result-meta strong { color: var(--ink); font-weight: 550; }

/* Detail */
.breadcrumb { padding: 31px 0 17px; display: flex; gap: 8px; color: var(--faint); font: 450 9px/1 Inter, sans-serif; }
.breadcrumb a { color: var(--muted); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(390px, .82fr); gap: 58px; align-items: start; padding-bottom: 68px; }
.detail-media-wrap { position: sticky; top: 94px; }
.detail-media { aspect-ratio: 1.12 / .88; overflow: hidden; border-radius: var(--radius); background: #e8e7e0; }
.detail-media .material-image { object-fit: cover; }
.media-credit { min-height: 34px; display: flex; justify-content: space-between; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); color: var(--faint); font: 450 8px/1 Inter, sans-serif; }
.media-credit span { letter-spacing: .07em; }
.media-credit a:hover { color: var(--ink); }
.detail-side { padding-top: 3px; }
.detail-family { margin: 0 0 12px; color: var(--muted); font: 520 9px/1 Inter, sans-serif; text-transform: uppercase; letter-spacing: .07em; }
.detail-heading h1 { margin: 0; font: 500 clamp(30px, 3vw, 47px)/1.07 Inter, "Pretendard Variable", sans-serif; letter-spacing: -.05em; }
.detail-ko { margin: 8px 0 0; color: var(--muted); font-size: 12.5px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 25px; }
.btn { min-height: 37px; padding: 0 13px; border: 1px solid var(--ink); border-radius: var(--radius); background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font: 500 9.5px/1 Inter, "Pretendard Variable", sans-serif; }
.btn.secondary { border-color: var(--line-dark); background: transparent; color: var(--ink); }
.btn.secondary:hover { background: var(--surface); }
.btn.active { background: var(--signal); border-color: #95a855; color: var(--ink); }
.passport { position: relative; margin-top: 33px; border-top: 1px solid var(--ink); }
.passport::before { content: ""; position: absolute; left: 0; top: -3px; width: 52px; height: 3px; background: var(--signal); }
.passport > div { display: grid; grid-template-columns: 102px 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.passport span { color: var(--muted); font: 450 9px/1.4 Inter, sans-serif; }
.passport strong { font-size: 10.5px; line-height: 1.55; font-weight: 500; }
.decision-block { margin-top: 30px; }
.decision-line { display: grid; grid-template-columns: 102px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.decision-line:last-child { border-bottom: 1px solid var(--line); }
.decision-line h2 { margin: 0; color: var(--muted); font: 500 9px/1.5 Inter, sans-serif; }
.decision-line ul { list-style: none; margin: 0; padding: 0; }
.decision-line li { display: inline; font-size: 10.5px; line-height: 1.68; }
.decision-line li:not(:last-child)::after { content: " · "; color: var(--faint); }
.decision-line.consider li { color: #62564d; }
.reference-note { margin: 0 0 24px; padding: 10px 12px; display: flex; gap: 11px; align-items: center; border: 1px solid #c9cf9f; background: rgba(184,207,63,.13); color: #5d6254; font-size: 9.5px; }
.reference-note b { padding: 3px 5px; background: var(--signal); font: 600 8px/1 Inter, sans-serif; }
.detail-section { display: grid; grid-template-columns: 180px 1fr; gap: 34px; padding: 32px 0; border-top: 1px solid var(--line); }
.detail-section h2 { margin: 0; font: 540 10px/1.4 Inter, sans-serif; letter-spacing: .02em; }
.detail-section > p { margin: 0; max-width: 760px; color: #5e6258; font-size: 11.5px; line-height: 1.8; }
.data-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 34px; }
.data-row { display: grid; grid-template-columns: 112px 1fr; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 10px; }
.data-row:nth-child(-n+2) { border-top: 0; padding-top: 0; }
.data-row > span { color: var(--muted); font: 450 9px/1.5 Inter, sans-serif; }
.evidence-list { display: grid; }
.evidence-item { display: grid; grid-template-columns: 150px 1fr auto; gap: 20px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); font-size: 10px; }
.evidence-item:first-child { border-top: 0; padding-top: 0; }
.evidence-item strong { font-weight: 520; }
.evidence-item small { display: block; margin-top: 2px; color: var(--faint); font-size: 8.5px; }
.level { padding: 4px 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 8.5px; white-space: nowrap; }
.level.verified, .level.documented { border-color: #c4d0c5; color: var(--positive); background: #f1f5f0; }
.technical-list .data-row:nth-child(-n+2) { border-top: 1px solid var(--line); padding-top: 10px; }
.source-list { display: grid; }
.source-list a { min-height: 43px; display: grid; grid-template-columns: 120px 1fr 24px; gap: 16px; align-items: center; border-top: 1px solid var(--line); font-size: 9.5px; }
.source-list a:first-child { border-top: 0; }
.source-list a span { color: var(--muted); font: 450 8.5px/1 Inter, sans-serif; text-transform: uppercase; letter-spacing: .04em; }
.source-list a strong { font-weight: 500; }
.source-list a i { font-style: normal; color: var(--faint); text-align: right; }
.source-list a:hover strong, .source-list a:hover i { color: var(--ink); }
.supplier-row { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.supplier-row > div { display: flex; flex-direction: column; gap: 4px; }
.supplier-row strong { font-size: 10.5px; font-weight: 520; }
.supplier-row span { color: var(--muted); font-size: 9px; }

/* Saved / Compare / About */
.empty { min-height: 280px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10.5px; }
.empty strong { color: var(--ink); font-weight: 520; }
.empty button, .empty a { border: 0; background: transparent; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; font-size: 9.5px; }
.empty.standalone { margin-top: 60px; }
.compare-wrap { overflow-x: auto; border-top: 1px solid var(--line); }
.compare-table { width: 100%; min-width: 820px; border-collapse: collapse; font-size: 9.5px; }
.compare-table th, .compare-table td { padding: 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-weight: 400; }
.compare-table thead th { padding-top: 18px; }
.compare-table tbody th { width: 140px; color: var(--muted); font-family: Inter, sans-serif; }
.compare-mini { width: 100%; height: 150px; margin-bottom: 10px; overflow: hidden; border-radius: var(--radius); }
.compare-mini .material-image { width: 100%; height: 100%; object-fit: cover; }
.compare-table thead strong { display: block; font-family: Inter, sans-serif; font-weight: 520; }
.compare-table thead small { display: block; margin-top: 2px; color: var(--muted); font-size: 8.5px; }
.remove-link { margin-top: 9px; padding: 0; border: 0; background: transparent; color: var(--faint); font: 450 8.5px/1 Inter, sans-serif; }
.about-page { max-width: 900px; padding: 80px 0; }
.about-page h1 { margin: 0 0 66px; font: 500 34px/1 Inter, sans-serif; letter-spacing: -.04em; }
.about-grid { display: grid; }
.about-grid section { display: grid; grid-template-columns: 160px 1fr; gap: 28px; padding: 21px 0; border-top: 1px solid var(--line); }
.about-grid section:last-child { border-bottom: 1px solid var(--line); }
.about-grid span { color: var(--muted); font: 450 9px/1.5 Inter, sans-serif; }
.about-grid p { margin: 0; color: #575b52; font-size: 11.5px; line-height: 1.8; }

.footer { border-top: 1px solid var(--line); }
.footer-inner { max-width: var(--page); min-height: 72px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--faint); font: 450 8.5px/1 Inter, "Pretendard Variable", sans-serif; }
.footer-links { display: flex; gap: 18px; }
.footer a { color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 100; padding: 8px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 9.5px; opacity: 0; transform: translate(-50%, 12px); transition: .2s ease; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1180px) {
  .home-top { grid-template-columns: minmax(0, 1fr) 218px; gap: 24px; }
  .material-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .explore-toolbar { grid-template-columns: 1fr; }
  .filters { flex-wrap: wrap; }
  .clear-btn { justify-self: start; }
  .detail-grid { grid-template-columns: 1fr 410px; gap: 34px; }
}

@media (max-width: 900px) {
  .home-top { grid-template-columns: 1fr; gap: 34px; }
  .index-rail { min-height: 250px; padding-left: 0; padding-top: 18px; border-left: 0; border-top: 1px solid var(--line-dark); }
  .index-rail::before { inset: 18px 0 0 0; }
  .rail-stats { max-width: 360px; }
  .rail-origins { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-inner, .main, .footer-inner { padding-left: 22px; padding-right: 22px; }
  .home-top { grid-template-columns: 1fr; min-height: 0; padding-top: 64px; }
  .index-rail { display: none; }
  .material-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-media-wrap { position: relative; top: auto; }
  .detail-side { max-width: 700px; }
  .detail-section { grid-template-columns: 140px 1fr; }
}

@media (max-width: 640px) {
  .home-kicker { margin-bottom: 12px; }
  .home-top { padding-top: 44px; }
  .index-rail { min-height: 230px; }
  .rail-count b { font-size: 38px; }
  .header-inner { height: 58px; }
  .nav { gap: 14px; }
  .nav a { font-size: 10px; }
  .main { padding-bottom: 64px; }
  .home-top { padding: 48px 0 52px; }
  .search-large input { height: 59px; padding-left: 42px; font-size: 17px; }
  .search-large .search-icon { width: 15px; height: 15px; }
  .quick-use { margin-top: 17px; gap: 5px; }
  .quick-use button { padding: 6px 9px; font-size: 10px; }
  .brief-wrap { margin-top: 26px; }
  .material-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 9px; }
  .card-actions { opacity: 1; }
  .card-media { aspect-ratio: 1 / .9; }
  .card-meta { display: block; }
  .card-meta span { display: block; margin-top: 2px; }
  .page-title-row { padding-top: 35px; }
  .explore-toolbar { top: 58px; }
  .filters { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter > button { white-space: nowrap; }
  .filter-menu { position: fixed; top: 109px; left: 14px; right: 14px; min-width: 0; }
  .detail-grid { padding-bottom: 50px; }
  .detail-heading h1 { font-size: 33px; }
  .passport > div, .decision-line { grid-template-columns: 86px 1fr; }
  .detail-section { grid-template-columns: 1fr; gap: 17px; padding: 27px 0; }
  .data-list { grid-template-columns: 1fr; }
  .data-row, .data-row:nth-child(-n+2) { border-top: 1px solid var(--line); padding-top: 10px; }
  .evidence-item { grid-template-columns: 1fr; gap: 5px; }
  .level { justify-self: start; }
  .source-list a { grid-template-columns: 86px 1fr 18px; }
  .supplier-row { align-items: flex-start; flex-direction: column; }
  .about-page { padding-top: 52px; }
  .about-grid section { grid-template-columns: 1fr; gap: 8px; }
  .footer-inner { min-height: 84px; align-items: flex-start; justify-content: center; flex-direction: column; gap: 5px; }
}


/* v0.7 editorial responsive */
@media (max-width: 1180px) {
  .home-top { grid-template-columns: minmax(0, 1fr) 276px; gap: 16px; }
  .home-top::after { right: 292px; }
  }
@media (max-width: 900px) {
  .home-top { grid-template-columns: 1fr; padding-top: 54px; }
  .home-top::after { display: none; }
  .home-search-block { padding-right: 0; }
  .index-rail { display: none; }
  }
@media (max-width: 640px) {
  .quick-use { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-large input { height: 68px; font-size: 19px; }
  .section-meta { display: none; }
}

@media print {
  .header, .footer, .card-actions, .text-action, .media-role, .reference-note { display: none !important; }
  body { background: #fff; }
  .main { max-width: none; padding: 0; }
  .material-grid { grid-template-columns: repeat(3, 1fr); }
}


/* v0.9 — retro-balanced palette + quieter editorial rail */
:root {
  --bg: #f1ead8;
  --surface: #f7f0df;
  --surface-strong: #fffaf0;
  --ink: #171815;
  --muted: #696b62;
  --faint: #989589;
  --line: #d8d0bc;
  --line-dark: #bbb39f;
  --signal: #d9ff45;
  --signal-soft: #efffc0;
  --accent: #3154cc;
  --accent-dark: #203c9b;
  --accent-soft: #dce3ff;
  --rail-bg: #d9e0fb;
  --rail-ink: #1f377f;
}

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(rgba(26,27,22,.055) .45px, transparent .55px),
    linear-gradient(90deg, rgba(49,84,204,.025), transparent 20%, transparent 80%, rgba(217,255,69,.035));
}
.header { background: rgba(241,234,216,.90); }
.search input::placeholder { color: #9a9688; }
.quick-use button:hover { background: var(--signal); color: var(--ink); }
.quick-use button:hover::after { color: var(--accent-dark); }
.brief-wrap { border-top-color: var(--signal); background: rgba(255,250,240,.42); }
.brief-bottom button { background: var(--accent); color: #fff; }

.index-rail {
  background: var(--rail-bg);
  color: var(--rail-ink);
  border: 1px solid rgba(49,84,204,.32);
}
.index-rail::before {
  opacity: .34;
  background-image:
    linear-gradient(to right, rgba(32,60,155,.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(32,60,155,.09) 1px, transparent 1px);
}
.index-rail::after {
  right: -34px; top: 118px; width: 108px; height: 108px;
  border: 11px solid var(--signal); opacity: .92;
}
.rail-heading { color: rgba(31,55,127,.68); }
.rail-live { color: var(--rail-ink); }
.rail-live i { background: var(--signal); box-shadow: 0 0 0 1px rgba(31,55,127,.18); }
.rail-count b { color: var(--accent-dark); }
.rail-count span { color: var(--rail-ink); }
.rail-rule span { background: rgba(31,55,127,.38); }
.rail-rule b { color: var(--rail-ink); }
.rail-stats { border-top-color: rgba(31,55,127,.30); }
.rail-stats div { border-bottom-color: rgba(31,55,127,.20); }
.rail-stats dt { color: rgba(31,55,127,.62); }
.rail-stats dd { color: var(--rail-ink); }
.rail-subhead { color: rgba(31,55,127,.58); }
.rail-origins { border-top-color: rgba(31,55,127,.20); }
.rail-origins span { border-bottom-color: rgba(31,55,127,.16); color: rgba(31,55,127,.90); }
.rail-origins span b { color: var(--accent-dark); }
.rail-mark span { background: var(--signal); color: var(--ink); }
.rail-mark b { color: rgba(31,55,127,.78); }

.home-materials::before { background: var(--signal); }
.editorial-head { min-height: 82px; }
.editorial-head > div { display: block; }
.section-title-stack { display: grid !important; gap: 7px; }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent-dark); font: 650 7px/1 Inter,sans-serif; letter-spacing: .105em;
}
.section-label::before { content: ""; width: 32px; height: 1px; background: var(--accent); }
.section-title-line { display: flex; align-items: center; gap: 12px; }
.section-title-line h1 { font-size: 13px; }
.section-no { display: none; }
.section-meta { border-left-color: var(--line-dark); }

/* All archive cards use one consistent editorial grid size. */
.home-grid .card { grid-column: auto !important; }
.home-grid .card-media { aspect-ratio: 1 / .82 !important; }
.home-grid .card:nth-child(4n+2) .material-index { background: rgba(220,227,255,.92); color: var(--accent-dark); }
.media-role { background: var(--signal); }
.feedstock-line span { background: var(--signal); }
.filter > button.active { background: var(--signal); border-color: #afc72f; }
.filter-option.selected .check { background: var(--signal); border-color: #a5bf28; }
.reference-note { border-color: #c9d66c; background: rgba(217,255,69,.13); }
.explore-toolbar { background: rgba(241,234,216,.95); }

@media (max-width: 1100px) {
  .index-rail { border-left: 0; border-top: 1px solid rgba(49,84,204,.32); }
}

/* v1.0 — bright modern archive palette + standardized swatch cards */
:root {
  --bg: #f5f6f3;
  --surface: #fafbf8;
  --surface-strong: #ffffff;
  --ink: #17191a;
  --muted: #676c69;
  --faint: #9a9f9b;
  --line: #d9ddda;
  --line-dark: #bfc5c1;
  --signal: #d8ff3f;
  --signal-soft: #efffba;
  --accent: #334fc2;
  --accent-dark: #253b96;
  --accent-soft: #e8ebf7;
  --rail-bg: #edf0f6;
  --rail-ink: #293b83;
}

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(rgba(23,25,26,.034) .42px, transparent .52px),
    linear-gradient(90deg, rgba(51,79,194,.015), transparent 26%, transparent 74%, rgba(216,255,63,.018));
  color: var(--ink);
}
.header { background: rgba(245,246,243,.92); }
.search input::placeholder { color: #9ba09d; }
.search-large input { background: rgba(255,255,255,.18); }
.brief-wrap { background: rgba(255,255,255,.36); }
.brief-panel textarea { background: #fff; }
.brief-bottom button { background: var(--signal); color: var(--ink); border: 1px solid #b8d923; }
.brief-bottom button:hover { background: #cdf627; }

.index-rail {
  background: var(--rail-bg);
  color: var(--rail-ink);
  border-color: rgba(51,79,194,.20);
}
.index-rail::before {
  opacity: .22;
  background-image:
    linear-gradient(to right, rgba(37,59,150,.10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(37,59,150,.07) 1px, transparent 1px);
}
.index-rail::after { border-color: var(--signal); opacity: .78; }
.rail-heading { color: rgba(41,59,131,.68); }
.rail-live { color: var(--rail-ink); }
.rail-count b { color: var(--accent-dark); }
.rail-count span, .rail-rule b, .rail-stats dd { color: var(--rail-ink); }
.rail-rule span { background: rgba(41,59,131,.30); }
.rail-stats { border-top-color: rgba(41,59,131,.23); }
.rail-stats div { border-bottom-color: rgba(41,59,131,.15); }
.rail-stats dt, .rail-subhead { color: rgba(41,59,131,.60); }
.rail-origins { border-top-color: rgba(41,59,131,.16); }
.rail-origins span { border-bottom-color: rgba(41,59,131,.13); color: rgba(41,59,131,.88); }
.rail-origins span b { color: var(--accent); }
.rail-mark b { color: rgba(41,59,131,.72); }

.explore-toolbar { background: rgba(245,246,243,.96); }
.filter-menu { background: rgba(255,255,255,.99); }
.filter-option:hover { background: #f1f3ef; }

/* Standardized archive cards: swatch window + fixed information stack. */
.material-grid {
  align-items: stretch;
  gap: 16px 14px;
}
.home-grid { gap: 16px 14px; }
.card {
  min-width: 0;
  height: 100%;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.card:hover {
  border-color: #b9bfbb;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(22,26,23,.045);
}
.card > a {
  height: 100%;
  padding: 10px;
  display: grid;
  grid-template-rows: auto 1fr;
}
.card-media {
  aspect-ratio: 1.36 / 1;
  overflow: hidden;
  background: #ecefeb;
}
.card-media::after { box-shadow: inset 0 0 0 1px rgba(22,24,25,.065); }
.material-image, .material-fallback { object-fit: cover; }
.material-index {
  left: 7px; top: 7px;
  min-width: 24px;
  padding: 4px 5px;
  background: rgba(255,255,255,.88);
  color: var(--ink);
  border: 1px solid rgba(23,25,26,.10);
  backdrop-filter: blur(8px);
}
.home-grid .card:nth-child(4n+2) .material-index { background: rgba(255,255,255,.88); color: var(--ink); }
.media-role { top: 7px; right: 7px; padding: 4px 5px; }
.card-actions { right: 7px; bottom: 7px; }
.icon-btn { background: rgba(255,255,255,.90); }

.card-content {
  min-height: 134px;
  padding: 11px 2px 1px;
  display: flex;
  flex-direction: column;
}
.card-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--accent-dark);
  font: 600 7.5px/1.25 Inter, "Pretendard Variable", sans-serif;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.card-kicker span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.card-kicker span:first-child { max-width: 64%; }
.card-kicker span:last-child { max-width: 34%; color: var(--faint); text-align: right; }
.card-name { margin-top: 9px; }
.card-name h3 {
  min-height: 2.7em;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font: 570 11.5px/1.35 Inter, "Pretendard Variable", sans-serif;
  letter-spacing: -.015em;
}
.card-description {
  min-height: 2.9em;
  margin: 5px 0 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.45;
}
.card-meta {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #eceeeb;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 8px;
  color: #858b87;
  font: 470 7.8px/1.25 Inter, "Pretendard Variable", sans-serif;
}
.card-meta span:first-child {
  color: var(--ink);
  font-weight: 540;
}
.card-meta span:last-child {
  max-width: 58%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: right;
}
.feedstock-line { display: none; }
.card-body { padding: 0; }
.card-name .ko-name { display: none; }

@media (max-width: 700px) {
  .card > a { padding: 8px; }
  .card-content { min-height: 126px; padding-top: 9px; }
  .card-description { font-size: 9px; }
}

/* =========================================================
   v1.1 — Approved mockup / White Archive + Acid Marker
   Structural rules only: no decorative paper grain/halftone.
   ========================================================= */
:root {
  --bg: #F6F6F2;
  --surface: #FFFFFF;
  --surface-strong: #FFFFFF;
  --ink: #151615;
  --muted: #6A6D68;
  --faint: #92958F;
  --line: #DADCD7;
  --line-dark: #BFC2BC;
  --signal: #E1FF22;
  --signal-soft: #F1FF9A;
  --accent: #3E4B84;
  --accent-dark: #303A68;
  --accent-soft: #ECEEF5;
  --positive: #4F6254;
  --radius: 0px;
  --shadow: none;
}

body {
  background: var(--bg);
  background-image: none;
  color: var(--ink);
}

.header {
  border-bottom: 1px solid var(--line-dark);
  background: rgba(246, 246, 242, .96);
  backdrop-filter: blur(14px);
}
.header-inner { height: 64px; padding: 0 38px; }
.brand { gap: 12px; color: var(--ink); font-size: 12px; letter-spacing: .055em; }
.brand .brand-mark {
  width: 21px; height: 21px; border: 1px solid var(--ink); border-radius: 50%;
  background: transparent; color: var(--ink); font-size: 13px;
}
.nav { gap: 34px; }
.nav a { color: var(--ink); font-size: 10px; font-weight: 560; text-transform: uppercase; letter-spacing: .025em; }
.nav a.active::after { height: 5px; margin-top: 8px; background: var(--signal); }
.nav a span { color: var(--accent); }

.main {
  max-width: var(--page);
  padding: 0 38px 96px;
  border-left: 1px solid rgba(191,194,188,.55);
  border-right: 1px solid rgba(191,194,188,.55);
}

/* Home layout */
.home-top {
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 0;
  min-height: 610px;
  padding: 0;
  align-items: stretch;
  border-bottom: 1px solid var(--line-dark);
}
.home-top::after { display: none; }
.home-search-block {
  padding: 72px 50px 56px 18px;
  border-right: 1px solid var(--line-dark);
}
.home-kicker {
  height: auto;
  margin: 0 0 17px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
}
.home-kicker::before, .home-kicker i { display: none; }
.home-title {
  margin: 0;
  font: 650 clamp(34px, 3.4vw, 54px)/.96 "Pretendard Variable", Pretendard, sans-serif;
  letter-spacing: -.055em;
}
.home-deck {
  margin: 14px 0 24px;
  color: #343633;
  font-size: 12px;
  line-height: 1.6;
}
.search-large { position: relative; }
.search-large input {
  height: 102px;
  padding: 20px 70px 20px 20px;
  border: 1px solid var(--line-dark);
  background: rgba(255,255,255,.72);
  color: var(--ink);
  font-size: 13px;
  font-weight: 450;
  letter-spacing: -.018em;
}
.search-large input::placeholder { color: #9A9D97; }
.search-large::after { display: none; }
.search-large .search-icon { display: none; }
.search-arrow {
  position: absolute;
  right: 19px;
  top: 13px;
  color: var(--signal);
  font: 350 34px/1 Arial, sans-serif;
}
.home-search-example {
  min-height: 25px;
  margin-top: -29px;
  padding: 0 14px 0 20px;
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  color: var(--faint);
  font-size: 8px;
}
.home-search-example b { font-weight: 450; }
.quick-head {
  margin-top: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.quick-head strong { font-size: 10px; font-weight: 650; }
.quick-head a {
  color: var(--accent);
  font: 650 9px/1 Inter, sans-serif;
  letter-spacing: .015em;
}
.quick-head a span { margin-left: 7px; font-size: 15px; font-weight: 350; vertical-align: -1px; }
.quick-use {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
  border: 0;
}
.quick-use button {
  min-height: 64px;
  padding: 12px 13px;
  border: 1px solid var(--line-dark);
  background: rgba(255,255,255,.42);
  display: grid;
  align-content: center;
  gap: 5px;
  color: var(--ink);
}
.quick-use button::after { display: none; }
.quick-use button b { font: 650 10px/1.1 Inter, sans-serif; }
.quick-use button span { color: var(--muted); font-size: 9px; }
.quick-use button:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.quick-use button:hover span { color: var(--accent-dark); }

/* Right archive column */
.home-side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,.16);
}
.index-rail {
  min-height: 0;
  padding: 29px 26px 25px;
  background: transparent;
  color: var(--ink);
  border-bottom: 1px solid var(--line-dark);
  overflow: visible;
}
.index-rail::before, .index-rail::after { display: none; }
.rail-heading {
  min-height: 24px;
  gap: 11px;
  color: var(--accent);
  font-size: 8px;
  letter-spacing: .035em;
}
.rail-heading > span { white-space: nowrap; font-weight: 700; }
.rail-heading > i { flex: 1; height: 1px; background: var(--line-dark); }
.rail-heading > b { color: var(--ink); font-size: 16px; font-weight: 350; }
.rail-overview {
  margin-top: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.rail-overview h2 { margin: 0; font: 650 20px/1 Inter, sans-serif; letter-spacing: -.035em; }
.rail-live { display: inline-flex; align-items: center; gap: 6px; color: #7A8100; font-size: 8px; font-weight: 650; }
.rail-live i { width: 7px; height: 7px; background: var(--signal); }
.rail-date { margin-top: 13px; padding-bottom: 15px; border-bottom: 1px dotted var(--line-dark); color: var(--muted); font-size: 7px; text-align: right; }
.rail-bigstats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 0;
  border-bottom: 1px dotted var(--line-dark);
}
.rail-bigstats > div { padding: 20px 0 17px; }
.rail-bigstats > div + div { padding-left: 24px; border-left: 1px dotted var(--line-dark); }
.rail-bigstats b { display: block; color: var(--ink); font: 540 38px/.9 Inter, sans-serif; letter-spacing: -.075em; }
.rail-bigstats span { display: block; margin-top: 8px; font: 650 8px/1 Inter, sans-serif; letter-spacing: .02em; }
.rail-subhead { margin-top: 22px; color: var(--accent); font-size: 8px; font-weight: 700; letter-spacing: .02em; }
.rail-categories { margin-top: 10px; display: grid; gap: 0; }
.rail-categories span {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
}
.rail-categories b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 620 8px/1 Inter, sans-serif; }
.rail-categories em { color: var(--ink); font: 650 8px/1 Inter, sans-serif; font-style: normal; }

/* Project brief lives in the sidebar and is open by default */
.home-side .brief-wrap {
  margin: 0;
  padding: 0 26px 22px;
  border: 0;
  border-bottom: 1px solid var(--line-dark);
  background: transparent;
}
.home-side .brief-trigger {
  min-height: 58px;
  border: 0;
  background: transparent;
  font-size: 8px;
  letter-spacing: .03em;
}
.home-side .brief-trigger::after {
  content: "";
  height: 1px;
  flex: 1;
  margin: 0 10px 0 14px;
  background: var(--signal);
}
.home-side .brief-trigger span::after { content: none; }
.home-side .brief-trigger i { width: auto; height: auto; background: transparent; font-size: 14px; }
.home-side .brief-panel { padding: 0; }
.home-side .brief-panel > p { margin: -3px 0 12px; color: var(--ink); font-size: 8px; line-height: 1.55; }
.home-side .brief-panel textarea {
  min-height: 108px;
  padding: 14px;
  resize: none;
  border: 1px solid var(--line-dark);
  background: rgba(255,255,255,.7);
  font-size: 9px;
  line-height: 1.65;
}
.brief-count { margin: -23px 10px 0 0; position: relative; z-index: 2; text-align: right; color: var(--faint); font-size: 7px; pointer-events: none; }
.brief-submit {
  width: 100%;
  min-height: 39px;
  margin-top: 15px;
  padding: 0 13px;
  border: 1px solid #BDD400;
  background: var(--signal);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 9px;
  font-weight: 700;
}
.brief-submit span { margin-left: auto; font-size: 15px; font-weight: 400; }
.brief-submit:hover { filter: brightness(.97); }
.archive-note { padding: 22px 26px 25px; }
.archive-note b { color: var(--accent); font: 700 8px/1 Inter, sans-serif; }
.archive-note p { margin: 9px 0 12px; max-width: 245px; color: #343633; font-size: 9px; line-height: 1.55; }
.archive-note a { color: var(--accent); font-size: 8px; font-weight: 650; }
.archive-note a span { margin-left: 8px; }

/* Materials section */
.home-materials {
  border-top: 0;
  padding: 0 18px 0;
}
.home-materials::before { display: none; }
.editorial-head { min-height: 80px; }
.section-title-stack { display: block !important; }
.section-title-line { display: flex; align-items: baseline; gap: 12px; }
.section-index { color: var(--accent); font: 700 10px/1 Inter, sans-serif; }
.simple-head h1 { font: 700 13px/1 Inter, sans-serif; letter-spacing: -.01em; }
.section-meta {
  padding: 0;
  margin: 0 0 0 4px;
  border: 0;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: .015em;
}
.simple-head > a { color: var(--accent); border-bottom: 0; font-size: 9px; font-weight: 650; }
.simple-head > a:hover { color: var(--accent-dark); border-color: transparent; }

.material-grid, .home-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px 13px;
}
.card {
  min-width: 0;
  border: 1px solid var(--line-dark);
  background: var(--surface);
  transition: border-color .16s ease, transform .16s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-1px); }
.card > a { height: 100%; display: flex; flex-direction: column; }
.card-media {
  margin: 9px 9px 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #EBECE8;
}
.card-media::after { box-shadow: inset 0 0 0 1px rgba(21,22,21,.055); }
.material-image, .material-fallback { object-fit: cover; }
.material-index {
  left: 0; top: 0;
  min-width: 30px;
  padding: 7px 7px 6px;
  background: rgba(255,255,255,.94) !important;
  color: var(--accent) !important;
  backdrop-filter: none;
  font-size: 8px;
  font-weight: 750;
}
.media-role { top: 7px; right: 7px; background: var(--signal); color: var(--ink); }
.card-actions { right: 6px; bottom: 6px; }
.icon-btn { width: 25px; height: 25px; border-radius: 0; background: rgba(255,255,255,.94); }
.icon-btn.active { background: var(--accent); border-color: var(--accent); }
.card-content {
  position: relative;
  min-height: 154px;
  padding: 10px 31px 11px 10px;
  display: flex;
  flex-direction: column;
}
.card-title-block h3 { margin: 0; font-size: 10px; line-height: 1.35; font-weight: 700; letter-spacing: -.018em; }
.card-title-block span { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; line-height: 1.25; }
.card-description {
  margin: 9px 0 10px;
  color: #3F423D;
  font-size: 8.5px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  margin-top: auto;
  padding-right: 2px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 4px;
}
.card-meta span {
  max-width: 100%;
  padding: 4px 5px 3px;
  background: #F0F1ED;
  color: #4E514C;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 620 6.5px/1 Inter, sans-serif;
  text-transform: uppercase;
}
.card-meta span:last-child { background: #F3F5D4; color: #596100; }
.card-link-mark { position: absolute; right: 10px; bottom: 11px; color: var(--signal); font: 350 22px/1 Arial, sans-serif; }
.more-materials {
  width: max-content;
  margin: 25px auto 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 650;
}
.more-materials span { font-size: 15px; }

/* Explore/detail inherit the same neutral system */
.page-title-row h1 { color: var(--ink); }
.explore-toolbar { background: rgba(246,246,242,.96); }
.search input, .filter-menu { background: var(--surface); }
.filter > button.active, .btn.active { background: var(--signal); color: var(--ink); border-color: #BDD400; }
.filter-option.selected .check { background: var(--signal); border-color: #AFC300; }
.passport::before { background: var(--signal); }
.reference-note { background: #F5F8CF; border-color: #D5E279; }

.footer { background: var(--bg); }
.footer-inner { border-color: var(--line-dark); }

@media (max-width: 1180px) {
  .home-top { grid-template-columns: minmax(0, 1fr) 320px; }
  .home-search-block { padding-right: 32px; }
  .quick-use { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .material-grid, .home-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  .header-inner, .main { padding-left: 22px; padding-right: 22px; }
  .main { border-left: 0; border-right: 0; }
  .home-top { grid-template-columns: 1fr; }
  .home-search-block { padding: 54px 0 42px; border-right: 0; }
  .home-side { border-top: 1px solid var(--line-dark); }
  .index-rail { padding-left: 0; padding-right: 0; }
  .home-side .brief-wrap, .archive-note { padding-left: 0; padding-right: 0; }
  .home-materials { padding-left: 0; padding-right: 0; }
  .material-grid, .home-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .header-inner { height: 58px; }
  .brand span { font-size: 10px; }
  .nav { gap: 14px; }
  .nav a { font-size: 8px; }
  .home-title { font-size: 36px; }
  .search-large input { height: 92px; }
  .quick-use { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editorial-head { min-height: 70px; }
  .section-title-line { gap: 8px; flex-wrap: wrap; }
  .material-grid, .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 9px; }
  .card-media { margin: 7px 7px 0; }
  .card-content { min-height: 142px; padding-left: 8px; padding-bottom: 9px; }
}

/* =========================================================
   v1.5 — viewport midpoint material scroll cue
   One canonical cue rule; no legacy overrides.
   ========================================================= */
.material-scroll-cue {
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font: 700 8px/1 Inter, Arial, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
}

@media (min-width: 921px) {
  .home-search-block {
    min-height: calc(100svh - 64px);
    padding-bottom: 64px;
  }

  .material-scroll-cue {
    position: absolute;
    z-index: 4;
    left: 50%;
    top: 78%; /* fallback until JS measures the actual midpoint */
    bottom: auto;
    width: 172px;
    margin: 0;
    padding: 0;
    transform: translate(-50%, -50%);
    display: grid;
    justify-items: center;
    gap: 10px;
  }

  .material-scroll-cue span {
    display: block;
    white-space: nowrap;
  }

  .material-scroll-cue::before {
    content: "";
    display: block;
    width: 1px;
    height: 38px;
    background: linear-gradient(to bottom, var(--accent) 0 62%, var(--signal) 62% 100%);
  }

  .material-scroll-cue i {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--accent);
    background: var(--signal);
    color: var(--accent-dark);
    font: 700 19px/1 Inter, Arial, sans-serif;
    font-style: normal;
    box-shadow: 3px 3px 0 rgba(62,75,132,.11);
    transition: transform .18s ease, box-shadow .18s ease;
  }

  .material-scroll-cue:hover i {
    transform: translateY(3px);
    box-shadow: 1px 1px 0 rgba(62,75,132,.11);
  }

  .material-scroll-cue:focus-visible {
    outline: 1px solid var(--accent);
    outline-offset: 8px;
  }
}

@media (max-width: 920px) {
  .material-scroll-cue {
    position: static;
    width: 160px;
    margin: 56px auto 4px;
    padding: 0;
    display: grid;
    justify-items: center;
    gap: 9px;
  }

  .material-scroll-cue::before {
    content: "";
    width: 1px;
    height: 30px;
    background: linear-gradient(to bottom, var(--accent) 0 62%, var(--signal) 62% 100%);
  }

  .material-scroll-cue i {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid var(--accent);
    background: var(--signal);
    color: var(--accent-dark);
    font: 700 18px/1 Inter, Arial, sans-serif;
    font-style: normal;
  }
}

/* v1.6 — inline material expansion */
button.more-materials {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
button.more-materials:hover,
button.more-materials:focus-visible {
  color: var(--ink);
}
button.more-materials:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 6px;
}


/* SEARCH_COLOR_V1: Look & Feel > Color + zero-result recovery */
.filter-section-label {
  padding: 10px 11px 7px;
  border-top: 1px solid var(--line, #deded8);
  color: var(--faint, #797b76);
  font: 650 7px/1 Inter, sans-serif;
  letter-spacing: .09em;
}
.filter-section-label:first-child { border-top: 0; padding-top: 7px; }
.filter-section-label.color-label { margin-top: 4px; }
.filter-empty-note { padding: 8px 11px 11px; color: var(--faint, #797b76); font-size: 8px; }
.color-option { grid-template-columns: 14px 1fr; }
.color-swatch {
  width: 11px;
  height: 11px;
  border: 1px solid rgba(25,25,25,.22);
  border-radius: 50%;
  background: var(--swatch);
  box-sizing: border-box;
}
.color-swatch.custom { background: transparent; border-style: dashed; }
.color-option.selected .color-swatch { outline: 2px solid var(--signal); outline-offset: 1px; }
.search-empty p { max-width: 420px; margin: 8px auto 14px; color: var(--muted, #676a65); font-size: 9px; line-height: 1.5; }
.empty-suggestions { width: min(440px, 100%); margin: 0 auto 14px; display: grid; gap: 6px; }
.relax-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 10px;
  border: 1px solid var(--line-dark, #c9cac4);
  background: var(--surface, #fff);
  text-align: left;
}
.relax-option b { font-size: 8px; font-weight: 650; }
.relax-option span { color: var(--muted, #676a65); font-size: 8px; }
.relax-option:hover { border-color: var(--ink, #161714); }


/* MEDIA_GALLERY_V1 */
.media-gallery,
.media-gallery-viewport,
.media-gallery-track,
.media-gallery-slide { width: 100%; height: 100%; }
.media-gallery { position: relative; }
.media-gallery-viewport { position: relative; overflow: hidden; background: #EBECE8; }
.media-gallery-track {
  display: flex;
  height: 100%;
  will-change: transform;
  transition: transform .26s cubic-bezier(.2,.65,.3,1);
}
.media-gallery-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 100%;
  height: 100%;
  overflow: hidden;
}
.media-gallery-slide .material-image,
.media-gallery-slide .material-fallback { width: 100%; height: 100%; object-fit: cover; }
.gallery-role { z-index: 4; left: auto; right: 7px; }
.media-nav {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(21,22,21,.20);
  background: rgba(255,255,255,.92);
  color: var(--ink);
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  font: 550 12px/1 Inter, sans-serif;
  opacity: 0;
  transition: opacity .15s ease, background .15s ease;
}
.media-prev { left: 6px; }
.media-next { right: 6px; }
.media-gallery:hover .media-nav, .media-nav:focus-visible { opacity: 1; }
.media-nav:hover { background: var(--signal); }
.media-count {
  position: absolute;
  z-index: 5;
  left: 7px;
  bottom: 7px;
  padding: 4px 6px;
  border: 1px solid rgba(21,22,21,.12);
  background: rgba(255,255,255,.90);
  color: var(--ink);
  font: 650 7px/1 Inter, sans-serif;
  letter-spacing: .025em;
}
.card-gallery { height: 100%; }
.card-gallery .media-next { right: 38px; }
.card-gallery .gallery-role { top: 7px; right: 7px; }

.detail-media {
  aspect-ratio: auto;
  overflow: visible;
  background: transparent;
}
.detail-gallery .media-gallery-viewport {
  aspect-ratio: 1.12 / .88;
  height: auto;
  overflow: hidden;
}
.detail-gallery .media-nav { width: 34px; height: 34px; }
.detail-gallery .media-prev { left: 10px; }
.detail-gallery .media-next { right: 10px; }
.detail-gallery .media-count { left: 10px; bottom: 10px; }
.detail-gallery .gallery-role { top: 10px; right: 10px; }

.media-gallery-meta {
  width: 100%;
  min-height: 38px;
  border-bottom: 1px solid var(--line);
}
.media-meta-item { padding: 9px 0 8px; }
.media-meta-item[hidden] { display: none; }
.media-meta-top {
  min-height: 18px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  color: var(--faint);
  font: 450 8px/1.35 Inter, sans-serif;
}
.media-meta-top > span:first-child {
  flex: 0 0 auto;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: .055em;
}
.media-meta-top a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.media-meta-top a:hover { color: var(--ink); }
.media-meta-item p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.45;
}
.card-actions { z-index: 7; }

@media (hover: none), (max-width: 700px) {
  .media-nav { opacity: 1; width: 25px; height: 25px; }
  .card-gallery .media-prev { left: 5px; }
  .card-gallery .media-next { right: 34px; }
}

@media print {
  .media-nav, .media-count { display: none !important; }
  .media-gallery-track { transform: none !important; }
  .media-gallery-slide:not(:first-child) { display: none !important; }
}
