:root {
  --red: #e03127;
  --blue: #2878ac;
  --pink: #ec61a0;
  --yellow: #f2d25c;
  --green: #00694e;
  --ink: #111827;
  --muted: #4b5563;
  --line: #d6dbe3;
  --soft: #f6f8fb;
  --paper: #ffffff;
  --focus: #0f62fe;
  --shadow: 0 16px 40px rgba(17, 24, 39, 0.12);
  --radius: 8px;
  --header-height: 74px;
  --plan-slot-width: 210px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scrollbar-color: var(--blue) #e5e7eb;
  scrollbar-width: auto;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--soft);
  color: var(--ink);
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

* {
  scrollbar-color: var(--blue) #e5e7eb;
  scrollbar-width: auto;
}

*::-webkit-scrollbar {
  width: 14px;
  height: 14px;
}

*::-webkit-scrollbar-track {
  background: #e5e7eb;
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  background: var(--blue);
  border: 3px solid #e5e7eb;
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--green);
}

body.high-contrast {
  --ink: #000000;
  --muted: #111111;
  --line: #000000;
  --soft: #ffffff;
  --paper: #ffffff;
  --focus: #ffbf00;
  --shadow: 0 0 0 2px #000000;
  background: #ffffff;
}

body.high-contrast * {
  scrollbar-color: #000000 #ffffff;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: #005c99;
  text-decoration-thickness: 2px;
}

a:hover {
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
.button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.56rem 0.85rem;
  text-decoration: none;
  font-weight: 700;
}

button:hover,
.button:hover {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(40, 120, 172, 0.12);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.button-primary,
button.primary {
  background: var(--red);
  border-color: var(--red);
  color: #ffffff;
}

.button-secondary,
button.secondary {
  background: #e9f4fb;
  border-color: #9bc7df;
}

.icon-button {
  width: 42px;
  padding: 0;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header,
.app-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-header-inner,
.app-header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.brand img {
  display: block;
  max-height: 44px;
  width: auto;
}

.brand .brand-text {
  font-weight: 700;
  font-size: 1.15rem;
}

.header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.header-actions [data-action="contrast"] {
  display: none;
}

.index-header-inner {
  gap: 1.2rem;
}

.index-header-inner .brand,
.app-header-inner .brand {
  flex: 0 1 auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.2rem;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7f9fc;
}

.site-nav a {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: calc(var(--radius) - 1px);
  color: var(--ink);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.85rem;
  text-decoration: none;
  font-weight: 700;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: #ffffff;
  border-color: #9bc7df;
}

.site-nav a[aria-current="page"] {
  background: var(--green);
  border-color: var(--green);
  color: #ffffff;
}

.hero {
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.78), rgba(0, 105, 78, 0.24)),
    url("../assets/hero/reabcd-hero.png") center / cover;
  color: #ffffff;
  min-height: 520px;
  display: flex;
  align-items: center;
  position: relative;
}

.hero::after {
  content: none;
}

.hero-content {
  width: min(780px, 100%);
  padding: 5rem 0 6rem;
  position: relative;
  z-index: 1;
}

.kicker {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(3.2rem, 8vw, 6.4rem);
  line-height: 0.98;
  margin: 0 0 1rem;
}

.hero p {
  max-width: 680px;
  font-size: 1.25rem;
  margin: 0 0 1.6rem;
}

.hero .button-primary {
  background: #ffffff;
  border-color: #ffffff;
  color: #111827;
}

.index-hero {
  min-height: 470px;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.62), rgba(0, 105, 78, 0.18)),
    url("../assets/hero/reabcd-hero.png") center / cover;
}

.index-hero .hero-content {
  padding: 5.6rem 0 6.2rem;
}

.index-hero .kicker,
.index-hero h1,
.index-hero p {
  text-shadow: 0 2px 12px rgba(17, 24, 39, 0.35);
}

.index-hero h1 {
  font-size: clamp(4rem, 9vw, 7.4rem);
}

.section {
  padding: 3.8rem 0;
}

.section:nth-of-type(even) {
  background: var(--paper);
}

.section h2,
.panel-title {
  margin: 0 0 1rem;
  line-height: 1.18;
}

body[data-page="index"] .section h2 {
  font-size: 3.2rem;
  line-height: 1.08;
}

.section-lead {
  max-width: 1120px;
  font-size: 1.08rem;
}

.accent-red { color: var(--red); }
.accent-blue { color: var(--blue); }
.accent-green { color: var(--green); }
.accent-pink { color: var(--pink); }
.accent-yellow { color: #d6aa15; }

.method-section {
  background: #ffffff;
}

.method-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.95fr);
  gap: 3rem;
  align-items: start;
}

.method-copy {
  font-size: 1.05rem;
}

.method-copy ul {
  margin-top: 0.4rem;
}

.method-image {
  margin: 0;
}

.method-image img {
  display: block;
  width: 100%;
  border-radius: 0;
}

.method-info-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.method-info-grid article {
  min-height: 100%;
}

.method-info-grid h2 {
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  line-height: 1.08;
}

.method-info-grid p {
  max-width: 58ch;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.learning-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.learning-type-item,
.info-item,
.analytics-card,
.warning-list,
.storage-note {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

.learning-type-item {
  border-left: 12px solid var(--type-color, var(--blue));
}

.learning-section {
  background: #f1f3f6;
}

.index-learning-grid {
  margin-top: 2.4rem;
  gap: 2rem;
}

.index-learning-grid .learning-type-item {
  border: 1px solid rgba(17, 24, 39, 0.14);
  border-left: 13px solid var(--type-color, var(--blue));
  background: var(--type-bg, var(--paper));
  padding: 1.2rem;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.06);
}

.index-learning-grid .learning-type-item h3 {
  margin-top: 0;
}

.framework-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem 4rem;
}

.framework-card-intro {
  margin-bottom: 3rem;
}

.framework-card-intro h2 {
  max-width: 900px;
  margin: 0 0 1.4rem;
}

.example-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.example-card-figure {
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.06);
}

.example-card-figure img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #ffffff;
}

.example-card-figure figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.lang-image.lang-en {
  display: none;
}

html[lang="en"] .lang-image.lang-sl {
  display: none;
}

