/* Hallmark · macrostructure: Workbench · tone: quiet / precise · anchor hue: warm earth */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R5 V4 */

body[data-page="home"] .home-editorial,
body[data-page="home"] .home-collaboration {
  position: relative;
  overflow: clip;
  color: var(--color-ink);
  font-family: var(--font-body);
}

body[data-page="home"] .home-editorial { padding-block: clamp(88px, 8vw, 132px); }
body[data-page="home"] .home-news,
body[data-page="home"] .home-tools { background: var(--color-paper); }
body[data-page="home"] .home-resources,
body[data-page="home"] .home-collaboration { background: var(--color-stage); }
html[data-theme] body[data-page="home"] :is(.home-news, .home-tools) { color: var(--color-ink); background: var(--color-paper); }
html[data-theme] body[data-page="home"] :is(.home-resources, .home-collaboration) { color: var(--color-ink); background: var(--color-stage); }
html body[data-page="home"] .site-header.site-header.site-header .header-contact {
  color: #fff !important;
  background: linear-gradient(110deg,#3d63b4,#7562bd) !important;
  border-color: #5f68b7 !important;
}
html body[data-page="home"] .site-header.site-header.site-header .header-contact:hover {
  background: linear-gradient(110deg,#30539d,#6451ad) !important;
}
html body[data-page="home"] .site-header.site-header.site-header .site-scroll-progress i,
html body[data-page="home"] .site-header.site-header.site-header .nav-primary::after {
  background: linear-gradient(90deg,#4b67b4,#8872c9) !important;
}
body[data-page="home"] .home-editorial > .container,
body[data-page="home"] .home-collaboration > .container {
  width: min(calc(100% - 64px), 1160px);
  max-width: none;
  margin-inline: auto;
}
body[data-page="home"] :is(.home-watermark, .home-resources-bg, .home-collaboration-media) { display: none; }

body[data-page="home"] .home-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--space-md);
  margin: 0 0 var(--space-xl);
}
body[data-page="home"] .home-section-kicker {
  margin: 0 0 var(--space-xs);
  color: var(--color-accent);
  font-size: var(--text-small);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: none;
}
body[data-page="home"] :is(.home-section-head h2, .home-collaboration h2) {
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 3.5vw, 3.25rem);
  font-style: normal;
  font-weight: 720;
  letter-spacing: -0.04em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
body[data-page="home"] .home-section-head > p {
  max-width: 30em;
  margin: 0;
  color: var(--color-ink-soft);
  font-size: var(--text-body);
  line-height: 1.8;
}
body[data-page="home"] .home-more-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  min-height: 44px;
  padding: 0;
  border: 0;
  color: var(--color-accent);
  font-size: var(--text-small);
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
}
body[data-page="home"] .home-more-link .ui-icon { width: 16px; height: 16px; }

