/* E-manuel v2
   One system for the whole textbook: warm paper, an engineering grid,
   ink, and a single orange mark. No pills, no floating cards. */

:root {
  --ink: #142830;
  --ink-soft: #4d6270;
  --paper: #e8eef2;
  --paper-2: #f4f7f9;
  --line: rgba(14, 38, 49, 0.16);
  --line-strong: rgba(14, 38, 49, 0.42);
  --orange: #f58220;
  --orange-deep: #c4560a;
  --header-h: 60px;
  --sticky-top: 60px;
  --page: 1080px;
  --sans: "Nunito Sans", "Segoe UI", sans-serif;
  --serif: "Nunito Sans", "Segoe UI", sans-serif;
  --mono: "Nunito Sans", "Segoe UI", sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans) !important;
  font-size: 17px !important;
  line-height: 1.7 !important;
  color: var(--ink) !important;
  background-color: #e7eef3 !important;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(14, 38, 49, 0.16) 1px, transparent 0),
    linear-gradient(165deg, #f8fbfd 0%, #e3eef5 42%, #f4f7f8 100%) !important;
  background-size: 22px 22px, 100% 100% !important;
  background-attachment: fixed !important;
  animation: none;
  height: auto !important;
  min-height: 100vh;
}

@keyframes v2-grid {
  to { background-position: 96px 48px, 96px 48px, 24px 12px, 24px 12px, 0 0, 0 0; }
}

::selection { background: #f0c2a4; color: var(--ink); }

a { color: #0c5c8c; text-underline-offset: 0.18em; }
a:hover { color: #c4560a; }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

#page { min-height: 100vh; }

/* ---------- masthead ---------- */

#masthead {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(100deg, #091e2a 0%, #17445a 48%, #0e2631 100%) !important;
  border-bottom: 3px solid var(--orange);
  box-shadow: none;
  backdrop-filter: none;
}

#masthead > .container {
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between;
  width: min(var(--page), calc(100% - 32px)) !important;
  max-width: var(--page) !important;
  min-height: 64px;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#masthead nav:has(.v2-nav-links) .menu-icon { display: none; }

.v2-nav-links { display: flex; gap: 1.35rem; margin-left: 0.25rem; align-items: center; flex: 0 0 auto; white-space: nowrap; }

.v2-nav-links a {
  color: rgba(255, 248, 240, 0.88) !important;
  text-decoration: none !important;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: none;
}

.v2-nav-links a:hover,
.v2-nav-links a.is-current {
  color: #fff !important;
  border-bottom-color: var(--orange);
  background: none;
  transform: none;
}

#masthead nav { flex: 0 0 auto; }

.v2-search {
  position: relative;
  flex: 1 1 160px;
  min-width: 0;
  max-width: 440px;
  margin-left: 1rem;
}

.v2-search input {
  width: 100%;
  height: 38px;
  margin: 0;
  border: 1px solid rgba(255, 248, 240, 0.28);
  border-radius: 999px;
  background:
    rgba(255, 255, 255, 0.08)
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff8f0' stroke-width='2.2' stroke-linecap='round'><circle cx='11' cy='11' r='6.5'/><path d='M16 16.5L20 20.5'/></svg>")
    0.75rem 50% / 16px 16px no-repeat;
  color: #fff;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 650;
  padding: 0 0.9rem 0 2.35rem;
  box-shadow: none;
  outline: none;
}

.v2-search input::placeholder { color: rgba(255, 248, 240, 0.62); font-weight: 600; }

.v2-search input:focus {
  border-color: var(--orange);
  background-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.28);
}

.v2-search input::-webkit-search-cancel-button { filter: invert(1) brightness(2); }

.v2-search-pop {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: min(68vh, 460px);
  overflow: auto;
  padding: 0.35rem;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(14, 38, 49, 0.08);
  box-shadow: 0 18px 44px rgba(9, 30, 42, 0.28);
}

.v2-search-note {
  margin: 0;
  padding: 0.7rem 0.75rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 700;
}

.v2-search-hit {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.7rem 0.6rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  font-family: var(--sans);
}

.v2-search-hit.is-active,
.v2-search-hit:hover { background: #f3f7fa; }

.v2-search-where {
  display: block;
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.v2-search-title {
  display: block;
  margin-top: 0.08rem;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.3;
}

.v2-search-snip {
  display: block;
  margin-top: 0.12rem;
  color: #3d5260;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
}

.v2-search-hit mark,
.entry-content mark.v2-hit {
  background: #ffe08a;
  color: inherit;
  padding: 0 0.12em;
  border-radius: 3px;
}

.entry-content mark.v2-hit { box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.28); }

#web-logo { margin-left: auto; flex: 0 0 auto; }

#web-logo img {
  max-width: min(188px, 46vw) !important;
  height: auto;
  display: block;
}

.v2-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: var(--orange);
  z-index: 1200;
  pointer-events: none;
}

/* ---------- chapter navigation ---------- */

#sticky-menus {
  top: var(--header-h) !important;
  z-index: 900 !important;
  background: transparent;
  border-bottom: 0;
}

.dark-blue-bg { background: #0e2631 !important; }
.medium-blue-bg { background: #163848 !important; }

.secondary-menu,
.tertiary-menu {
  width: min(var(--page), calc(100% - 32px));
  max-width: var(--page);
  margin: 0 auto !important;
}

.dark-blue-bg .secondary-menu,
.medium-blue-bg .tertiary-menu {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.secondary-menu > .d-flex,
.secondary-menu .d-flex.flex-wrap {
  align-items: stretch !important;
  gap: 0 1.5rem;
}

.eman-page-title {
  color: #fff !important;
  font-family: var(--mono) !important;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  display: flex;
  align-items: center;
  padding: 0.85rem 0;
}

.eman-page-title::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 0.65rem;
  background: var(--orange);
  flex: none;
}

.sub-menu {
  display: flex !important;
  gap: 0.15rem 1.1rem;
  margin: 0 !important;
  padding: 0 !important;
  align-items: stretch;
}

#secondary-menu .sub-menu { flex-wrap: wrap; }

#tertiary-menu .sub-menu {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 !important;
}

#tertiary-menu .sub-menu::-webkit-scrollbar { display: none; }

.sub-menu .nav-link {
  display: inline-flex !important;
  align-items: center;
  min-height: 46px;
  padding: 0.35rem 0 !important;
  border-radius: 0 !important;
  border-bottom: 2px solid transparent;
  background: transparent !important;
  color: rgba(244, 247, 249, 0.78) !important;
  font-weight: 600 !important;
  font-size: 0.98rem;
  text-decoration: none !important;
  white-space: nowrap;
}

#secondary-menu .nav-link { font-family: var(--sans); letter-spacing: 0.01em; }

.sub-menu .nav-link:hover {
  color: #f58220 !important;
  background: transparent !important;
  transform: none;
}

#secondary-menu .menu-active > .nav-link,
#secondary-menu .current-menu-item > .nav-link,
#tertiary-menu .menu-active > .nav-link,
#tertiary-menu .current-menu-item > .nav-link {
  color: #fff !important;
  background: transparent !important;
  border-bottom-color: #f58220;
}

.eman-width { max-width: var(--page) !important; }

/* ---------- reading column ---------- */

#content.site-content,
.site-content { background: transparent !important; }

#content > .container {
  max-width: var(--page);
  width: min(var(--page), calc(100% - 32px));
  padding-left: 0;
  padding-right: 0;
}

.main-content.row { margin-left: 0; margin-right: 0; }

#primary.container {
  width: 100%;
  max-width: none !important;
  padding: 0;
}

.entry-content {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 1.35rem 0 2.5rem;
  margin: 0;
  max-width: none;
  min-width: 0;
}

body.v2-lesson .entry-content {
  background: transparent;
  border-left: 0;
  padding: 1.15rem 0 2rem;
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
}

