/* johnalvarado1.com — the full dossier.
   Forest Signal design system (d9.css + the accepted inline rules) carried over from
   johnalvarado1.com unchanged. This file adds only the expandable-tier components
   and the few layout adjustments this page needs. Tokens come from d9.css :root. */

/* ── Business sections and tiers ───────────────────────────────────────── */
.biz-line {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.55;
}
.biz-line strong { color: var(--navy); }
.biz-line .sep { color: var(--muted); padding: 0 .35em; }
.biz-note { margin: 8px 0 0; color: var(--muted); font-size: .9rem; }

.tier { margin: 16px 0 0; border-top: 1px solid var(--rule-soft); }
.tier > summary {
  list-style: none;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
  cursor: pointer;
  color: var(--aqua-deep);
  font-weight: 700; font-size: .84rem; letter-spacing: .1em; text-transform: uppercase;
}
.tier > summary::-webkit-details-marker { display: none; }
.tier > summary::before {
  content: "";
  flex: 0 0 auto;
  width: 22px; height: 22px;
  border: 1px solid var(--aqua-deep);
  border-radius: 50%;
  background:
    linear-gradient(var(--aqua-deep), var(--aqua-deep)) center / 10px 1.5px no-repeat,
    linear-gradient(var(--aqua-deep), var(--aqua-deep)) center / 1.5px 10px no-repeat;
  transition: transform var(--ease);
}
.tier[open] > summary::before {
  background: linear-gradient(var(--aqua-deep), var(--aqua-deep)) center / 10px 1.5px no-repeat;
}
.tier__body { padding: 4px 0 6px; }
.tier--2 { margin-top: 12px; border-top: 0; }
.tier--3 { margin-left: 0; }
.tier--4 { border-top-style: dashed; }

.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.facts li {
  padding: 6px 11px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--surface);
  color: var(--navy);
  font-size: .8rem; font-weight: 600;
}

.roles { margin: 14px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule-soft); }
.roles li {
  display: grid; grid-template-columns: minmax(120px, .9fr) minmax(0, 2.6fr);
  gap: 6px 18px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: .94rem; line-height: 1.5;
}
.roles li span:first-child { color: var(--muted); font-size: .82rem; font-weight: 700; letter-spacing: .04em; }
.roles li strong { color: var(--navy); }
@media (max-width: 620px) { .roles li { grid-template-columns: 1fr; gap: 2px; } }

.case .tier { margin-top: 10px; }
.case .highlights { margin-top: 12px; }

.parallels {
  margin: 18px 0 0;
  padding: 16px 20px;
  border-left: 3px solid var(--aqua);
  background: var(--surface);
}
.parallels p { margin: 0 0 8px; }
.parallels p:last-child { margin: 0; }

/* ── Cards: four "what I run today" cards, two per row ─────────────────── */
.selected-work__grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
@media (max-width: 760px) { .selected-work__grid { grid-template-columns: 1fr !important; } }
.selected-card__band {
  display: flex; align-items: flex-end; justify-content: space-between;
  aspect-ratio: 16 / 9;
  padding: 18px 20px;
  background: var(--navy);
  color: #fff;
}
.selected-card__band--pa { background: var(--navy-lift); }
.selected-card__band--pub { background: var(--aqua-deep); }
.selected-card__band .band-index { color: var(--aqua-bright); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.selected-card__band .band-word { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.05; max-width: 12ch; }
.selected-card__band img { width: 44px; height: 44px; border-radius: 10px; }

/* ── Print: the whole record, every tier open ──────────────────────────── */
@media print {
  .top, .rail-col, .cta-row, .closing .actions, .skip-link, .selected-card__media .selected-card__play, .selected-card__watch { display: none !important; }
  .tier { border-top: 1px solid #ccc; }
  .tier > summary { color: #000; }
  .tier > summary::before { display: none; }
  .layout { display: block; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; }
  .opening, .executive-range, .closing, .foot { background: #fff !important; color: #000 !important; }
  .opening *, .closing *, .foot * { color: #000 !important; }
  .byline img { width: 90px; height: 90px; }
  html { font-size: 92% !important; }
}


/* Mobile refinement after John's browser review, 11 September 2026. */
.cta-row .button { justify-content: center; text-align: center; line-height: 1.35; }
.top-link { text-align: center; }
.selected-card__band .band-word { overflow-wrap: anywhere; }
.selected-card__band img { flex-shrink: 0; margin-left: 12px; }
@media (max-width: 620px) {
  .top .shell { gap: 10px; }
  .top-name { min-width: 0; gap: 8px; }
  .top-name strong { font-size: 1.05rem; }
  .top-mark { width: 24px; height: 24px; }
  .top-link { flex: 0 1 10rem; padding: 10px 12px; font-size: .62rem; letter-spacing: .06em; line-height: 1.4; white-space: normal; }
  .opening .cta-row { gap: 10px; }
  .opening .cta-row .button { width: 100%; min-height: 48px; }
  .selected-card__band { aspect-ratio: auto; min-height: 136px; gap: 12px; }
  .selected-card__band .band-word { font-size: clamp(1.45rem, 6vw, 1.9rem); max-width: none; }
  .selected-card__band .band-index { max-width: 11ch; text-align: right; font-size: .62rem; letter-spacing: .1em; }
}

/* Keep every card vertical at tablet widths as well as on phones. */
.selected-card { display: flex; flex-direction: column; min-width: 0; }
.selected-card__body { min-width: 0; }
.selected-card__band { min-width: 0; }
.selected-card__band .band-word { min-width: 0; max-width: none; }
.selected-card__band img { width: 44px; height: 44px; min-height: 0; aspect-ratio: 1; }
.selected-card__media img { width: 100%; height: auto; min-height: 0; aspect-ratio: 16 / 9; }

/* Website-sourced company branding: preserve the complete logo at every size. */
.selected-card__brand { aspect-ratio: 16 / 9; background: #f4f1e9; }
.selected-card__brand img { display: block; width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; }
.selected-card__brand--quest { background: #fff; padding: 22px; }
.selected-card__brand--doghouse { background: #161c17; }