body[data-page="home"] .home-news-status {
  margin: -18px 0 var(--space-lg);
  color: var(--color-ink-soft);
  font-size: var(--text-small);
  line-height: 1.7;
}
body[data-page="home"] .home-news-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(28px, 4vw, 64px);
}
body[data-page="home"] .home-news-feature { min-width: 0; }
body[data-page="home"] .home-news-feature-media {
  display: block;
  height: clamp(270px, 28vw, 360px);
  margin: 0 0 var(--space-md);
  overflow: clip;
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-card);
  background: var(--color-paper-soft);
}
body[data-page="home"] .home-media-frame { display: block; width: 100%; height: 100%; overflow: clip; }
body[data-page="home"] .home-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
body[data-page="home"] .home-news-feature-media img { object-position: center; }
body[data-page="home"] .home-news-image-note {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 4px 9px;
  border-radius: 6px;
  color: var(--color-card);
  background: var(--color-ink);
  font-size: 0.75rem;
}
body[data-page="home"] .home-news-meta {
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
  margin: 0 0 var(--space-xs);
  color: var(--color-ink-soft);
  font-size: var(--text-small);
  line-height: 1.5;
}
body[data-page="home"] .home-news-meta span { color: var(--color-accent); font-weight: 650; }
body[data-page="home"] .home-news-feature h3 {
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.25vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.45;
}
body[data-page="home"] .home-news-feature h3 a,
body[data-page="home"] .home-news-row { color: inherit; text-decoration: none; }
body[data-page="home"] .home-news-feature > p {
  margin: var(--space-xs) 0 0;
  color: var(--color-ink-soft);
  font-size: var(--text-small);
  line-height: 1.75;
}
body[data-page="home"] .home-news-list { border-top: 1px solid var(--color-rule); }
body[data-page="home"] .home-news-row {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  gap: var(--space-sm);
  min-height: 104px;
  padding-block: var(--space-sm);
  border-bottom: 1px solid var(--color-rule);
}
body[data-page="home"] .home-news-row::after { display: none; }
body[data-page="home"] .home-news-row time {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  border: 0;
  color: var(--color-ink-soft);
  font-size: 0.75rem;
}
body[data-page="home"] .home-news-row time strong { color: var(--color-accent); font-size: 1.5rem; line-height: 1; }
body[data-page="home"] .home-news-row time span { font-size: 0.72rem; }
body[data-page="home"] .home-news-channel-label { color: var(--color-ink-soft); font-size: 0.8rem; }
body[data-page="home"] .home-news-row small,
body[data-page="home"] .home-news-row b { display: block; }
body[data-page="home"] .home-news-row small { margin-bottom: 5px; color: var(--color-ink-soft); font-size: 0.77rem; }
body[data-page="home"] .home-news-row b {
  color: var(--color-ink);
  font-size: 0.97rem;
  font-weight: 650;
  line-height: 1.55;
  text-wrap: pretty;
}
body[data-page="home"] .home-source-column {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}
body[data-page="home"] .home-source-title {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  min-height: 0;
  margin-bottom: var(--space-xs);
  border: 0;
}
body[data-page="home"] .home-source-title span { color: var(--color-ink); font-size: var(--text-body); font-weight: 700; }
body[data-page="home"] .home-source-title small { display: none; }
body[data-page="home"] .home-source-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xs);
  min-height: 80px;
  padding: var(--space-sm);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-control);
  color: var(--color-ink);
  background: var(--color-card);
  text-decoration: none;
}
body[data-page="home"] .home-source-mark { display: none; }
body[data-page="home"] .home-source-item b { display: block; margin: 0 0 3px; color: var(--color-ink); font-size: var(--text-small); }
body[data-page="home"] .home-source-item small { display: block; color: var(--color-ink-soft); font-size: 0.75rem; }
body[data-page="home"] .home-source-item .ui-icon { width: 15px; height: 15px; color: var(--color-accent); }

body[data-page="home"] .home-resource-layout,
body[data-page="home"] .home-tools-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: stretch;
  gap: clamp(32px, 5vw, 72px);
}
body[data-page="home"] .home-resource-visual,
body[data-page="home"] .home-tools-visual {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 450px;
  overflow: clip;
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-card);
  background: var(--color-card);
  box-shadow: 0 18px 45px var(--color-shadow);
}
body[data-page="home"] .home-resource-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
body[data-page="home"] .home-image-caption {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: grid;
  gap: 4px;
  min-height: 0;
  padding: var(--space-sm);
  border: 0;
  border-radius: var(--radius-control);
  color: var(--color-ink);
  background: var(--color-card);
  box-shadow: 0 8px 24px var(--color-shadow-strong);
}
body[data-page="home"] .home-image-caption small { color: var(--color-accent); font-size: 0.75rem; font-weight: 650; }
body[data-page="home"] .home-image-caption b { color: var(--color-ink); font-size: var(--text-small); line-height: 1.5; }
body[data-page="home"] .home-resource-index,
body[data-page="home"] .home-tool-list { border-top: 1px solid var(--color-rule); }
body[data-page="home"] .home-index-row,
body[data-page="home"] .home-tool-row {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  align-items: center;
  gap: var(--space-sm);
  min-height: 150px;
  padding-block: var(--space-sm);
  border-bottom: 1px solid var(--color-rule);
  color: var(--color-ink);
  text-decoration: none;
}
body[data-page="home"] :is(.home-index-row, .home-tool-row)::after { display: none; }
body[data-page="home"] .home-index-row > span,
body[data-page="home"] .home-tool-number { color: var(--color-accent); font-family: var(--font-body); font-size: var(--text-small); font-weight: 700; }
body[data-page="home"] :is(.home-index-row, .home-tool-row) small { display: block; margin-bottom: 5px; color: var(--color-ink-soft); font-size: 0.75rem; }
body[data-page="home"] :is(.home-index-row, .home-tool-row) h3 {
  margin: 0 0 5px;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.35;
}
body[data-page="home"] :is(.home-index-row, .home-tool-row) p { margin: 0; color: var(--color-ink-soft); font-size: var(--text-small); line-height: 1.6; }
body[data-page="home"] :is(.home-index-row, .home-tool-row) > .ui-icon { width: 17px; height: 17px; color: var(--color-accent); }
body[data-page="home"] .home-tool-image {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity var(--dur-panel) var(--ease-out), transform var(--dur-panel) var(--ease-out);
}
body[data-page="home"] .home-tool-image.is-active { z-index: 2; opacity: 1; visibility: visible; transform: none; }
body[data-page="home"] .home-tool-image.is-exiting { z-index: 1; visibility: visible; }
body[data-page="home"] .home-tool-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
body[data-page="home"] .home-tool-image figcaption {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-height: 0;
  padding: var(--space-sm);
  border: 0;
  border-radius: var(--radius-control);
  color: var(--color-ink);
  background: var(--color-card);
  box-shadow: 0 8px 24px var(--color-shadow-strong);
}
body[data-page="home"] .home-tool-image figcaption span { color: var(--color-accent); font-size: var(--text-small); font-weight: 700; }
body[data-page="home"] .home-tool-image figcaption b { color: var(--color-ink); font-size: var(--text-small); font-weight: 650; line-height: 1.5; }
body[data-page="home"] .home-tool-row.is-active h3 { color: var(--color-accent); }