body.v2-has-toc .entry-content {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

body.v2-home .entry-content,
body.v2-catalog .entry-content,
body.v2-extras .entry-content {
  background: transparent;
  border: 0;
  padding: 0 0 2rem;
  max-width: none;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.v2-hero h1,
.v2-catalog-hero h1,
.v2-group h2,
.v2-path h2,
.v2-card h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.12;
}

.entry-content h1 {
  font-size: 1.65rem !important;
  margin: 0 0 0.85rem !important;
  letter-spacing: -0.02em;
  max-width: 28em;
}

.entry-content h2 {
  font-size: 1.28rem !important;
  margin: 1.6rem 0 0.55rem !important;
  letter-spacing: -0.015em;
}

.entry-content h3,
.entry-content h4 {
  font-size: 1.22rem !important;
  margin: 1.5rem 0 0.45rem !important;
}

.entry-content p { margin-bottom: 0.85rem; }

.entry-content a { color: #0c5c8c; }
.entry-content a:hover { color: #c4560a; }

h1, h2, h3, h4, .v2-lab { scroll-margin-top: calc(var(--sticky-top) + 18px); }

.v2-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  align-items: center;
  margin: 0 0 0.85rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: #142830;
}

.v2-crumbs a { color: #0c5c8c !important; text-decoration: none !important; }

.v2-crumbs a:hover { color: var(--orange-deep) !important; }

.v2-section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.7rem;
  padding: 0;
  background: none;
  border-radius: 0;
  color: var(--orange-deep);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.v2-section-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--orange);
}

/* ---------- figures, tables, exercises ---------- */

.entry-content img,
.entry-content video,
.entry-content iframe,
.entry-content svg { max-width: 100%; }

.eman-image,
.wp-caption,
div[id^="foogallery-gallery-"] {
  border-radius: 0 !important;
  border: 1px solid var(--line) !important;
  box-shadow: none !important;
  background: #fff !important;
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.eman-image:hover,
.wp-caption:hover { border-color: var(--orange) !important; }

.eman-image img,
.wp-caption img { border-radius: 0; transition: none; }
.eman-image:hover img,
.wp-caption:hover img { transform: none; }

figcaption, .wp-caption-text {
  color: var(--ink) !important;
  font-family: var(--sans);
  font-size: 0.95rem !important;
  line-height: 1.45;
  letter-spacing: 0;
  padding: 0.55rem 0.75rem 0.7rem;
}

.v2-table-scroll {
  overflow-x: auto;
  margin: 1rem 0 1.3rem;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--paper-2);
}

.entry-content table { margin: 0; border-collapse: collapse; min-width: 100%; }
.entry-content th {
  background: #0e2631 !important;
  color: #f4f7f9 !important;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.entry-content td,
.entry-content th { padding: 0.6rem 0.8rem !important; }
.entry-content tr:nth-child(even) td { background: #f6f1e8; }
.entry-content tr:nth-child(odd) td { background: #fff; }

.important-note {
  border: 0 !important;
  border-left: 3px solid var(--orange) !important;
  border-radius: 0 !important;
  background: rgba(245, 130, 32, 0.06) !important;
  box-shadow: none !important;
}

.geogebra-wrapper,
.eman-twenty {
  border-radius: 0;
  border: 1px solid var(--ink);
  box-shadow: none;
  background: #fff;
  overflow: hidden;
}

.mjx-container { overflow-x: auto; overflow-y: hidden; max-width: 100%; }

.eman-orange-accordion,
.eman-gray-accordion {
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  border: 1px solid var(--line-strong);
  background: #fff;
}

.eman-accordion-header { transition: filter 0.2s ease; }
.eman-accordion-header:hover { filter: brightness(1.08); }

.question-field {
  border-radius: 0 !important;
  border: 0 !important;
  border-bottom: 1.5px solid var(--ink) !important;
  background: transparent !important;
  min-height: 44px;
  font-size: 16px !important;
  text-align: left !important;
  padding: 0.35rem 0.2rem !important;
}

.question-field:focus {
  border-bottom-color: var(--orange) !important;
  box-shadow: none;
  outline: none;
}

.question-submit {
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0.55rem 1.05rem !important;
  min-height: 42px;
  background: #f58220 !important;
  color: #0e2631 !important;
  font-family: var(--sans) !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  text-transform: none;
  cursor: pointer;
  box-shadow: none !important;
  transition: background 0.2s ease, color 0.2s ease;
}

.question-submit:hover {
  background: #0e2631 !important;
  color: #fff !important;
  transform: none;
}

.question-submit-gray {
  background: #8d877c !important;
  color: #fff !important;
}

.question-result.result-ok,
.result-ok {
  background: #e7f2e4;
  color: #1d4a28;
  border-left: 3px solid #2f7d45;
  padding: 0.75rem 0.9rem;
}

.question-result.result-fail,
.result-fail {
  background: #f8e8e2;
  color: #7a2e16;
  border-left: 3px solid var(--orange);
  padding: 0.75rem 0.9rem;
}

.sow-slider-base { display: block !important; }
.sow-slide-nav,
.sow-slider-pagination { display: none !important; }

[class*="so-widget-sow-hero"] {
  border-radius: 0;
  overflow: visible;
  border: 0;
  box-shadow: none;
  width: 100%;
  max-width: 100%;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 auto 1.25rem;
}

/* The chapter banner is one photo. The slider script clones an empty
   slide and parks the real photo underneath, which left a gray gap and
   a thin strip of the picture. Stack the real slide in the frame. */
.sow-slider-base {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 16 / 9;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden;
  background: #1a242c;
}

.sow-slider-images {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  aspect-ratio: auto !important;
  overflow: hidden;
}

.sow-slider-images > li.cycle-sentinel,
.sow-slider-images > li:empty {
  display: none !important;
}

.sow-slider-images > li,
.sow-slider-image {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  aspect-ratio: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  visibility: visible !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

[class*="so-widget-sow-hero"] .sow-slider-image-container,
[class*="so-widget-sow-hero"] .sow-slider-image-wrapper {
  position: absolute !important;
  inset: auto 0 0 0 !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: flex-start !important;
  padding: 1.35rem 1.4rem !important;
  background: linear-gradient(180deg, rgba(23, 20, 16, 0) 0%, rgba(23, 20, 16, 0.55) 100%);
}

.entry-content .sow-slider-image-wrapper h1,
.entry-content .sow-slider-image-wrapper h2 {
  color: #f4f7f9 !important;
  font-family: var(--serif) !important;
  font-size: clamp(2.2rem, 5vw, 4rem) !important;
  line-height: 1 !important;
  text-align: left !important;
  text-shadow: none !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  letter-spacing: -0.03em !important;
}

.siteorigin-panels-stretch {
  width: auto !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  left: auto !important;
  right: auto !important;
}

/* ---------- homepage ---------- */

.v2-hero {
  position: relative;
  isolation: isolate;
  overflow: visible;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2rem;
  align-items: end;
  min-height: 0;
  margin: 1.5rem 0 0;
  padding: 0.5rem 0 1.5rem;
  border-radius: 0;
  color: var(--ink);
  background: none;
  box-shadow: none;
}

.v2-hero-grid,
.v2-orbits { display: none; }

.v2-hero-media {
  position: relative;
  inset: auto;
  z-index: 0;
  min-height: 340px;
  border: 1px solid var(--ink);
  background:
    linear-gradient(160deg, rgba(23, 20, 16, 0.15), rgba(23, 20, 16, 0.35)),
    url("/wp-content/uploads/2020/04/homepagebanner.jpg") center/cover no-repeat;
  transform: none;
  animation: none;
}

.v2-hero-media::after { content: none; }

.v2-hero-copy { position: relative; z-index: 1; max-width: none; padding-bottom: 0.4rem; }

.v2-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  margin: 0 0 0.9rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--orange-deep);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.v2-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--orange);
}

.entry-content .v2-hero h1 {
  margin: 0 0 0.7rem;
  max-width: 14ch;
  color: var(--ink);
  font-size: 2.6rem !important;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.v2-hero-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 0.4rem;
  padding: 0.55rem 1.05rem;
  background: #0e2631;
  color: #fff !important;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none !important;
  border-bottom: 3px solid var(--orange);
}

.v2-hero-link::after { content: " →"; }

.v2-hero-link:hover { color: #fff !important; background: var(--orange-deep); }

.v2-hero-logo { display: none !important; }

.v2-hero-logo {
  display: inline-block;
  margin-top: 1.25rem;
  background: #0e2631;
  padding: 0.55rem 0.75rem 0.4rem;
  width: min(100%, 230px);
}

.v2-hero-logo:hover { transform: none; }
.v2-hero-logo img { width: 100%; height: auto; display: block; }

.v2-paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0 0 0.5rem;
  border-top: 1px solid var(--ink);
}

.v2-path {
  position: relative;
  background: transparent;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  box-shadow: none;
  padding: 1.35rem 1.5rem 1.35rem 0;
  overflow: visible;
  transition: background 0.25s ease;
}

.v2-path:nth-child(odd) { padding-right: 2rem; border-right: 1px solid var(--line); }
.v2-path:nth-child(even) { padding-left: 1.5rem; }
.v2-path::before { display: none; }
.v2-path:hover { transform: none; background: rgba(245, 130, 32, 0.06); box-shadow: none; }

.v2-path-index {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #0e2631;
  border-bottom: 2px solid #f58220;
  padding-bottom: 0.12rem;
  margin-bottom: 0.55rem;
}

.v2-path h2 { margin: 0 0 0.45rem !important; font-size: 1.7rem !important; }
.v2-path p { font-size: 1rem; color: var(--ink); }

.v2-author {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
  column-gap: 2.4rem;
  row-gap: 0.15rem;
  align-items: center;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(14, 38, 49, 0.18);
  border-radius: 0;
  box-shadow: none;
  padding: 1.5rem 0 0.3rem;
  margin-top: 1.6rem;
}

.v2-author h2 {
  grid-column: 1;
  margin: 0 !important;
  text-align: left !important;
  font-size: 1.45rem !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.02em !important;
  color: var(--ink) !important;
  font-family: var(--serif) !important;
}

.v2-author > p { margin: 0 !important; text-align: left !important; }

.v2-author > p:nth-of-type(1) {
  color: var(--ink-soft);
  margin-bottom: 0.55rem !important;
}

.v2-author > p:nth-of-type(2),
.v2-author > p:nth-of-type(3),
.v2-author > p:nth-of-type(4) { font-weight: 700; }

.v2-author > p:nth-of-type(5) {
  grid-column: 2;
  grid-row: 1 / span 5;
  align-self: center;
}

.v2-author img {
  width: 100%;
  max-width: none;
  height: auto !important;
  margin: 0;
  display: block;
  border: 0;
  background: #e7eef2;
}

.v2-author > p:nth-of-type(6),
.v2-author > p:nth-of-type(7) {
  grid-column: 1 / -1;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

.v2-author > p:nth-of-type(6) {
  margin-top: 1.15rem !important;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(14, 38, 49, 0.14);
  color: var(--ink);
  font-weight: 700;
}

@media (max-width: 800px) {
  .v2-author { grid-template-columns: 1fr; }
  .v2-author > p:nth-of-type(5) { grid-column: 1; grid-row: auto; margin-top: 0.8rem !important; }
}

/* ---------- catalog ---------- */

.v2-catalog-hero {
  position: relative;
  overflow: visible;
  margin: 1.2rem 0 0.4rem;
  padding: 0.4rem 0 0.2rem;
  border-radius: 0;
  color: var(--ink);
  background: none;
  box-shadow: none;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 1.6rem;
  align-items: center;
}

.v2-catalog-hero > .v2-kicker,
.entry-content .v2-catalog-hero h1,
.v2-catalog-hero .v2-stats { grid-column: 1; }

.v2-sky {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  justify-self: stretch;
  width: 100%;
  height: 292px;
  overflow: hidden;
  pointer-events: none;
}

.v2-sky canvas { width: 100%; height: 100%; display: block; }

.v2-catalog-hero::before { display: none; }

.entry-content .v2-catalog-hero h1 {
  margin: 0 0 0.45rem;
  color: var(--ink);
  font-size: clamp(2rem, 2.7vw, 2.65rem) !important;
  line-height: 1.02;
  max-width: none;
  white-space: nowrap;
}

.v2-catalog-hero h1::after {
  content: "";
  display: block;
  width: 4.5rem;
  height: 3px;
  margin-top: 0.7rem;
  background: var(--orange);
  transform-origin: left;
  animation: v2-draw 0.7s cubic-bezier(0.16, 0.84, 0.3, 1) both;
}

.v2-catalog-hero p {
  max-width: 42ch;
  margin: 0.8rem 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.v2-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0;
  margin-top: 1rem;
}

.v2-stats span {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.v2-stats span + span::before {
  content: "/";
  margin: 0 0.7rem;
  color: var(--orange);
}

.v2-tools {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  display: grid;
  gap: 0.55rem;
  margin: 1.1rem 0 0.8rem;
  padding: 0.55rem 0 0.7rem;
  border: 0;
  background: rgba(244, 247, 249, 0.92);
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.v2-tools input[type="search"] {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(14, 38, 49, 0.16);
  border-radius: 0;
  background: transparent;
  min-height: 48px;
  padding: 0.45rem 0.75rem 0.45rem 1.15rem;
  font: inherit;
  font-size: 1.05rem;
  color: var(--ink);
}

.v2-tools input[type="search"]:focus {
  border-bottom-color: var(--orange);
  box-shadow: none;
  outline: none;
}

.v2-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.45rem;
  overflow: visible;
}

.v2-filters::-webkit-scrollbar { display: none; }

.v2-filters button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  padding: 0.4rem 0.75rem;
  white-space: nowrap;
  cursor: pointer;
  outline: none;
}

.v2-filters button:hover { color: var(--ink); background: rgba(14, 38, 49, 0.05); transform: none; }

.v2-filters button.is-on,
.v2-filters button:focus-visible {
  background: rgba(245, 130, 32, 0.16);
  color: var(--ink);
  outline: none;
  box-shadow: none;
}

.v2-group { margin: 2.15rem 0 0.65rem; }

.v2-group-head { margin: 0 0 0.2rem; }

.v2-group h2 {
  margin: 0 !important;
  font-size: clamp(1.7rem, 3vw, 2.2rem) !important;
}

.v2-group h2::after {
  content: "";
  display: block;
  width: 2.4rem;
  height: 2px;
  margin-top: 0.4rem;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
}

html.v2-animate .v2-group.is-in h2::after,
.v2-group.is-in h2::after { animation: v2-draw 0.55s 0.05s cubic-bezier(0.16, 0.84, 0.3, 1) forwards; }

.v2-group-head p { margin: 0.45rem 0 0; color: var(--ink-soft); font-size: 0.98rem; }

.v2-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem 1.25rem;
  margin-top: 0.8rem;
}

.v2-card {
  display: block;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 0;
  box-shadow: 0 8px 22px rgba(14, 38, 49, 0.05);
  overflow: hidden;
  padding: 0 0 0.85rem;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.v2-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 42px rgba(14, 38, 49, 0.14);
  background: #fff;
  border-color: rgba(245, 130, 32, 0.7);
}

.v2-card-top {
  display: grid;
  grid-template-columns: 3.1rem minmax(0, 1fr);
  gap: 0.35rem 0.4rem;
  align-items: baseline;
  padding: 0;
  text-decoration: none !important;
  color: inherit !important;
  background: none;
}

.v2-num {
  width: auto;
  height: auto;
  display: block;
  border-radius: 0;
  background: none;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--orange);
}

.v2-card:hover .v2-num { color: var(--orange-deep); }

.v2-card h3 { margin: 0; font-size: 1.38rem !important; }

.v2-card h3 span {
  display: inline;
  margin-left: 0.55rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.v2-lessons {
  list-style: none !important;
  margin: 0.35rem 0 0 3.5rem;
  padding: 0;
}

.v2-lessons > li { list-style: none !important; padding: 0 !important; }
.v2-lessons > li::before { content: none !important; }

.v2-lessons a {
  display: inline;
  padding: 0;
  border-radius: 0;
  color: var(--ink) !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.98rem;
  background-image: linear-gradient(var(--orange), var(--orange));
  background-repeat: no-repeat;
  background-size: 0 1px;
  background-position: 0 100%;
  transition: background-size 0.25s ease, color 0.2s ease;
}

.v2-lessons li { display: inline; }
.v2-lessons li:not(:last-child)::after {
  content: "  ·  ";
  color: var(--orange);
  font-weight: 700;
}

.v2-lessons a:hover {
  background-color: transparent;
  background-size: 100% 1px;
  color: var(--orange-deep) !important;
}

#v2-empty {
  margin-top: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--ink);
  background: none;
  text-align: left;
  font-family: var(--serif);
}

