/* ======================================== */
/* BASE */
/* ======================================== */

:root {
  --catalog-blue-dark: #00358e;
  --catalog-blue: #0062ff;
  --catalog-blue-light: #eaf2fb;
  --catalog-bg-soft: #f8fafc;
  --catalog-border: #d7dce2;
  --catalog-text: #1f2937;
  --catalog-text-soft: #4b5563;
  --catalog-text-muted: #6b7280;
  --catalog-white: #ffffff;
  --catalog-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  --catalog-radius: 10px;
  --catalog-max-width: 1200px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--catalog-text);
  background: var(--catalog-white);
  line-height: 1.5;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--catalog-blue-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code {
  background: #f3f4f6;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.92em;
}

.catalog-section-inner {
  max-width: var(--catalog-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ======================================== */
/* FLOATING TABLE OF CONTENTS LINK */
/* ======================================== */

.floating-toc-link {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 10px 14px;
  border-radius: 999px;
  background: var(--catalog-blue-dark);
  color: var(--catalog-white);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18);

  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.floating-toc-link:hover {
  background: #0b4f9c;
  text-decoration: none;
}

.floating-toc-link:focus {
  outline: 2px solid var(--catalog-blue);
  outline-offset: 2px;
}

.floating-toc-icon {
  font-size: 1rem;
  line-height: 1;
}

.floating-toc-text {
  line-height: 1;
}

/* ======================================== */
/* HERO */
/* ======================================== */

.catalog-hero {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: var(--catalog-text);
  padding: 42px 0 46px 0;
  border-bottom: 1px solid var(--catalog-border);
}

.catalog-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 500px);
  gap: 36px;
  align-items: center;
}

.catalog-hero-left {
  min-width: 0;
}

.catalog-hero-logo {
  display: block;
  width: 230px;
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
}

.catalog-kicker {
  margin: 0 0 10px 0;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--catalog-blue-dark);
}

.catalog-hero-left h1 {
  margin: 0 0 10px 0;
  font-size: 3rem;
  line-height: 1.05;
  font-weight: 700;
  color: var(--catalog-text);
}

.catalog-edition {
  margin: 0 0 18px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--catalog-text-muted);
}

.catalog-intro {
  max-width: 680px;
  margin: 0 0 22px 0;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--catalog-text-soft);
}

.catalog-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.catalog-hero-actions a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--catalog-blue-dark);
  color: var(--catalog-white);
  font-weight: 600;
  border: 1px solid var(--catalog-blue-dark);
}

.catalog-hero-actions a:hover {
  background: #0b4f9c;
  border-color: #0b4f9c;
  text-decoration: none;
}

.catalog-hero-right {
  display: flex;
  justify-content: flex-end;
}

.catalog-hero-image {
  display: block;
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
  background: #e5e7eb;
}

/* ======================================== */
/* TABLE OF CONTENTS */
/* ======================================== */

.catalog-toc {
  background: var(--catalog-bg-soft);
  border-bottom: 1px solid var(--catalog-border);
  padding: 28px 0;
}

.catalog-toc h2 {
  margin: 0 0 16px 0;
  font-size: 1.5rem;
  color: var(--catalog-blue-dark);
}

/* ======================================== */
/* TOC LINK ACCESSIBILITY / CONSISTENCY */
/* ======================================== */

/* Top static TOC links */
.catalog-toc-list a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 700;
  color: var(--catalog-text);
  font-size: 1rem;
  text-decoration: none;
}

