/* =========================================================
   Instructional Design Portfolio Examples
   File: /assets/css/instructional-design-portfolio-examples.css
   ========================================================= */

:root {
  --ipe-ink: #07111f;
  --ipe-navy: #10243d;
  --ipe-cyan: #16b8d9;
  --ipe-cyan-deep: #0789a2;
  --ipe-teal: #0f766e;
  --ipe-teal-bright: #14b8a6;
  --ipe-mint: #6ee7d8;
  --ipe-gold: #f4c95d;
  --ipe-gold-deep: #9a6a04;
  --ipe-line: #e6ebf1;
  --ipe-muted: #475569;
  --ipe-paper: #f8fafc;
}

.ipe-page,
.ipe-page * {
  box-sizing: border-box;
}

.ipe-page {
  margin: 0;
  background: #ffffff;
  color: #0f172a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.ipe-page main {
  overflow: hidden;
}

.ipe-shell {
  width: min(1220px, calc(100% - 52px));
  margin: 0 auto;
}

.ipe-eyebrow {
  margin: 0 0 14px;
  color: var(--ipe-cyan-deep);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Hero ---------- */

.ipe-hero {
  position: relative;
  padding: 74px 0 54px;
  background:
    radial-gradient(54% 60% at 90% 0%, rgba(22, 184, 217, 0.14), transparent 62%),
    radial-gradient(46% 56% at 4% 100%, rgba(20, 184, 166, 0.1), transparent 58%),
    linear-gradient(180deg, #ffffff 0%, #f3fafb 100%);
}

.ipe-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(22, 184, 217, 0.34);
  border-radius: 999px;
  padding: 7px 14px;
  background: rgba(22, 184, 217, 0.06);
  white-space: nowrap;
}

.ipe-hero__badge span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ipe-cyan);
  display: block;
}

.ipe-hero__badge em {
  font-style: normal;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ipe-cyan-deep);
}

.ipe-hero h1 {
  max-width: 20ch;
  margin: 22px 0 0;
  color: var(--ipe-ink);
  font-size: clamp(38px, 5.2vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.042em;
  font-weight: 900;
}

.ipe-hero__lead {
  max-width: 700px;
  margin: 22px 0 0;
  color: var(--ipe-muted);
  font-size: 18px;
  line-height: 1.62;
}

.ipe-hero__lead strong {
  color: #0f172a;
  font-weight: 750;
}

.ipe-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 28px;
}

.ipe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 15px;
  font-weight: 850;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ipe-btn:hover {
  transform: translateY(-2px);
}

.ipe-btn--gold {
  color: var(--ipe-ink);
  background: var(--ipe-gold);
  box-shadow: 0 12px 26px rgba(244, 201, 93, 0.32);
}

.ipe-btn--ghost {
  color: var(--ipe-ink);
  background: #ffffff;
  border-color: #d8e0ea;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}

.ipe-btn--dark {
  color: #ffffff;
  background: var(--ipe-ink);
}

.ipe-hero__note {
  max-width: 640px;
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--ipe-line);
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
}

/* ---------- In-page contents rail ---------- */

.ipe-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0;
  border-bottom: 1px solid var(--ipe-line);
}

.ipe-toc a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid var(--ipe-line);
  border-radius: 999px;
  color: #334155;
  font-size: 13.5px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.ipe-toc a:hover {
  border-color: rgba(22, 184, 217, 0.5);
  background: rgba(22, 184, 217, 0.06);
  color: var(--ipe-cyan-deep);
}

/* ---------- Section shells ---------- */

.ipe-section {
  padding: 80px 0;
}

.ipe-section--paper {
  background: var(--ipe-paper);
}