.v2-extra-block { margin: 1.4rem 0; border-top: 1px solid var(--ink); padding-top: 0.8rem; }
.v2-extra-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.v2-extra-card {
  display: block;
  min-height: 0;
  padding: 0.9rem 1rem 0.9rem 0;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  box-shadow: none;
  color: var(--ink) !important;
  text-decoration: none !important;
  transition: background 0.2s ease;
}
.v2-extra-card:hover {
  transform: none;
  box-shadow: none;
  background: rgba(245, 130, 32, 0.07);
  color: var(--ink) !important;
}
.v2-extra-card strong {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.v2-extra-card em { display: none; }

/* ---------- labs: a framed figure, not a dashboard ---------- */

.v2-lab-jump {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.15rem 0 1rem;
  padding: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--ink) !important;
  text-decoration: none !important;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--orange);
}

.v2-lab-jump::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--orange);
}

.v2-lab-jump:hover { background: none; color: var(--orange-deep) !important; transform: none; }

.v2-lab {
  margin: 1.8rem 0 0.2rem;
  padding: 0;
  border-radius: 0;
  border-top: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  box-shadow: none;
}

.v2-lab-kicker {
  margin-top: 0.8rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-deep);
}

.v2-lab-title {
  margin: 0.25rem 0 0.35rem !important;
  color: var(--ink) !important;
  font-family: var(--serif);
  font-size: 1.7rem !important;
}