.catalog-toc-list a:hover,
.catalog-toc-list a:focus,
.catalog-toc-list a:focus-visible {
  color: var(--catalog-blue-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.catalog-toc-list a:focus,
.catalog-toc-list a:focus-visible {
  outline: 2px solid var(--catalog-blue);
  outline-offset: 2px;
}

.catalog-toc-secondary {
  margin-top: 4px;
  padding-top: 6px;
}

.catalog-toc-secondary a {
  border-bottom: none;
}

/* Nested TOC subcategory links */
.toc-subcategory-link {
  display: inline-block;
  font-weight: 600;
  color: var(--catalog-blue-dark);
  font-size: 0.96rem;
  text-decoration: none;
}

.toc-subcategory-link:hover,
.toc-subcategory-link:focus,
.toc-subcategory-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.toc-subcategory-link:focus,
.toc-subcategory-link:focus-visible {
  outline: 2px solid var(--catalog-blue);
  outline-offset: 2px;
}

/* Go to section links */
.toc-go-link,
.catalog-toc-master-view-all {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--catalog-blue-dark);
  text-decoration: none;
  white-space: nowrap;
}

.toc-go-link:hover,
.toc-go-link:focus,
.toc-go-link:focus-visible,
.catalog-toc-master-view-all:hover,
.catalog-toc-master-view-all:focus,
.catalog-toc-master-view-all:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.toc-go-link:focus,
.toc-go-link:focus-visible,
.catalog-toc-master-view-all:focus,
.catalog-toc-master-view-all:focus-visible {
  outline: 2px solid #005fcc;
  outline-offset: 2px;
}

.catalog-toc-note {
  margin-top: 18px;
  color: var(--catalog-text-soft);
  font-size: 0.95rem;
}

/* ======================================== */
/* MASTER CATALOG CATEGORIES TOC BLOCK */
/* ======================================== */
.catalog-toc-master {
  margin-top: 0;
  border: none;
  border-bottom: 1px solid #e5e7eb;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.catalog-toc-master > summary {
  cursor: pointer;
  padding: 10px 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--catalog-text);
  list-style: none;
  background: transparent;
  border-bottom: none;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
}

.catalog-toc-master-summary-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: 1;
  min-width: 0;
}


.catalog-toc-master-label {
  display: inline-flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.catalog-toc-master-view-all {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--catalog-blue);
  white-space: nowrap;
}

.catalog-toc-master > summary::-webkit-details-marker {
  display: none;
}

.catalog-toc-master > summary::marker {
  content: "";
}

.catalog-toc-master > summary::before {
  content: "▾";
  display: inline-block;
  margin-right: 6px;
  color: #4b5563;
  flex-shrink: 0;
}

.catalog-toc-master:not([open]) > summary::before {
  content: "▸";
}

.catalog-toc-categories {
  padding: 8px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}


/* ======================================== */
/* TOC CATEGORY GROUPS */
/* ======================================== */

.toc-category-group {
  border-top: 1px solid #edf0f3;
  padding-top: 10px;
}

.toc-category-group:first-child {
  border-top: none;
  padding-top: 0;
}

/* Flat/non-collapsible category rows */
.toc-category-group-flat {
  padding-bottom: 4px;
}

.toc-category-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.toc-category-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--catalog-text);
}

/* Collapsible categories WITH subcategories */
.toc-category-summary {
  display: block;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--catalog-text);
  padding: 0;
  margin: 0;
  text-align: left;
}

.toc-category-summary::-webkit-details-marker {
  display: none;
}

.toc-category-summary::marker {
  content: "";
}

.toc-category-summary-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.toc-category-summary-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.toc-category-summary::-webkit-details-marker {
  display: none;
}

.toc-category-summary::marker {
  content: "";
}


.toc-category-summary-left::before {
  content: "▾";
  display: inline-block;
  color: #334155;
  flex-shrink: 0;
}


.toc-category-group:not([open]) .toc-category-summary-left::before {
  content: "▸";
}

.toc-category-body {
  margin-top: 10px;
}

/* Shared TOC content */
.toc-go-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--catalog-blue);
  white-space: nowrap;
}

.toc-category-description {
  margin: 6px 0 0 0;
  color: var(--catalog-text-soft);
  font-size: 0.94rem;
  line-height: 1.45;
}

