/* =============================================================================
   RHCES Academy - academy.css                      Phase 0, review round 1, 12 Oct 2026
   -----------------------------------------------------------------------------
   The academy's OWN components, and nothing else. The look of rhces.com (tokens,
   fonts, header, footer, buttons, sections, hero, forms, badges, chips) is NOT
   in this file. It comes from the live rhces.com files, which every academy page
   loads first and in the same order as rhces.com does:

     1  style.css?v=1783536571   base components
     2  theme.css?v=21           the --cad-* colour tokens, light and dark, and the CAD patches
     3  store-menu.css?v=2       the Store dropdown
     4  rhces-fixes.css          proposed fixes, to be merged into theme.css as v=22 (see THEME.md)
     5  academy.css              this file
     6  mock.css                 the mock-up's page layouts (Phase 1: academy-pages.css)

   So a change to the rhces.com theme reaches the academy by itself, and this file
   can only add, never re-paint. Rules for this file:
     - colours come from the --cad-* tokens only; no hex or rgb() colour of its own,
       except rgba(var(--brand-rgb), a) tints that the live site uses the same way, and
       the one blue focus ring that the live .input-wrap input:focus uses and a <select> must match;
     - fonts, radii and spacing reuse the live values (--font-*, --radius-*, 24px
       gutters, the 14px card and 4px panel corners);
     - a component that rhces.com already has is used by its live class name
       (.btn, .section-tag, .hero, .info-item, .store-filters, .filter-btn,
       .product-badge, .contact-form ...), not rebuilt here;
     - it must never restyle a live class. A tint or colour fix for a live class
       goes in rhces-fixes.css, where it can move into theme.css for both sites.

   What is here:  1 hero centring  2 cards  3 panels and offers  4 small
   components (flag, check list, price, badge modifier, note, placeholder,
   progress, mono, eyebrow)  5 form bits the site does not have  6 footer legal links
   ============================================================================= */


/* -----------------------------------------------------------------------------
   1. HERO CENTRING
   The rhces.com homepage centres its hero with an inline <style> block, so it is
   not in a shared file. Same four rules, scoped to .hero-center.
   ----------------------------------------------------------------------------- */
.hero-center .hero-container { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.hero-center .hero-content { max-width: 820px; }
.hero-center .hero-actions, .hero-center .hero-stats { justify-content: center; }
.hero-center .hero-sub, .hero-center .hero-desc { margin-left: auto; margin-right: auto; }


/* -----------------------------------------------------------------------------
   2. CARDS
   The homepage "From the Blog" card (inline on rhces.com): 14px corners, lifts on
   hover. .card-grid is its grid. .tag is its small label.
   ----------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}
.card {
  display: block;
  padding: 24px;
  border-radius: 14px;
  background: var(--cad-panel);
  border: 1px solid var(--cad-rule);
  color: var(--cad-ink);
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
a.card:hover, .card.is-link:hover {
  background: var(--cad-accent-soft);
  border-color: var(--cad-accent);
  transform: translateY(-4px);
}
.card h3 { font-size: 1.05rem; font-weight: 700; color: var(--cad-ink); margin: 0 0 10px; line-height: 1.35; }
.card p { font-size: .9rem; color: var(--cad-ink-2); line-height: 1.6; margin: 0; }

.tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 12px;
  background: var(--cad-accent-soft);
  color: var(--cad-accent);
}


/* -----------------------------------------------------------------------------
   3. PANELS AND THE OFFER
   .panel is the flat box of the homepage seminar-sale ad (inline on rhces.com):
   1px rule, 4px corners, 32px padding. .offer is that panel with an image column.
   ----------------------------------------------------------------------------- */
.panel {
  background: var(--cad-panel);
  border: 1px solid var(--cad-rule);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.panel h3 { font-size: 1.65rem; font-weight: 800; line-height: 1.25; margin: 0 0 12px; color: var(--cad-ink); }
.panel > p, .offer-copy > p { font-size: .96rem; line-height: 1.65; color: var(--cad-ink-2); margin: 0 0 18px; }

.offer { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 40px; align-items: center; overflow: hidden; text-align: left; }
@media (max-width: 860px) {
  .offer { grid-template-columns: 1fr; gap: 26px; padding: 22px; justify-items: center; text-align: center; }
  .offer .check-list li { text-align: left; }
  .offer .price, .offer .actions { justify-content: center; }
}


/* -----------------------------------------------------------------------------
   4. SMALL COMPONENTS
   ----------------------------------------------------------------------------- */
/* Flag: rounded uppercase pill ("LIMITED TIME OFFER" on the homepage) */
.flag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
  background: var(--cad-accent-soft); color: var(--cad-accent);
  margin-bottom: 14px;
}

/* Check list: teal ticks */
.check-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 9px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: .92rem; color: var(--cad-ink); line-height: 1.45; }
.check-list svg { flex: none; margin-top: 2px; color: var(--cad-accent); }
.check-list .was { color: var(--cad-ink-2); text-decoration: line-through; margin-left: 4px; }

