/* Snappy-inspired blog shell — calm column layout (dark tokens from theme) */

html.layout-blog {
  --blog-left-w: 14rem;
  --blog-article-max: 46rem;
  --blog-page-max: 76rem;
}

html.layout-blog .sidebar--right,
html.layout-blog .app-sidebar-right.sidebar {
  display: none !important;
}

html.layout-blog .main-subnav {
  display: none !important;
}

html.layout-blog .list-rail {
  display: none !important;
}

html.layout-blog .list-with-rail {
  display: block;
}

html.layout-blog .list-body {
  display: block;
}

/* ——— Top bar ——— */

html.layout-blog .app-topbar-inner {
  min-height: 3.75rem;
  padding: 0.55rem 1rem;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
}

html.layout-blog .app-brand .brand-logo {
  height: 2.75rem;
}

html.layout-blog .app-topbar-context {
  display: none;
}

html.layout-blog .app-topbar-primary-nav {
  flex: 1;
  min-width: 0;
  display: none;
}

@media (min-width: 880px) {
  html.layout-blog .app-topbar-primary-nav {
    display: block;
  }
}

html.layout-blog .app-topbar-primary-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

html.layout-blog .app-topbar-primary-link {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

html.layout-blog .app-topbar-primary-link:hover {
  color: var(--text);
  background: var(--panel-hover);
}

html.layout-blog .app-topbar-primary-link.is-on {
  color: var(--text);
  background: var(--panel-hover);
  border-color: var(--line-soft);
}

html.layout-blog .app-topbar-search .search-input {
  width: 9rem;
}

/* ——— Page grid: left nav + article ——— */

html.layout-blog .portal-frame.app-frame {
  max-width: var(--blog-page-max);
  margin: 0 auto;
}

html.layout-blog .app-layout.layout {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 960px) {
  html.layout-blog .app-layout.layout {
    grid-template-columns: var(--blog-left-w) minmax(0, 1fr);
    align-items: start;
  }

  html.layout-blog .sidebar--left,
  html.layout-blog .app-sidebar-left.sidebar {
    display: block !important;
  }
}

html.layout-blog .app-sidebar-left.sidebar {
  border-right: 1px solid var(--line-soft);
  border-bottom: none;
  padding: 1rem 0.65rem 1.5rem;
}

html.layout-blog .app-sidebar-heading {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

html.layout-blog .app-nav-link,
html.layout-blog .app-list-nav-link {
  font-size: 13px;
}

html.layout-blog .blog-toc-link {
  display: block;
  padding: 0.28rem 0;
  font-size: 12px;
  color: var(--soft);
  text-decoration: none;
  line-height: 1.35;
}

html.layout-blog .blog-toc-link:hover {
  color: var(--text);
}

html.layout-blog .main-col {
  min-width: 0;
}

html.layout-blog .main-col main {
  max-width: var(--blog-article-max);
  margin: 0;
  padding: 0 1.25rem 2.5rem 0.85rem;
}

@media (min-width: 960px) {
  html.layout-blog .main-col main {
    padding-left: 1rem;
    padding-right: 1.5rem;
  }
}

/* ——— Article hero ——— */

html.layout-blog .blog-back-link {
  margin: 0 0 0.85rem;
  font-size: 13px;
}

html.layout-blog .blog-back-link a {
  color: var(--soft);
  text-decoration: none;
  font-weight: 500;
}

html.layout-blog .blog-back-link a:hover {
  color: var(--text);
}

html.layout-blog .hero {
  display: flex;
  flex-direction: column;
  margin-top: 0.75rem;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

html.layout-blog .hero .blog-back-link {
  order: -3;
}

html.layout-blog .blog-hero-media {
  margin: 0 0 1.25rem;
  order: -2;
  max-width: min(18rem, 100%);
}

html.layout-blog .hero .blog-hero-media .clip,
html.layout-blog .hero .blog-hero-media .clip--portrait {
  max-width: 100%;
  margin: 0;
}

html.layout-blog .hero .blog-hero-media video {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(18rem, 42vh);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 12px;
  border: none;
  background: var(--video-bg, #0f0f0f);
}

html.layout-blog .clip video {
  border: none;
  outline: none;
}

/* Unwrapped hero clip (fallback if JS has not run) */
html.layout-blog .hero > .clip--portrait {
  max-width: min(18rem, 100%);
}

html.layout-blog .hero > .clip--portrait video {
  max-height: min(18rem, 42vh);
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

html.layout-blog .hero .blog-hero-media .clip--vertical,
html.layout-blog .hero > .clip--vertical {
  max-width: min(14rem, 100%);
}

html.layout-blog .hero .blog-hero-media .clip--vertical video,
html.layout-blog .hero > .clip--vertical video {
  aspect-ratio: 9 / 16;
  max-height: min(32rem, 72vh);
  object-fit: contain;
}

html.layout-blog .block-list .clip--vertical {
  max-width: min(14rem, 100%);
}

html.layout-blog .block-list .clip--vertical video {
  aspect-ratio: 9 / 16;
  max-height: min(28rem, 65vh);
  object-fit: contain;
}

html.layout-blog.home-cards-experiment .home-intro__clip.clip--vertical {
  max-width: min(10.5rem, 38vw);
}

html.layout-blog.home-cards-experiment .home-intro__clip.clip--vertical video {
  aspect-ratio: 9 / 16;
  width: 100%;
  max-height: min(18.5rem, 42vh);
  object-fit: contain;
}

html.layout-blog .hero .blog-hero-media .clip figcaption {
  margin-top: 0.45rem;
  font-size: 11px;
  color: var(--muted);
}

html.layout-blog .intro-vocab-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin: 0.5rem 0 0;
  max-width: 36rem;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.vocab-stats-pulse {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: rgb(74 222 128);
  box-shadow: 0 0 0 0 rgb(74 222 128 / 0.55);
  vertical-align: middle;
  animation: vocab-stats-pulse 2.2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes vocab-stats-pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgb(74 222 128 / 0.5);
  }

  50% {
    opacity: 0.88;
    box-shadow: 0 0 0 5px rgb(74 222 128 / 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .vocab-stats-pulse {
    animation: none;
    box-shadow: 0 0 6px rgb(74 222 128 / 0.45);
  }
}

html.layout-blog .intro-vocab-stats__unique,
html.layout-blog .intro-vocab-stats__repeated {
  color: rgb(134 239 172 / 0.52);
}

html.layout-blog .intro-vocab-stats__num {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

html.layout-blog .intro-vocab-stats__sep {
  color: var(--muted);
  opacity: 0.55;
}

html.layout-blog .home-intro__stats {
  margin-top: 0.65rem;
}

html.layout-blog .hero-vocab-stats {
  margin-top: 0.55rem;
}

html.layout-blog .hero > .kicker {
  display: inline-block;
  margin: 0 0 0.65rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--soft);
  background: var(--page-bg);
  border: 1px solid var(--line-soft);
}

html.layout-blog .hero > .kicker a {
  color: inherit;
  text-decoration: none;
}

html.layout-blog .hero h1 {
  font-size: clamp(1.45rem, 4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

html.layout-blog .hero .posted {
  margin: 0 0 1rem;
  font-size: 13px;
  color: var(--muted);
}

html.layout-blog .hero .lead {
  margin: 0 0 1.15rem;
  font-size: 15px;
  line-height: 1.55;
  color: var(--soft);
  max-width: 38em;
}

html.layout-blog .hero .list-fun-fact {
  margin: 0 0 1.15rem;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 38em;
}

html.layout-blog .block-list .list-fun-fact {
  margin: 0 0 1rem;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 38em;
}

html.layout-blog .hero .player {
  margin-bottom: 1rem;
}

html.layout-blog .hero .print-link {
  margin: 0.75rem 0 0;
}

/* Home intro stack */

html.layout-blog.home-cards-experiment .home-intro {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

html.layout-blog.home-cards-experiment .home-intro__sample {
  border: none;
  border-radius: 0;
  padding-left: 0;
  padding-right: 0;
}

html.layout-blog.home-cards-experiment .home-intro__clip video {
  border: none;
}

html.layout-blog.home-cards-experiment .home-intro__photo.place img {
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  max-height: 22rem;
}

html.layout-blog.home-cards-experiment .home-spotlight {
  margin: 0.5rem 0 0;
}

html.layout-blog.home-cards-experiment .home-cards-section,
html.layout-blog.home-cards-experiment #about.block-doc {
  margin-left: 0;
  margin-right: 0;
  border-radius: 12px;
}

html.layout-blog .sentence-group-player {
  margin: 1rem 1.5rem 0;
  max-width: var(--blog-page-max, 42rem);
}

html.layout-blog ol.sentence-list,
html.layout-blog ul.sentence-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
}

@media (min-width: 640px) {
  html.layout-blog .main-col main > ol.grid.sentence-list,
  html.layout-blog .main-col main > ul.grid.sentence-list,
  html.layout-blog ol.sentence-list,
  html.layout-blog ul.sentence-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

html.layout-blog .sentence-card {
  position: relative;
  padding-top: 0.35rem;
  width: 100%;
  max-width: 100%;
  grid-column: 1 / -1;
}

html.layout-blog .sentence-card__num {
  margin: 0 0 0.5rem;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

html.layout-blog ol.sentence-list .card .el {
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  line-height: 1.4;
}

/* Sentence groups — difficulty */
html.layout-blog .sentence-difficulty {
  margin: 0.45rem 0 0;
}

html.layout-blog .hero > .sentence-difficulty {
  margin-top: 0.55rem;
}

html.layout-blog .sentence-difficulty__pill {
  display: inline-block;
  padding: 0.22rem 0.55rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.2;
  color: #9bc4a8;
  background: rgb(155 196 168 / 0.1);
  border: 1px solid rgb(155 196 168 / 0.38);
  border-radius: 4px;
}

html.theme-cursor-dark .sentence-difficulty__pill {
  color: #b8dcc4;
  background: rgb(184 220 196 / 0.08);
  border-color: rgb(184 220 196 / 0.35);
}

html.layout-blog .archive-row-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
}

html.layout-blog .archive-row-title-row .archive-row-title {
  margin: 0;
}

/* Sentence archive hub */
html.layout-blog body[data-page="sentences"] .sentence-archive-hint {
  margin: 0;
  padding: 0.65rem 1rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--link-blue-soft);
  border-top: 1px solid var(--line);
}

html.layout-blog body[data-page="sentences"] .archive-row-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  margin-top: 0.35rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--link-blue-soft);
}

html.layout-blog body[data-page="sentences"] .archive-row-cta::before {
  content: "→";
  font-size: 0.92em;
  line-height: 1;
  opacity: 0.85;
}

html.layout-blog body[data-page="sentences"] .archive-row--sentence-group:hover .archive-row-cta {
  color: var(--link-blue);
}

html.layout-blog body[data-page="sentences"] .archive-row--sentence-group {
  grid-template-columns: 5.5rem minmax(0, 1fr) auto;
  align-items: start;
}

html.layout-blog body[data-page="sentences"] .archive-row-main--stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

html.layout-blog body[data-page="sentences"] .archive-row-preview {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  font-size: 0.78rem;
  font-weight: 450;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

html.layout-blog body[data-page="sentences"] .archive-row-preview__line {
  display: block;
}

html.layout-blog body[data-page="sentences"] .archive-row-preview__el {
  font-weight: 500;
  color: #b8a66a;
}

html.layout-blog body[data-page="sentences"] .archive-row-preview__en {
  font-weight: 450;
  color: var(--link-blue-soft);
}

html.layout-blog body[data-page="sentences"] .archive-row-preview__en::before {
  content: " · ";
  color: var(--muted);
  opacity: 0.45;
  font-weight: 400;
}

html.theme-cursor-dark body[data-page="sentences"] .archive-row-preview__el {
  color: #e0d4a8;
}

html.theme-cursor-dark body[data-page="sentences"] .archive-row-preview__en {
  color: #8ec5e0;
}

html.layout-blog body[data-page="sentences"] .archive-row--sentence-group:hover .archive-row-preview__el {
  color: #cdbf86;
}

html.theme-cursor-dark body[data-page="sentences"] .archive-row--sentence-group:hover .archive-row-preview__el {
  color: #ebe2c4;
}

html.layout-blog body[data-page="sentences"] .archive-row--sentence-group:hover .archive-row-preview__en {
  color: var(--link-blue);
}

html.theme-cursor-dark body[data-page="sentences"] .archive-row--sentence-group:hover .archive-row-preview__en {
  color: var(--link-blue-bright);
}

/* Sentences page only: pronunciation line under Greek */
html.layout-blog body[data-page^="sentences-group"] .sentence-card > .latin {
  color: #c4b07a;
  font-weight: 500;
}

html.theme-cursor-dark body[data-page^="sentences-group"] .sentence-card > .latin {
  color: #d9cc9a;
}

html.layout-blog .sentence-breakdown {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
}

html.layout-blog .sentence-breakdown__toggle {
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--soft);
  user-select: none;
}

html.layout-blog .sentence-breakdown__toggle::-webkit-details-marker {
  display: none;
}

html.layout-blog .sentence-breakdown__toggle:hover {
  color: var(--text);
}

html.layout-blog .sentence-breakdown__label--open {
  display: none;
}

html.layout-blog .sentence-breakdown[open] .sentence-breakdown__label--closed {
  display: none;
}

html.layout-blog .sentence-breakdown[open] .sentence-breakdown__label--open {
  display: inline;
}

html.layout-blog .sentence-breakdown__panel {
  margin-top: 0.85rem;
}

html.layout-blog .sentence-pos-legend {
  margin: 0.65rem 0 0;
  max-width: 42em;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

html.layout-blog .sentence-pos-legend strong {
  color: var(--soft);
  font-weight: 600;
}

html.layout-blog .sentence-breakdown__table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -0.15rem;
  padding: 0 0.15rem 0.1rem;
}

html.layout-blog .sentence-breakdown__table {
  width: 100%;
  min-width: 22.5rem;
  border-collapse: collapse;
  font-size: 14px;
}

html.layout-blog .sentence-breakdown__table th,
html.layout-blog .sentence-breakdown__table td {
  padding: 0.45rem 0.55rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

html.layout-blog .sentence-breakdown__table th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

html.layout-blog .sentence-breakdown__table td:first-child {
  font-weight: 500;
}

html.layout-blog .sentence-breakdown__table th:last-child,
html.layout-blog .sentence-breakdown__table td.sentence-breakdown__pos {
  min-width: 9.5rem;
}

html.layout-blog .sentence-breakdown__pos {
  font-size: 13px;
  line-height: 1.45;
  color: var(--soft);
}

html.layout-blog .sentence-pos-hint {
  display: block;
  margin-top: 0.2rem;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
  font-weight: 400;
}

html.layout-blog .sentence-breakdown__table tbody tr:last-child td {
  border-bottom: none;
}

@media (max-width: 540px) {
  html.layout-blog .sentence-breakdown__table-wrap {
    overflow-x: visible;
    margin: 0;
    padding: 0;
  }

  html.layout-blog .sentence-breakdown__table {
    min-width: 0;
  }

  html.layout-blog .sentence-breakdown__table thead {
    display: none;
  }

  html.layout-blog .sentence-breakdown__table tbody tr {
    display: block;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
  }

  html.layout-blog .sentence-breakdown__table tbody tr:last-child {
    border-bottom: none;
  }

  html.layout-blog .sentence-breakdown__table td {
    display: block;
    border-bottom: none;
    padding: 0.15rem 0;
  }

  html.layout-blog .sentence-breakdown__table td:nth-child(1)::before {
    content: "Greek: ";
  }

  html.layout-blog .sentence-breakdown__table td:nth-child(2)::before {
    content: "Pronunciation: ";
  }

  html.layout-blog .sentence-breakdown__table td:nth-child(3)::before {
    content: "Meaning: ";
  }

  html.layout-blog .sentence-breakdown__table td:nth-child(4)::before {
    content: "Part of speech: ";
  }

  html.layout-blog .sentence-breakdown__table td::before {
    font-size: 10px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
  }

  html.layout-blog .sentence-breakdown__table td:first-child {
    padding-top: 0;
  }

  html.layout-blog .sentence-pos-hint {
    display: inline;
    margin-left: 0.25rem;
  }
}

html.layout-blog .sentence-breakdown__note {
  margin: 0.85rem 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

html.layout-blog .sentence-breakdown__note strong {
  color: var(--soft);
  font-weight: 600;
}

html.layout-blog.home-cards-experiment .home-cards-grid,
html.layout-blog .home-cards-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
}

/* Vocab preview / word blocks: one card per row */

html.layout-blog .main-col main > ul.grid,
html.layout-blog .main-col main > ol.grid,
html.layout-blog .list-body > ul.grid,
html.layout-blog .list-body > ol.grid,
html.layout-blog .feed-stack .grid {
  grid-template-columns: minmax(0, 1fr);
  margin-top: 1.25rem;
}

@media (min-width: 640px) {
  html.layout-blog .main-col main > ul.grid,
  html.layout-blog .main-col main > ol.grid,
  html.layout-blog .list-body > ul.grid,
  html.layout-blog .list-body > ol.grid,
  html.layout-blog .feed-stack .grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

html.layout-blog .shell .foot {
  max-width: var(--blog-page-max);
  margin: 0 auto;
}