html[lang="en"] .lang-image.lang-en {
  display: block;
}

.framework-grid article {
  max-width: 560px;
}

.how-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 2rem;
  align-items: center;
}

.how-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.how-list li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  counter-increment: steps;
}

.how-list li:nth-child(1) { --step-color: var(--red); }
.how-list li:nth-child(2) { --step-color: var(--blue); }
.how-list li:nth-child(3) { --step-color: var(--pink); }
.how-list li:nth-child(4) { --step-color: #d6aa15; }
.how-list li:nth-child(5) { --step-color: var(--green); }
.how-list li:nth-child(6) { --step-color: var(--red); }

.how-list li::before {
  content: counter(steps) ".";
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--step-color, var(--red));
}

.how-list strong {
  display: block;
  margin: 0.35rem 0 0.45rem;
  font-size: 1.02rem;
  line-height: 1.25;
}

.how-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.app-preview {
  margin: 0;
}

.video-placeholder-frame {
  width: min(100%, 460px);
  aspect-ratio: 16 / 9;
  margin-inline: auto;
  border: 1px dashed rgba(40, 120, 172, 0.5);
  border-left: 10px solid var(--blue);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(233, 244, 251, 0.96), rgba(255, 248, 223, 0.78)),
    var(--paper);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1rem;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.18);
}

.video-placeholder-icon {
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 999px;
  background: var(--red);
  position: relative;
  box-shadow: 0 10px 24px rgba(224, 49, 39, 0.22);
}

.video-placeholder-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-35%, -50%);
  width: 0;
  height: 0;
  border-top: 0.9rem solid transparent;
  border-bottom: 0.9rem solid transparent;
  border-left: 1.35rem solid #ffffff;
}

.video-placeholder-frame p {
  max-width: 360px;
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.authors-section {
  background: #ffffff;
}

.authors-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 2rem;
  align-items: end;
}

.authors-copy {
  max-width: 760px;
}

.authors-list {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.authors-list li {
  margin: 0.15rem 0;
}

.authors-figure {
  margin: 1.2rem 0 0;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
}

.authors-figure img {
  display: block;
  width: min(100%, 748px);
}

.authors-origin {
  max-width: 560px;
  font-size: 1.05rem;
}

.reimagined-strip {
  background: #ffffff;
  color: #ffffff;
  text-align: center;
}

.reimagined-title {
  background: var(--red);
  color: #ffffff;
  font-family: Arial, sans-serif;
  font-size: clamp(1.25rem, 2.7vw, 2.35rem);
  letter-spacing: 0;
  font-weight: 900;
  line-height: 1;
  padding: 0.9rem 1rem;
  text-transform: uppercase;
}

.reimagined-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.reimagined-item {
  min-height: clamp(140px, 15vw, 220px);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: clamp(0.9rem, 2vw, 1.6rem) 0.75rem;
  isolation: isolate;
}

.reimagined-item img {
  position: absolute;
  left: 50%;
  top: 48%;
  z-index: 0;
  width: auto;
  height: 72%;
  max-width: 72%;
  transform: translate(-50%, -50%);
  filter: brightness(0) invert(1);
  opacity: 0.72;
  pointer-events: none;
}

.reimagined-item span {
  display: block;
  position: relative;
  z-index: 1;
  max-width: 100%;
  font-family: Arial, sans-serif;
  font-size: clamp(1.2rem, 2.7vw, 2.35rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0;
  color: #ffffff;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 8px rgba(17, 24, 39, 0.28);
}

.reimagined-active { background: var(--blue); }
.reimagined-blended { background: var(--pink); }
.reimagined-collaborative { background: var(--yellow); }
.reimagined-design { background: var(--green); }

.reimagined-collaborative span {
  color: #ffffff;
}

.reimagined-active img {
  height: 74%;
}

.reimagined-blended img {
  height: 72%;
}

.reimagined-collaborative img {
  height: 70%;
}

.reimagined-design img {
  height: 72%;
}

.site-footer {
  background: #111827;
  color: #ffffff;
  padding: 2rem 0;
}

.site-footer a {
  color: #ffffff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 0.75rem;
}

.index-footer {
  background: #ffffff;
  color: var(--ink);
  padding: 0 0 2rem;
}

.index-footer a {
  color: #005c99;
}

.index-footer .footer-grid {
  padding-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(240px, 0.8fr) minmax(220px, 0.6fr);
  gap: 2rem;
  align-items: start;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.footer-logo-row img {
  max-height: 58px;
  width: auto;
}

.index-footer address {
  font-style: normal;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto auto 1fr;
}

.app-nav {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.tabs {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  padding: 0.35rem;
  margin-block: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7f9fc;
}

.tab-button {
  min-height: 40px;
  border-color: transparent;
  border-radius: calc(var(--radius) - 1px);
  background: transparent;
  padding-inline: 0.85rem;
}

.tab-button[aria-selected="true"] {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(40, 120, 172, 0.18);
}

.subpage-main {
  min-height: 48vh;
}

.page-intro {
  background: #ffffff;
}

.page-intro .container {
  max-width: 920px;
  margin-inline: auto;
}

.page-intro h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 1;
}

.page-intro p:not(.kicker) {
  max-width: 720px;
  font-size: 1.12rem;
  color: var(--muted);
}

/* Method page */
.method-page {
  background: var(--soft);
}

.method-page h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
}

.method-page h3 {
  margin: 0 0 0.65rem;
  line-height: 1.2;
}

.method-page p {
  margin-top: 0;
}

.method-hero {
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.82), rgba(0, 105, 78, 0.52)),
    url("../assets/method/example_reabcd.jpg") center / cover;
  color: #ffffff;
  border-bottom: 0;
  padding: 4.5rem 0 4.8rem;
}

.method-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.method-hero-copy h1 {
  max-width: 840px;
  margin: 0 0 1.2rem;
  font-size: clamp(2.7rem, 6vw, 5.5rem);
  line-height: 0.98;
}

.method-hero-copy p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.12rem;
}

.method-hero .kicker,
.method-hero-copy h1,
.method-hero-copy p {
  text-shadow: 0 2px 14px rgba(17, 24, 39, 0.38);
}

.method-hero .button-secondary {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.95);
}

.method-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