.entry-content .v2-lab p,
.v2-lab-lead {
  margin: 0 0 0.85rem;
  color: var(--ink) !important;
  font-size: 1rem;
}

.entry-content .v2-lab .v2-note { color: var(--ink-soft) !important; font-size: 0.92rem; }

.v2-lab-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(200px, 0.8fr);
  gap: 1rem 1.25rem;
  align-items: start;
}

.v2-stage {
  background: #0e2631;
  border: 1px solid var(--ink);
  border-radius: 0;
  overflow: hidden;
  min-height: 180px;
}

.v2-stage canvas,
.v2-stage svg { width: 100%; height: auto; display: block; }

.v2-controls { display: grid; gap: 0.65rem; }
.v2-slider { display: grid; gap: 0.2rem; font-size: 0.92rem; }
.v2-slider span { display: flex; justify-content: space-between; gap: 0.6rem; color: var(--ink-soft); }
.v2-slider strong { color: var(--ink); font-variant-numeric: tabular-nums; font-family: var(--mono); font-size: 0.82rem; }
.v2-slider input[type="range"] { width: 100%; accent-color: var(--orange); }

.v2-readouts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1rem; }
.v2-readout { background: none; border-top: 1px solid var(--line-strong); border-radius: 0; padding: 0.4rem 0 0; }
.v2-readout small {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.v2-readout b { font-family: var(--mono); font-weight: 500; font-size: 0.95rem; }

.v2-actions, .v2-seg { display: flex; flex-wrap: wrap; gap: 0.45rem; }

.v2-lab button {
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 0.45rem 0.75rem;
  background: #0e2631;
  color: #f4f7f9;
  font: inherit;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.v2-lab button:hover { transform: none; filter: none; background: var(--orange); color: #142830; border-color: var(--orange); }
.v2-seg button.is-off { background: transparent; color: var(--ink); }

/* ---------- toc + pager ---------- */

.v2-toc {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0.2rem 0 0;
}

.v2-toc summary {
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #142830;
}

.v2-toc nav { display: grid; gap: 0.15rem; margin-top: 0.7rem; }

.v2-toc a {
  color: #142830 !important;
  text-decoration: none !important;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.32rem 0 0.32rem 0.7rem;
  border-radius: 0;
  border-left: 2px solid transparent;
}

.v2-toc a.is-h3 { padding-left: 1.15rem; font-weight: 400; font-size: 0.9rem; }

.v2-toc a:hover,
.v2-toc a.is-current {
  background: none;
  color: var(--ink) !important;
  border-left-color: var(--orange);
}

.v2-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  max-width: none;
  margin: 0 0 2.2rem;
  border-top: 1px solid var(--ink);
}
.v2-pager a { flex: 1 1 240px; }

.v2-pager a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  min-height: 0;
  padding: 0.9rem 0 0.2rem;
  border-radius: 0;
  background: none;
  border: 0;
  box-shadow: none;
  color: var(--ink) !important;
  text-decoration: none !important;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
}

.v2-pager a:hover { transform: none; color: var(--orange-deep) !important; }

.v2-pager small {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-deep);
}

.v2-pager .is-next {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  justify-items: end;
  column-gap: 0.75rem;
  text-align: right;
  align-items: center;
}

.v2-pager .is-next small,
.v2-pager .is-next span { grid-column: 1; }

.v2-pager .is-next::after {
  content: "";
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}

#wpfront-scroll-top-container {
  border-radius: 0;
  box-shadow: none;
  border: 1px solid var(--ink);
  background: var(--paper);
}

/* ---------- footer ---------- */

#mainFooter { margin-top: 1rem; }

#mainFooter .footer-light { display: none !important; }

#mainFooter .footer-light {
  background: transparent !important;
  max-width: var(--page);
  padding-top: 1rem;
}

#mainFooter .footer-light img {
  max-width: min(100%, 520px);
  height: auto;
  border: 1px solid var(--ink);
  border-radius: 0;
}

#mainFooter .footer-dark {
  background: #0e2631 !important;
  flex-wrap: wrap;
  gap: 0.35rem 1.4rem;
  margin-top: 1rem;
  border-radius: 0;
  border-top: 3px solid var(--orange);
}

#mainFooter .footer-dark,
#mainFooter .footer-dark a { color: #f4f7f9; }
#mainFooter .footer-dark a:hover { color: #f58220 !important; }

/* ---------- motion: text only, images stay still ---------- */

@keyframes v2-draw { to { transform: scaleX(1); } }

@keyframes v2-uncover {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes v2-fade { from { opacity: 0; } to { opacity: 1; } }

html.v2-animate .v2-reveal:not(.is-in) {
  opacity: 0;
  transform: translateY(14px);
}

html.v2-animate .v2-part-section.v2-reveal,
html.v2-animate .v2-part-section.v2-reveal:not(.is-in) {
  opacity: 1;
  transform: none;
}

html.v2-animate .v2-card,
html.v2-animate .v2-card.v2-reveal:not(.is-in) {
  opacity: 1 !important;
  transform: none !important;
}

html.v2-animate .v2-path,
html.v2-animate .v2-path.v2-reveal:not(.is-in),
html.v2-animate .v2-path.v2-reveal.is-in {
  opacity: 1 !important;
  animation: none;
}

html.v2-animate .v2-reveal.is-in {
  animation: v2-uncover 0.55s ease both;
}

html.v2-animate .v2-reveal-figure,
html.v2-animate .v2-reveal-figure:not(.is-in),
html.v2-animate .v2-reveal-figure.is-in,
.eman-image,
.wp-caption,
.entry-content img {
  opacity: 1 !important;
  clip-path: none !important;
  transform: none !important;
  animation: none !important;
  filter: none !important;
}

html.v2-animate .v2-reveal-soft:not(.is-in) { opacity: 0; transform: none; }
html.v2-animate .v2-reveal-soft.is-in { animation: v2-fade 0.4s ease both; }

.v2-cards .v2-card:nth-child(2) { animation-delay: 0.05s; }
.v2-cards .v2-card:nth-child(3) { animation-delay: 0.1s; }
.v2-cards .v2-card:nth-child(4) { animation-delay: 0.15s; }
.v2-cards .v2-card:nth-child(5) { animation-delay: 0.08s; }
.v2-cards .v2-card:nth-child(6) { animation-delay: 0.13s; }

@media (min-width: 980px) {
  body.v2-has-toc .row.main-content {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 2.5rem;
    max-width: none;
  }

  body.v2-has-toc .v2-toc {
    flex: 0 0 230px;
    width: 230px;
    position: sticky;
    top: calc(var(--sticky-top) + 16px);
    max-height: calc(100vh - var(--sticky-top) - 32px);
    overflow: auto;
  }

  body.v2-has-toc #primary {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
  }

  body.v2-has-toc .v2-toc summary { list-style: none; pointer-events: none; }
  body.v2-has-toc .v2-toc summary::-webkit-details-marker { display: none; }
}

@media (min-width: 1200px) {
  .v2-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 2rem; }
}


@media (max-width: 979px) {
  body.v2-has-toc .row.main-content { flex-direction: column; }
  body.v2-has-toc .v2-toc { width: 100%; max-width: none; }
}

@media (max-width: 900px) {
  .v2-hero,
  .v2-cards,
  .v2-lab-grid,
  .v2-pager { grid-template-columns: 1fr; }

  .v2-pager .is-next { text-align: left; justify-items: start; }
  .v2-catalog-hero { display: block; }
  .v2-sky { display: none !important; }
  .entry-content .v2-hero h1 {
    max-width: none !important;
    font-size: clamp(2.45rem, 12vw, 3.5rem) !important;
  }
  .entry-content .v2-catalog-hero h1 {
    max-width: none !important;
    white-space: nowrap;
    font-size: clamp(1.45rem, 6.6vw, 2.35rem) !important;
  }
}