.toc-subcategory-list {
  margin-top: 12px;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toc-subcategory-item {
  margin: 0;
}

.toc-subcategory-link {
  display: inline-block;
  font-weight: 600;
  color: var(--catalog-blue-dark);
  font-size: 0.96rem;
}

.toc-subcategory-description {
  margin: 4px 0 0 0;
  color: var(--catalog-text-soft);
  font-size: 0.92rem;
  line-height: 1.4;
}

/* ======================================== */
/* PAGE SECTIONS */
/* ======================================== */

.catalog-page {
  padding: 24px 0 40px 0;
}

.catalog-section {
  padding: 24px 0 10px 0;
}

.catalog-section h2 {
  margin: 0 0 18px 0;
  font-size: 1.8rem;
  color: var(--catalog-blue-dark);
  border-bottom: 2px solid var(--catalog-border);
  padding-bottom: 8px;
}

/* ======================================== */
/* MANUAL CONTENT SECTIONS */
/* ======================================== */

.catalog-manual-section .catalog-manual-content {
  background: var(--catalog-bg-soft);
  border: 1px solid var(--catalog-border);
  border-radius: var(--catalog-radius);
  padding: 20px;
  box-shadow: var(--catalog-shadow);
}

.catalog-manual-content p {
  margin: 0 0 14px 0;
  color: var(--catalog-text-soft);
  font-size: 1rem;
}

.catalog-manual-content p:last-child {
  margin-bottom: 0;
}

/* ======================================== */
/* TEAM SECTION */
/* ======================================== */

.catalog-team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}


.catalog-team-card {
  background: var(--catalog-white);
  border: 1px solid var(--catalog-border);
  border-radius: var(--catalog-radius);
  padding: 20px;
  box-shadow: var(--catalog-shadow);
  height: 100%;
  box-sizing: border-box;
}

.catalog-team-card h3 {
  margin: 0 0 6px 0;
  font-size: 1.12rem;
  color: var(--catalog-text);
  line-height: 1.25;
}

.catalog-team-role {
  margin: 0 0 10px 0;
  color: var(--catalog-blue);
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.35;
}


.catalog-team-card p:last-child {
  margin-bottom: 0;
  color: var(--catalog-text-soft);
  font-size: 0.96rem;
}

/* ======================================== */
/* CATALOG TOOLS */
/* ======================================== */

.catalog-tools {
  margin-bottom: 20px;
}

.catalog-search {
  width: 100%;
  max-width: 520px;
  padding: 10px 12px;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid #c9d1db;
  border-radius: 6px;
  box-sizing: border-box;
}

.catalog-search:focus {
  outline: 2px solid var(--catalog-blue);
  outline-offset: 1px;
}


.catalog-search-highlight {
  background: #fff3a3;
  color: inherit;
  padding: 0 2px;
  border-radius: 2px;
}

/* ======================================== */
/* CATEGORY SECTIONS */
/* ======================================== */
.catalog-category-header {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 20px;
  align-items: start;
  padding: 20px;
  background: var(--catalog-bg-soft);
  border-bottom: 1px solid var(--catalog-border);
}

.catalog-subcategory-left {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
}

/* SUBCATEGORY = flex */
.catalog-subcategory-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 10px 12px;
  background: var(--catalog-blue-light);
  border-left: 3px solid var(--catalog-blue);
  border-radius: 6px;
}
/* Keep text flexible */
.catalog-category-text,
.catalog-subcategory-text {
  flex: 1;
}

/* Right-side action container */
.catalog-category-action,
.catalog-subcategory-action {
  flex-shrink: 0;
}

.catalog-subcategory-title-link {
  color: var(--catalog-blue-dark);
  text-decoration: none;
  font-weight: 600;
}

.catalog-subcategory-title-link::after {
  content: " ↗";
  font-size: 0.85em;
}

.catalog-subcategory-title-link:hover {
  text-decoration: underline;
}