#zakaj-metoda {
  background: #ffffff;
}

.method-why-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
  grid-template-areas:
    "title logo"
    "lead logo";
  gap: 0.75rem 2.5rem;
  align-items: center;
  margin-bottom: 1.6rem;
}

.method-why-intro h2 {
  grid-area: title;
  margin-bottom: 0;
}

.method-why-lead {
  grid-area: lead;
  max-width: 780px;
  margin: 0;
}

.method-why-logo {
  grid-area: logo;
  justify-self: end;
  margin: 0;
}

.method-why-logo img {
  width: min(100%, 330px);
  display: block;
}

.method-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.6rem;
}

.method-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.method-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.method-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 1.35rem;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.06);
}

.method-card p:last-child {
  margin-bottom: 0;
}

.method-card-large {
  padding: 1.65rem;
}

.method-components-section .method-card {
  border-left: 0.55rem solid var(--red);
}

.method-components-section .method-card:nth-child(2) {
  border-left-color: var(--blue);
}

.method-components-section .method-card:nth-child(3) {
  border-left-color: var(--green);
}

.accent-card-red,
.accent-card-blue,
.accent-card-green {
  border-left: 0.55rem solid var(--red);
}

.accent-card-blue {
  border-left-color: var(--blue);
}

.accent-card-green {
  border-left-color: var(--green);
}

.accent-card-yellow {
  border-left: 0.55rem solid var(--yellow);
}

.method-process-section,
.method-card-reading-section,
.method-framework-section,
.method-not-section {
  background: #ffffff;
}

.method-process {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 2rem 0 1.2rem;
}

.method-process li {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7f9fc;
  padding: 1rem;
  min-height: 124px;
}

.method-process li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -0.75rem;
  width: 0.75rem;
  height: 2px;
  background: var(--blue);
}

.method-process span,
.method-timeline span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  min-width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--blue);
  color: #ffffff;
  font-weight: 700;
}

.method-process strong {
  display: block;
  margin-top: 0.8rem;
  font-size: 1.04rem;
}

.method-note {
  max-width: 850px;
  color: var(--muted);
  font-size: 1.05rem;
}

.method-image-block {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.method-image-block.reverse {
  grid-template-columns: minmax(300px, 0.92fr) minmax(0, 1.08fr);
}

.method-image-block figure {
  margin: 0;
}

.method-image-block img,
.method-visual-card img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #ffffff;
}

.method-checklist {
  display: grid;
  gap: 0.45rem;
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.method-learning-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}

.method-learning-grid article {
  border: 1px solid rgba(17, 24, 39, 0.14);
  border-left: 9px solid var(--type-color);
  border-radius: var(--radius);
  background: var(--type-bg, #ffffff);
  padding: 1.2rem;
}

.method-learning-grid p {
  color: #233044;
  margin-bottom: 0;
}

.section-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 1.5rem;
}

.learning-types-page .page-intro {
  background: #f6f9fc;
}

.learning-types-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 430px;
  padding: clamp(4rem, 9vw, 7rem) 0;
  color: #ffffff;
  background-image:
    linear-gradient(90deg, rgba(13, 48, 86, 0.88) 0%, rgba(16, 76, 125, 0.76) 45%, rgba(16, 76, 125, 0.18) 100%),
    url("../assets/hero/hero-learning-types.png");
  background-position: center;
  background-size: cover;
}

.learning-types-hero .container {
  position: relative;
  z-index: 1;
}

.learning-types-hero .kicker,
.learning-types-hero h1,
.learning-types-hero p {
  color: #ffffff;
}

.learning-types-hero h1 {
  max-width: 800px;
  font-size: clamp(3rem, 6vw, 5.6rem);
  line-height: 1.04;
  text-wrap: balance;
}

.learning-types-hero p:not(.kicker) {
  max-width: 790px;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  font-weight: 700;
  line-height: 1.55;
}

.bloom-page .learning-types-hero {
  background-image:
    linear-gradient(90deg, rgba(29, 30, 44, 0.82) 0%, rgba(45, 54, 79, 0.68) 46%, rgba(45, 54, 79, 0.22) 100%),
    url("../assets/hero/hero-bloom.png");
  background-position: center;
}

.aias-page .learning-types-hero {
  background-image:
    linear-gradient(90deg, rgba(18, 48, 72, 0.86) 0%, rgba(33, 82, 110, 0.72) 46%, rgba(33, 82, 110, 0.2) 100%),
    url("../assets/hero/hero-aias.png");
  background-position: center;
}

.ctr-page .learning-types-hero {
  background-image:
    linear-gradient(90deg, rgba(16, 40, 66, 0.86) 0%, rgba(0, 105, 78, 0.72) 48%, rgba(0, 105, 78, 0.2) 100%),
    url("../assets/hero/hero-sdg.png");
  background-position: center;
}

.samr-page .learning-types-hero {
  background-image:
    linear-gradient(90deg, rgba(15, 23, 42, 0.84) 0%, rgba(40, 120, 172, 0.72) 48%, rgba(40, 120, 172, 0.22) 100%),
    url("../assets/hero/hero-SAMR.png");
  background-position: center;
}

.digital-model-page .learning-types-hero {
  background-image:
    linear-gradient(90deg, rgba(15, 23, 42, 0.86) 0%, rgba(0, 105, 78, 0.74) 48%, rgba(0, 105, 78, 0.18) 100%),
    url("../assets/hero/dig-ucni-model-1.png");
  background-position: center;
}

.learning-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.bloom-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}

.learning-info-card {
  --accent: var(--red);
  border: 1px solid var(--line);
  border-left: 9px solid var(--accent);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.07);
  color: #0f172a;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.learning-info-card.accent-blue {
  --accent: var(--blue);
}

.learning-info-card.accent-green {
  --accent: var(--green);
}

.learning-info-card h2 {
  color: var(--accent);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.learning-info-card h3 {
  color: var(--accent);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.learning-info-card p {
  color: #0f172a;
}

.bloom-overview-grid .learning-info-card p {
  color: #0f172a !important;
}

.bloom-role-section {
  background: #f6f9fc;
}

.bloom-role-card {
  border: 1px solid var(--line);
  border-left: 9px solid var(--blue);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.07);
  padding: clamp(1.25rem, 3vw, 2.2rem);
}

.bloom-level-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}