@media (max-width: 720px) {
  body {
    background-attachment: scroll !important;
    animation: none;
    font-size: 17px !important;
  }

  #content > .container,
  .secondary-menu,
  .tertiary-menu,
  #masthead > .container { width: min(var(--page), calc(100% - 20px)) !important; }

  #masthead > .container { gap: 0.6rem; flex-wrap: nowrap; }
  #web-logo img { max-width: 112px !important; }
  .v2-nav-links { gap: 0.7rem; }
  .v2-nav-links a { font-size: 0.88rem; }
  #masthead > .container { flex-wrap: wrap !important; }
  .v2-search { order: 3; flex: 1 1 100%; max-width: none; margin: 0 0 0.45rem; }
  .v2-search-pop {
    position: fixed;
    left: 10px;
    right: 10px;
    top: calc(var(--header-h) + 6px);
    width: auto;
  }

  .secondary-menu > .d-flex,
  .secondary-menu .d-flex { flex-direction: column !important; align-items: stretch !important; gap: 0; }

  .eman-page-title { padding-bottom: 0; }

  body.v2-lesson .entry-content { padding: 1rem 0.9rem 1.8rem; }

  .v2-lessons { margin-left: 0; }
  .v2-card-top { grid-template-columns: 2.4rem minmax(0, 1fr); }
  .v2-hero { margin-top: 0.8rem; }
  #mainFooter .footer-dark { padding: 0.7rem 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body { animation: none; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html.v2-animate .v2-reveal,
  html.v2-animate .v2-reveal-figure,
  html.v2-animate .v2-reveal-soft,
  .v2-reveal,
  .v2-reveal-figure,
  .v2-reveal-soft {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    filter: none !important;
  }
  .v2-group h2::after,
  .v2-catalog-hero h1::after { transform: none; }
}

/* ---------- chapter guide ---------- */

body.v2-guided #sticky-menus > .dark-blue-bg,
body.v2-guided #sticky-menus > .medium-blue-bg { display: none !important; }

.v2-guide {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line-strong);
}