body[data-page="home"] .home-collaboration { min-height: 0; padding-block: clamp(80px, 9vw, 144px); }
body[data-page="home"] .home-collaboration::after { display: none; }
body[data-page="home"] .home-collaboration-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  min-height: 0;
  padding: clamp(32px, 5vw, 64px) 0;
  border-top: 1px solid var(--color-rule);
  border-bottom: 1px solid var(--color-rule);
}
body[data-page="home"] .home-collaboration-inner > div:first-child,
body[data-page="home"] .home-collaboration-inner > div:last-child { grid-area: auto; }
body[data-page="home"] .home-collaboration-inner > div:last-child > p {
  max-width: 32em;
  margin: 0 0 var(--space-lg);
  color: var(--color-ink-soft);
  font-size: var(--text-body);
  line-height: 1.8;
}
body[data-page="home"] .home-collaboration-actions { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-md); }
body[data-page="home"] .home-collaboration .button-lime {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 var(--space-md);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-control);
  color: var(--color-accent-ink);
  background: var(--color-accent);
  font-size: var(--text-small);
  font-weight: 700;
  text-decoration: none;
}
body[data-page="home"] .home-more-link-light { color: var(--color-accent); }

@media (hover: hover) and (pointer: fine) {
  body[data-page="home"] :is(.home-news-feature h3 a, .home-news-row, .home-source-item, .home-index-row, .home-tool-row, .home-more-link):hover { color: var(--color-accent); }
  body[data-page="home"] .home-source-item:hover { transform: translateY(-3px); }
  body[data-page="home"] .home-resource-visual:hover img { transform: scale(1.025); }
}
body[data-page="home"] .home-editorial :is(a, button):focus-visible,
body[data-page="home"] .home-collaboration a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }

@media (max-width: 900px) {
  body[data-page="home"] .home-news-grid,
  body[data-page="home"] .home-resource-layout,
  body[data-page="home"] .home-tools-layout,
  body[data-page="home"] .home-collaboration-inner { grid-template-columns: minmax(0, 1fr); }
  body[data-page="home"] .home-resource-visual,
  body[data-page="home"] .home-tools-visual { min-height: 420px; }
  body[data-page="home"] .home-source-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  body[data-page="home"] .home-editorial > .container,
  body[data-page="home"] .home-collaboration > .container { width: min(calc(100% - 36px), 1160px); }
  body[data-page="home"] .home-editorial { padding-block: 72px; }
  body[data-page="home"] .home-section-head { grid-template-columns: minmax(0, 1fr); align-items: start; gap: var(--space-xs); margin-bottom: var(--space-lg); }
  body[data-page="home"] .home-section-head h2 { font-size: 2.1rem; }
  body[data-page="home"] .home-news-status { margin: 0 0 var(--space-md); }
  body[data-page="home"] .home-news-feature-media { height: 230px; }
  body[data-page="home"] .home-news-row { grid-template-columns: 52px minmax(0, 1fr); min-height: 94px; gap: var(--space-xs); }
  body[data-page="home"] .home-source-column { gap: var(--space-2xs); }
  body[data-page="home"] .home-source-item { min-height: 78px; padding: var(--space-xs); }
  body[data-page="home"] .home-source-item small { display: none; }
  body[data-page="home"] .home-resource-visual,
  body[data-page="home"] .home-tools-visual { min-height: 300px; }
  body[data-page="home"] .home-index-row,
  body[data-page="home"] .home-tool-row { min-height: 130px; grid-template-columns: 28px minmax(0, 1fr) 16px; gap: var(--space-xs); }
  body[data-page="home"] .home-collaboration { padding-block: 72px; }
  body[data-page="home"] .home-collaboration h2 { font-size: 2.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] :is(.home-tool-image, .home-source-item, .home-resource-visual img) { transition-duration: 0.01ms; }
}
