/* Posts: the article template and the guides hub.
 *
 * Everything here uses the tokens from site.css, including --card-bg, which is the variable the
 * shared section alternator sets. That is what keeps a card on a tinted section white and a card
 * on a white section tinted, rather than two light grounds meeting each other.
 */

/* ---------------------------------------------------------------- article hero */
.acadame .p-hero { background:var(--primary); color:#fff; padding:34px 0 40px; position:relative; overflow:hidden; }
.acadame .p-hero::before { content:""; position:absolute; right:-160px; top:-160px; width:520px; height:520px; border-radius:50%; border:70px solid rgba(255,255,255,.04); pointer-events:none; }
.acadame .p-hero-in { display:grid; grid-template-columns:1.15fr .85fr; gap:36px; align-items:center; position:relative; }
.acadame .p-hero h1 { color:#fff !important; margin:10px 0 12px !important; max-width:none; }
.acadame .p-hero .crumbs { display:flex; flex-wrap:wrap; gap:6px; font-size:12.5px; color:#B9C6DD; margin-bottom:8px; }
.acadame .p-hero .crumbs a[aria-current] { max-width:44ch; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.acadame .p-hero .crumbs a { color:#D9E3F5; text-decoration:none; }
.acadame .p-hero .crumbs a:hover { text-decoration:underline; }
.acadame .p-hero .crumbs span::after { content:"\203A"; margin-left:6px; }
.acadame .p-hero .tag { display:inline-flex; align-items:center; gap:7px; padding:6px 13px; border-radius:999px; background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.22); font-size:12.5px; font-weight:600; color:#fff; }
.acadame .p-hero .tag i { width:7px; height:7px; border-radius:50%; background:var(--red); display:block; }
.acadame .standfirst { color:#D9E3F5; font-size:16.5px; max-width:60ch; margin-bottom:18px; }
.acadame .p-meta { display:flex; flex-wrap:wrap; gap:8px 18px; align-items:center; font-size:13px; color:#B9C6DD; border-top:1px solid rgba(255,255,255,.16); padding-top:14px; }
.acadame .p-meta strong { color:#fff; font-weight:600; }
.acadame .p-meta .who { display:flex; align-items:center; gap:9px; }
.acadame .p-meta .av { width:32px; height:32px; border-radius:50%; background:var(--secondary); border:1px solid rgba(255,255,255,.25); display:grid; place-items:center; font-size:12px; font-weight:700; color:#fff; }
.acadame .hero-shot { border-radius:var(--radius); box-shadow:var(--sh); overflow:hidden; aspect-ratio:4/3; background:var(--secondary); }
.acadame .hero-shot img { display:block; width:100%; height:100%; object-fit:cover; }

/* ---------------------------------------------------------------- article body */
.acadame .p-body { display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:40px; align-items:start; }
.acadame .prose { max-width:68ch; font-size:16.5px; line-height:1.72; }
/* site.css sets h1-h4 margins with !important, so these have to match that weight to apply. */
.acadame .prose h2 { margin:34px 0 10px !important; scroll-margin-top:calc(var(--hdr,58px) + 20px); }
.acadame .prose h3 { margin:24px 0 6px !important; }
.acadame .prose > p:first-child { font-size:17.5px; }
.acadame .prose ul { margin:0 0 16px; padding:0; list-style:none; }
.acadame .prose ul li { position:relative; padding-left:20px; margin-bottom:8px; }
.acadame .prose ul li::before { content:""; position:absolute; left:0; top:10px; width:7px; height:7px; border-radius:50%; background:var(--red); }
.acadame .prose ol { margin:0 0 16px; padding-left:22px; }
.acadame .prose ol li { margin-bottom:8px; }
.acadame .prose a { color:var(--red-ink); font-weight:600; text-decoration:underline; text-underline-offset:3px; }
.acadame .prose blockquote,
.acadame .prose .pull { margin:26px 0; padding:2px 0 2px 22px; border-left:4px solid var(--red); font-size:19px; line-height:1.5; color:var(--primary); font-weight:600; }
.acadame .prose blockquote p:last-child, .acadame .prose .pull p:last-child { margin-bottom:0; }
.acadame .keybox { margin:26px 0; padding:20px 22px; background:var(--lb); border-radius:12px; }
.acadame .keybox h3 { margin:0 0 10px !important; font-size:15px; text-transform:uppercase; letter-spacing:.06em; color:var(--primary); }
.acadame .keybox ul li::before { background:var(--primary); }
.acadame .prose figure { margin:26px 0; }
.acadame .prose figure img { display:block; width:100%; border-radius:12px; }
.acadame .prose figcaption { font-size:13px; color:var(--text); margin-top:8px; }
.acadame .prose table { width:100%; border-collapse:collapse; background:var(--card-bg,#fff); border:1px solid var(--border); border-radius:12px; overflow:hidden; font-size:14.5px; margin:24px 0; }
.acadame .prose table th, .acadame .prose table td { padding:11px 14px; border-bottom:1px solid var(--border); text-align:left; }
.acadame .prose table thead th { background:var(--primary); color:#fff; font-size:12.5px; text-transform:uppercase; letter-spacing:.05em; }
.acadame .prose table tbody th { color:var(--primary); font-weight:600; }
.acadame .prose table tbody tr:last-child th, .acadame .prose table tbody tr:last-child td { border-bottom:0; }

/* ---------------------------------------------------------------- rail */
.acadame .rail { position:sticky; top:calc(var(--hdr,58px) + 12px); display:grid; gap:16px; }
.acadame .toc { background:var(--card-bg,#fff); border:1px solid var(--border); border-radius:12px; padding:16px 18px; }
.acadame .toc em { display:block; font-style:normal; font-size:11px; text-transform:uppercase; letter-spacing:.07em; color:var(--red-ink); font-weight:700; margin-bottom:10px; }
.acadame .toc a { display:block; font-size:14px; padding:6px 0; border-bottom:1px solid var(--border); color:var(--primary); text-decoration:none; }
.acadame .toc a:last-child { border-bottom:0; }
.acadame .toc a:hover { color:var(--red-ink); }

/* ---------------------------------------------------------------- the ending */
.acadame .cta { background:var(--primary); color:#fff; border-radius:var(--radius); padding:22px; box-shadow:var(--sh); position:relative; overflow:hidden; }
.acadame .cta::before { content:""; position:absolute; right:-90px; bottom:-90px; width:240px; height:240px; border-radius:50%; border:44px solid rgba(255,255,255,.05); }
.acadame .cta > * { position:relative; }
.acadame .cta em { display:block; font-style:normal; font-size:11px; text-transform:uppercase; letter-spacing:.07em; color:var(--red-on-navy); font-weight:700; margin-bottom:6px; }
.acadame .cta h3 { color:#fff !important; font-size:19px; margin-bottom:8px !important; }
.acadame .cta p { color:#D9E3F5; font-size:14px; margin-bottom:14px; }
.acadame .cta .acts { display:flex; flex-wrap:wrap; gap:8px; }
.acadame .cta .foot { margin:14px 0 0; font-size:12.5px; color:#B9C6DD; }
.acadame .cta a { text-decoration:none; font-weight:700; }
.acadame .cta-dates { display:grid; gap:7px; margin-bottom:14px; }
.acadame .cta-date { display:grid; grid-template-columns:auto 1fr auto; gap:12px; align-items:center; padding:9px 12px; border:1px solid rgba(255,255,255,.2); border-radius:10px; background:rgba(255,255,255,.06); }
.acadame .cta-date .cal { width:46px; text-align:center; background:rgba(255,255,255,.12); border-radius:8px; padding:5px 4px; line-height:1; }
.acadame .cta-date .cal b { display:block; font-size:17px; font-weight:800; color:#fff; }
.acadame .cta-date .cal span { display:block; font-size:10px; text-transform:uppercase; letter-spacing:.06em; margin-top:2px; color:#B9C6DD; }
.acadame .cta-date strong { display:block; font-size:13.5px; color:#fff; }
.acadame .cta-date small { display:block; font-size:12px; color:#B9C6DD; }
.acadame .cta-date .pr { font-weight:800; font-size:14px; color:#fff; white-space:nowrap; }
.acadame .few { color:var(--red-on-navy); font-weight:700; }
.acadame .bld-out { padding:11px 13px; border-radius:9px; background:rgba(255,255,255,.1); border:1px dashed rgba(255,255,255,.3); font-size:13px; color:#fff; }
.acadame .steps-mini { display:grid; gap:8px; margin-bottom:14px; counter-reset:s; }
.acadame .steps-mini div { position:relative; padding-left:32px; font-size:13.5px; color:#D9E3F5; }
.acadame .steps-mini div::before { counter-increment:s; content:counter(s); position:absolute; left:0; top:-1px; width:22px; height:22px; border-radius:50%; background:var(--red); color:#fff; font-size:12px; font-weight:700; display:grid; place-items:center; }
.acadame .cta .ticks { display:grid; gap:6px; margin-bottom:14px; }
.acadame .cta .ticks div { font-size:13.5px; color:#D9E3F5; padding-left:22px; position:relative; }
.acadame .cta .ticks div::before { content:"\2713"; position:absolute; left:0; color:var(--red-on-navy); font-weight:800; }
.acadame .cta-wide { display:grid; grid-template-columns:1.1fr .9fr; gap:28px; align-items:center; padding:30px; margin-top:34px; }
.acadame .cta-wide h3 { font-size:24px; }
.acadame .cta-wide p { font-size:15px; max-width:52ch; }

/* ---------------------------------------------------------------- author + related */
.acadame .author { display:flex; gap:16px; align-items:flex-start; padding:20px; background:var(--card-bg,#fff); border:1px solid var(--border); border-radius:12px; margin-top:32px; }
.acadame .author .av { flex:0 0 56px; width:56px; height:56px; border-radius:50%; background:var(--lb); display:grid; place-items:center; font-weight:800; color:var(--primary); }
.acadame .author strong { display:block; color:var(--primary); font-size:15px; }
.acadame .author em { font-style:normal; display:block; font-size:12.5px; color:var(--red-ink); font-weight:600; margin-bottom:6px; }
.acadame .author p { font-size:14px; margin:0; }

.acadame .rel { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.acadame .rel a { background:var(--card-bg,#fff); border:1px solid var(--border); border-radius:12px; overflow:hidden; display:flex; flex-direction:column; transition:.15s; text-decoration:none; }
.acadame .rel a:hover { border-color:var(--red); transform:translateY(-2px); box-shadow:var(--sh); }
.acadame .rel .top { aspect-ratio:16/9; background:var(--lb); overflow:hidden; }
.acadame .rel .top img { display:block; width:100%; height:100%; object-fit:cover; }
.acadame .rel .bd { padding:14px 16px 16px; }
.acadame .rel em { display:block; font-style:normal; font-size:11px; text-transform:uppercase; letter-spacing:.06em; color:var(--red-ink); font-weight:700; margin-bottom:5px; }
.acadame .rel strong { display:block; color:var(--primary); font-size:15px; line-height:1.3; margin-bottom:6px; }
.acadame .rel span { font-size:13px; color:var(--text); }
.acadame .rel .go { margin-top:auto; padding:0 16px 14px; color:var(--red-ink); font-weight:600; font-size:13px; }

/* ---------------------------------------------------------------- hub */
.acadame .h-search { position:relative; max-width:520px; margin:18px 0 22px; }
.acadame .h-search svg { position:absolute; left:14px; top:50%; margin-top:-9px; width:18px; height:18px; stroke:var(--text); fill:none; stroke-width:2; }
.acadame .h-search input { width:100%; height:50px; padding:0 16px 0 42px; border-radius:12px; border:1px solid var(--border); background:#fff; color:var(--primary); font:500 15px Poppins,Arial,sans-serif; }
.acadame .h-search input::placeholder { color:var(--text); }
.acadame .scr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

.acadame .ph-filters { background:#fff; border-bottom:1px solid var(--border); }
.acadame .ph-filters-in { display:flex; flex-wrap:wrap; gap:12px; align-items:center; padding-top:12px; padding-bottom:12px; }
.acadame .ph-chips { display:flex; flex-wrap:wrap; gap:7px; }
.acadame .ph-chip { display:inline-flex; align-items:center; gap:7px; padding:8px 14px; border-radius:999px; border:1px solid var(--border); background:#fff; color:var(--primary); font:600 13.5px Poppins,Arial,sans-serif; cursor:pointer; }
.acadame .ph-chip span { font-size:11.5px; font-weight:700; color:var(--text); background:var(--light); border-radius:999px; padding:1px 7px; }
.acadame .ph-chip:hover { border-color:var(--red); }
.acadame .ph-chip[aria-pressed="true"] { background:var(--primary); border-color:var(--primary); color:#fff; }
.acadame .ph-chip[aria-pressed="true"] span { background:rgba(255,255,255,.18); color:#fff; }
.acadame .f-right { display:flex; align-items:center; gap:12px; margin-left:auto; }
.acadame .f-right .count { font-size:13px; color:var(--text); }
.acadame .f-right select { height:40px; padding:0 12px; border-radius:10px; border:1px solid var(--border); background:#fff; color:var(--primary); font:500 13.5px Poppins,Arial,sans-serif; }

.acadame .feature { display:grid; grid-template-columns:1.05fr .95fr; gap:28px; align-items:center; background:var(--card-bg,#fff); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; text-decoration:none; transition:.15s; }
.acadame .feature:hover { border-color:var(--red); box-shadow:var(--sh); }
.acadame .feature .shot { aspect-ratio:16/10; background:var(--primary); position:relative; overflow:hidden; }
.acadame .feature .shot img { display:block; width:100%; height:100%; object-fit:cover; }
.acadame .feature .bd { padding:26px 30px 26px 0; }
.acadame .feature h2 { margin-bottom:10px !important; }
.acadame .feature p { color:var(--text); }
.acadame .feature .meta { display:flex; gap:14px; font-size:12.5px; color:var(--text); margin:12px 0; }
.acadame .feature .go { color:var(--red-ink); font-weight:700; font-size:14px; }

.acadame .ph-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.acadame .ph-card { display:flex; flex-direction:column; background:var(--card-bg,#fff); border:1px solid var(--border); border-radius:12px; overflow:hidden; text-decoration:none; transition:.15s; }
.acadame .ph-card:hover { border-color:var(--red); transform:translateY(-2px); box-shadow:var(--sh); }
.acadame .ph-card .shot { aspect-ratio:16/9; background:var(--primary); position:relative; overflow:hidden; }
.acadame .ph-card .shot img { display:block; width:100%; height:100%; object-fit:cover; }
.acadame .ph-card .pill { position:absolute; left:10px; bottom:10px; background:rgba(15,48,105,.9); color:#fff; font-size:11px; font-weight:600; padding:4px 10px; border-radius:999px; }
/* A post with no hero gets its category on the brand navy rather than an empty frame. */
.acadame .ph-noimg, .acadame .feature .ph-noimg { position:absolute; inset:0; display:grid; place-items:center; padding:16px; text-align:center; background:linear-gradient(135deg,var(--secondary),var(--primary)); color:#fff; font-size:15px; font-weight:700; letter-spacing:.01em; }
.acadame .ph-card .bd { padding:14px 16px 16px; display:flex; flex-direction:column; flex:1; }
.acadame .ph-card strong { display:block; color:var(--primary); font-size:15.5px; line-height:1.32; margin-bottom:7px; }
.acadame .ph-card p { font-size:13.5px; color:var(--text); margin:0 0 12px;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.acadame .ph-card strong { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.acadame .feature p { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.acadame .ph-card .meta { margin-top:auto; display:flex; gap:12px; font-size:12px; color:var(--text); }
.acadame .ph-more { text-align:center; margin-top:24px; }
.acadame .ph-empty { grid-column:1/-1; text-align:center; padding:44px 16px; background:var(--card-bg,#fff); border:1px dashed var(--border); border-radius:12px; }
.acadame .ph-empty b { display:block; color:var(--primary); font-size:17px; margin-bottom:6px; }
.acadame .ph-empty span { display:block; max-width:46ch; margin:0 auto 16px; font-size:14px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width:1024px) {
  .acadame .p-hero-in, .acadame .p-body, .acadame .cta-wide, .acadame .feature { grid-template-columns:1fr; }
  .acadame .rail { position:static; }
  .acadame .rel, .acadame .ph-grid { grid-template-columns:repeat(2,1fr); }
  .acadame .feature .bd { padding:0 24px 26px; }
}
@media (max-width:700px) {
  .acadame .rel, .acadame .ph-grid { grid-template-columns:1fr; }
  .acadame .prose { font-size:16px; }
  .acadame .f-right { margin-left:0; width:100%; }
}
@media (prefers-reduced-motion:reduce) { .acadame .ph-card, .acadame .rel a, .acadame .feature { transition:none; } }

/* Category archive: the topic chips are links to the other categories, not filters, so they need
   the anchor reset and a current-page state rather than the pressed state the buttons use. */
.acadame a.ph-chip { text-decoration:none !important; }
.acadame .ph-chip[aria-current="page"] { background:var(--primary); border-color:var(--primary); color:#fff; }
.acadame .ph-chip[aria-current="page"] span { background:rgba(255,255,255,.18); color:#fff; }
.acadame .i-facts strong a { color:#fff; text-decoration:underline; text-underline-offset:2px; }

/* A grid item fills its column, so the eyebrow chip in a one-column hero stretched the full width. */
.acadame .i-hero-in > .tag { justify-self:start; }
/* .feature sets display:grid, which outranks the [hidden] attribute: an empty panel was still drawn
   on any view with too few posts to earn a lead card. */
.acadame .feature[hidden] { display:none !important; }