.v2-guide-bar {
  width: min(var(--page), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  gap: 1rem;
  padding: 0.55rem 0 0.65rem;
}

.v2-guide-chapter {
  flex: 0 1 220px;
  display: flex;
  align-items: center;
  color: var(--ink) !important;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none !important;
}

.v2-guide-chapter:hover { color: var(--orange-deep) !important; }

.v2-steps {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
}

.v2-step {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 0.35rem 0.45rem;
  align-items: center;
  min-height: 64px;
  padding: 0.35rem 0.5rem;
  border: 1.5px solid rgba(14, 38, 49, 0.38);
  background: transparent;
  color: var(--ink) !important;
  text-decoration: none !important;
  line-height: 1.15;
}

.v2-step.is-on {
  background: #0e2631;
  color: #fff !important;
  border-color: #0e2631;
  box-shadow: inset 0 -3px 0 #f58220;
}

.v2-step.is-on .v2-step-icon { box-shadow: 0 0 0 1px #f58220; }

.v2-step.is-disabled { opacity: 0.4; }

.v2-step-icon {
  width: 28px;
  height: 28px;
  object-fit: cover;
  display: block;
}

.v2-step-copy { display: flex; flex-direction: column; min-width: 0; }
.v2-step-n { font-size: 0.72rem; font-weight: 800; color: var(--orange-deep); }
.v2-step.is-on .v2-step-n,
.v2-step.is-on .v2-step-hint { color: rgba(255, 255, 255, 0.78); }
.v2-step-label { font-weight: 800; }
.v2-step-hint { font-size: 0.75rem; font-weight: 700; color: var(--ink-soft); }
.v2-step-count { font-size: 0.78rem; font-weight: 800; }

.v2-page-toggle {
  display: none;
  width: min(var(--page), calc(100% - 32px));
  margin: 0 auto 0.55rem;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.35rem 0.7rem;
  background: #fff;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.v2-page-toggle-pos {
  color: var(--orange-deep);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.v2-pages { display: grid; gap: 0.1rem; align-content: start; }

.v2-pages a {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  gap: 0.15rem 0.4rem;
  padding: 0.38rem 0.35rem;
  border-left: 3px solid transparent;
  color: var(--ink) !important;
  text-decoration: none !important;
  font-weight: 650;
  white-space: normal;
  line-height: 1.3;
}

.v2-pages a.is-current {
  border-left-color: var(--orange);
  font-weight: 800;
  background: rgba(245, 130, 32, 0.1);
}

.v2-pages-n { color: var(--orange-deep); font-weight: 800; }
.v2-pages-pos {
  grid-column: 2;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange-deep);
}

body.v2-chapter .entry-content {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.v2-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1.6rem 0 2rem;
}

.v2-board-col {
  scroll-margin-top: calc(var(--sticky-top) + 12px);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--orange);
  padding: 0.85rem 0.9rem 1rem;
}

.v2-board-col .v2-step-icon { width: 40px; height: 40px; margin-bottom: 0.45rem; }
.v2-board-kicker {
  margin: 0 0 0.2rem;
  color: var(--orange-deep);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.v2-board-col h2 { margin: 0 0 0.45rem !important; font-size: 1.25rem !important; }
.v2-board-col ol { margin: 0.2rem 0 0; padding-left: 1.15rem; }
.v2-board-col li { margin: 0.28rem 0; }
.v2-board-col a { font-weight: 700; }

.v2-cross {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.7rem 0 0.9rem;
}

.v2-cross a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.3rem 0.7rem;
  border: 1.5px solid var(--ink);
  background: #fff;
  color: var(--ink) !important;
  font-weight: 800;
  text-decoration: none !important;
}

.v2-cross a:hover { border-color: var(--orange); color: var(--orange-deep) !important; }

.headline-container {
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 0.35rem;
}

.headline-container .headline { margin-right: 0 !important; }

.headline-container > a {
  display: inline-flex;
  align-items: center;
  align-self: flex-start !important;
  gap: 0.4rem;
  min-height: 40px;
  text-decoration: none !important;
  font-weight: 800;
  color: var(--ink) !important;
}

.headline-container > a::after { content: "Poslechnout"; }

.v2-lab-jump {
  display: inline-flex;
  margin: 0.75rem 0 1rem;
  padding: 0.55rem 0.9rem;
  background: #0e2631;
  color: #fff !important;
  border-bottom: 3px solid var(--orange);
  letter-spacing: 0;
  text-transform: none;
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 800;
}

.v2-lab-jump::before { display: none; }
.v2-lab-jump:hover { background: var(--orange-deep); color: #fff !important; }

.eman-gray-accordion > .d-flex {
  flex-direction: row !important;
  align-items: center !important;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.15rem 0.2rem;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.eman-gray-accordion .eman-accordion-slim-header {
  height: auto;
  flex: 1;
  order: 2;
  background: transparent;
}

.eman-gray-accordion .eman-accordion-slim-header::before {
  content: "Řešení";
  color: var(--ink);
  font-weight: 800;
}

.eman-gray-accordion .eman-accordion-open-arrow { order: 1; margin: 0; }

.geogebra-wrapper,
.eman-twenty,
.v2-table-scroll { max-width: 100%; }

.v2-card.is-enhanced .v2-lessons { display: none; }

.v2-card-photo {
  display: block;
  margin: 0 0 0.75rem;
  border: 1px solid var(--line);
  overflow: hidden;
  aspect-ratio: 16 / 7;
}

.v2-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.v2-card-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  margin: 0.35rem 0 0.15rem 3.5rem;
}

.v2-card-counts a {
  color: var(--ink-soft) !important;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none !important;
}

.v2-card-counts b { color: var(--orange-deep); margin-right: 0.15rem; }
.v2-card-counts a:hover { color: var(--ink) !important; }

.v2-card-more { margin: 0.35rem 0 0.4rem 3.5rem; }
.v2-card-more summary { cursor: pointer; font-weight: 800; }
.v2-card-step h4 {
  margin: 0.7rem 0 0.15rem !important;
  font-size: 0.92rem !important;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
.v2-card-step ol { margin: 0; padding-left: 1.15rem; }
.v2-card-step a { font-weight: 700; text-decoration: none !important; }

.v2-paths { gap: 0.85rem; border-top: 0; align-items: stretch; }

.v2-path,
.v2-path:nth-child(odd),
.v2-path:nth-child(even) {
  background: #fff;
  border: 1px solid rgba(14, 38, 49, 0.12);
  border-top: 3px solid var(--accent, var(--orange));
  border-right: 1px solid rgba(14, 38, 49, 0.12);
  border-radius: 2px;
  padding: 0.85rem 0.95rem 1rem;
  margin: 0;
  box-shadow: 0 14px 28px rgba(14, 38, 49, 0.08);
}

.v2-path:hover {
  background: #fff;
  box-shadow: 0 18px 32px rgba(14, 38, 49, 0.12);
  transform: translateY(-3px);
}

.v2-path-index {
  position: relative;
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 0 0.75rem;
  padding: 0;
  border: 0;
  font-size: 0;
}

.v2-path-index img {
  width: 72px !important;
  height: 72px !important;
  max-width: 72px !important;
  object-fit: cover;
  display: block;
}

.v2-path-index span {
  position: absolute;
  left: -8px;
  top: -8px;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #0e2631;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  border: 2px solid #fff;
}

.v2-path .v2-step-hint {
  display: block;
  margin: 0 0 0.1rem;
  color: var(--orange-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.v2-path h2 { font-size: 1.35rem !important; margin: 0 0 0.35rem !important; }
.v2-path p { font-size: 0.92rem; line-height: 1.45; margin-bottom: 0.4rem; }

.v2-extra-card {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--orange);
  padding: 1rem 1rem 1.05rem;
  margin: 0 0 0.8rem;
}

.v2-extra-grid { gap: 0.8rem; }

@media (min-width: 900px) {
  body.v2-guided .row.main-content {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 1.8rem;
    margin-left: 0;
    margin-right: 0;
  }

  body.v2-guided .v2-pages {
    flex: 0 0 232px;
    width: 232px;
    position: sticky;
    top: calc(var(--sticky-top) + 12px);
    max-height: calc(100vh - var(--sticky-top) - 28px);
    overflow: auto;
  }

  body.v2-guided #primary {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
  }
}

@media (max-width: 980px) {
  .v2-step { min-height: 52px; padding: 0.3rem 0.4rem; }
  .v2-step-label { font-size: 0.9rem; }
}

@media (max-width: 860px) {
  .v2-step-hint { display: none; }
  .v2-guide-bar { flex-direction: column; gap: 0.45rem; }
  .v2-guide-chapter { flex-basis: auto; }
  .v2-step { min-height: 48px; grid-template-columns: 22px minmax(0, 1fr) auto; }
  .v2-step-icon { width: 22px; height: 22px; }
  .v2-step-label { font-size: 0.82rem; }
}

@media (max-width: 899px) {
  .v2-page-toggle { display: flex; }
  body.v2-guided .v2-pages { display: none; }
  body.v2-pages-open .v2-pages {
    display: grid;
    position: fixed;
    top: var(--sticky-top);
    left: 0;
    right: 0;
    z-index: 940;
    max-height: min(62vh, 440px);
    overflow: auto;
    padding: 0.35rem 1rem 0.85rem;
    background: #f4f7f9;
    border-bottom: 3px solid var(--orange);
  }
  .v2-board { grid-template-columns: 1fr 1fr; }
  .v2-card-counts,
  .v2-card-more { margin-left: 0; }
}

@media (max-width: 640px) {
  .v2-paths,
  .v2-board { grid-template-columns: 1fr; }
  .v2-step-count,
  .v2-step-icon { display: none; }
  .v2-step {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: 0.4rem 0.15rem;
    justify-items: center;
    text-align: center;
  }
  .v2-step-label { font-size: 0.78rem; white-space: nowrap; }
}

html.v2-jump,
html.v2-jump body { visibility: hidden !important; }

.v2-rail {
  position: relative;
  z-index: 30;
  margin: 0.75rem;
  padding: 0.9rem 0.85rem 1rem;
  background: #f4f7f9;
  background-image: linear-gradient(180deg, #f8fafb 0%, #eef2f5 100%);
  border: 1px solid rgba(14, 38, 49, 0.14);
  box-shadow: 0 14px 32px rgba(14, 38, 49, 0.08);
}

.v2-rail-chapter {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  color: var(--ink) !important;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.25;
  text-decoration: none !important;
}

.v2-rail-chapter:hover { color: var(--orange-deep) !important; }

.v2-readpct {
  margin: 0.35rem 0 0.8rem;
  color: var(--orange-deep);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.v2-rail-part {
  position: relative;
  margin: 0 0 0.35rem;
  padding-left: 0.85rem;
}

.v2-rail-part::before {
  content: "";
  position: absolute;
  left: 0.22rem;
  top: 0.55rem;
  bottom: 0.2rem;
  width: 2px;
  background: linear-gradient(#f58220, rgba(245, 130, 32, 0.08));
}

.v2-rail-part-link {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 36px;
  color: var(--ink) !important;
  font-weight: 800;
  text-decoration: none !important;
}

.v2-rail-part .v2-step-icon { width: 26px; height: 26px; }

.v2-rail .v2-topic-no {
  flex: 0 0 auto;
  color: var(--orange-deep);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.v2-rail-part-link .v2-topic-no { min-width: 0.85rem; font-size: 0.92rem; }
.v2-rail-line {
  display: flex;
  align-items: flex-start;
  gap: 0.25rem;
}

.v2-rail-line > a { flex: 1 1 auto; min-width: 0; }

.v2-tick {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0.28rem 0.05rem 0 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(20, 40, 48, 0.34);
  opacity: 0.55;
  cursor: pointer;
}

.v2-rail-line:not(li) > .v2-tick { margin-top: 0.45rem; }

.v2-tick svg { display: block; width: 18px; height: 18px; }
.v2-tick circle { fill: none; stroke: currentColor; stroke-width: 1.4; }
.v2-tick path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; stroke-linejoin: miter; }

.v2-tick.is-read {
  color: #178a45;
  opacity: 1;
}

.v2-tick.is-read circle { fill: #178a45; stroke: #178a45; }
.v2-tick.is-read path { stroke: #fff; }

.v2-tick:hover { opacity: 1; }

.v2-rail-part.is-on .v2-rail-part-link { color: var(--orange-deep) !important; }

.v2-rail-part-link:hover {
  background: linear-gradient(90deg, rgba(245, 130, 32, 0.16), transparent 80%);
}

.v2-rail ol {
  list-style: none;
  margin: 0.1rem 0 0.55rem;
  padding: 0;
}

.v2-rail ol > li::before { content: none !important; }

.v2-rail li { margin: 0; }

.v2-rail ol a {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.28rem 0.45rem;
  border-left: 2px solid transparent;
  color: var(--ink) !important;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none !important;
}

.v2-rail ol a .v2-topic-no { min-width: 1.85rem; }
.v2-rail ol a span:last-child { min-width: 0; }

.v2-rail ol a:hover {
  background: linear-gradient(90deg, rgba(12, 92, 140, 0.1), transparent 85%);
}

.v2-rail ol a.is-current {
  border-left-color: #f58220;
  background: linear-gradient(90deg, rgba(245, 130, 32, 0.2), transparent 80%);
  font-weight: 800;
}

.v2-rail-toggle {
  display: none;
  width: min(var(--page), calc(100% - 32px));
  margin: 0.45rem auto;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(14, 38, 49, 0.2);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(255, 244, 232, 0.9));
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.v2-rail-toggle-now { color: var(--orange-deep); font-size: 0.82rem; }

.v2-part-section { scroll-margin-top: 88px; }
.v2-part-section + .v2-part-section {
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px dashed rgba(14, 38, 49, 0.2);
}

body.v2-guided { overflow-x: clip; }

body.v2-guided #primary .entry-content {
  position: relative;
  z-index: 2;
  max-width: 48rem;
  margin: 0.75rem 0.75rem 0.75rem 0;
  padding: 1rem 1.15rem 1.6rem;
  background: #f7fafc;
  box-shadow: 0 14px 32px rgba(14, 38, 49, 0.06);
  overflow-x: auto;
}

body.v2-guided .panel-layout,
body.v2-guided .panel-grid,
body.v2-guided .panel-grid-cell,
body.v2-guided .so-panel,
body.v2-guided .textwidget,
body.v2-guided .siteorigin-panels-stretch {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  left: auto !important;
  right: auto !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.eman-image,
.wp-caption {
  max-width: min(100%, 36rem);
  margin-left: auto;
  margin-right: auto;
}

.entry-content img,
.eman-image img,
.wp-caption img {
  max-width: 100%;
  width: auto;
  height: auto !important;
  object-fit: contain;
}

.entry-content iframe {
  max-width: 100%;
}

.entry-content iframe[src*="youtube"],
.entry-content iframe[src*="youtu"],
.entry-content video,
.entry-content .wp-video {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  background: #0e2631;
  position: relative;
}

.entry-content .mejs-container {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
}

.entry-content .mejs-container .mejs-inner,
.entry-content .mejs-mediaelement,
.entry-content .mejs-layer,
.entry-content .mejs-overlay {
  width: 100% !important;
  height: 100% !important;
}

.eman-image {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.eman-image:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(14, 38, 49, 0.12);
}

.v2-card-photo { aspect-ratio: 16 / 9; max-height: none; margin: 0; border: 0; }
.v2-card-photo img { object-fit: cover; width: 100%; height: 100%; }

.v2-card-counts,
.v2-card-more { margin-left: 0.95rem; margin-right: 0.95rem; }

.v2-card-top { padding: 0.75rem 0.95rem 0; }

.v2-card:hover {
  background: #fff;
  transform: translateY(-6px);
  box-shadow: 0 20px 42px rgba(14, 38, 49, 0.14);
  border-color: rgba(245, 130, 32, 0.7);
}

.v2-card-photo { overflow: hidden; }
.v2-card-photo img { transition: transform 0.45s ease; }
.v2-card:hover .v2-card-photo img { transform: scale(1.045); }

.v2-card-top h3::after {
  content: "→";
  display: inline-block;
  margin-left: 0.4rem;
  color: var(--orange);
  font-weight: 800;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.v2-card:hover .v2-card-top h3::after {
  opacity: 1;
  transform: none;
}

.v2-card-counts b {
  color: var(--orange-deep);
  margin-right: 0.2rem;
  font-variant-numeric: tabular-nums;
}

.v2-card-step h4 .v2-topic-no,
.v2-card-step li .v2-topic-no {
  display: inline-block;
  min-width: 1.7rem;
  margin-right: 0.35rem;
  color: var(--orange-deep);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.v2-card-step ol {
  list-style: none;
  margin: 0.15rem 0 0.55rem;
  padding: 0;
}

.v2-card-step li {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
  margin: 0.12rem 0;
}

.v2-card-step li .v2-topic-no { min-width: 2.15rem; }

@media (min-width: 820px) {
  body.v2-guided #content > .container {
    max-width: 1220px !important;
    width: min(1220px, calc(100% - 16px)) !important;
  }

  body.v2-guided .row.main-content {
    display: grid !important;
    grid-template-columns: clamp(280px, calc(100% - 48rem - 1.8rem), 420px) minmax(0, 48rem);
    width: min(1220px, calc(100% - 24px));
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
    gap: 1.8rem;
    align-items: start;
  }

  body.v2-guided .v2-rail {
    position: sticky;
    z-index: 30;
    width: 100%;
    max-width: 420px;
    top: calc(var(--header-h) + 14px);
    max-height: calc(100vh - var(--header-h) - 28px);
    overflow: auto;
  }

  body.v2-guided #primary {
    width: auto;
    max-width: 48rem;
    min-width: 0;
  }

  .v2-rail-toggle { display: none !important; }
}

@media (max-width: 819px) {
  body.v2-guided .row.main-content { display: block; }
  .v2-rail-toggle { display: flex; }
  body.v2-guided .v2-rail { display: none; }
  body.v2-rail-open .v2-rail {
    display: block;
    position: fixed;
    z-index: 960;
    top: var(--sticky-top);
    left: 0;
    right: 0;
    bottom: 0;
    overflow: auto;
  }
}

.v2-board { display: none !important; }

.v2-nextpart {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 1rem;
  row-gap: 0.15rem;
  width: min(100%, 26rem);
  margin: 1.4rem auto 0.4rem;
  padding: 0.95rem 1.15rem 1rem;
  background: #fff;
  border-left: 4px solid #f58220;
  box-shadow: 0 14px 32px rgba(14, 38, 49, 0.07);
  color: var(--ink) !important;
  text-decoration: none !important;
  transition: transform 0.2s ease;
}

.v2-nextpart small {
  grid-column: 1;
  grid-row: 1;
  color: var(--orange-deep);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.v2-nextpart span {
  grid-column: 1;
  grid-row: 2;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.15;
}

.v2-nextpart::after,
.v2-pager .is-next::after {
  width: 2.15rem;
  height: 2.15rem;
  background-color: #f58220;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M4 16h20M16 8l8 8-8 8' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E") center / 1.7rem 1.7rem no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M4 16h20M16 8l8 8-8 8' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E") center / 1.7rem 1.7rem no-repeat;
  transition: transform 0.2s ease;
}

.v2-nextpart::after {
  content: "";
  grid-column: 2;
  grid-row: 1 / span 2;
}

.v2-nextpart:hover { transform: translateX(6px); }
.v2-nextpart:hover::after,
.v2-pager .is-next:hover::after { transform: translateX(5px); }

.v2-deck {
  width: min(100%, 36rem);
  height: auto;
  margin: 1rem auto;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(14, 38, 49, 0.12);
  box-shadow: 0 16px 36px rgba(14, 38, 49, 0.07);
}

.v2-deck-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.45rem 0.55rem;
  border-bottom: 1px solid rgba(14, 38, 49, 0.1);
  background: linear-gradient(90deg, #fff, #fff6ee);
}

.v2-deck-bar button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(14, 38, 49, 0.2);
  background: #fff;
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.v2-deck-bar button:hover:not(:disabled) { background: #f58220; color: #142830; border-color: #f58220; }
.v2-deck-bar button:disabled { opacity: 0.35; cursor: default; }
.v2-deck-bar span { font-weight: 800; }
.v2-deck-stage { flex: none; overflow: visible; padding: 0.7rem 0.85rem 0.85rem; }
.v2-deck-slide { margin: 0 !important; }

.entry-content .eman-exercise-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.entry-content .eman-exercise-title > h2 { margin: 0 !important; }
.entry-content .eman-exercise-title img,
.entry-content .eman-accordion-icon,
.entry-content .eman-accordion-arrow,
.entry-content .headline-play-image {
  width: auto !important;
  height: auto !important;
  max-width: 28px !important;
  max-height: 28px !important;
  object-fit: contain;
}
.entry-content .eman-exercise-assignment { margin: 0.35rem 0 0; }
.entry-content .eman-exercise-assignment p { margin: 0; }

.v2-quiz .question,
.v2-quiz .question-selection { margin: 0 !important; }
.v2-quiz .question-submit { display: none !important; }
.v2-quiz br { display: none; }
.v2-quiz fieldset { border: 0; margin: 0; padding: 0; min-width: 0; width: 100%; }
.v2-quiz legend { width: 100%; padding: 0; margin: 0; }
.v2-quiz .eman-image {
  width: max-content;
  max-width: min(100%, 26rem);
  margin: 0 auto 0.55rem;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.v2-quiz .eman-image img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 220px;
  height: auto !important;
  margin: 0 auto;
}
.v2-quiz figcaption {
  padding: 0.35rem 0 0;
  text-align: center;
}
.v2-quiz figcaption a { margin-left: 0.4rem; }

.v2-quiz label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.4rem 0;
  padding: 0.6rem 0.75rem;
  border: 1.5px solid rgba(14, 38, 49, 0.16);
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}

.v2-quiz label:hover { border-color: #f58220; }
.v2-quiz input[type="radio"] {
  appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 2px solid #142830;
  border-radius: 50%;
  background: #fff;
  flex: none;
}
.v2-quiz input[type="radio"]:checked { background: #f58220; box-shadow: inset 0 0 0 3px #fff; }
.v2-quiz label.is-ok { border-color: #2f7d45; background: #e7f2e4; }
.v2-quiz label.is-bad { border-color: #c4553a; background: #fdece6; }
.v2-quiz label.is-miss { border-color: #2f7d45; background: #f4faf2; }
.v2-quiz label.is-bad .v2-mark { color: #7a2e16; }
.v2-quiz label.is-ok .v2-mark,
.v2-quiz label.is-miss .v2-mark { color: #1d4a28; }
.v2-quiz .v2-mark { margin-left: auto; font-weight: 800; font-size: 1.05rem; line-height: 1; }

.v2-checks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 0.8rem 0 1.1rem;
  align-items: start;
}

.v2-checks.is-row { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.v2-check {
  margin: 0 !important;
  border: 1px solid rgba(14, 38, 49, 0.12);
  border-top: 3px solid var(--orange);
  background: #fff;
  overflow: hidden;
}

.v2-check > .d-flex { cursor: default; background: transparent; }
.v2-check .eman-accordion-header {
  background: transparent !important;
  min-height: 0;
  padding: 0.55rem 0.75rem 0;
}
.v2-check .eman-accordion-icon,
.v2-check .eman-accordion-arrow,
.v2-check .eman-accordion-panel-close { display: none !important; }
.v2-check .eman-accordion-title {
  color: var(--orange-deep) !important;
  margin: 0 !important;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.v2-check > .eman-accordion-panel,
.v2-check .eman-accordion-panel {
  max-height: none !important;
  overflow: visible !important;
  height: auto !important;
  background: transparent;
}
.v2-check .v2-deck {
  width: 100%;
  margin: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}
.v2-check .v2-deck-bar { display: none; }
.v2-check .v2-deck-stage { padding: 0.45rem 0.75rem 0.75rem; }
.v2-check .question-submit { display: none !important; }
.v2-check .question-result-message { display: none; }
.v2-check .question-result-message.is-ok,
.v2-check .question-result-message.is-bad { display: block; margin: 0.65rem 0 0; font-weight: 800; }
.v2-check-go {
  align-self: flex-start;
  margin: 0.75rem 0 0.15rem;
  padding: 0.48rem 0.95rem;
  border: 0;
  background: #f58220;
  color: #142830;
  font-weight: 800;
  cursor: pointer;
}
.v2-check-go:hover { background: #d96c12; color: #fff; }
.v2-check .question,
.v2-check .question-selection { margin: 0 !important; }
.v2-check fieldset { border: 0; margin: 0; padding: 0; min-width: 0; width: 100%; }
.v2-check legend,
.v2-check .question-assignment {
  padding: 0 0 0.45rem !important;
  font-weight: 800;
  line-height: 1.35;
}
.v2-check .eman-image {
  width: 100%;
  max-width: 100%;
  margin: 0 0 0.45rem;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
}
.v2-check .eman-image img { max-height: 140px; width: auto; max-width: 100%; }

@media (max-width: 720px) {
  .v2-checks.is-row { grid-template-columns: 1fr; }
}
.v2-quiz .question-result-message { margin: 0.7rem 0 0; font-weight: 800; text-align: left !important; }
.v2-quiz .question-result-message.is-ok { color: #1d4a28; }
.v2-quiz .question-result-message.is-bad { color: #7a2e16; }

.entry-content ol,
.entry-content ul { margin: 0.4rem 0 0.9rem; padding-left: 0.2rem; }
.entry-content ul { list-style: disc; padding-left: 1.25rem; }
.entry-content ul > li { position: static !important; margin: 0.28rem 0; }
.entry-content ul > li::before { content: none !important; }

.entry-content ol {
  counter-reset: list;
  list-style: none;
}
.entry-content ol > li {
  position: relative !important;
  list-style: none !important;
  display: block;
  margin: 0.28rem 0;
  padding-left: 1.9rem;
}
.entry-content ol > li::before {
  counter-increment: list;
  content: counter(list) ") " !important;
  position: absolute;
  left: 0;
  width: 1.6rem;
  font-weight: 700;
  text-align: right;
}
.entry-content ol[type="a"] > li::before,
.entry-content ol[type="A"] > li::before {
  content: counter(list, lower-alpha) ") " !important;
}
.entry-content ol[type="i"] > li::before {
  content: counter(list, lower-roman) ") " !important;
}
.entry-content ol[type="I"] > li::before {
  content: counter(list, upper-roman) ") " !important;
}
.entry-content .v2-card-step ol,
.entry-content .v2-card-step ol > li {
  padding-left: 0;
}
.entry-content .v2-card-step ol > li::before {
  content: none !important;
  counter-increment: none;
}
.entry-content b,
.entry-content strong { font-weight: 800; }

.v2-extra-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.v2-extra-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  object-position: center;
}

.v2-extra-card strong {
  display: block;
  padding: 0.45rem 0.6rem 0.55rem;
  font-size: 0.95rem;
  font-weight: 750;
  line-height: 1.25;
}

.v2-extras .v2-catalog-hero {
  display: block;
  margin: 0.35rem 0 0.15rem;
  padding: 0;
}

.v2-extras .v2-extra-block {
  margin: 0.65rem 0 0.1rem;
  padding-top: 0.4rem;
}

.v2-extras .v2-extra-block h2 {
  margin: 0 0 0.3rem !important;
  font-size: 1.05rem !important;
}

.v2-extras .v2-extra-block > p {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
}

.v2-extra-grid {
  grid-template-columns: repeat(auto-fill, minmax(168px, 220px));
  gap: 0.65rem 0.7rem;
  justify-content: start;
}

@media (max-width: 420px) {
  .v2-extra-grid { grid-template-columns: 1fr; }
}

.headline-container > a::after { content: none; }

.v2-listen {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: min(100%, 34rem);
  margin: 0.15rem 0 0.85rem;
  padding: 0.4rem 0.55rem 0.4rem 0.4rem;
  background: #fff;
  border: 1px solid rgba(14, 38, 49, 0.14);
  box-shadow: 0 8px 22px rgba(14, 38, 49, 0.05);
}

.v2-listen-btn {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #0e2631 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23fff' d='M9 7.2v9.6l8-4.8z'/></svg>") center / 18px 18px no-repeat;
  cursor: pointer;
  box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.18);
}

.v2-listen-btn.is-on {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23fff' d='M8 6h3v12H8zm5 0h3v12h-3z'/></svg>");
  background-color: #f58220;
  box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.28);
}

.v2-listen-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.v2-listen-name {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.v2-listen-wave {
  flex: 1 1 auto;
  width: 100%;
  height: 36px;
  cursor: pointer;
  touch-action: none;
}

.v2-listen-time {
  flex: 0 0 auto;
  display: flex;
  gap: 0.3rem;
  min-width: 5.6rem;
  justify-content: flex-end;
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ink-soft);
}

.v2-listen-time b { color: var(--ink); font-weight: 800; }
.v2-listen-time i { font-style: normal; }
.v2-listen-time b::after { content: " / "; color: var(--ink-soft); font-weight: 700; }

.v2-listen-sticky {
  position: fixed;
  z-index: 980;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom));
  width: min(36rem, calc(100% - 24px));
  margin: 0;
  transform: translateX(-50%);
  background: #0e2631;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(8, 18, 24, 0.28);
}

.v2-listen-sticky .v2-listen-time,
.v2-listen-sticky .v2-listen-time b::after { color: rgba(255, 248, 240, 0.62); }
.v2-listen-sticky .v2-listen-time b { color: #fff; }

/* ---------- homepage invite ---------- */

body.v2-home .v2-hero { align-items: center; gap: 2.2rem; }
body.v2-home .v2-hero-media { min-height: 420px; }

.v2-hero-lead {
  max-width: 36ch;
  margin: 0 0 1.05rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.5;
}

.v2-hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem 1.6rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none !important;
}

.v2-hero-facts li {
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 700;
  list-style: none !important;
}

.v2-hero-facts li::marker { content: ""; }

.v2-hero-facts b {
  display: block;
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1.2;
}

body.v2-home .v2-paths {
  display: block;
  margin: 0.2rem 0 1.8rem;
  border: 0;
}

.v2-path-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.v2-path-tab {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  margin: 0;
  padding: 0.8rem 0.75rem;
  border: 1px solid rgba(14, 38, 49, 0.12);
  border-bottom: 3px solid transparent;
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.v2-path-tab small {
  display: block;
  color: var(--orange-deep);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.v2-path-tab strong { display: block; font-size: 1.02rem; line-height: 1.2; }

.v2-path-num {
  flex: 0 0 auto;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #0e2631;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 800;
}

.v2-path-tab.is-on {
  background: #fff;
  border-bottom-color: var(--orange);
  box-shadow: 0 12px 26px rgba(14, 38, 49, 0.08);
}

.v2-path-tab.is-on .v2-path-num { background: var(--orange); color: #142830; }

.v2-path-panel { margin-top: 0.7rem; }

body.v2-home .v2-path-card {
  max-width: none;
  margin: 0;
  padding: 1.15rem 1.25rem 1.25rem;
  background: #fff;
  border: 1px solid rgba(14, 38, 49, 0.12);
  border-top: 3px solid var(--accent, var(--orange));
  box-shadow: 0 14px 28px rgba(14, 38, 49, 0.06);
}

body.v2-home .v2-path-card .v2-path-index,
body.v2-home .v2-path-card .v2-step-hint { display: none; }

body.v2-home .v2-path-card h2 { margin-top: 0 !important; }

.v2-home-picks { margin: 0.2rem 0 1.8rem; }

.v2-home-picks h2 {
  margin: 0.15rem 0 0.85rem !important;
  font-size: 1.55rem !important;
}

.v2-home-pick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.v2-home-pick {
  position: relative;
  display: block;
  min-height: 190px;
  overflow: hidden;
  color: #fff !important;
  text-decoration: none !important;
  border: 1px solid rgba(14, 38, 49, 0.22);
}

.v2-home-pick img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.v2-home-pick span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 2.2rem 0.8rem 0.75rem;
  background: linear-gradient(transparent, rgba(8, 18, 24, 0.9));
}

.v2-home-pick small {
  display: block;
  color: #ffc48a;
  font-size: 0.72rem;
  font-weight: 800;
}

.v2-home-pick strong { display: block; font-size: 1.05rem; line-height: 1.25; }
.v2-home-pick:hover img { transform: scale(1.06); }

@media (max-width: 900px) {
  body.v2-home .v2-hero-media { min-height: 240px; }
  .v2-path-bar,
  .v2-home-pick-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .v2-path-bar,
  .v2-home-pick-grid { grid-template-columns: 1fr; }
}