.catalog-subcategory-title-link:focus{
  outline: 2px solid #005fcc;
  outline-offset: 2px;
}

.catalog-sections {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.catalog-category-section {
  border: 1px solid var(--catalog-border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--catalog-white);
  box-shadow: var(--catalog-shadow);
}

.catalog-category-image {
  width: 100%;
  aspect-ratio: 495 / 330;
  object-fit: cover;
  border-radius: 10px;
  background: #e5e7eb;
}

.catalog-category-text {
  min-width: 0;
}

.catalog-category-title {
  margin: 0 0 8px 0;
  font-size: 1.55rem;
  color: var(--catalog-blue-dark);
  line-height: 1.2;
}

.catalog-category-description {
  margin: 0 0 10px 0;
  color: var(--catalog-text-soft);
  font-size: 0.96rem;
  max-width: 720px;
}

.catalog-category-count {
  margin: 0;
  color: var(--catalog-text-muted);
  font-size: 0.96rem;
  font-weight: 600;
}

.catalog-category-title-link {
  color: var(--catalog-blue-dark);
  text-decoration: none;
  font-weight: 700;
}

.catalog-category-title-link::after {
  content: " ↗";
  font-size: 0.85em;
}

.catalog-category-title-link:hover,
.catalog-category-title-link:focus {
  text-decoration: underline;
}

.catalog-category-title-link:focus {
  outline: 2px solid #005fcc;
  outline-offset: 2px;
}

.catalog-category-link::after {
  content: " ↗";
  font-size: 0.8em;
}


/* ======================================== */
/* FLAT / NO-SUBCATEGORY COURSES */
/* ======================================== */

.catalog-flat-group {
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* Two-column layout for flat categories with no subcategories */
#category-iso-fundamentals .catalog-flat-group,
#category-core-verisk-com-platform .catalog-flat-group,
#category-isonet .catalog-flat-group {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

#category-iso-fundamentals .catalog-course-card,
#category-core-verisk-com-platform .catalog-course-card,
#category-isonet .catalog-course-card {
  padding: 14px;
}

#category-iso-fundamentals .catalog-course-title,
#category-core-verisk-com-platform .catalog-course-title,
#category-isonet .catalog-course-title {
  margin-bottom: 6px;
}

#category-iso-fundamentals .catalog-course-meta,
#category-core-verisk-com-platform .catalog-course-meta,
#category-isonet .catalog-course-meta {
  margin-bottom: 6px;
}

#category-iso-fundamentals .catalog-course-description,
#category-core-verisk-com-platform .catalog-course-description,
#category-isonet .catalog-course-description {
  margin-bottom: 0;
}

/* ======================================== */
/* SUBCATEGORY SECTIONS */
/* ======================================== */

.catalog-subcategory-section {
  padding: 0 20px 20px 20px;
}

.catalog-subcategory-section + .catalog-subcategory-section {
  padding-top: 10px;
  border-top: 1px solid #edf0f3;
}

.catalog-subcategory-media {
  margin: 0;
}

.catalog-subcategory-image {
  width: 100%;
  max-width: 160px;
  aspect-ratio: 495 / 330;
  object-fit: cover;
  border-radius: 6px;
  background: #e5e7eb;
}

.catalog-subcategory-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.catalog-subcategory-title {
  margin: 0 0 2px 0;
  font-size: 1.08rem;
  color: #1f2d3d;
  line-height: 1.25;
}

.catalog-subcategory-description {
  margin: 0 0 6px 0;
  color: var(--catalog-text-soft);
  font-size: 0.94rem;
  line-height: 1.45;
}

.catalog-subcategory-count {
  margin: 0;
  color: #334155;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.25;
}

/* ======================================== */
/* COURSE GRID / CARDS */
/* ======================================== */

.catalog-course-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.catalog-course-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px;
  background: var(--catalog-white);
}

