@import url("catalog.css");

:root {
  --guide-section-gap: 4.5rem;
  --guide-inner-gap: 2rem;
  --guide-read-max: 42rem;
}

body {
  background: var(--f3-pale);
}

body.implement-page .catalog-header {
  padding-top: var(--f3-nav-offset, 5.5rem);
  padding-bottom: 3rem;
}

body.implement-page .catalog-header-content h1 {
  margin-bottom: 0.5rem;
}

body.implement-page .catalog-header-content p {
  margin-bottom: 0;
  max-width: none;
}

.implement-main {
  max-width: 920px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 2.5rem;
  color: var(--f3-navy);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}

.back-link:hover {
  color: var(--f3-teal);
}

.guide-toc {
  margin-bottom: var(--guide-section-gap);
  padding: 1.35rem 1.5rem;
  background: var(--f3-white);
  border-radius: var(--f3-radius);
  border: 1px solid rgba(26, 82, 118, 0.08);
}

.guide-toc h2 {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--f3-muted);
  font-weight: 700;
}

.guide-toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.guide-toc a {
  color: var(--f3-navy);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
}

.guide-toc a:hover {
  color: var(--f3-teal);
  border-bottom-color: var(--f3-teal);
}

.guide-hero {
  margin-bottom: var(--guide-section-gap);
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.guide-hero h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  color: var(--f3-navy);
  line-height: 1.25;
}

.guide-hero p {
  margin: 0;
  color: var(--f3-muted);
  max-width: var(--guide-read-max);
  font-size: 1.08rem;
  line-height: 1.7;
}

.guide-section {
  margin-bottom: var(--guide-section-gap);
  padding-top: 0.5rem;
}

.guide-section + .guide-section {
  border-top: 1px solid rgba(26, 82, 118, 0.1);
  padding-top: var(--guide-section-gap);
}

.guide-section h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 2.5vw, 1.6rem);
  color: var(--f3-navy);
  line-height: 1.3;
}

.guide-section > p.lead {
  margin: 0 0 var(--guide-inner-gap);
  color: var(--f3-muted);
  max-width: var(--guide-read-max);
  font-size: 1.05rem;
  line-height: 1.65;
}

.type-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.type-card {
  background: var(--f3-white);
  border-radius: var(--f3-radius);
  border: 1px solid rgba(26, 82, 118, 0.06);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: stretch;
}

.type-card--media-right {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}

.type-card--media-right .type-card-media {
  order: 2;
}

.type-card-media {
  min-height: 12rem;
  background: var(--f3-white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem;
}

.type-card-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.type-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.35rem 1.35rem 0.75rem;
}

.type-card-header img.type-brand {
  width: 3rem;
  height: auto;
  flex-shrink: 0;
}

.type-card-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--f3-navy);
}

.type-card-header .type-meta {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.88rem;
  color: var(--f3-muted);
  font-weight: 600;
}

.type-card-illus {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 14rem;
  display: block;
  object-fit: contain;
}

.type-card-body {
  padding: 1.25rem 1.35rem 1.5rem;
  flex: 1;
}

.type-card-body p {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  color: var(--f3-text);
  line-height: 1.6;
}

.type-card-body ul {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.95rem;
  line-height: 1.55;
}

.type-card-body li {
  margin-bottom: 0.55rem;
}

.type-card-body li:last-child {
  margin-bottom: 0;
}

.gantt-stack {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.gantt-wrap {
  background: var(--f3-white);
  border-radius: var(--f3-radius);
  box-shadow: var(--f3-shadow);
  border: 1px solid rgba(26, 82, 118, 0.06);
  padding: 1.5rem 1.5rem 1.75rem;
  overflow-x: auto;
}

.gantt-title {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--f3-navy);
  line-height: 1.4;
}

.gantt {
  min-width: 520px;
}

.gantt-axis {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.65rem;
}

.gantt-axis-track {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2px;
  font-size: 0.72rem;
  color: var(--f3-muted);
  text-align: center;
}

.gantt-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.65rem;
}

.gantt-row:last-child {
  margin-bottom: 0;
}

.gantt-row-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--f3-navy);
}

.gantt-track {
  position: relative;
  height: 2rem;
  background: var(--f3-pale);
  border-radius: 10px;
  overflow: hidden;
}

.gantt-bar {
  position: absolute;
  top: 0.25rem;
  bottom: 0.25rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--f3-white);
  white-space: nowrap;
  padding: 0 0.5rem;
}