.bloom-level-card {
  position: relative;
  border: 1px solid rgba(40, 120, 172, 0.35);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.06);
  padding: 1.25rem 1.25rem 1.25rem 4.25rem;
}

.bloom-level-number {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  display: inline-grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #ffffff;
  font-weight: 900;
}

.bloom-level-card h3 {
  margin-bottom: 0.2rem;
  font-size: 1.25rem;
}

.bloom-level-term {
  margin-bottom: 0.7rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
}

.bloom-pyramid-section {
  padding-top: 0;
}

.bloom-pyramid-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.07);
  padding: clamp(1.25rem, 3vw, 2.2rem);
}

.bloom-pyramid {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  margin-top: 1.5rem;
}

.bloom-pyramid-row {
  width: var(--row-width);
  max-width: 100%;
  border-radius: 0.35rem;
  color: #0f172a;
  padding: 0.9rem 1rem;
  text-align: center;
}

.bloom-pyramid-row strong,
.bloom-pyramid-row span {
  display: block;
}

.bloom-pyramid-row strong {
  text-transform: uppercase;
}

.bloom-pyramid-row span {
  margin-top: 0.25rem;
  font-size: 0.92rem;
  font-weight: 700;
}

.bloom-create {
  --row-width: 34%;
  background: #f0d8f8;
}

.bloom-evaluate {
  --row-width: 46%;
  background: #d6f0e7;
}

.bloom-analyze {
  --row-width: 58%;
  background: #bfe8dc;
}

.bloom-apply {
  --row-width: 70%;
  background: #aee0dc;
}

.bloom-understand {
  --row-width: 82%;
  background: #dfe8fb;
}

.bloom-remember {
  --row-width: 94%;
  background: #cfd9f4;
}

.method-visual-card .button {
  justify-self: start;
}

.aias-levels-section {
  background: #f6f9fc;
}

.aias-level-grid {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.6rem;
}

.aias-level-card {
  --aias-color: var(--blue);
  --aias-bg: #f6f9fc;
  position: relative;
  border: 1px solid rgba(17, 24, 39, 0.14);
  border-left: 9px solid var(--aias-color);
  border-radius: var(--radius);
  background: var(--aias-bg);
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.06);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.aias-level-number {
  display: inline-grid;
  width: 2.8rem;
  height: 2.8rem;
  margin-bottom: 0.8rem;
  place-items: center;
  border-radius: 50%;
  background: var(--aias-color);
  color: #0f172a;
  font-weight: 900;
}

.aias-level-card h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.aias-level-summary {
  max-width: 980px;
  color: #1b2b42;
  font-weight: 700;
}

.aias-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.aias-detail-grid > div {
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  padding: 1rem;
}

.aias-detail-grid strong {
  display: block;
  margin-bottom: 0.45rem;
  color: #0f172a;
}

.aias-detail-grid p {
  margin-bottom: 0;
  font-size: 0.96rem;
}

.aias-method-section {
  background: #ffffff;
}

.aias-method-card {
  border-left-color: var(--pink);
}

.ctr-goals-section {
  background: #f6f9fc;
}

.ctr-goal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}

.ctr-goal-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  border: 1px solid rgba(17, 24, 39, 0.14);
  border-left: 9px solid var(--blue);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.06);
  padding: 1rem;
}

.ctr-goal-card img {
  width: 82px;
  max-width: 100%;
  border-radius: 0.35rem;
}

.ctr-goal-card h3 {
  margin-bottom: 0.45rem;
  font-size: 1.08rem;
}

.ctr-goal-card p {
  margin-bottom: 0;
  color: #23364f;
  font-size: 0.98rem;
}

