:root {
  --seo-navy: #132b55;
  --seo-teal: #077a8d;
  --seo-teal-dark: #056274;
  --seo-border: #dfe7ec;
  --seo-muted: #667085;
  --seo-soft: #f5fafb;
}

* { box-sizing: border-box; }

.seo-page {
  background: linear-gradient(180deg, #f7fbfc 0, #fff 340px);
  color: #25324a;
  font-family: "Hanken Grotesk", sans-serif;
}

.seo-shell {
  width: min(1380px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 76px;
}

.seo-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 24px;
  color: #8792a3;
  font-size: 13px;
}

.seo-breadcrumb a {
  color: var(--seo-teal);
  font-weight: 600;
  text-decoration: none;
}

.seo-breadcrumb a:hover { text-decoration: underline; }

.seo-detail-card {
  padding: 30px;
  border: 1px solid var(--seo-border);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 70px -50px rgba(18, 47, 74, 0.55);
}

.seo-eyebrow {
  margin: 0 0 8px;
  color: var(--seo-teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.seo-detail-heading {
  margin-bottom: 20px;
}

.seo-detail-heading h1 {
  max-width: 1120px;
  margin: 0;
  color: #071a45;
  font-family: "Crimson Pro", Georgia, serif;
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

/* Slide detail: keep the descriptive topic visually separate from the slide itself. */
.seo-item-page .seo-shell {
  width: min(1500px, calc(100% - 48px));
  padding-top: 28px;
}

.seo-item-page .seo-breadcrumb { margin-bottom: 18px; }

.seo-topic-header {
  padding: 0 2px 18px;
}

.seo-topic-label,
.seo-panel-label {
  margin: 0 0 7px;
  color: var(--seo-teal);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.seo-topic-header h1 {
  max-width: 1180px;
  margin: 0;
  color: #13233f;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: clamp(19px, 1.45vw, 24px);
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.seo-topic-tags { margin-top: 13px; }
.seo-topic-tags .seo-tag {
  padding: 5px 9px;
  font-size: 10px;
}

.seo-workspace {
  display: grid;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr) 300px;
  border: 1px solid #d9e1e6;
  border-radius: 18px;
  background: #eef1f3;
  box-shadow: 0 22px 54px -44px rgba(20, 50, 76, 0.72);
}

.seo-slide-stage {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  background: #eef1f3;
}

.seo-action-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 20px;
  padding: 24px 20px;
  border-left: 1px solid #d9e1e6;
  background: #fff;
}

.seo-action-panel-intro h2 {
  margin: 0;
  color: var(--seo-navy);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
}

.seo-action-panel-intro > p:not(.seo-panel-label) {
  margin: 9px 0 17px;
  color: #667085;
  font-size: 13px;
  font-weight: 350;
  line-height: 1.55;
}

.seo-action-panel .seo-primary-cta {
  width: 100%;
  min-height: 46px;
  padding-inline: 13px;
  text-align: center;
}

.seo-slide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.seo-slide-brief {
  padding-top: 19px;
  border-top: 1px solid #e6ecef;
}

.seo-slide-brief > div {
  overflow-wrap: anywhere;
  color: #405067;
  font-size: 13px;
  font-weight: 350;
  line-height: 1.62;
}

.seo-folder-hero h1 {
  margin: 0;
  color: #071a45;
  font-family: "Crimson Pro", Georgia, serif;
  font-size: clamp(38px, 4.2vw, 64px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 0.98;
}

.seo-folder-hero p {
  margin: 22px 0;
  color: #596579;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
}

.seo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.seo-tag {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eaf7f9;
  color: #067589;
  font-size: 11px;
  font-weight: 700;
}

.seo-tags--large .seo-tag { padding: 8px 12px; font-size: 13px; }

.seo-primary-cta,
.seo-bottom-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 9px;
  background: var(--seo-teal);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.seo-primary-cta:hover,
.seo-bottom-cta a:hover { background: var(--seo-teal-dark); transform: translateY(-1px); }

.seo-preview {
  overflow: hidden;
  width: 100%;
  margin: 0;
  border: 1px solid #dce5ea;
  border-radius: 14px;
  background: #f3f6f8;
  box-shadow: 0 20px 50px -36px rgba(20, 50, 76, 0.65);
}

.seo-preview img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #fff;
}

.seo-detail-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 18px;
}

.seo-detail-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 9px;
}

.seo-meta-chip {
  display: inline-flex;
  padding: 7px 10px;
  border: 1px solid #e1e8ec;
  border-radius: 999px;
  color: #667085;
  font-size: 11px;
  font-weight: 600;
}

.seo-section {
  margin-top: 28px;
  padding: 30px 34px;
  border: 1px solid var(--seo-border);
  border-radius: 18px;
  background: #fff;
}

.seo-section-heading { margin-bottom: 18px; }

.seo-section h2 {
  margin: 0;
  color: var(--seo-navy);
  font-family: "Crimson Pro", Georgia, serif;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 500;
  line-height: 1.05;
}

.seo-prompt {
  margin-top: 20px;
  border: 1px solid var(--seo-border);
  border-radius: 14px;
  background: #fff;
}

.seo-prompt summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  color: var(--seo-navy);
  cursor: pointer;
  list-style: none;
}

.seo-prompt summary::-webkit-details-marker { display: none; }
.seo-prompt summary span { display: flex; flex-direction: column; gap: 2px; }
.seo-prompt summary small {
  color: var(--seo-teal);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.seo-prompt summary strong { font-size: 14px; }
.seo-prompt summary svg { width: 18px; height: 18px; transition: transform 0.2s ease; }
.seo-prompt[open] summary svg { transform: rotate(180deg); }

.seo-prompt-copy {
  padding: 16px 20px 18px;
  border-top: 1px solid #edf1f4;
  color: #3c4c62;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.65;
}

.seo-related-grid,
.seo-folder-grid,
.seo-library-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.seo-related-card,
.seo-folder-card,
.seo-library-card {
  overflow: hidden;
  border: 1px solid var(--seo-border);
  border-radius: 14px;
  background: #fff;
  color: var(--seo-navy);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.seo-related-card:hover,
.seo-folder-card:hover,
.seo-library-card:hover {
  transform: translateY(-2px);
  border-color: #91d2dc;
  box-shadow: 0 16px 34px -28px rgba(7, 122, 141, 0.8);
}

.seo-related-card img,
.seo-folder-card img,
.seo-library-card-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-bottom: 1px solid #edf1f4;
  background: #fff;
}

.seo-related-card > span {
  display: block;
  padding: 13px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.seo-folder-placeholder {
  display: grid;
  aspect-ratio: 16 / 9;
  place-items: center;
  border-bottom: 1px solid #edf1f4;
  background: var(--seo-soft);
  color: var(--seo-teal);
  font-family: "Crimson Pro", Georgia, serif;
  font-size: 34px;
}

.seo-folder-card-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
}

.seo-folder-card-copy strong { font-size: 14px; line-height: 1.35; }
.seo-folder-card-copy small { flex: none; color: #8a94a6; font-size: 11px; }

.seo-folder-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  padding: 40px;
  border: 1px solid var(--seo-border);
  border-radius: 22px;
  background: #fff;
}

.seo-folder-hero > div { max-width: 900px; }
.seo-folder-hero > span {
  flex: none;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eaf7f9;
  color: var(--seo-teal);
  font-size: 12px;
  font-weight: 800;
}

.seo-library-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.seo-library-card { display: flex; flex-direction: column; }
.seo-library-card-link { display: flex; flex: 1; flex-direction: column; color: inherit; text-decoration: none; }
.seo-library-card-image { display: block; }
.seo-library-card-copy { display: flex; flex: 1; flex-direction: column; padding: 17px; }
.seo-library-card-copy > strong { margin-bottom: 14px; color: var(--seo-navy); font-size: 16px; line-height: 1.35; }
.seo-library-card-link:hover .seo-library-card-copy > strong { color: var(--seo-teal); }
.seo-library-card-copy .seo-tags { margin-top: auto; }

.seo-bottom-cta {
  padding: 66px 24px;
  background: #f3fafb;
  text-align: center;
}

.seo-bottom-cta h2 {
  margin: 0;
  color: var(--seo-navy);
  font-family: "Crimson Pro", Georgia, serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
}

.seo-bottom-cta p { margin: 12px auto 22px; color: #697588; font-size: 16px; }

@media (max-width: 1050px) {
  .seo-workspace { grid-template-columns: minmax(0, 1fr) 270px; }
  .seo-slide-stage { padding: 16px; }
  .seo-action-panel { padding: 20px 17px; }
  .seo-related-grid,
  .seo-folder-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seo-library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 840px) {
  .seo-workspace { grid-template-columns: 1fr; }
  .seo-action-panel {
    border-top: 1px solid #d9e1e6;
    border-left: 0;
  }
}

@media (max-width: 680px) {
  .seo-shell { width: min(100% - 24px, 1380px); padding-top: 22px; }
  .seo-item-page .seo-shell { width: calc(100% - 20px); padding-top: 18px; padding-bottom: 52px; }
  .seo-item-page .seo-breadcrumb { margin-bottom: 16px; font-size: 11px; line-height: 1.5; }
  .seo-topic-header { padding: 0 2px 14px; }
  .seo-topic-header h1 { font-size: 18px; line-height: 1.38; }
  .seo-topic-tags { margin-top: 11px; gap: 5px; }
  .seo-topic-tags .seo-tag { padding: 5px 8px; font-size: 9px; }
  .seo-workspace { border-radius: 14px; }
  .seo-slide-stage { padding: 8px; }
  .seo-preview { border-radius: 8px; }
  .seo-action-panel { gap: 18px; padding: 18px 16px; }
  .seo-action-panel-intro h2 { font-size: 19px; }
  .seo-action-panel-intro > p:not(.seo-panel-label) { margin-bottom: 14px; }
  .seo-slide-brief { padding-top: 17px; }
  .seo-detail-card,
  .seo-folder-hero { padding: 22px; }
  .seo-detail-footer { align-items: flex-start; flex-direction: column; }
  .seo-detail-actions { flex-wrap: wrap; }
  .seo-folder-hero { flex-direction: column; }
  .seo-section { padding: 23px 20px; }
  .seo-related-grid,
  .seo-folder-grid,
  .seo-library-grid { grid-template-columns: 1fr; }
}