.gantt-bar--short { background: #1abc9c; }
.gantt-bar--medium { background: linear-gradient(90deg, #2e86c1, var(--f3-navy)); }
.gantt-bar--long-session { background: #1abc9c; }

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-card {
  background: var(--f3-white);
  border-radius: 14px;
  border: 1px solid rgba(26, 82, 118, 0.08);
  padding: 1.35rem 1.5rem;
  box-shadow: 0 2px 12px rgba(26, 82, 118, 0.05);
}

.step-card strong {
  display: block;
  color: var(--f3-navy);
  margin-bottom: 0.65rem;
  font-size: 1.02rem;
}

.step-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--f3-muted);
  line-height: 1.6;
}

.step-card a {
  color: var(--f3-teal);
  font-weight: 600;
}

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

.who-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--f3-white);
  border-radius: 14px;
  padding: 1.35rem 1.5rem;
  border: 1px solid rgba(26, 82, 118, 0.08);
}

.who-card-icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--f3-pale);
  color: var(--f3-teal);
  font-size: 1.35rem;
}

.who-card-text {
  min-width: 0;
}

.who-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1rem;
  color: var(--f3-navy);
}

.who-card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--f3-muted);
  line-height: 1.6;
}

.tools-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .tools-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .tools-list li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc(50% - 0.625rem);
  }
}

.tools-list li {
  background: var(--f3-white);
  border: 1px solid rgba(26, 82, 118, 0.08);
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
}

.tool-item-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.45rem;
}

.tool-icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--f3-pale);
  color: var(--f3-navy);
  font-size: 1.1rem;
  text-align: center;
  vertical-align: middle;
}

.tool-icon .bi {
  vertical-align: middle;
}

.tools-list strong {
  display: block;
  color: var(--f3-navy);
  font-size: 0.98rem;
  line-height: 1.35;
}

.tools-list strong a {
  color: inherit;
  text-decoration: none;
}

.tools-list strong a:hover {
  color: var(--f3-teal);
  text-decoration: underline;
}

.tools-list span {
  font-size: 0.94rem;
  color: var(--f3-muted);
  line-height: 1.55;
  display: block;
}

.tools-list span a {
  color: var(--f3-teal);
  font-weight: 600;
  text-decoration: none;
}

.tools-list span a:hover {
  text-decoration: underline;
}

.tip-box {
  margin-top: 0;
  padding: 1.25rem 1.5rem;
  background: #eefaf6;
  border-left: 4px solid var(--f3-teal);
  border-radius: 0 14px 14px 0;
  font-size: 0.98rem;
  color: var(--f3-text);
  line-height: 1.65;
  max-width: var(--guide-read-max);
}

.guide-cta-section {
  text-align: left;
  padding-top: var(--guide-section-gap);
  border-top: 1px solid rgba(26, 82, 118, 0.1);
}

.guide-cta-section .lead {
  margin-bottom: 1.5rem;
}

.guide-cta-section .guide-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 1rem 1.35rem;
  max-width: 28rem;
  border-radius: 14px;
  background: var(--f3-navy);
  color: var(--f3-white);
  text-decoration: none;
  box-shadow: var(--f3-shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.guide-cta-section .guide-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26, 82, 118, 0.2);
}

.guide-cta-section .guide-cta-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--f3-white);
}

.guide-cta-section .guide-cta-arrow {
  width: 2.75rem;
  height: 2.75rem;
  color: var(--f3-teal);
  flex-shrink: 0;
}

.guide-cta-section .guide-cta-arrow .bi {
  font-size: 2.75rem;
  line-height: 1;
  display: block;
}

.catalog-footer {
  padding-bottom: 3rem;
}

@media (max-width: 640px) {
  .implement-main {
    padding: 2rem 1.15rem 3.5rem;
  }

  :root {
    --guide-section-gap: 3.25rem;
    --guide-inner-gap: 1.5rem;
  }

  .gantt {
    min-width: 0;
  }

  .gantt-axis,
  .gantt-row {
    grid-template-columns: 5.5rem 1fr;
  }

  .tools-list li:last-child:nth-child(odd) {
    max-width: none;
  }

  .type-card,
  .type-card--media-right {
    grid-template-columns: 1fr;
  }

  .type-card--media-right .type-card-media {
    order: 0;
  }

  .type-card-illus {
    max-height: 11rem;
  }

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