.ctr-goal-card:nth-child(1) { border-left-color: #e5243b; }
.ctr-goal-card:nth-child(2) { border-left-color: #dda63a; }
.ctr-goal-card:nth-child(3) { border-left-color: #4c9f38; }
.ctr-goal-card:nth-child(4) { border-left-color: #c5192d; }
.ctr-goal-card:nth-child(5) { border-left-color: #ff3a21; }
.ctr-goal-card:nth-child(6) { border-left-color: #26bde2; }
.ctr-goal-card:nth-child(7) { border-left-color: #fcc30b; }
.ctr-goal-card:nth-child(8) { border-left-color: #a21942; }
.ctr-goal-card:nth-child(9) { border-left-color: #fd6925; }
.ctr-goal-card:nth-child(10) { border-left-color: #dd1367; }
.ctr-goal-card:nth-child(11) { border-left-color: #fd9d24; }
.ctr-goal-card:nth-child(12) { border-left-color: #bf8b2e; }
.ctr-goal-card:nth-child(13) { border-left-color: #3f7e44; }
.ctr-goal-card:nth-child(14) { border-left-color: #0a97d9; }
.ctr-goal-card:nth-child(15) { border-left-color: #56c02b; }
.ctr-goal-card:nth-child(16) { border-left-color: #00689d; }
.ctr-goal-card:nth-child(17) { border-left-color: #19486a; }

.ctr-method-section {
  background: #ffffff;
}

.ctr-method-card {
  border-left-color: var(--green);
}

.ctr-method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3rem;
}

.ctr-method-grid p:last-child {
  margin-bottom: 0;
}

.samr-levels-section,
.samr-examples-section {
  background: #f6f9fc;
}

.samr-level-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}

.samr-level-card,
.samr-example-level {
  --samr-color: var(--blue);
  --samr-bg: #eef7fc;
  border: 1px solid rgba(17, 24, 39, 0.14);
  border-left: 9px solid var(--samr-color);
  border-radius: var(--radius);
  background: var(--samr-bg);
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.06);
  padding: clamp(1.15rem, 2.4vw, 1.6rem);
}

.samr-s {
  --samr-color: #f2d25c;
  --samr-bg: #fff6d6;
}

.samr-a {
  --samr-color: #ec61a0;
  --samr-bg: #fff0f7;
}

.samr-m {
  --samr-color: #00694e;
  --samr-bg: #edf8f4;
}

.samr-r {
  --samr-color: #2878ac;
  --samr-bg: #edf6fc;
}

.samr-level-letter {
  display: inline-grid;
  width: 2.8rem;
  height: 2.8rem;
  margin-bottom: 0.8rem;
  place-items: center;
  border-radius: 50%;
  background: var(--samr-color);
  color: #0f172a;
  font-weight: 900;
}

.samr-level-card h3,
.samr-example-level h3 {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
}

.samr-method-card {
  border-left-color: var(--blue);
}

.samr-example-level {
  margin-top: 1.2rem;
}

.samr-example-level > header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.samr-meta-grid,
.samr-example-grid {
  display: grid;
  gap: 0.85rem;
}

.samr-meta-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.2rem;
}

.samr-example-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

.samr-meta-grid > div,
.samr-example-grid > article {
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  padding: 1rem;
}

.samr-meta-grid strong,
.samr-example-grid strong {
  color: #0f172a;
}

.samr-example-grid h4 {
  margin-bottom: 0.7rem;
  font-size: 1.05rem;
}

.samr-example-grid p {
  margin-bottom: 0.7rem;
  font-size: 0.96rem;
}

.samr-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-top: 0.7rem;
}

.samr-tools img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 0.35rem;
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(17, 24, 39, 0.12);
}

.samr-tools span {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.digital-model-purpose-section,
.digital-model-process-section,
.digital-model-use-section {
  background: #f6f9fc;
}

.digital-model-purpose-grid,
.digital-model-planning-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 1.25rem;
  align-items: start;
}

.digital-model-purpose-card {
  border-left-color: var(--green);
}

.digital-model-callout,
.digital-model-import-card {
  border: 1px solid rgba(17, 24, 39, 0.14);
  border-left: 9px solid var(--pink);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.07);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.digital-model-callout h2,
.digital-model-import-card h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.digital-model-value-list {
  display: grid;
  gap: 0.6rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.digital-model-value-list li {
  position: relative;
  padding-left: 1.65rem;
  color: #233044;
  font-weight: 700;
}

.digital-model-value-list li::before {
  content: "";
  position: absolute;
  top: 0.62rem;
  left: 0;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--pink);
}

.digital-model-phase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}

.digital-model-phase-card {
  position: relative;
  border: 1px solid rgba(17, 24, 39, 0.14);
  border-left: 9px solid var(--blue);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.06);
  padding: clamp(1.15rem, 2.4vw, 1.55rem);
}

.digital-model-phase-card:nth-child(2n) {
  border-left-color: var(--green);
}

.digital-model-phase-card:nth-child(3n) {
  border-left-color: var(--pink);
}

.digital-model-phase-card:nth-child(4n) {
  border-left-color: var(--yellow);
}

.digital-model-phase-number {
  display: inline-grid;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.9rem;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: #ffffff;
  font-weight: 900;
}

.digital-model-phase-card h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
}

.digital-model-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.digital-model-chip-list li {
  border: 1px solid rgba(40, 120, 172, 0.25);
  border-radius: 999px;
  background: #eef6ff;
  color: #18314f;
  padding: 0.35rem 0.65rem;
  font-size: 0.9rem;
  font-weight: 800;
}

.digital-model-import-card {
  border-left-color: var(--green);
  background: #edf8f4;
}

.digital-model-import-card .kicker {
  color: var(--green);
}

.digital-model-import-card button[disabled] {
  cursor: not-allowed;
  opacity: 0.72;
}

.digital-model-import-note {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.digital-model-use-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}

.learning-process-section {
  background: #f6f9fc;
}

.learning-process-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}

.learning-process-card {
  border: 1px solid rgba(236, 97, 160, 0.45);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 1.25rem;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.06);
}

.learning-process-number {
  display: inline-grid;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 0.9rem;
  place-items: center;
  border-radius: 50%;
  background: var(--pink);
  color: #ffffff;
  font-weight: 900;
}

.learning-process-card h3 {
  font-size: 1.2rem;
}

.learning-type-detail-grid.learning-type-rich-grid {
  grid-template-columns: 1fr;
}

.learning-type-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}

.learning-type-detail-card {
  border: 1px solid rgba(17, 24, 39, 0.14);
  border-left: 9px solid var(--type-color);
  border-radius: var(--radius);
  background: var(--type-bg, #ffffff);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.06);
}

.learning-type-detail-card h3 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.learning-type-summary {
  max-width: 960px;
  color: #1b2b42;
  font-weight: 700;
}

.learning-detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.learning-detail-list > div {
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  padding: 1rem;
}

.learning-detail-list strong {
  display: block;
  margin-bottom: 0.45rem;
  color: #0f172a;
}

.learning-detail-list p {
  margin-bottom: 0;
}

.learning-sources-section {
  padding-top: 0;
}

.learning-sources-card {
  border: 1px solid var(--line);
  border-left: 9px solid var(--green);
  border-radius: var(--radius);
  background: #f6f9fc;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.learning-sources-card ul {
  margin: 0.8rem 0 0;
  padding-left: 1.2rem;
}

.learning-type-detail-card p:last-child {
  margin-bottom: 0;
}

.method-visual-card {
  display: grid;
  gap: 1rem;
}

.method-visual-card img {
  max-height: 250px;
  object-fit: contain;
}

.method-visual-card .image-credit {
  margin: -0.55rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.method-timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 0;
}

.method-timeline li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 1.2rem;
}

.method-timeline h3 {
  font-size: 1.08rem;
}

.method-timeline p {
  color: var(--muted);
  margin-bottom: 0;
}

.method-contrast-block {
  border: 1px solid #9bc7df;
  border-left: 9px solid var(--blue);
  border-radius: var(--radius);
  background: #e9f4fb;
  padding: 1.5rem;
}

.method-contrast-block p {
  max-width: 920px;
}

.method-cta {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.method-cta > div {
  padding: 2rem;
}

/* About page */
.about-page {
  background: var(--soft);
}

.about-page h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
}

.about-page h3 {
  margin: 0 0 0.65rem;
  line-height: 1.2;
}

.about-page p {
  margin-top: 0;
}

.about-hero {
  padding: 4.5rem 0 4.8rem;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.82), rgba(0, 105, 78, 0.52)),
    url("../assets/authors/creating_reabcd.JPG") center / cover;
  color: #ffffff;
  border-bottom: 0;
}

.about-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.about-hero-copy h1 {
  max-width: 900px;
  margin: 0 0 1.2rem;
  font-size: clamp(2.5rem, 5.4vw, 5rem);
  line-height: 1;
}

.about-hero-copy p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.1rem;
}

.about-hero .kicker,
.about-hero-copy h1,
.about-hero-copy p {
  text-shadow: 0 2px 14px rgba(17, 24, 39, 0.38);
}

.about-hero .button-secondary {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.95);
}

.about-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.about-hero-image {
  margin: 0;
  border-radius: var(--radius);
  background: #ffffff;
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.about-hero-image img {
  width: 100%;
  display: block;
}

.about-team-section,
.about-origin-section,
.about-process-section,
.about-license-section {
  background: #ffffff;
}

.about-team-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}

.about-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.6rem;
}

