#public-home { display: contents; }
#home-session-status { display: none; }
[data-home-session] #public-home :is(.dict-skip, .home-content, .home-footer) { display: none; }
[data-home-session] #home-session-status { display: block; color: var(--ink-muted); }
#app[data-home-app][hidden] { display: none; }
#app[data-home-app] .top-tag { display: none; }
.home-skip { z-index: 204; }

main:has(> .signed-in-home) {
  width: 100%;
  max-width: 1280px;
  box-sizing: border-box;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 52px) clamp(20px, 4vw, 52px) 36px;
}

.signed-in-home {
  --home-journey-bg: #f3f4eb;
  --home-journey-line: #d9ddcb;
  display: grid;
  gap: clamp(22px, 3vw, 38px);
}

html[data-theme="dark"] .signed-in-home {
  --home-journey-bg: #242c26;
  --home-journey-line: #414b42;
}

.home-greeting {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
  align-items: center;
  gap: 18px clamp(24px, 4vw, 52px);
}

.home-greeting h1 {
  margin: 0;
  font-size: clamp(36px, 5.1vw, 72px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
}

.home-learning-journey {
  padding: 20px 22px 16px;
  background: var(--home-journey-bg);
  border: 1px solid var(--home-journey-line);
  border-radius: 16px;
}

.home-journey-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 3px 12px;
  margin-bottom: 14px;
}

.home-journey-heading h2,
.home-learning-grid h2:is(#home-tools-title, #home-practice-title) {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.02em;
}

.home-journey-heading > span {
  color: var(--ink-muted);
  font-size: 13px;
}

.home-journey-heading strong {
  margin-inline-start: 3px;
  color: var(--ink);
  font-size: 16px;
}

.home-learning-journey .learning-meter { margin-inline: 3px; }

.home-learning-grid {
  display: grid;
  grid-template-columns: minmax(220px, .55fr) minmax(0, 1.45fr);
  gap: clamp(20px, 3.5vw, 44px);
}

.home-learning-grid > section { min-width: 0; }

.home-learning-grid h2:is(#home-tools-title, #home-practice-title) {
  margin-bottom: 12px;
  font-size: 22px;
}

.home-tool-list { border-block: 1px solid var(--line); }
.home-tool-list > .home-tool-link { border-bottom: 1px solid var(--line); }

.home-tool-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 10px 4px;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.3;
}

.home-tool-link:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.home-tool-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.home-tool-link > svg { color: var(--ink-muted); }
.home-tool-link strong { display: block; font-size: 15px; }
.home-tool-detail { display: block; margin-top: 3px; color: var(--ink-muted); font-size: 13px; }

.home-tool-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: var(--der-ink);
  background: var(--der-soft);
}

.home-tool-link--articles .home-tool-icon { color: var(--die-ink); background: var(--die-soft); }
.home-tool-link--work .home-tool-icon { color: var(--das-ink); background: var(--das-soft); }

.home-work-progress, .home-work-status {
  margin: 0 4px 12px 54px;
  color: var(--ink-muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.home-work-progress progress {
  display: block;
  width: 100%;
  height: 7px;
  margin-bottom: 5px;
  border: 0;
  border-radius: 999px;
  appearance: none;
  overflow: hidden;
  background: var(--das-soft);
  color: var(--das-ink);
}

.home-work-progress progress::-webkit-progress-bar { background: var(--das-soft); border-radius: inherit; }
.home-work-progress progress::-webkit-progress-value { background: var(--das-ink); border-radius: inherit; }
.home-work-progress progress::-moz-progress-bar { background: var(--das-ink); border-radius: inherit; }

.home-practice .feed-column { width: 100%; max-width: none; }

@media (max-width: 720px) {
  main:has(> .signed-in-home) { padding: 24px 16px 24px; }
  .home-greeting, .home-learning-grid { grid-template-columns: minmax(0, 1fr); }
  .home-learning-journey { padding: 14px 16px 12px; }
  .home-tool-link { min-height: 56px; padding-block: 7px; }
  .home-tool-icon { width: 34px; height: 34px; }
  .home-work-progress, .home-work-status { margin-inline-start: 50px; }
}
