/* Home only: shared colours and typefaces come from nankai.css. */
#view-dashboard .home-landing {
  display: block;
  min-height: 0;
  max-width: 1160px;
  margin: 0 auto;
  padding: 26px 0 0;
}
.home-opening {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(42px, 7vw, 100px);
  align-items: center;
  padding: 4px 0 42px;
}
.home-heading h1 {
  font-family: var(--heading-font);
  font-size: clamp(35px, 4.1vw, 56px);
  font-weight: 600;
  letter-spacing: .07em;
  line-height: 1.38;
  margin: 0;
  color: var(--text);
}
.home-heading h1 > span { display: block; }
.home-heading h1 > span:first-child { color: var(--accent); }
.home-heading h1 small {
  display: block;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: .3em;
  margin-top: 15px;
}
.home-heading time {
  display: block;
  font-size: 11px;
  color: var(--secondary);
  line-height: 1.8;
  margin-top: 25px;
}
.home-collections { border-top: 1px solid var(--border-strong); }
.home-collection {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 26px;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 23px 2px;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.home-collection-name {
  font: 500 25px/1.5 var(--heading-font);
  letter-spacing: .09em;
}
.home-collection-count { display: flex; align-items: baseline; gap: 10px; }
.home-collection-count strong { font-size: 21px; font-weight: 400; font-variant-numeric: tabular-nums; }
.home-collection-count small { font-size: 11px; color: var(--secondary); }
.home-entry-arrow { color: var(--muted); font-size: 20px; justify-self: end; }
.home-collection:hover .home-collection-name,
.home-collection:hover .home-entry-arrow { color: var(--accent); }
.home-collection:hover { border-bottom-color: var(--border-strong); }
.home-section-heading { display: flex; align-items: center; gap: 22px; margin-bottom: 19px; }
.home-section-heading h2 { font: 500 17px/1.6 var(--heading-font); letter-spacing: .13em; margin: 0; }
.home-section-heading > span { height: 1px; background: var(--border); flex: 1; }
.home-tools { display: grid; grid-template-columns: 1.05fr 1fr 1fr; gap: 18px; }
.home-tool {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  min-height: 170px;
  padding: 25px 26px 21px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.home-tool-primary { background: var(--accent-soft); border-color: var(--border-strong); }
.home-tool-name { font: 550 25px/1.5 var(--heading-font); letter-spacing: .07em; }
.home-tool-primary .home-tool-name { color: var(--accent); }
.home-tool-description { font-size: 12px; color: var(--secondary); line-height: 1.9; margin: 8px 0 17px; }
.home-tool-action { margin-top: auto; font-size: 12px; color: var(--link); display: flex; justify-content: space-between; align-items: center; width: 100%; }
.home-tool-action > span { font-size: 17px; }
.home-tool:hover { border-color: var(--accent); }
.home-collection:focus-visible, .home-tool:focus-visible, .home-external a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.home-external { display: flex; align-items: center; gap: 32px; margin-top: 29px; padding: 20px 0 0; border-top: 1px solid var(--border); flex-wrap: wrap; }
.home-external-label { font-size: 11px; color: var(--secondary); margin-right: auto; }
.home-external a { font-size: 12px; color: var(--secondary); text-decoration: none; line-height: 1.8; }
.home-external a span { color: var(--muted); margin-left: 7px; }
.home-external a:hover { color: var(--accent); }
@media (max-width: 950px) {
  .home-opening { gap: 36px; }
  .home-collection { gap: 15px; }
  .home-collection-name { font-size: 23px; }
  .home-collection-count { gap: 6px; }
  .home-collection-count strong { font-size: 18px; }
  .home-tool { padding: 22px 20px 19px; }
  .home-tool-name { font-size: 23px; }
}
@media (max-width: 680px) {
  #view-dashboard .home-landing { padding-top: 8px; }
  .home-opening { grid-template-columns: 1fr; gap: 25px; padding-bottom: 29px; }
  .home-heading h1 { font-size: clamp(28px, 6.8vw, 42px); letter-spacing: .04em; }
  .home-heading h1 > span { display: inline; }
  .home-heading h1 small { font-size: 17px; margin-top: 10px; }
  .home-heading time { margin-top: 14px; font-size: 10px; }
  .home-collection { padding: 17px 2px; }
  .home-collection-name { font-size: 22px; }
  .home-collection-count strong { font-size: 20px; }
  .home-tools { grid-template-columns: 1fr; gap: 12px; }
  .home-tool { min-height: 126px; padding: 20px 22px 17px; }
  .home-tool-description { margin: 4px 0 12px; }
  .home-section-heading { margin-bottom: 14px; }
  .home-external { gap: 17px 24px; margin-top: 23px; padding-top: 18px; }
  .home-external-label { flex-basis: 100%; }
}
