/* PTT-2499: homepage industry and How Lede Works sections, and the /industries pages.
   Tokens come from assets/lede-v3.css. */

.ind-clip-toggle[hidden] { display: none; }

.ind-block { padding: 64px 0; }
.ind-kick { font: 500 12px var(--mono); letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; }
.ind-h1,
.ind-h2 { font-family: var(--serif); font-weight: 500; color: var(--ink); margin: 0; text-wrap: balance; }
.ind-h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.02; }
.ind-h2 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.06; }
.ind-sub { font-size: 18px; color: var(--muted); max-width: 60ch; margin: 14px 0 22px; }

/* How Lede Works clip */
.ind-clip { position: relative; margin: 0; }
.ind-clip-video { display: block; width: 100%; max-width: 100%; height: auto; border-radius: 18px; background: var(--green-deep); box-shadow: 0 18px 40px rgba(20, 32, 26, .16); }
/* PTT-2384: the clip carries its own sample label, so the figcaption is screen-reader text only. */
/* PTT-2363: clip pattern, not display:none, so the aria-hidden video still has a description for screen readers. */
.ind-clip-desc { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.ind-clip-toggle {
  position: absolute; right: 12px; top: 12px; font: 600 12px var(--sans); padding: 8px 12px; border-radius: 999px;
  border: 1px solid rgba(241, 238, 223, .5); background: rgba(16, 42, 32, .72); color: #F1EEDF; cursor: pointer;
}
/* PTT-2550: Replay Clip sits over the middle of the held last frame. */
.ind-clip-replay { right: auto; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 15px; padding: 12px 22px; }

/* Industry picker */
.ind-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 22px; }
.ind-tabs button {
  font: 600 14px var(--sans); padding: 11px 18px; border-radius: 999px; border: 1px solid var(--rule);
  background: var(--paper); color: var(--ink-soft); cursor: pointer;
}
.ind-tabs button[aria-selected="true"] { background: var(--green); border-color: var(--green); color: #F1EEDF; }
.ind-tabs button:focus-visible,
.ind-clip-toggle:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.ind-panel {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 28px;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 20px; padding: 28px;
}
.ind-pain { font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1.25; margin: 0 0 18px; color: var(--ink); }
.ind-points { margin: 0 0 22px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ind-points li { display: flex; gap: 10px; line-height: 1.5; color: var(--ink-soft); }
.ind-points li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--sage); margin-top: 9px; }
.ind-noscript-list { margin: 16px 0 0; padding-left: 20px; }

