/* Ten layouts. Each kit changes structure, not only color. */

html[data-kit="history_review"] .hero { min-height: 520px; }
html[data-kit="history_review"] .hero h1 { font-style: italic; max-width: 14ch; }
html[data-kit="history_review"] .post-grid { grid-template-columns: 1.4fr 1fr 1fr; }
html[data-kit="history_review"] .post-grid .card:first-child { grid-row: span 2; }
html[data-kit="history_review"] .post-grid .card:first-child h3 { font-size: 1.8rem; }

html[data-kit="professional_brief"] .site-header { background: #f7f4ee; color: #1c2430; border-bottom: 3px solid #14213d; }
html[data-kit="professional_brief"] .site-header a { color: #1c2430; }
html[data-kit="professional_brief"] .brand-name { letter-spacing: 0.14em; text-transform: uppercase; font-family: var(--sans); font-size: 0.95rem; }
html[data-kit="professional_brief"] .hero { min-height: 68vh; background-size: cover !important; color: #fff; }
html[data-kit="professional_brief"] .hero-card { background: linear-gradient(90deg, rgba(12,18,32,.82), rgba(12,18,32,.28)); padding: 64px 0; }
html[data-kit="professional_brief"] .hero-inner { display: block; }
html[data-kit="professional_brief"] .hero-photo { display: none; }
html[data-kit="professional_brief"] .hero h1 { color: #fff; max-width: 16ch; font-size: clamp(2.4rem, 5vw, 4rem); }
html[data-kit="professional_brief"] .post-grid { grid-template-columns: 1fr; }
html[data-kit="professional_brief"] .post-grid .card { display: grid; grid-template-columns: 220px 1fr; grid-template-rows: auto 1fr; align-items: start; border-radius: 0; }
html[data-kit="professional_brief"] .post-grid .card > a { grid-column: 1; grid-row: 1 / span 2; }
html[data-kit="professional_brief"] .post-grid .card h3,
html[data-kit="professional_brief"] .post-grid .card p { grid-column: 2; margin-right: 16px; }
html[data-kit="professional_brief"] .post-grid .card p { margin-top: 0; }
html[data-kit="professional_brief"] .menu-toggle,
html[data-kit="professional_brief"] .lang-switch summary { color: #14213d; border-color: #14213d; }

html[data-kit="education_magazine"] .site-header .bar { flex-wrap: nowrap; justify-content: space-between; align-items: center; text-align: left; }
html[data-kit="education_magazine"] .nav { width: auto; justify-content: center; border-top: 0; padding: 0; gap: 18px; }
html[data-kit="education_magazine"] .lang-switch { margin-left: 12px; }
html[data-kit="education_magazine"] .hero { min-height: 460px; }
html[data-kit="education_magazine"] .post-grid { grid-template-columns: 1fr 1fr; }
html[data-kit="education_magazine"] .gallery-grid { grid-template-columns: repeat(3, 1fr); }

html[data-kit="technology_journal"] { --radius: 0px; --serif: var(--sans); }
html[data-kit="technology_journal"] .site-header { background: #0e1116; }
html[data-kit="technology_journal"] .card { border-radius: 0; border-left: 4px solid var(--accent-2); background: #fff; }
html[data-kit="technology_journal"] .hero { min-height: 360px; }
html[data-kit="technology_journal"] .post-grid { grid-template-columns: repeat(3, 1fr); gap: 0; }
html[data-kit="technology_journal"] .post-grid .card { border-right: 1px solid var(--line); }

html[data-kit="modern_blog"] .hero { min-height: 62vh; }
html[data-kit="modern_blog"] .hero-card { background: linear-gradient(180deg, transparent, rgba(10,14,22,.75)); }
html[data-kit="modern_blog"] .hero-inner { display: block; max-width: 760px; }
html[data-kit="modern_blog"] .hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); max-width: 16ch; color: #fff; }
html[data-kit="modern_blog"] .hero-photo { display: none; }
html[data-kit="modern_blog"] .post-grid { grid-template-columns: 1fr; max-width: 720px; }
html[data-kit="modern_blog"] .post-grid .card img { aspect-ratio: 16/8; }

html[data-kit="news_portal"] .site-header { min-height: 0; }
html[data-kit="news_portal"] .brand-name { font-family: var(--sans); font-size: 1.1rem; text-transform: uppercase; }
html[data-kit="news_portal"] .hero { min-height: 62vh; }
html[data-kit="news_portal"] .hero h1 { font-size: 2rem; font-family: var(--sans); }
html[data-kit="news_portal"] .home-split { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; }
html[data-kit="news_portal"] .post-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
html[data-kit="news_portal"] .card h3 { font-family: var(--sans); font-size: 1rem; }
html[data-kit="news_portal"] .card p { display: none; }

html[data-kit="academy"] .site-header .bar { flex-direction: column; padding: 18px 0; }
html[data-kit="academy"] .nav a { border-radius: 999px; padding: 4px 10px; }
html[data-kit="academy"] .hero { min-height: 64vh; }
html[data-kit="academy"] .hero-card { background: linear-gradient(180deg, transparent, rgba(10,14,22,.72)); }
html[data-kit="academy"] .hero-inner { display: block; }
html[data-kit="academy"] .hero h1 { color: #fff; }
html[data-kit="academy"] .hero-photo { display: none; }
html[data-kit="academy"] .post-grid { grid-template-columns: 1fr; }
html[data-kit="academy"] .post-grid .card { display: grid; grid-template-columns: 160px 1fr; grid-template-rows: auto 1fr; align-items: start; }
html[data-kit="academy"] .post-grid .card > a { grid-column: 1; grid-row: 1 / span 2; }
html[data-kit="academy"] .post-grid .card h3,
html[data-kit="academy"] .post-grid .card p { grid-column: 2; }

html[data-kit="knowledge_hub"] .home-split { display: grid; grid-template-columns: 1.6fr 0.8fr; gap: 22px; }
html[data-kit="knowledge_hub"] .entry,
html[data-kit="knowledge_hub"] .card { border-top: 6px solid var(--accent); border-radius: 0; }
html[data-kit="knowledge_hub"] .hero { min-height: 300px; }
html[data-kit="knowledge_hub"] .home-side .card { margin-bottom: 12px; }

html[data-kit="community_forum"] .hero { min-height: 380px; }
html[data-kit="community_forum"] .forum-cta { display: inline-block; background: var(--accent-2); color: #1c2430; text-decoration: none; padding: 10px 16px; border-radius: 999px; font-weight: 600; }
html[data-kit="community_forum"] .home-split { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 20px; }
html[data-kit="community_forum"] .card { box-shadow: 0 10px 24px rgba(0,0,0,.08); }

html[data-kit="wellness_studio"] { --radius: 28px; }
html[data-kit="wellness_studio"] .hero { min-height: 480px; }
html[data-kit="wellness_studio"] .hero-card { background: linear-gradient(180deg, rgba(255,255,255,.15), rgba(20,30,28,.55)); }
html[data-kit="wellness_studio"] .hero-copy { text-align: center; margin: 0 auto; }
html[data-kit="wellness_studio"] .hero h1 { margin-left: auto; margin-right: auto; }
html[data-kit="wellness_studio"] .post-grid { grid-template-columns: repeat(2, 1fr); }
html[data-kit="wellness_studio"] .card { border: none; }
html[data-kit="wellness_studio"] .card img { border-radius: 28px 28px 0 0; }

.home-professional_brief .sheet-top { background: #f4efe4; color: #14213d; border-bottom: 8px solid #14213d; padding: 48px 0 32px; }
.home-professional_brief .sheet-top h1 { font-family: var(--sans); letter-spacing: -0.03em; max-width: 18ch; }
.home-professional_brief .rows .card { display: grid; grid-template-columns: 180px 1fr; gap: 16px; align-items: center; margin-bottom: 14px; border-radius: 0; }
.home-professional_brief .rows .card p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.home-wellness_studio .center-copy, .home-education_magazine .center-copy { text-align: center; margin: 0 auto; max-width: 18em; }
.home-wellness_studio .stack { max-width: 640px; margin: 0 auto; }
.home-wellness_studio .card { border: none; background: transparent; text-align: center; }
.home-wellness_studio .card img { border-radius: 28px; }

.home-technology_journal .split-hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 70vh; background: #0e1116; color: #fff; }
.home-technology_journal .split-copy { padding: 64px 40px; display: flex; flex-direction: column; justify-content: flex-end; }
.home-technology_journal .split-photo { background: #222 center/cover no-repeat; min-height: 320px; }
.home-technology_journal .tech-grid .card { border-radius: 0; border-left: 4px solid var(--accent-2); }
.home-technology_journal .tech-grid .card p { display: none; }

.home-news_portal .hero-short { min-height: 38vh; }
.home-news_portal .news-layout { display: grid; grid-template-columns: 3fr 1fr; gap: 16px; }
.home-news_portal .news-grid { grid-template-columns: 1fr 1fr; }
.home-news_portal .card p { display: none; }

.home-community_forum .forum-first { background: var(--accent); color: #fff; padding: 72px 0; }
.home-community_forum .forum-cta { display: inline-block; background: #fff; color: var(--accent); padding: 12px 18px; border-radius: 999px; text-decoration: none; font-weight: 700; }

.home-modern_blog .type-hero { padding: 72px 0 10px; }
.home-modern_blog .type-hero h1 { font-size: clamp(3rem, 7vw, 5.5rem); line-height: 0.95; max-width: 12ch; }
.home-modern_blog .narrow { max-width: 680px; }

.home-academy .timeline .card { border: none; border-left: 3px solid var(--accent); border-radius: 0; margin-left: 8px; padding-left: 8px; }

.home-knowledge_hub .hub { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 28px; }
.home-knowledge_hub .hub-photo { width: 100%; margin-top: 16px; border-radius: 8px; }
.home-knowledge_hub h1 { font-size: clamp(2rem, 4vw, 3rem); }

.nav-drop { position: relative; }
.nav-drop .sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  padding: 8px 0;
  background: #fff;
  color: #1c2430;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0,0,0,.16);
  z-index: 40;
}
.nav-drop:hover .sub,
.nav-drop:focus-within .sub { display: block; }
.nav-drop .sub a {
  display: block;
  padding: 8px 14px;
  color: #1c2430;
  opacity: 1;
  text-decoration: none;
  white-space: nowrap;
}
.nav-drop .sub a:hover { background: #f4efe4; }
.nav.is-open .nav-drop .sub { display: block; position: static; box-shadow: none; background: transparent; }
.nav.is-open .nav-drop .sub a { color: inherit; padding-left: 12px; }
.split-2 { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: center; }
.split-2.reverse { grid-template-columns: 0.9fr 1.1fr; }
.split-2 img, .yt-frame { width: 100%; border-radius: 16px; }
.yt-frame { aspect-ratio: 16/9; border: 0; }
.home-education_magazine .center-copy { text-align: left; max-width: 16em; }
@media (max-width: 900px) {
  html[data-kit="education_magazine"] .site-header .bar { flex-wrap: wrap; }
  .split-2, .split-2.reverse { grid-template-columns: 1fr; }
}

.home-history_review .hero-cinema { min-height: 82vh; }
.home-history_review .mosaic { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; }
.home-history_review .mosaic-lead { grid-row: span 2; }
.home-history_review .mosaic-lead h3 { font-size: 1.8rem; }
.home-history_review .film { display: flex; gap: 10px; overflow: auto; }
.home-history_review .film figure { flex: 0 0 240px; margin: 0; }

@media (max-width: 900px) {
  .home-technology_journal .split-hero,
  .home-knowledge_hub .hub,
  .home-news_portal .news-layout,
  .home-education_magazine .mag > .card,
  .home-history_review .mosaic,
  .home-professional_brief .rows .card { display: block; grid-template-columns: 1fr; }
}