.about-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 1.25rem;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.06);
}

.about-card p:last-child {
  margin-bottom: 0;
}

.about-team-card {
  display: grid;
  align-content: start;
  gap: 0.8rem;
  border-left-width: 0.55rem;
  border-left-style: solid;
}

.about-team-card:nth-child(1) {
  border-left-color: var(--red);
}

.about-team-card:nth-child(2) {
  border-left-color: var(--blue);
}

.about-team-card:nth-child(3) {
  border-left-color: var(--pink);
}

.about-team-card:nth-child(4) {
  border-left-color: var(--yellow);
}

.about-team-card:nth-child(5) {
  border-left-color: var(--green);
}

.about-work-section .about-card,
.about-support-section .about-card {
  border-left-width: 0.55rem;
  border-left-style: solid;
}

.about-work-section .about-card:nth-child(1),
.about-support-section .about-card:nth-child(1) {
  border-left-color: var(--red);
}

.about-work-section .about-card:nth-child(2),
.about-support-section .about-card:nth-child(2) {
  border-left-color: var(--blue);
}

.about-work-section .about-card:nth-child(3) {
  border-left-color: var(--pink);
}

.about-work-section .about-card:nth-child(4) {
  border-left-color: var(--yellow);
}

.about-work-section .about-card:nth-child(5),
.about-support-section .about-card:nth-child(3) {
  border-left-color: var(--green);
}

.about-work-section .about-card:nth-child(6) {
  border-left-color: var(--red);
}

.about-support-section .accent-card-red,
.about-support-section .accent-card-blue,
.about-support-section .accent-card-green {
  border-top: 1px solid var(--line);
}

.about-team-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
  background: #f7f9fc;
}

.about-team-card h3 {
  margin-bottom: 0;
  font-size: 1.05rem;
}

.about-team-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.about-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 2.2rem;
  align-items: center;
}

.about-split figure {
  margin: 0;
}

.about-split img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
}

.about-process li {
  background: #ffffff;
}

.about-values {
  border: 1px solid #9bc7df;
  border-left: 9px solid var(--green);
  border-radius: var(--radius);
  background: #eef8f3;
  padding: 1.6rem;
}

.about-values .lead {
  max-width: 860px;
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 700;
}

.about-license-card {
  max-width: 940px;
}

.about-license-card .citation {
  padding: 1rem;
  border-radius: var(--radius);
  background: #f7f9fc;
  color: var(--ink);
}

.about-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.about-contact address {
  font-style: normal;
  color: var(--muted);
}

.about-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.app-main {
  padding: 1.4rem 0 3rem;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.field {
  display: grid;
  gap: 0.32rem;
}

.field.full {
  grid-column: 1 / -1;
}

label,
.field-label {
  font-weight: 700;
  color: var(--ink);
}

input[type="text"],
input[type="number"],
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-weight: 400;
  min-height: 42px;
  padding: 0.55rem 0.65rem;
}

textarea {
  resize: vertical;
  min-height: 88px;
}

.workspace-toolbar,
.browser-toolbar,
.export-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.workspace-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.workspace-scroll {
  overflow-x: visible;
  padding-bottom: 0.25rem;
}

.plan-board {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 1rem;
}

.plan-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfe;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 190px;
  overflow: hidden;
}

.row-meta {
  border-right: 1px solid var(--line);
  padding: 0.75rem;
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.row-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.row-slot-scroll {
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.75rem;
}

.row-slots {
  display: grid;
  grid-template-columns: repeat(var(--slot-count, 3), var(--plan-slot-width)) var(--plan-slot-width);
  gap: 0.75rem;
  width: max-content;
}

.slot {
  position: relative;
  height: 330px;
  min-height: 330px;
  border: 2px dashed #bac4d1;
  border-radius: var(--radius);
  background: var(--paper);
  padding: 0.5rem;
  display: flex;
}

.slot.is-empty {
  cursor: pointer;
  padding: 0;
}

.slot.is-empty:hover,
.slot.is-empty:focus-visible {
  border-color: var(--blue);
  background: #e9f4fb;
}

.slot.is-over {
  border-color: var(--blue);
  background: #e9f4fb;
}

.empty-slot {
  color: var(--muted);
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 0.7rem;
  width: 100%;
  min-height: 100%;
  text-align: center;
  padding: 0.75rem;
}

.empty-slot-open {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.2rem;
  min-height: 82px;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0.4rem;
  box-shadow: none;
}

.empty-slot-open:hover {
  border-color: transparent;
  box-shadow: none;
}

.empty-slot-open strong {
  color: var(--ink);
}

.empty-slot-open span {
  font-size: 0.86rem;
  font-weight: 400;
}

.empty-slot-controls {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
}

.slot-icon-button {
  width: 38px;
  min-height: 38px;
  padding: 0;
}

.row-add-slot {
  width: var(--plan-slot-width);
  min-height: 330px;
  border: 2px solid #9bc7df;
  border-radius: var(--radius);
  background: #e9f4fb;
  color: var(--ink);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.35rem;
  padding: 0.75rem;
}

.row-add-slot span:first-child {
  display: grid;
  place-items: center;
  width: 42px;
  min-height: 42px;
  border-radius: 999px;
  background: var(--blue);
  color: #ffffff;
  font-size: 1.4rem;
  line-height: 1;
}

.plan-card {
  min-height: 0;
  height: 100%;
  width: 100%;
  border: 1px solid var(--line);
  border-left: 10px solid var(--type-color, var(--blue));
  border-radius: var(--radius);
  background: var(--paper);
  padding: 0.75rem;
  display: grid;
  grid-template-rows: auto auto;
  align-content: space-between;
  gap: 0.7rem;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.08);
}

