/* Homepage, from docs/handoff/mockups/advisoriq-homepage.html. Editorial lists with 1px ink
   top rules, pill chips, generous whitespace. No gradients, dark bands, emoji or left-border cards. */

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

/* Buttons used here */
.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; }
.btn-lg { padding: 14px 24px; }
.btn-ink, a.btn-ink, a.btn-ink:hover { color: var(--ink); }
.btn-block { display: flex; width: 100%; padding: 14px; }
.btn-outline, a.btn-outline {
  flex: 0 0 auto;
  min-height: var(--touch);
  padding: 10px 18px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.btn-outline:hover, a.btn-outline:hover { background: var(--accent-tint); color: var(--accent-hover); }

/* Shared section pieces */
.home-band { border-top: 1px solid var(--line); }
.home-band > .wrap { padding-top: 72px; padding-bottom: 72px; }
.home-alt { background: var(--paper-2); }
.home-how { background: var(--card); }
.home-how > .wrap { padding-top: 64px; padding-bottom: 64px; }
#webinars > .wrap { padding-top: 56px; padding-bottom: 56px; }

.home h2 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.2; }
.home-head { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: baseline; margin-bottom: 24px; }
.home-head h2 { font-size: 36px; }
.home-head-link { font-weight: 600; }
.home-h2-lg { margin: 0 0 18px !important; font-size: 42px; line-height: 1.12 !important; }
.home-sublede { margin: 0 0 28px; font-size: 18px; color: var(--ink-2); }
.home-sub { margin: 0 0 20px; color: var(--ink-3); }
.home-meta { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.home-more { margin: 20px 0 0; }
.home-more a { font-weight: 600; }
.home-fine { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.home-topic { margin: 0 0 4px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.home-topic a { color: inherit; text-decoration: none; }
.home-topic a:hover { text-decoration: underline; }
.home-empty { border-top: 1px solid var(--ink); padding: 24px 0 4px; color: var(--ink-3); }
.home-empty p { margin: 0 0 8px; max-width: 640px; }
.kicker-muted { color: var(--ink-3); margin-bottom: 12px; }

.home-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.home-chips .chip { padding: 4px 10px; white-space: nowrap; }
.chip-plain { background: var(--paper-2); color: var(--ink-3); }
.chip-note { font-weight: 500; }

.home-split { display: flex; flex-wrap: wrap; gap: 56px; }
.home-split-text { flex: 1 1 420px; min-width: 0; }
.home-split-single > .home-split-text { max-width: 760px; }

/* Hero */
.home-hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-top: 64px; padding-bottom: 56px; }
.home-hero-text { flex: 999 1 560px; min-width: 0; }
.home-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.home-asof { margin: 28px 0 0; padding-top: 14px; border-top: 1px solid var(--line); max-width: 600px; font-size: 15px; color: var(--ink-3); }
.home-asof a { font-weight: 600; white-space: nowrap; }
.home-hero-card { flex: 1 1 380px; min-width: 0; }
.home-hero-card .kicker { margin-bottom: 12px; }
.home-hero-card h2 { margin: 0 0 10px; font-size: 26px; line-height: 1.2; }
.home-hero-card h2 a { color: var(--ink); text-decoration: none; }
.home-hero-card h2 a:hover { color: var(--accent); }
.home-byline { margin: 0 0 18px; color: var(--ink-3); font-size: 15px; }
.home-hero-card .home-chips { margin-bottom: 22px; }
.home-hero-card .btn + .btn { margin-top: 10px; }
.home-live { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; font-size: 14px; color: var(--ink-3); }
.live-badge { padding: 3px 8px; border-radius: 4px; background: var(--live); color: #FFFFFF; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; }

/* Coming up */
.home-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.home-filter {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.home-filter:hover { border-color: var(--ink); color: var(--ink); }
.home-filter.is-on { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.home-sessions { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.home-session { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.home-session-when { flex: 0 0 150px; font-size: 14px; }
.home-session-when .muted { color: var(--ink-3); }
.home-day { font-weight: 700; font-size: 15px; }
.home-session-main { flex: 999 1 380px; min-width: 0; }
.home-session-main h3 { margin: 0; font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.3; }
.home-session-main h3 a { color: var(--ink); text-decoration: none; }
.home-session-main h3 a:hover { color: var(--accent); }
.home-session-credit { flex: 0 0 180px; }
.home-nocredit { font-size: 14px; font-weight: 600; color: var(--ink-2); }

/* CE band and calculator */
.home-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px 28px; }
.home-points-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.home-points h3 { margin: 0 0 4px; font-family: var(--sans); font-size: 16px; font-weight: 700; }
.home-points p { margin: 0; color: var(--ink-3); font-size: 15px; }
.home-how h2 { margin-bottom: 28px; font-size: 32px; }
.home-how .home-points h3 { margin-bottom: 6px; }

.home-calc { flex: 1 1 420px; min-width: 0; padding: 32px; }
.home-calc h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.2; }
.home-calc fieldset { margin: 0 0 26px; padding: 0; border: 0; min-width: 0; }
.home-calc legend { margin: 0 0 20px; padding: 0; color: var(--ink-3); font-size: 15px; }
.home-calc-rows { border-top: 1px solid var(--line); }
.home-calc-row { display: flex; gap: 16px; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.home-calc-name { font-weight: 600; }
.home-calc-name span { margin-left: 6px; font-weight: 400; color: var(--muted); }
.home-calc-row p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.home-calc-figure { font-family: var(--serif); font-size: 24px; font-weight: 600; white-space: nowrap; }
.home-calc-none { display: none; margin: 16px 0; color: var(--muted); }
/* Rows follow the pills without script; browsers without :has() show every row. */
.home-calc-form:not(:has(.pill input:checked)) .home-calc-none { display: block; }
.home-calc-form:has(input[value="CFP"]:not(:checked)) .home-calc-row[data-d="CFP"],
.home-calc-form:has(input[value="CIMA"]:not(:checked)) .home-calc-row[data-d="CIMA"],
.home-calc-form:has(input[value="CPWA"]:not(:checked)) .home-calc-row[data-d="CPWA"],
.home-calc-form:has(input[value="CFA"]:not(:checked)) .home-calc-row[data-d="CFA"],
.home-calc-form:has(input[value="IAR"]:not(:checked)) .home-calc-row[data-d="IAR"],
.home-calc-form:has(input[value="IAR"]:not(:checked)) .home-calc-state { display: none; }
.home-calc-state { margin-top: 20px; }
.home-calc-state label, .home-fund label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--ink-3); }
.home-inline { display: flex; flex-wrap: wrap; gap: 8px; }
.home-inline select, .home-inline input {
  flex: 1 1 180px;
  min-width: 0;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  font: inherit;
}
.home-inline .btn { flex: 0 0 auto; min-height: 46px; padding: 0 18px; }
.home-calc > .btn-block { margin-top: 24px; }

/* Dates that matter and industry events */
.home-dates h2, #calendar h2 { margin-bottom: 8px; font-size: 32px; }
.home-dates { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.home-date-row { display: flex; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.home-date { flex: 0 0 96px; font-weight: 700; }
.home-date span { display: block; font-size: 13px; font-weight: 400; color: var(--muted); }
.home-date-title { font-weight: 600; }
a.home-date-title { color: var(--ink); text-decoration: none; }
a.home-date-title:hover { color: var(--accent); text-decoration: underline; }

/* Replays */
.home-replays { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.home-replay { padding-top: 16px; border-top: 1px solid var(--ink); }
.home-replay h3 { margin: 6px 0 8px; font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.25; }
.home-replay h3 a { color: var(--ink); text-decoration: none; }
.home-replay h3 a:hover { color: var(--accent); }
.home-replay .home-chips { margin-top: 8px; }

/* Succession and M&A */
.home-intro { max-width: 720px; margin-bottom: 36px; }
.home-intro .kicker { margin-bottom: 14px; }
.home-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.home-link-card { display: block; padding: 26px; color: var(--ink); text-decoration: none; }
.home-link-card h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 22px; font-weight: 600; }
.home-link-card p { margin: 0; color: var(--ink-3); font-size: 15px; }
.home-link-card:hover { border-color: var(--line-strong); color: var(--ink); }
.home-link-card:hover h3 { color: var(--accent); }
.home-note { margin-top: 20px; }

/* Research and the ETFIQ lookup */
.home-split-main { flex: 999 1 560px; min-width: 0; }
.home-articles { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.home-article { display: block; padding: 20px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.home-article-title { display: block; font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.3; }
.home-article .home-meta { display: block; }
.home-article:hover .home-article-title { color: var(--accent); }
.home-fund { flex: 1 1 340px; min-width: 0; align-self: flex-start; padding: 28px; border: 1px solid var(--line-strong); border-radius: 10px; }
.home-fund h3 { margin: 0 0 10px; font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.25; }
.home-fund-text > p:not(.kicker) { margin: 0 0 18px; color: var(--ink-3); font-size: 15px; }
.home-fund form { margin: 0; }
/* No articles yet: the lookup runs the full width as a two-column band. */
.home-split-single .home-fund { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px 48px; align-items: flex-end; }
.home-split-single .home-fund-text { flex: 1 1 360px; }
.home-split-single .home-fund form { flex: 1 1 360px; padding-bottom: 18px; }

@media (max-width: 640px) {
  .home-hero { padding-top: 40px; padding-bottom: 48px; gap: 36px; }
  .home-band > .wrap, #webinars > .wrap, .home-how > .wrap { padding-top: 48px; padding-bottom: 48px; }
  .home-head h2 { font-size: 30px; }
  .home-h2-lg { font-size: 32px; }
  #calendar h2, .home-how h2 { font-size: 28px; }
  .home-hero-card, .home-calc, .home-fund { padding: 22px; }
  .home-session-when, .home-session-credit { flex-basis: auto; }
  .home-session-when { display: flex; gap: 8px; align-items: baseline; }
  .home-split { gap: 48px; }
  .home-calc-row { flex-direction: column-reverse; gap: 2px; }
  .home-calc-figure { font-size: 22px; }
  .home-date { flex-basis: 72px; }
  .home-date-row { gap: 16px; }
}
