/* Pipeline Beacon guides: the hub, the "Where leads leak" overview and the
   five leak pages. Loaded after pipeline-beacon.css and pipeline-beacon-home.css.
   Amber is only ever a fill or a border, never text on the light background. */

/* Navy hero at the top of every guide page */
.guide-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  background: var(--ink);
  color: #E2E8F0;
}

.guide-hero h1 {
  max-width: 24ch;
  margin-bottom: 0;
  color: #FFFFFF;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
}

.guide-hero .lead {
  max-width: 40rem;
  margin: 1.25rem 0 0;
  color: #E2E8F0;
}

/* "Where leads leak: 1 of 5" above the page heading */
.guide-kicker {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-family: var(--head-font);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-hero .guide-kicker {
  color: #CBD5E1;
}

/* The kicker on guide pages doubles as the way back: "Guides" goes to the
   hub and "Where leads leak" goes to the overview. */
.guide-hero .guide-kicker a {
  color: #FFFFFF;
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}

.guide-hero .guide-kicker a:hover {
  text-decoration-color: #FFFFFF;
}

.guide-hero .guide-kicker a:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

/* The five leak points as numbered steps. On a guide page the current step
   is filled amber. Steps 4 and 5, where Pipeline Beacon helps, carry an amber
   bar along the top. */
.leak-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 64rem;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
}

.leak-steps li {
  margin: 0;
}

.leak-steps a {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  height: 100%;
  padding: 0.9rem 1rem 1rem;
  border: 1px solid #334155;
  border-top: 4px solid #334155;
  border-radius: 0.5rem;
  color: #E2E8F0;
  font-family: var(--head-font);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.leak-steps a:hover {
  border-color: #94A3B8;
  background: #1E293B;
}

.leak-steps .is-beacon a {
  border-top-color: var(--amber);
}

.leak-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 2px solid #64748B;
  border-radius: 50%;
  color: #FFFFFF;
  font-size: 1.125rem;
}

.leak-steps .is-current a {
  border-color: var(--amber);
  background: #1E293B;
  color: #FFFFFF;
}

.leak-steps .is-current .leak-num {
  border-color: var(--amber);
  background: var(--amber);
  color: var(--ink);
}

.leak-steps a:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

/* The same steps on a light background (the hub card) */
.leak-steps-light a {
  border-color: var(--rule);
  border-top-color: var(--rule);
  background: var(--paper);
  color: var(--ink);
}

.leak-steps-light .is-beacon a {
  border-top-color: var(--amber);
}

.leak-steps-light a:hover {
  border-color: var(--muted);
  background: #FFFFFF;
}

.leak-steps-light .leak-num {
  border-color: var(--ink);
  color: var(--ink);
}

.leak-steps-light a:focus-visible {
  outline-color: var(--ink);
}

@media (max-width: 52rem) {
  .leak-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
  }

  .leak-steps a {
    flex-direction: row;
    align-items: center;
    padding: 0.6rem 0.9rem;
  }

  .leak-num {
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
  }
}

/* Guide text runs in one column. The home stylesheet splits a band into a
   heading column and a content column on wide screens; guide text has no side
   heading, so it stays in a single column. */
.band .prose.guide-text {
  display: block;
  max-width: 64rem;
}

.band .prose.guide-text p,
.band .prose.guide-text ul,
.band .prose.guide-text ol {
  max-width: 62ch;
}

.band .prose.guide-text h2 {
  position: static;
  max-width: none;
  margin-top: 2.5rem;
}

.band .prose.guide-text h2:first-child {
  margin-top: 0;
}

.guide-text a:not(.button),
.guide-linkedin a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* Content panels: what you notice, how to check, what fixes it, and the
   Pipeline Beacon answer. The bold label that opens a panel is set in the
   heading font so it reads as the panel's title, but stays on the same line
   as the sentence it starts. */
.guide-block {
  margin: 0 0 1.25rem;
  padding: 1.5rem 1.75rem;
  background: #FFFFFF;
  border: 1px solid var(--rule);
  border-radius: 0.5rem;
}

.guide-block > :last-child {
  margin-bottom: 0;
}

.guide-block > p:first-child > strong:first-child,
.guide-block > img + p > strong:first-child {
  font-family: var(--head-font);
  font-size: 1.25rem;
  font-weight: 600;
}

.guide-block ul {
  padding-left: 1.25rem;
}

.guide-block li {
  margin-bottom: 0.5rem;
}

.guide-check {
  border-left: 0.5rem solid var(--amber);
}

.guide-beacon {
  border-color: var(--ink);
  border-left: 0.5rem solid var(--amber);
  background: var(--ink);
  color: #E2E8F0;
}

.guide-beacon strong {
  color: #FFFFFF;
}

.guide-beacon-logo {
  display: block;
  width: 10rem;
  height: auto;
  margin: 0 0 1rem;
}

/* Steps placed inside guide text use the full width of their panel */
.band .prose.guide-text .leak-steps {
  max-width: none;
}

.guide-text .leak-steps a {
  text-decoration: none;
}

/* Hub: the series card */
.guide-series {
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.band .prose.guide-text .guide-series h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.guide-text .guide-series h2 a {
  text-decoration: none;
}

.guide-series h2 a:hover {
  text-decoration: underline;
}

.guide-series .leak-steps {
  margin: 1.75rem 0;
}

.guide-series .guide-kicker {
  margin-bottom: 0.5rem;
}

/* Overview table, inside a panel. The wrapper scrolls sideways on a narrow
   screen so the table keeps its width instead of squashing. */
.guide-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.guide-table-wrap:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.guide-table {
  min-width: 44rem;
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  line-height: 1.4;
}

.guide-table th,
.guide-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.guide-table th {
  border-bottom: 2px solid var(--ink);
  font-family: var(--head-font);
  font-weight: 600;
}

.guide-table tbody tr:last-child td {
  border-bottom: 0;
}

.guide-table td:first-child a {
  font-family: var(--head-font);
  font-weight: 600;
}

.guide-table .is-beacon td:last-child {
  background: #FEF3C7;
  font-weight: 600;
}

/* Source text at the foot of a page */
.guide-source {
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.guide-source h2 {
  font-size: 1.125rem;
}

.guide-source ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.guide-source li {
  margin-bottom: 0.5rem;
}

.guide-text .guide-source a {
  color: var(--muted);
}

/* Previous and next links, as two panels */
.guide-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  margin: 2rem 0 0;
}

.band .prose.guide-text .guide-nav p {
  max-width: none;
  margin: 0;
  padding: 1rem 1.25rem;
  background: #FFFFFF;
  border: 1px solid var(--rule);
  border-radius: 0.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.guide-text .guide-nav a {
  display: block;
  margin-top: 0.25rem;
  color: var(--ink);
  font-family: var(--head-font);
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
}

.guide-text .guide-nav a:hover {
  text-decoration: underline;
}

/* Closing band: trial button, LinkedIn and the PDF download */
.guide-cta {
  padding: 2.5rem 0;
  background: var(--ink);
  color: #E2E8F0;
}

.guide-cta .wide {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}

.guide-cta p {
  margin: 0;
}

.guide-cta a:not(.button) {
  color: #FFFFFF;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.guide-cta a:focus-visible {
  outline-color: var(--amber);
}

.guide-linkedin {
  font-size: 1rem;
}

.guide-download {
  font-size: 1rem;
}