.plan-card-summary {
  display: grid;
  gap: 0.55rem;
}

.compact-tag {
  font-size: 0.76rem;
  min-height: 23px;
  padding-inline: 0.38rem;
}

.between-slot-button {
  position: absolute;
  right: -24px;
  top: 50%;
  z-index: 4;
  width: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 999px;
  border-color: var(--blue);
  background: #e9f4fb;
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.16);
}

.plan-card[draggable="true"] {
  cursor: grab;
}

.plan-card:active {
  cursor: grabbing;
}

.plan-card h4,
.activity-card h3 {
  margin: 0;
  line-height: 1.2;
}

.plan-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.plan-card-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.24rem;
}

.plan-card-actions button {
  width: 100%;
  min-height: 32px;
  padding: 0;
  font-size: 0.86rem;
  line-height: 1;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #f7f9fc;
  color: var(--ink);
  padding: 0.16rem 0.48rem;
  font-size: 0.84rem;
  font-weight: 700;
}

.type-tag {
  background: var(--type-color, #e9f4fb);
  color: #111827;
  border-color: rgba(17, 24, 39, 0.25);
}

.browser-layout {
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.browser-layout.filters-collapsed {
  grid-template-columns: 58px minmax(0, 1fr);
}

.browser-layout > .panel {
  min-width: 0;
}

.filters-panel {
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.filters-panel:not(.open) .filters-body {
  display: none;
}

.filters-panel .browser-toolbar {
  flex: 0 0 auto;
}

.filters-panel:not(.open) {
  padding: 0.45rem;
}

.filters-panel:not(.open) .browser-toolbar {
  justify-content: center;
  margin-bottom: 0;
}

.filters-panel:not(.open) .panel-title,
.filters-panel:not(.open) .filter-toggle-text {
  display: none;
}

.filters-toggle {
  white-space: nowrap;
}

.filters-panel:not(.open) .filters-toggle {
  width: 44px;
  min-width: 44px;
  padding-inline: 0;
}

.button-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.filters-body {
  min-height: 0;
  overflow-y: auto;
  padding-right: 0.35rem;
  display: grid;
  gap: 0.75rem;
}

.filter-groups {
  display: grid;
  gap: 0.7rem;
}

.filter-actions {
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
}

.filter-actions button {
  width: 100%;
}

.cards-results {
  display: grid;
  gap: 1.35rem;
}

.cards-section {
  display: grid;
  gap: 0.75rem;
}

.cards-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cards-section-header h2 {
  margin: 0;
  font-size: 1.25rem;
}

.cards-grid,
.cards-section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.activity-card {
  min-height: 320px;
  border: 1px solid var(--line);
  border-top: 9px solid var(--type-color, var(--blue));
  border-radius: var(--radius);
  background: var(--paper);
  padding: 0.9rem;
  display: grid;
  grid-template-rows: auto minmax(112px, 1fr) auto auto;
  gap: 0.7rem;
  cursor: pointer;
}

.activity-card:hover {
  box-shadow: var(--shadow);
}

.card-description {
  max-height: 7.4rem;
  overflow: auto;
  color: var(--muted);
  padding-right: 0.25rem;
}

.sdg-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.sdg-dot-list {
  gap: 0.4rem;
}

.activity-card .sdg-dot-list {
  gap: 0.24rem;
}

.sdg-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.22);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
}

.activity-card .sdg-dot {
  width: 24px;
  min-width: 24px;
  height: 24px;
  border-width: 1px;
  font-size: 0.7rem;
}

.sdg-1 { background: #e5243b; }
.sdg-2 { background: #dda63a; color: #111827; }
.sdg-3 { background: #4c9f38; }
.sdg-4 { background: #c5192d; }
.sdg-5 { background: #ff3a21; }
.sdg-6 { background: #26bde2; color: #111827; }
.sdg-7 { background: #fcc30b; color: #111827; }
.sdg-8 { background: #a21942; }
.sdg-9 { background: #fd6925; color: #111827; }
.sdg-10 { background: #dd1367; }
.sdg-11 { background: #fd9d24; color: #111827; }
.sdg-12 { background: #bf8b2e; }
.sdg-13 { background: #3f7e44; }
.sdg-14 { background: #0a97d9; }
.sdg-15 { background: #56c02b; color: #111827; }
.sdg-16 { background: #00689d; }
.sdg-17 { background: #19486a; }

.sdg-icon {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  border: 1px solid rgba(17, 24, 39, 0.18);
  object-fit: cover;
  background: #ffffff;
}

.sdg-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  min-height: 30px;
  border-radius: 4px;
  border: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 700;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.62);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
}

.modal-backdrop.active {
  display: flex;
}

.modal {
  width: min(980px, 100%);
  max-height: min(88vh, 980px);
  overflow: auto;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.modal-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.modal-title {
  margin: 0;
}

.modal-body {
  padding: 1rem;
}

.modal-footer {
  border-top: 1px solid var(--line);
  padding: 1rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 1rem;
}

.detail-section {
  margin-bottom: 1rem;
}

.detail-section h3 {
  margin: 0 0 0.45rem;
}

.detail-section ul,
.detail-section ol {
  margin-top: 0.35rem;
}

.visual-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.visual-card-grid figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.5rem;
}

.visual-card-grid img {
  width: 100%;
  min-height: 260px;
  object-fit: contain;
}

.list-editor {
  display: grid;
  gap: 0.5rem;
}

.list-editor-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.5rem;
  align-items: center;
}

.ict-usage-list {
  display: grid;
  gap: 0.65rem;
}

.ict-usage-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.7fr) minmax(240px, 1.3fr) auto;
  gap: 0.65rem;
  align-items: end;
}

.ict-usage-row textarea {
  min-height: 66px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.45rem;
}

.checkbox-pill {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.45rem;
  display: flex;
  gap: 0.35rem;
  align-items: flex-start;
  line-height: 1.25;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.analytics-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.bar-list {
  display: grid;
  gap: 0.4rem;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(80px, 2fr) auto;
  gap: 0.5rem;
  align-items: center;
}

.bar {
  height: 12px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  width: var(--bar-width, 0%);
  background: var(--blue);
}

.warning-list ul,
.analytics-card ul {
  margin: 0;
  padding-left: 1.2rem;
}

.status-message {
  min-height: 1.5rem;
  color: var(--green);
  font-weight: 700;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hidden {
  display: none !important;
}

@media (max-width: 1100px) {
  :root {
    --plan-slot-width: 190px;
  }

  .cards-grid,
  .cards-section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .analytics-grid,
  .learning-type-grid,
  .framework-grid,
  .aias-detail-grid,
  .samr-level-grid,
  .samr-example-grid,
  .how-list,
  .method-grid.three,
  .method-learning-grid,
  .learning-type-detail-grid,
  .ctr-goal-grid,
  .ctr-method-grid,
  .digital-model-phase-grid,
  .digital-model-use-grid,
  .about-team-grid,
  .about-grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  :root {
    --plan-slot-width: 170px;
  }

  body[data-page="index"] .section h2 {
    font-size: 2.4rem;
  }

  .site-header-inner,
  .app-header-inner,
  .two-column,
  .method-hero-grid,
  .about-hero-grid,
  .about-split,
  .method-layout,
  .method-info-grid,
  .framework-grid,
  .how-layout,
  .footer-grid,
  .example-card-grid,
  .about-contact,
  .learning-overview-grid,
  .bloom-overview-grid,
  .bloom-level-grid,
  .aias-detail-grid,
  .samr-level-grid,
  .samr-meta-grid,
  .samr-example-grid,
  .learning-process-grid,
  .learning-detail-list,
  .browser-layout,
  .browser-layout.filters-collapsed,
  .detail-grid,
  .method-grid.two,
  .method-grid.three,
  .method-image-block,
  .method-image-block.reverse,
  .method-learning-grid,
  .learning-type-detail-grid,
  .ctr-goal-grid,
  .ctr-method-grid,
  .digital-model-purpose-grid,
  .digital-model-planning-grid,
  .digital-model-phase-grid,
  .digital-model-use-grid,
  .method-timeline,
  .about-team-grid,
  .about-grid.three {
    grid-template-columns: 1fr;
  }

  .site-header-inner,
  .app-header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.8rem 0;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 460px;
  }

  .learning-types-hero {
    min-height: 520px;
    background-position: 62% center;
  }

  .learning-types-hero h1 {
    font-size: clamp(2.35rem, 11vw, 3.4rem);
  }

  .learning-types-hero p:not(.kicker) {
    font-size: 1rem;
  }

  .bloom-level-card {
    padding-left: 1.25rem;
  }

  .bloom-level-number {
    position: static;
    margin-bottom: 0.75rem;
  }

  .bloom-pyramid-row {
    width: 100%;
  }

  .ctr-goal-card {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .ctr-goal-card img {
    width: 64px;
  }

  .plan-row {
    grid-template-columns: 1fr;
  }

  .row-meta {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .form-grid,
  .analytics-grid,
  .learning-type-grid,
  .index-learning-grid,
  .how-list,
  .authors-layout,
  .cards-grid,
  .cards-section-grid,
  .ict-usage-row,
  .visual-card-grid {
    grid-template-columns: 1fr;
  }

  .authors-figure {
    justify-content: flex-start;
  }

  .filters-panel {
    position: static;
    max-height: min(70vh, 620px);
  }

  .filters-panel.open .filters-body {
    display: grid;
  }

  .checkbox-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  }

  .reimagined-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reimagined-item {
    min-height: 145px;
  }

  .reimagined-item span {
    font-size: clamp(1.25rem, 5vw, 2.3rem);
  }

  .method-process {
    grid-template-columns: 1fr;
  }

  .method-process li {
    min-height: auto;
  }

  .method-process li:not(:last-child)::after {
    top: auto;
    right: auto;
    left: 1.55rem;
    bottom: -0.75rem;
    width: 2px;
    height: 0.75rem;
  }

  .method-why-intro {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "logo"
      "lead";
    gap: 1rem;
  }

  .method-why-logo {
    justify-self: center;
  }

  .method-why-logo img {
    width: min(100%, 280px);
  }
}

@media (max-width: 700px) {
  .plan-card-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  :root {
    --plan-slot-width: 156px;
  }

  .container {
    width: min(100% - 1rem, 1180px);
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero p {
    font-size: 1.05rem;
  }

  .method-hero {
    padding: 3rem 0;
  }

  .about-hero {
    padding: 3rem 0;
  }

  .method-hero-copy h1 {
    font-size: 2.55rem;
  }

  .about-hero-copy h1 {
    font-size: 2.35rem;
  }

  .method-hero-actions,
  .method-cta .method-hero-actions,
  .about-hero-actions,
  .about-contact-actions {
    width: 100%;
  }

  .method-image-block {
    padding: 0.85rem;
  }

  .about-contact {
    padding: 1.2rem;
  }

  .header-actions,
  .site-nav,
  .workspace-toolbar,
  .workspace-actions,
  .browser-toolbar,
  .export-toolbar,
  .modal-footer {
    width: 100%;
    justify-content: stretch;
  }

  .header-actions button,
  .site-nav a,
  .workspace-toolbar button,
  .workspace-actions button,
  .browser-toolbar button,
  .export-toolbar button,
  .modal-footer button,
  .button {
    flex: 1 1 auto;
  }

  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .reimagined-grid {
    grid-template-columns: 1fr;
  }

  .reimagined-item {
    min-height: 130px;
  }

  .reimagined-item span {
    font-size: clamp(1.45rem, 8vw, 2.6rem);
  }

  .index-hero h1 {
    font-size: 3.4rem;
  }

  body[data-page="index"] .section h2 {
    font-size: 2.35rem;
  }
}

.bloom-page .bloom-overview-grid .learning-info-card > p {
  color: #0f172a !important;
}

.learning-info-card > p {
  color: #0f172a !important;
}

body .learning-info-card.accent-red > p,
body .learning-info-card.accent-blue > p,
body .learning-info-card.accent-green > p {
  color: #0f172a !important;
}