.ipe-heading {
  max-width: 800px;
  margin: 0;
  color: var(--ipe-ink);
  font-size: clamp(30px, 3.8vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.ipe-copy {
  max-width: 740px;
  margin: 18px 0 0;
  color: var(--ipe-muted);
  font-size: 16.5px;
  line-height: 1.65;
}

/* ---------- Editorial thesis ---------- */

.ipe-thesis {
  position: relative;
  padding: 34px 36px;
  border-radius: 24px;
  border: 1px solid var(--ipe-line);
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.06);
}

.ipe-thesis p {
  margin: 0;
  max-width: 74ch;
  color: var(--ipe-ink);
  font-size: 21px;
  line-height: 1.5;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.ipe-thesis__list {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.ipe-thesis__list li {
  padding: 18px 18px 16px;
  border: 1px solid var(--ipe-line);
  border-radius: 16px;
  background: var(--ipe-paper);
  color: #334155;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
}

.ipe-thesis__list b {
  display: block;
  margin-bottom: 6px;
  color: var(--ipe-ink);
  font-weight: 850;
  font-size: 14.5px;
}

/* ---------- Example cards ---------- */

.ipe-examples {
  display: grid;
  gap: 18px;
  margin-top: 32px;
}

.ipe-example {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr);
  gap: 0;
  border: 1px solid var(--ipe-line);
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

.ipe-example__media {
  position: relative;
  min-height: 220px;
  background: var(--ipe-ink);
}

.ipe-example__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Editorial quote panel for examples without a licensed screenshot — no
   implied screenshot/browser chrome, just the brand's dark-panel treatment. */
.ipe-quote-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  height: 100%;
  min-height: 220px;
  padding: 30px 32px;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(22, 184, 217, 0.22), transparent 60%),
    linear-gradient(155deg, #07111f, #10243d);
}

.ipe-quote-panel--gold {
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(244, 201, 93, 0.22), transparent 60%),
    linear-gradient(155deg, #07111f, #10243d);
}

.ipe-quote-panel--cyan {
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(22, 184, 217, 0.24), transparent 60%),
    linear-gradient(155deg, #07111f, #10243d);
}

.ipe-quote-panel__kicker {
  color: var(--ipe-mint);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ipe-quote-panel__quote {
  margin: 0;
  max-width: 34ch;
  color: #ffffff;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 750;
  letter-spacing: -0.015em;
}

.ipe-quote-panel__source {
  color: rgba(226, 242, 247, 0.6);
  font-size: 13px;
  font-weight: 650;
}

.ipe-example__body {
  padding: 22px 26px;
}

.ipe-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ipe-tag--cyan {
  color: var(--ipe-cyan-deep);
  background: rgba(22, 184, 217, 0.1);
  border: 1px solid rgba(22, 184, 217, 0.28);
}

.ipe-tag--teal {
  color: var(--ipe-teal);
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.28);
}

.ipe-tag--gold {
  color: var(--ipe-gold-deep);
  background: rgba(244, 201, 93, 0.16);
  border: 1px solid rgba(224, 169, 63, 0.34);
}

.ipe-example__body h3 {
  margin: 10px 0 0;
  color: var(--ipe-ink);
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 850;
}

.ipe-example__body p.ipe-example__summary {
  margin: 8px 0 0;
  color: var(--ipe-muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.ipe-example__notice {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.ipe-example__notice li {
  position: relative;
  padding-left: 20px;
  color: #334155;
  font-size: 13px;
  line-height: 1.45;
}

.ipe-example__notice li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ipe-cyan);
}

.ipe-example__lesson {
  margin: 14px 0 0;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid var(--ipe-line);
  background: var(--ipe-paper);
  color: var(--ipe-ink);
  font-size: 13.5px;
  line-height: 1.5;
  font-weight: 650;
}

.ipe-example__lesson b {
  display: block;
  margin-bottom: 6px;
  color: var(--ipe-teal);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ipe-example__note {
  margin: 12px 0 0;
  color: #64748b;
  font-size: 12.5px;
  line-height: 1.5;
}

.ipe-example__footer {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.ipe-example__attrib {
  margin: 0;
  color: #94a3b8;
  font-size: 12.5px;
  line-height: 1.5;
}

/* ---------- Comparison ---------- */

.ipe-compare-table {
  width: 100%;
  margin-top: 40px;
  border-collapse: collapse;
  border: 1px solid var(--ipe-line);
  border-radius: 20px;
  overflow: hidden;
}

.ipe-compare-table th,
.ipe-compare-table td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid var(--ipe-line);
  font-size: 14.5px;
  line-height: 1.5;
  vertical-align: top;
}

.ipe-compare-table thead th {
  background: var(--ipe-paper);
  color: #64748b;
  font-size: 11.5px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ipe-line);
}

.ipe-compare-table tbody th {
  color: var(--ipe-ink);
  font-weight: 850;
  background: #ffffff;
}

.ipe-compare-table tbody td {
  color: #334155;
}

.ipe-compare-table tbody tr:last-child th,
.ipe-compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.ipe-compare-cards {
  display: none;
}

.ipe-compare-outro {
  max-width: 760px;
  margin: 28px 0 0;
  color: var(--ipe-muted);
  font-size: 15.5px;
  line-height: 1.65;
}

/* ---------- Framework (dark section) ---------- */

.ipe-framework {
  position: relative;
  background: linear-gradient(180deg, #07111f 0%, #10243d 100%);
}

.ipe-framework::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(46% 55% at 90% 0%, rgba(22, 184, 217, 0.16), transparent 60%);
}

.ipe-framework .ipe-eyebrow {
  color: var(--ipe-mint);
}

.ipe-framework .ipe-heading {
  color: #ffffff;
  position: relative;
}

.ipe-framework .ipe-copy {
  color: rgba(226, 242, 247, 0.72);
  position: relative;
}

.ipe-criteria {
  position: relative;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.ipe-criterion {
  padding: 24px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ipe-criterion h3 {
  margin: 0;
  color: #ffffff;
  font-size: 17px;
  font-weight: 850;
  letter-spacing: -0.01em;
}

.ipe-criterion p {
  margin: 10px 0 0;
  color: rgba(226, 242, 247, 0.66);
  font-size: 14px;
  line-height: 1.55;
}

.ipe-criterion span {
  display: block;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--ipe-mint);
  font-size: 13.5px;
  font-weight: 700;
  font-style: italic;
  line-height: 1.5;
}

.ipe-callout {
  position: relative;
  margin-top: 28px;
  padding: 20px 24px;
  border-radius: 16px;
  border: 1px solid rgba(244, 201, 93, 0.32);
  background: rgba(244, 201, 93, 0.08);
  color: #fbe7b4;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 600;
}

/* ---------- Guidance ---------- */

.ipe-guidance {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.ipe-guidance article {
  padding: 26px 24px;
  border-radius: 20px;
  border: 1px solid var(--ipe-line);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.ipe-guidance h3 {
  margin: 0;
  color: var(--ipe-ink);
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -0.015em;
}

.ipe-guidance p {
  margin: 10px 0 0;
  color: var(--ipe-muted);
  font-size: 14.5px;
  line-height: 1.6;
}

/* ---------- Conversion ---------- */

.ipe-cta-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.ipe-cta-card {
  padding: 30px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid var(--ipe-line);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
}

.ipe-cta-card h3 {
  margin: 0;
  color: var(--ipe-ink);
  font-size: 21px;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.ipe-cta-card p {
  margin: 12px 0 0;
  color: var(--ipe-muted);
  font-size: 15px;
  line-height: 1.6;
  flex: 1;
}

.ipe-cta-card .ipe-btn {
  margin-top: 22px;
  align-self: flex-start;
}

/* ---------- FAQ ---------- */

.ipe-faq {
  max-width: 880px;
  margin-top: 36px;
  border-top: 1px solid var(--ipe-line);
}

.ipe-faq details {
  border-bottom: 1px solid var(--ipe-line);
}

.ipe-faq summary {
  position: relative;
  padding: 22px 46px 22px 0;
  color: var(--ipe-ink);
  cursor: pointer;
  list-style: none;
  font-size: 16.5px;
  font-weight: 800;
}

.ipe-faq summary::-webkit-details-marker {
  display: none;
}

.ipe-faq summary::after {
  position: absolute;
  top: 18px;
  right: 0;
  color: var(--ipe-teal);
  content: "+";
  font-size: 24px;
  font-weight: 700;
}

.ipe-faq details[open] summary::after {
  content: "\2212";
}

.ipe-faq details p {
  max-width: 760px;
  margin: -4px 0 22px;
  color: var(--ipe-muted);
  font-size: 15px;
  line-height: 1.68;
}

/* ---------- Focus states ---------- */

.ipe-page a:focus-visible,
.ipe-page button:focus-visible,
.ipe-page summary:focus-visible {
  outline: 3px solid rgba(22, 184, 217, 0.55);
  outline-offset: 3px;
}

.ipe-page a {
  color: var(--ipe-cyan-deep);
}

.ipe-page a:hover {
  color: var(--ipe-cyan);
}

.ipe-page a.ipe-btn--gold,
.ipe-page a.ipe-btn--gold:hover {
  color: var(--ipe-ink);
}

.ipe-page a.ipe-btn--dark,
.ipe-page a.ipe-btn--dark:hover {
  color: #ffffff;
}

.ipe-page a.ipe-btn--ghost,
.ipe-page a.ipe-btn--ghost:hover {
  color: var(--ipe-ink);
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1024px) {
  .ipe-example {
    grid-template-columns: 1fr;
  }

  .ipe-example__media {
    min-height: 240px;
  }

  .ipe-quote-panel {
    min-height: 200px;
  }

  .ipe-thesis__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .ipe-criteria {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .ipe-compare-table {
    display: none;
  }

  .ipe-compare-cards {
    display: grid;
    gap: 14px;
    margin-top: 36px;
  }

  .ipe-compare-card {
    padding: 22px;
    border-radius: 18px;
    border: 1px solid var(--ipe-line);
    background: #ffffff;
  }

  .ipe-compare-card h3 {
    margin: 0;
    color: var(--ipe-ink);
    font-size: 18px;
    font-weight: 850;
  }

  .ipe-compare-card dl {
    margin: 14px 0 0;
    display: grid;
    gap: 10px;
  }

  .ipe-compare-card dt {
    color: #64748b;
    font-size: 11.5px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .ipe-compare-card dd {
    margin: 4px 0 0;
    color: #334155;
    font-size: 14.5px;
    line-height: 1.5;
  }

  .ipe-guidance,
  .ipe-cta-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .ipe-shell {
    width: min(100% - 32px, 1220px);
  }

  .ipe-hero {
    padding: 52px 0 40px;
  }

  .ipe-section {
    padding: 60px 0;
  }

  .ipe-thesis {
    padding: 26px 22px;
  }

  .ipe-thesis p {
    font-size: 18px;
  }

  .ipe-thesis__list {
    grid-template-columns: 1fr;
  }

  .ipe-criteria {
    grid-template-columns: 1fr;
  }

  .ipe-example__body {
    padding: 26px 22px;
  }

  .ipe-hero__badge {
    max-width: 100%;
    padding: 7px 12px;
    overflow: hidden;
  }

  .ipe-hero__badge em {
    font-size: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ipe-actions .ipe-btn {
    width: 100%;
  }

  .ipe-btn {
    padding: 14px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ipe-btn {
    transition: none;
  }
}