.catalog-course-title {
  margin: 0 0 8px 0;
  font-size: 1rem;
  color: var(--catalog-text);
  line-height: 1.35;
}

.catalog-course-meta {
  margin: 0 0 8px 0;
  color: var(--catalog-blue);
  font-weight: 600;
  font-size: 0.88rem;
}

.catalog-course-description {
  margin: 0 0 10px 0;
  color: var(--catalog-text-soft);
  font-size: 0.95rem;
}

.catalog-course-note {
  margin: 0 0 10px 0;
  color: #92400e;
  font-size: 0.9rem;
  font-weight: 600;
}

.catalog-course-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--catalog-blue-dark);
  text-decoration: none; /* ✅ remove always-on underline */
}

.catalog-course-link::after {
  content: " →";
  font-size: 0.85em;
}

.catalog-course-link:hover,
.catalog-course-link:focus {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.catalog-course-link:focus {
  outline: 2px solid #0062ff;
  outline-offset: 2px;
}


/* ======================================== */
/* LEARNING PLANS */
/* ======================================== */

.catalog-learning-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.catalog-learning-card {
  border: 1px solid var(--catalog-border);
  border-radius: var(--catalog-radius);
  padding: 18px;
  background: var(--catalog-white);
  box-shadow: var(--catalog-shadow);
}

.catalog-learning-card h3 {
  margin: 0 0 12px 0;
  font-size: 1.08rem;
  color: var(--catalog-blue-dark);
}

.catalog-learning-card ul {
  margin: 0;
  padding-left: 18px;
}

.catalog-learning-card li {
  margin-bottom: 8px;
  color: var(--catalog-text-soft);
}

/* ======================================== */
/* FOOTER */
/* ======================================== */

.catalog-footer {
  margin-top: 34px;
  padding: 24px 0 36px 0;
  border-top: 1px solid var(--catalog-border);
  background: var(--catalog-bg-soft);
}

.catalog-footer p {
  margin: 0 0 10px 0;
  color: var(--catalog-text-soft);
}

.catalog-footer p:last-child {
  margin-bottom: 0;
}

/* ======================================== */
/* STATES */
/* ======================================== */

.catalog-error,
.catalog-empty-state {
  border: 1px solid var(--catalog-border);
  border-radius: var(--catalog-radius);
  padding: 18px;
  background: var(--catalog-bg-soft);
  color: var(--catalog-text-soft);
}

/* ======================================== */
/* RESPONSIVE */
/* ======================================== */


/* ======================================== */
/* RESPONSIVE */
/* ======================================== */

/* Tablet / smaller laptop */
@media (max-width: 1024px) {
  .catalog-hero {
    padding: 34px 0 38px 0;
  }

  .catalog-hero-inner {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: center;
  }

  .catalog-hero-logo {
    width: 190px;
  }

  .catalog-hero-left h1 {
    font-size: 2.5rem;
  }

  .catalog-intro {
    font-size: 0.98rem;
    line-height: 1.5;
  }

  .catalog-hero-image {
    max-width: 320px;
    width: 100%;
    height: auto;
  }

  .catalog-team-grid,
  .catalog-learning-plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Keep parent category image beside title */
  .catalog-category-header {
    grid-template-columns: 180px 1fr;
    gap: 16px;
    align-items: center;
  }

  .catalog-category-image {
    max-width: 180px;
    width: 100%;
  }
}

/* Landscape phones / short-height devices */
@media (max-width: 932px) and (orientation: landscape) {
  .catalog-hero {
    padding: 24px 0 28px 0;
  }

  .catalog-hero-inner {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 20px;
    align-items: center;
  }

  .catalog-hero-logo {
    width: 160px;
    margin-bottom: 12px;
  }

  .catalog-kicker {
    margin-bottom: 6px;
    font-size: 0.88rem;
  }

  .catalog-hero-left h1 {
    font-size: 2rem;
    margin-bottom: 6px;
  }

  .catalog-edition {
    margin-bottom: 12px;
    font-size: 0.92rem;
  }

  .catalog-intro {
    margin-bottom: 14px;
    font-size: 0.95rem;
    line-height: 1.45;
    max-width: none;
  }

  .catalog-hero-actions {
    gap: 10px;
  }

  .catalog-hero-actions a {
    padding: 8px 12px;
    font-size: 0.92rem;
  }

  .catalog-hero-right {
    justify-content: flex-end;
  }

  .catalog-hero-image {
    max-width: 240px;
    width: 100%;
    height: auto;
  }

  /* Keep parent category image beside title */
  .catalog-category-header {
    grid-template-columns: 150px 1fr;
    gap: 14px;
  }

  .catalog-category-image {
    max-width: 150px;
  }
}

/* Tablets / large phones */
@media (max-width: 768px) {
  .catalog-hero {
    padding: 28px 0 32px 0;
  }

  .catalog-hero-inner {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 18px;
    align-items: center;
  }

  .catalog-hero-logo {
    width: 160px;
    margin-bottom: 12px;
  }

  .catalog-hero-left h1 {
    font-size: 2rem;
    margin-bottom: 6px;
  }

  .catalog-edition {
    margin-bottom: 12px;
    font-size: 0.92rem;
  }

  .catalog-intro {
    margin-bottom: 14px;
    font-size: 0.95rem;
    line-height: 1.45;
  }

  .catalog-hero-actions {
    gap: 10px;
  }

  .catalog-hero-actions a {
    padding: 8px 12px;
    font-size: 0.92rem;
  }

  .catalog-hero-image {
    max-width: 220px;
    width: 100%;
    height: auto;
  }

  /* Keep parent category image beside title */
  .catalog-category-header {
    grid-template-columns: 130px 1fr;
    gap: 14px;
    align-items: center;
  }

  .catalog-category-image {
    max-width: 130px;
    width: 100%;
  }

  .catalog-team-grid,
  .catalog-learning-plans,
  .catalog-course-grid {
    grid-template-columns: 1fr;
  }

  /* Flat categories revert to one column */
  #category-iso-fundamentals .catalog-flat-group,
  #category-core-verisk-com-platform .catalog-flat-group,
  #category-isonet .catalog-flat-group {
    grid-template-columns: 1fr;
  }

  /* TOC responsiveness */
  .catalog-toc-master-summary-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .catalog-toc-master-view-all {
    white-space: normal;
  }

  .toc-category-header,
  .toc-category-summary-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .toc-go-link,
  .catalog-toc-master-view-all {
    white-space: normal;
  }

  /* Subcategories can stack if needed */

  .catalog-subcategory-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .catalog-subcategory-left {
    flex-direction: column;
    width: 100%;
  }

  .catalog-subcategory-action {
    margin-top: 10px;
  }

}

/* Small phones */
@media (max-width: 560px) {
  .catalog-hero {
    padding: 26px 0 30px 0;
  }

  .catalog-hero-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .catalog-hero-right {
    justify-content: flex-start;
  }

  .catalog-hero-logo {
    width: 150px;
  }

  .catalog-hero-left h1 {
    font-size: 1.95rem;
  }

  .catalog-hero-image {
    max-width: 280px;
    width: 100%;
  }

  /* At this point, stack parent category image above title */
  .catalog-category-header {
    grid-template-columns: 1fr;
  }

  .catalog-category-image {
    max-width: 280px;
  }
}

/* Extra small phones */
@media (max-width: 480px) {
  .catalog-hero-left h1 {
    font-size: 1.8rem;
  }

  .catalog-category-title {
    font-size: 1.35rem;
  }

  .catalog-subcategory-title {
    font-size: 1rem;
  }

  .floating-toc-link {
    right: 14px;
    bottom: 14px;
    padding: 9px 12px;
    font-size: 0.9rem;
  }
}