/* Price: big amount, "one time" and a soft pill */
.price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.price .amt { font-size: 2.4rem; font-weight: 800; letter-spacing: -.02em; color: var(--cad-ink); line-height: 1; }
.price .per { font-size: .95rem; color: var(--cad-ink-2); }
.price .off { font-size: .74rem; font-weight: 700; letter-spacing: .06em; padding: 5px 12px; border-radius: 999px; background: var(--cad-accent-soft); color: var(--cad-accent); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Badge modifier: the live .product-badge sits absolutely in a card corner; .is-inline puts it in the flow */
.product-badge.is-inline { position: static; }

/* Note: info / disclaimer box. Same pattern as library.rhces.com's .note. */
.note {
  background: var(--cad-accent-soft);
  border: 1px solid var(--cad-rule);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: .92rem;
  line-height: 1.55;
  color: var(--cad-ink);
}
.note strong { color: var(--cad-ink); }
.note.warn { background: transparent; border-color: var(--cad-warn); border-left-width: 3px; }

/* Placeholder: marks content that must come from a real source before launch
   (testimonials, learner numbers, ratings). Same dashed box as the stores' .empty. */
.placeholder {
  border: 1px dashed var(--cad-rule);
  border-radius: 14px;
  padding: 20px;
  color: var(--cad-ink-2);
  font-style: italic;
  font-size: .92rem;
  text-align: center;
  background: transparent;
}

/* Progress bar: the homepage store-slide bar (3px rule track, accent fill) */
.progress { display: block; height: 3px; border-radius: 3px; background: var(--cad-rule); overflow: hidden; }
.progress > i { display: block; height: 100%; width: var(--value, 0%); background: var(--cad-accent); }

/* Mono: clause numbers, values, code. IBM Plex Mono is in the theme's font set. */
.mono, code, kbd, samp { font-family: var(--font-mono); font-size: .88em; }
code { background: var(--cad-stage); border: 1px solid var(--cad-rule-2); border-radius: 3px; padding: 1px 5px; }

/* Eyebrow: uppercase spaced label (same metrics as .info-label and .footer-heading) */
.eyebrow { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--cad-ink-2); }


/* -----------------------------------------------------------------------------
   5. FORM BITS THE SITE DOES NOT HAVE
   The live contact form has text inputs and a textarea only. A <select> is
   styled like its inputs (same values as the live .input-wrap input, the Store
   caret as the arrow); checkboxes are native, tinted with the accent.
   ----------------------------------------------------------------------------- */
.input-wrap select {
  width: 100%;
  padding: 10px 40px 10px 38px;
  background: var(--cad-panel);
  border: 1.5px solid var(--cad-rule);
  border-radius: var(--radius-sm);
  color: var(--cad-ink);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.2s;
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%237A8588' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px;
}
.input-wrap select option { background: var(--cad-panel); color: var(--cad-ink); }
.input-wrap select:focus { border-color: var(--cad-accent); background-color: rgba(var(--brand-rgb), 0.04); box-shadow: 0 0 0 3px rgba(99,179,237,0.15); }   /* the same ring as the live .input-wrap input:focus */

.check-row { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; color: var(--cad-ink); line-height: 1.45; cursor: pointer; }
.check-row input { accent-color: var(--cad-accent); width: 16px; height: 16px; margin-top: 2px; flex: none; }


/* -----------------------------------------------------------------------------
   6. FOOTER LEGAL LINKS
   rhces.com writes this as inline style="" on the three links; the academy
   partial uses a class instead (same look).
   ----------------------------------------------------------------------------- */
.footer-legal a { text-decoration: none; opacity: .7; }