/* Sample Cover Story card, used by the picker and the industry pages */
.ind-phone {
  background: #fff; border: 1px solid var(--rule); border-radius: 26px; padding: 16px;
  box-shadow: 0 18px 40px rgba(20, 32, 26, .10); align-self: start;
}
.ind-phone-top { display: flex; justify-content: space-between; font: 500 11px var(--mono); color: var(--muted); margin-bottom: 12px; }
.ind-phone-meta { font: 500 11px var(--mono); color: var(--muted); margin-bottom: 6px; }
.ind-phone-head { font-family: var(--serif); font-weight: 600; font-size: 21px; line-height: 1.15; margin: 0 0 6px; color: var(--ink); }
.ind-phone-dek { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.ind-row { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; padding: 8px 0; border-top: 1px solid var(--linen-2); }
.ind-row span:last-child { font: 500 10.5px var(--mono); color: var(--amber); }
.ind-sample { font-size: 11.5px; color: var(--muted); margin: 10px 0 0; }

/* PTT-2550: How Lede Works is the three-card flow (v4-flow) with the clip centred below it. */
.ind-clip-wide { max-width: 900px; margin: 40px auto 0; }

/* PTT-2550: section headings are centred; the industry panel content stays left aligned. */
#apps, #industries { text-align: center; }
#industries .ind-tabs { justify-content: center; }
#industries .ind-panel { text-align: left; }
#apps .v4-section-head { margin-bottom: 40px; }

/* Deep green band */
.ind-band { background: var(--green-deep); color: #F1EEDF; padding: 72px 0; margin-top: 40px; }
.ind-band h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.06; margin: 0 0 14px; color: #F1EEDF; text-wrap: balance; max-width: 22ch; }
.ind-band p { color: rgba(241, 238, 223, .82); max-width: 56ch; margin: 0 0 26px; }
.ind-band .btn-primary { background: #F1EEDF; color: var(--green-deep); }

/* Industry pages */
.ind-page .ind-ihero { padding: 140px 0 24px; }
.ind-page .ind-ihero + .ind-block { padding-top: 32px; }
.ind-ihero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px; align-items: start; }
.ind-lede { font-size: 18px; color: var(--muted); max-width: 60ch; margin: 18px 0 26px; }
.ind-kit { display: flex; flex-wrap: wrap; gap: 10px; }
.ind-fit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 26px; }
.ind-card { background: var(--paper); border: 1px solid var(--rule); border-radius: 16px; padding: 22px; }
.ind-card h3 { font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.15; margin: 10px 0 0; color: var(--ink); }
.ind-card p { color: var(--muted); font-size: 14.5px; margin: 8px 0 0; }
.ind-tag { display: inline-block; font: 600 11px var(--mono); padding: 4px 9px; border-radius: 999px; background: var(--linen-2); color: var(--muted); }

/* PTT-2554: industry page bands, alternating linen, paper and deep green, edge to edge. The text gutter stays the
   container's 28px (never below 16px). */
.ind-s-linen { background: var(--linen); }
.ind-s-paper { background: var(--paper); border-top: 1px solid #ece6d6; border-bottom: 1px solid #ece6d6; }
.ind-s-green { background: var(--green); color: #fff; }
.ind-s-green .ind-kick { color: #b9cbc1; }
.ind-s-green .ind-h2 { color: #fff; }
.ind-s-green .ind-sub { color: #d3dfd8; }

.ind-vh { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

/* Hero: Cover Story card with a sample trend chart below it */
.ind-hero-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ind-chart { background: #fff; border: 1px solid var(--rule); border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.ind-chart-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ind-chart-title { font-size: 13px; font-weight: 600; }
.ind-chart-range { font: 500 11px var(--mono); color: var(--muted); }
.ind-chart-svg { display: block; width: 100%; height: auto; }
.ind-chart .ind-sample { margin: 0; }

/* In Their Words: three shift logs feeding one tracked theme */
.ind-notes-grid { display: grid; grid-template-columns: minmax(0, 1fr) 48px minmax(0, .8fr); align-items: center; }
.ind-logs { display: flex; flex-direction: column; gap: 12px; }
.ind-log { background: #fff; border: 1px solid var(--rule); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.ind-log-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ind-log-time { font: 500 11px var(--mono); color: var(--muted); }
.ind-log-text { margin: 0; font-size: 15px; line-height: 1.45; }
.ind-chip { padding: 2px 9px; border-radius: 999px; background: var(--linen-2); font-size: 11px; font-weight: 600; color: var(--ink-soft); }
.ind-chip.ind-flag-fault { background: var(--linen-2); }
.ind-chip.ind-flag-impact { background: #f6e7c9; color: #6b4a0b; }
.ind-chip.ind-flag-urgent { background: #f1d8d9; color: #7d1f24; }
.ind-feed { display: flex; justify-content: center; color: var(--sage-dim); }
.ind-theme { background: #fff; border: 1px solid var(--green); border-radius: 16px; padding: 18px 20px; box-shadow: 0 18px 40px rgba(16, 42, 32, .12); display: flex; flex-direction: column; gap: 8px; }
.ind-theme-tag { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--green); color: #fff; font: 500 11px var(--mono); }
.ind-theme-head { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1.15; }
.ind-theme-body { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }

/* A Week at a Glance */
.ind-week { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.ind-day {
  display: flex; flex-direction: column; gap: 10px; align-items: stretch; min-height: 178px; padding: 16px; border-radius: 15px;
  cursor: pointer; text-align: left; font: inherit; color: var(--ink); background: var(--linen); border: 2px solid transparent; opacity: .86;
}
.ind-day[aria-pressed="true"] { background: #fff; border-color: #fff; box-shadow: 0 14px 30px rgba(0, 0, 0, .25); opacity: 1; }
.ind-day:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.ind-day-top { display: flex; justify-content: space-between; align-items: baseline; }
.ind-day-name { font: 500 12px var(--mono); letter-spacing: .06em; color: var(--muted); }
.ind-day-count { font-family: var(--serif); font-weight: 600; font-size: 26px; color: var(--green); }
.ind-day-note { font-size: 14px; line-height: 1.45; }
.ind-day-tag { align-self: flex-start; margin-top: auto; padding: 3px 10px; border-radius: 999px; font: 500 11px var(--mono); background: var(--linen-2); color: var(--muted); }
.ind-day-tag.is-on { background: var(--green); color: #fff; }
.ind-week-key { margin: 14px 0 0; font: 500 11px var(--mono); color: #b9cbc1; }
.ind-week-detail { margin-top: 18px; max-width: 760px; }
.ind-day-detail { padding: 20px 22px; border-radius: 15px; background: var(--green-hover); border: 1px solid #3c6655; display: flex; flex-direction: column; gap: 6px; }
.ind-day-detail[hidden] { display: none; }
.ind-detail-kick { font: 500 12px var(--mono); color: #b9cbc1; }
.ind-detail-head { font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.2; }
.ind-detail-body { font-size: 14px; color: #d3dfd8; line-height: 1.5; }

/* What Your Leader Sees: heat map of urgent handovers */
.ind-heat-scroll { overflow-x: auto; max-width: 100%; }
.ind-heat-scroll:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.ind-heat { display: grid; grid-template-columns: 190px repeat(7, minmax(56px, 1fr)); gap: 6px; min-width: 620px; max-width: 940px; }
.ind-heat-h { font: 500 11px var(--mono); color: var(--muted); text-align: center; }
.ind-heat-n { font-size: 14px; font-weight: 600; display: flex; align-items: center; }
.ind-heat-c { height: 44px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font: 500 12px var(--mono); }
.ind-hm1 { background: #e6ece9; color: var(--muted); }
.ind-hm2 { background: #a1b4ad; color: var(--ink); }
.ind-hm3 { background: #4f7564; color: #fff; }
.ind-hm4 { background: var(--green); color: #fff; }
.ind-legend { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.ind-sw { width: 18px; height: 12px; border-radius: 3px; display: inline-block; }

/* Three apps, each with a real screen crop */
.ind-card { padding: 0; overflow: hidden; background: #fff; }
.ind-card-body { padding: 18px 20px 22px; }
/* PTT-2611: card art is the shared illustration from app-art.css, flattened to sit at the top of the card. */
.ind-shot.v4-app-media { min-height: 0; padding: 14px 18px; border: 0; border-bottom: 1px solid #ece6d6; border-radius: 0; overflow: hidden; }
.ind-shot.v4-app-media svg { max-height: 170px; }

/* Questions, Answered: native details, so it works without script */
.ind-faqs { max-width: 820px; border-top: 1px solid #e2dccb; margin-top: 18px; }
.ind-faq { border-bottom: 1px solid #e2dccb; }
.ind-faq summary {
  list-style: none; cursor: pointer; min-height: 56px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 0; font-family: var(--serif); font-weight: 600; font-size: 21px; color: var(--ink);
}
.ind-faq summary::-webkit-details-marker { display: none; }
.ind-faq summary::after { content: "+"; font-family: var(--sans); font-size: 22px; color: var(--green); flex: none; }
.ind-faq[open] summary::after { content: "\2212"; }
.ind-faq summary:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.ind-faq p { margin: 0 0 18px; font-size: 15px; line-height: 1.6; color: var(--ink-soft); max-width: 68ch; }
.ind-faq p a { color: var(--green); }

@media (max-width: 820px) {
  .ind-panel,
  .ind-ihero-grid { grid-template-columns: 1fr; }
  .ind-notes-grid,
  .ind-week { grid-template-columns: 1fr; }
  .ind-feed { display: none; }
  .ind-theme { margin-top: 12px; }
  .ind-day { min-height: 0; }
  .ind-fit { grid-template-columns: 1fr; }
}
