/* NAREB Tampa Academy: brand layer over the base design system. Colors from narebtampa.org:
   navy #23518C, deep navy #003B5F, gold #D4AF37. Headings in Lato. */
:root {
  --ac-navy: #23518C;
  --ac-deep: #003B5F;
  --ac-ink: #0B1F33;
  --ac-gold: #D4AF37;
  --ac-gold-deep: #A8862A;
  --ac-sky: #3287BF;
  --ac-cream: #FAF7EF;
  --ac-line: #E2E6EE;
  --ac-text: #26334A;
  --ac-muted: #5B6880;
}

/* ---------- dashboard chrome ---------- */
.ac-brand { display: flex; align-items: center; gap: 10px; }
.ac-brand img.logo { width: auto; height: 30px; }
.ac-brand span { font-family: Lato, Inter, sans-serif; font-weight: 700; line-height: 1.05; display: flex; flex-direction: column; font-size: 13px; letter-spacing: .02em; }
.ac-brand span b { font-size: 17px; color: var(--ac-gold); font-weight: 900; }
.auth .ac-brand span { color: var(--ac-ink); }
.auth .ac-brand span b { color: var(--ac-navy); }
.auth-product a { color: var(--ac-navy); }

/* ---------- public pages ---------- */
body.pub { background: #fff; }
.ac-top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--ac-line); }
.ac-top-in { max-width: 1160px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ac-top-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ac-ink); font-family: Lato, Inter, sans-serif; font-size: 16px; }
.ac-top-brand b { color: var(--ac-navy); font-weight: 900; }
.ac-top-nav { display: flex; align-items: center; gap: 18px; }
.ac-top-nav a { color: var(--ac-text); text-decoration: none; font-weight: 600; font-size: 15px; }
.ac-top-nav a:hover { color: var(--ac-navy); }
.ac-top-nav .ac-top-cta { background: var(--ac-navy); color: #fff; padding: 8px 14px; border-radius: 999px; }
.ac-top-nav .ac-top-cta:hover { background: var(--ac-deep); color: #fff; }
@media (max-width: 560px) {
  .ac-top-brand span { font-size: 14px; }
  .ac-top-nav { gap: 12px; }
  .ac-top-nav a { font-size: 14px; }
  .ac-top-nav a[href$="/about"] { display: none; }
}

.ac { color: var(--ac-text); font-family: Inter, system-ui, sans-serif; }
.ac h1, .ac h2, .ac h3 { font-family: Lato, Inter, sans-serif; color: var(--ac-ink); letter-spacing: -.01em; }
.ac-wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.ac-section { padding: 72px 0; }
.ac-kicker { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ac-navy); margin: 0 0 10px; }
.ac-kicker-gold { color: var(--ac-gold); }
.ac-center { text-align: center; }

.ac-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 10px; font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; transition: transform .15s ease, background .15s ease; }
.ac-btn:hover { transform: translateY(-1px); }
.ac-btn-gold { background: var(--ac-gold); color: var(--ac-ink); }
.ac-btn-gold:hover { background: #E2C155; }
.ac-btn-navy { background: var(--ac-navy); color: #fff; }
.ac-btn-navy:hover { background: var(--ac-deep); }
.ac-btn-line { border-color: rgba(255,255,255,.55); color: #fff; }
.ac-btn-line:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* hero */
.ac-hero { position: relative; overflow: hidden; color: #fff; background:
  radial-gradient(900px 480px at 85% 10%, rgba(50,135,191,.35), transparent 60%),
  radial-gradient(700px 420px at 0% 100%, rgba(212,175,55,.18), transparent 60%),
  linear-gradient(135deg, var(--ac-deep) 0%, var(--ac-navy) 100%); }
.ac-hero::after { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 2px, transparent 2px 64px); pointer-events: none; }
.ac-hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; padding-top: 88px; padding-bottom: 96px; }
.ac-hero h1 { color: #fff; font-size: clamp(40px, 6vw, 68px); line-height: 1.02; margin: 0 0 16px; font-weight: 900; }
.ac-tagline { color: var(--ac-gold); font-family: Lato, sans-serif; font-weight: 700; font-size: clamp(18px, 2.2vw, 24px); margin: 0 0 18px; }
.ac-lead { color: rgba(255,255,255,.88); font-size: 18px; line-height: 1.6; max-width: 620px; margin: 0 0 28px; }
.ac-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.ac-hero-note { color: rgba(255,255,255,.7); font-size: 14px; margin: 18px 0 0; }
.ac-hero-seal { text-align: center; }
.ac-hero-seal img { width: 100%; max-width: 320px; height: auto; filter: drop-shadow(0 18px 40px rgba(0,0,0,.35)); }
.ac-hero-seal p { margin: 18px 0 0; font-family: Lato, sans-serif; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; color: var(--ac-gold); font-size: 14px; }
@media (max-width: 860px) {
  .ac-hero-in { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 56px; gap: 28px; }
  .ac-hero-seal { order: -1; }
  .ac-hero-seal img { max-width: 170px; }
  .ac-hero-seal p { margin-top: 8px; }
}

/* pillars */
.ac-pillars { background: var(--ac-cream); border-bottom: 1px solid var(--ac-line); }
.ac-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ac-pillars .ac-grid3 { padding: 48px 20px; }
.ac-pillar { border-top: 3px solid var(--ac-gold); padding-top: 18px; }
.ac-num { font-family: Lato, sans-serif; font-weight: 900; color: var(--ac-gold-deep); font-size: 14px; letter-spacing: .1em; }
.ac-pillar h2 { font-size: 22px; margin: 6px 0 8px; }
.ac-pillar p { margin: 0; line-height: 1.6; }
@media (max-width: 760px) { .ac-grid3 { grid-template-columns: 1fr; } .ac-section { padding: 52px 0; } }

/* featured course */
.ac-featured { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.ac-featured-img { display: block; border-radius: 18px; overflow: hidden; background: var(--ac-deep); aspect-ratio: 16 / 10; box-shadow: 0 24px 60px -24px rgba(0,59,95,.45); }
.ac-featured-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ac-featured h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 0 0 12px; line-height: 1.1; }
.ac-lead-dark { font-size: 18px; line-height: 1.6; color: var(--ac-text); }
.ac-ticks { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 10px; }
.ac-ticks li { padding-left: 30px; position: relative; }
.ac-ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--ac-gold); box-shadow: inset 0 0 0 5px #fff6d6; }
@media (max-width: 860px) { .ac-featured { grid-template-columns: 1fr; gap: 24px; } }

/* history band */
.ac-history { background: var(--ac-ink); color: #fff; background-image: radial-gradient(600px 300px at 100% 0%, rgba(212,175,55,.16), transparent 60%); }
.ac-history-in { max-width: 820px; }
.ac-history h2 { color: #fff; font-size: clamp(30px, 4vw, 46px); margin: 0 0 18px; }
.ac-history p { color: rgba(255,255,255,.86); font-size: 18px; line-height: 1.7; }
.ac-history .ac-btn { margin-top: 10px; }

/* course cards */
.ac-head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.ac-head-row h2 { margin: 0; font-size: 30px; }
.ac-head-row a { color: var(--ac-navy); font-weight: 700; }
.ac-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.ac-card { display: flex; flex-direction: column; border: 1px solid var(--ac-line); border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; background: #fff; transition: box-shadow .2s ease, transform .2s ease; }
.ac-card:hover { box-shadow: 0 18px 44px -20px rgba(0,59,95,.35); transform: translateY(-2px); }
.ac-card-img { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--ac-deep), var(--ac-navy)); display: grid; place-items: center; }
.ac-card-img img { width: 100%; height: 100%; object-fit: cover; }
.ac-card-img img.ac-card-mark { width: 38%; height: auto; object-fit: contain; }
.ac-card-body { padding: 18px 18px 20px; display: grid; gap: 8px; }
.ac-card-body h3 { margin: 0; font-size: 20px; line-height: 1.25; }
.ac-card-body p { margin: 0; color: var(--ac-muted); line-height: 1.5; }
.ac-card-meta { font-size: 13px; color: var(--ac-muted); font-weight: 600; }
.ac-chip { justify-self: start; background: #FFF6D6; color: #6B5310; font-weight: 800; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.ac-empty { color: var(--ac-muted); }

/* the president */
.ac-visionary { background: linear-gradient(180deg, #fff 0%, var(--ac-cream) 100%); border-top: 1px solid var(--ac-line); }
.ac-visionary-in { display: grid; grid-template-columns: 220px 1fr; gap: 44px; align-items: center; max-width: 980px; }
.ac-portrait { width: 220px; height: 220px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, var(--ac-navy), var(--ac-deep)); display: grid; place-items: center; box-shadow: 0 0 0 6px #fff, 0 0 0 9px var(--ac-gold), 0 24px 50px -20px rgba(0,59,95,.5); }
.ac-portrait img { width: 100%; height: 100%; object-fit: cover; }
.ac-portrait span { color: var(--ac-gold); font-family: Lato, sans-serif; font-weight: 900; font-size: 54px; letter-spacing: .04em; }
.ac-visionary h2 { font-size: clamp(28px, 3.4vw, 38px); margin: 0; }
.ac-role { color: var(--ac-gold-deep); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: 14px; margin: 6px 0 16px; }
.ac-visionary p { line-height: 1.7; font-size: 17px; }
@media (max-width: 760px) { .ac-visionary-in { grid-template-columns: 1fr; text-align: center; gap: 24px; } .ac-portrait { margin: 0 auto; width: 170px; height: 170px; } }

/* who it's for */
.ac-who { margin-top: 28px; }
.ac-who > div { background: #fff; border: 1px solid var(--ac-line); border-radius: 16px; padding: 24px; border-top: 4px solid var(--ac-navy); }
.ac-who h3 { margin: 0 0 8px; font-size: 19px; }
.ac-who p { margin: 0; line-height: 1.6; }

/* mission */
.ac-mission { background: var(--ac-navy); color: #fff; }
.ac-mission-in { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.ac-mission .ac-kicker { color: var(--ac-gold); }
.ac-mission h2 { color: #fff; font-size: clamp(26px, 3.2vw, 38px); margin: 0; line-height: 1.15; }
.ac-mission p { color: rgba(255,255,255,.9); font-size: 17px; line-height: 1.7; margin-top: 0; }
@media (max-width: 760px) { .ac-mission-in { grid-template-columns: 1fr; gap: 16px; } }

/* join */
.ac-join { background: var(--ac-cream); }
.ac-join-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 40px; padding-bottom: 40px; flex-wrap: wrap; }
.ac-join h2 { margin: 0 0 4px; font-size: 26px; }
.ac-join p { margin: 0; }
.ac-boards { padding: 0; border-top: 1px solid var(--ac-line); }

/* inner page head and prose */
.ac-page-head { background: linear-gradient(135deg, var(--ac-deep), var(--ac-navy)); color: #fff; padding: 56px 0 48px; }
.ac-page-head h1 { color: #fff; font-size: clamp(32px, 4.4vw, 50px); margin: 0 0 10px; }
.ac-page-head p { color: rgba(255,255,255,.88); font-size: 18px; max-width: 760px; margin: 0; line-height: 1.6; }
.ac-prose { max-width: 780px; font-size: 17px; line-height: 1.75; }
.ac-prose h2 { font-size: 26px; margin: 34px 0 10px; }
.ac-prose h2:first-child { margin-top: 0; }
.ac-prose a { color: var(--ac-navy); }
.ac-code { background: var(--ac-cream); border: 1px solid var(--ac-line); padding: 6px 10px; border-radius: 8px; font-size: 15px; word-break: break-all; }
.ac-note { background: #EAF6EE; border: 1px solid #B7E0C3; padding: 14px 16px; border-radius: 10px; }
.ac-note-err { background: #FDECEC; border-color: #F4B9B9; }
.ac-form { display: grid; gap: 14px; max-width: 560px; }
.ac-form label { display: grid; gap: 6px; font-weight: 600; }
.ac-form input, .ac-form textarea { font: inherit; padding: 11px 12px; border: 1px solid #C8CFDA; border-radius: 10px; }
.hp { position: absolute; left: -9999px; }

/* footer */
.ac-foot { background: var(--ac-ink); color: rgba(255,255,255,.8); margin-top: 0; }
.ac-foot-in { max-width: 1160px; margin: 0 auto; padding: 40px 20px 32px; display: grid; gap: 18px; }
.ac-foot-brand { display: flex; align-items: center; gap: 14px; }
.ac-foot-brand b { display: block; color: #fff; font-family: Lato, sans-serif; font-size: 18px; }
.ac-foot-brand span { color: var(--ac-gold); font-size: 14px; }
.ac-foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.ac-foot-links a { color: rgba(255,255,255,.85); text-decoration: none; font-weight: 600; font-size: 14px; }
.ac-foot-links a:hover { color: var(--ac-gold); }
.ac-foot-copy { margin: 0; font-size: 13px; color: rgba(255,255,255,.6); line-height: 1.6; }

/* ---------- lessons: figures and video credits inside lesson text ---------- */
.lp-fig { margin: 22px 0; }
.lp-fig img { width: 100%; height: auto; border-radius: 12px; display: block; background: #F2F4F8; }
.lp-fig figcaption { font-size: 14px; color: var(--ac-muted); margin-top: 8px; line-height: 1.5; }
.lp-fig figcaption small { display: block; font-size: 12px; margin-top: 2px; }
.lp-callout { border-left: 4px solid var(--ac-gold); background: #FFFBEA; padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 20px 0; }
.lp-callout p:last-child { margin-bottom: 0; }
.lp-h { font-family: Lato, Inter, sans-serif; font-size: 22px; margin: 28px 0 8px; color: var(--ac-ink); }
.ac-top-nav a, .ac-top-brand span { white-space: nowrap; }
@media (max-width: 420px) {
  .ac-top-in { padding: 8px 14px; }
  .ac-top-brand img { width: 36px; height: auto; }
  .ac-top-brand span { font-size: 13px; }
  .ac-top-nav .ac-top-cta { padding: 7px 12px; }
}
.ac-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 28px 0 30px; }
.ac-facts div { border-left: 3px solid var(--ac-gold); padding-left: 14px; }
.ac-facts dt { font-family: Lato, sans-serif; font-weight: 900; font-size: 40px; color: var(--ac-gold); line-height: 1; }
.ac-facts dd { margin: 6px 0 0; color: rgba(255,255,255,.8); font-size: 14px; line-height: 1.4; }
@media (max-width: 640px) { .ac-facts { grid-template-columns: repeat(2, 1fr); } }
