/* wguaccelerators.com - the exam guides (/exam/), 2026-11-22. On top of main.css + course.css (the course pages'
   look); these are the guides' own parts: byline and share buttons, the hero card, the "direct answer",
   the contents card, related guides, the reading bar and the /exam/ listings. */

/* reading progress along the top */
.ex-readbar { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 1001; pointer-events: none; }
.ex-readbar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold, #d4a017), var(--gold-light, #f0c040)); transition: width .1s linear; }

/* byline: author, last verified, share */
.ex-byline { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 0; margin-bottom: 24px;
    border-top: 1px solid var(--glass-border, rgba(255, 255, 255, .1)); border-bottom: 1px solid var(--glass-border, rgba(255, 255, 255, .1)); }
.ex-av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none; font: 800 1.1rem/1 'Syne', sans-serif; color: #0a0f1a;
    background: linear-gradient(135deg, var(--gold, #d4a017), var(--gold-light, #f0c040)); }
.ex-byline-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ex-byline-meta b { color: var(--white, #f0f4ff); font-size: .98rem; }
.ex-byline-meta span { color: var(--muted, rgba(240, 244, 255, .55)); font-size: .86rem; }
.ex-share { margin-left: auto; display: flex; gap: 8px; }
.ex-share a, .ex-share button { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--glass-border, rgba(255, 255, 255, .12));
    background: rgba(255, 255, 255, .03); color: var(--white, #f0f4ff); cursor: pointer; font-size: .95rem; text-decoration: none; transition: border-color .2s, color .2s; padding: 0; }
.ex-share a:hover, .ex-share button:hover { border-color: var(--gold-light, #f0c040); color: var(--gold-light, #f0c040); }
.ex-share button.is-done { border-color: #10b981; color: #10b981; }

/* the hero card (like the other site's, in this site's colours) */
.ex-hero { margin: 0 0 30px; border-radius: 18px; overflow: hidden; position: relative; aspect-ratio: 1200 / 630;
    background: radial-gradient(ellipse 60% 70% at 85% 30%, rgba(212, 160, 23, .22), transparent 70%), linear-gradient(135deg, #020810, #0d2254 70%, #1a3a7c);
    border: 1px solid rgba(240, 192, 64, .25); }
.ex-hero::after { content: "W"; position: absolute; right: 6%; top: 8%; font: 800 clamp(8rem, 26vw, 15rem)/1 'Syne', sans-serif; color: rgba(255, 255, 255, .05); }
/* with a picture chosen in the admin: the picture, under a navy layer so the words stay readable */
.ex-hero.has-bg { background: linear-gradient(90deg, rgba(2, 8, 16, calc(var(--ex-shade, .6) + .15)), rgba(2, 8, 16, var(--ex-shade, .6)) 60%, rgba(2, 8, 16, calc(var(--ex-shade, .6) - .15))),
    var(--ex-bg) center / cover no-repeat, #0d2254; }
.ex-hero.has-bg::after { display: none; }
.ex-hero.has-bg .ex-hero-code, .ex-hero.has-bg .ex-hero-title { text-shadow: 0 2px 18px rgba(2, 8, 16, .55); }
@media (max-width: 700px) {
    .ex-hero.has-bg { background: linear-gradient(90deg, rgba(2, 8, 16, calc(var(--ex-shade, .6) + .15)), rgba(2, 8, 16, var(--ex-shade, .6))),
        var(--ex-bg-sm, var(--ex-bg)) center / cover no-repeat, #0d2254; }
}
.ex-hero-in { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 7%; z-index: 1; }
.ex-hero-kicker { font: 700 clamp(.62rem, 1.5vw, .82rem)/1 'DM Sans', sans-serif; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-light, #f0c040); }
.ex-hero-code { font: 800 clamp(2.6rem, 9vw, 5.2rem)/1 'Syne', sans-serif; color: #fff; margin: .25em 0 .12em; letter-spacing: -.02em; }
.ex-hero-title { font: 600 clamp(1rem, 2.8vw, 1.7rem)/1.2 'DM Sans', sans-serif; color: rgba(255, 255, 255, .92); max-width: 70%; }
.ex-hero-rule { display: block; width: 22%; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--gold, #d4a017), var(--gold-light, #f0c040)); margin: 1.2em 0 .9em; }
.ex-hero-site { font: 500 clamp(.7rem, 1.5vw, .92rem)/1 'DM Sans', sans-serif; color: rgba(255, 255, 255, .62); }

/* the guide text: course.css styles .course-content; a few extras */
.ex-prose h2 { scroll-margin-top: 96px; }
.ex-prose .prose-key { padding: 16px 18px; border-radius: 12px; background: rgba(212, 160, 23, .08); border-left: 4px solid var(--gold, #d4a017); }
.ex-prose .prose-key strong { color: var(--gold-light, #f0c040); }

/* related guides, and the cards of the listings */
.ex-related { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--glass-border, rgba(255, 255, 255, .1)); }
.ex-related h2, .ex-group h2 { font: 700 1.3rem/1.25 'Syne', sans-serif; color: var(--white, #f0f4ff); margin: 0 0 16px; }
.ex-group h2 small { font: 600 .8rem/1 'DM Sans', sans-serif; color: var(--muted, rgba(240, 244, 255, .55)); margin-left: 6px; }
.ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.ex-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px; border-radius: 14px; text-decoration: none; min-width: 0;
    background: var(--glass, rgba(255, 255, 255, .04)); border: 1px solid var(--glass-border, rgba(255, 255, 255, .1)); transition: border-color .2s, transform .2s; }
.ex-card:hover { border-color: rgba(240, 192, 64, .55); transform: translateY(-2px); }
.ex-card-code { font: 800 1.05rem/1 'Syne', sans-serif; color: var(--gold-light, #f0c040); }
.ex-card-name { color: var(--white, #f0f4ff); font-size: .92rem; line-height: 1.4; }
.ex-card .meta-tag { font-size: .72rem; }
.ex-group { margin-bottom: 40px; scroll-margin-top: 96px; }
.ex-search { position: relative; max-width: 520px; margin-top: 22px; }
.ex-search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted, rgba(240, 244, 255, .55)); }
.ex-search input { width: 100%; padding: 14px 16px 14px 44px; border-radius: 12px; border: 1px solid var(--glass-border, rgba(255, 255, 255, .16));
    background: rgba(255, 255, 255, .05); color: #fff; font: inherit; font-size: 1rem; }
.ex-search input:focus { outline: none; border-color: var(--gold-light, #f0c040); box-shadow: 0 0 0 3px rgba(240, 192, 64, .15); }
.ex-none { text-align: center; color: var(--muted, rgba(240, 244, 255, .55)); padding: 30px 0; }

/* sidebar: contents and WhatsApp */
.ex-toc nav { display: flex; flex-direction: column; }
.ex-toc nav a { display: block; padding: 8px 0 8px 12px; border-left: 2px solid var(--glass-border, rgba(255, 255, 255, .1)); color: var(--muted, rgba(240, 244, 255, .7));
    text-decoration: none; font-size: .9rem; line-height: 1.4; transition: color .2s, border-color .2s; }
.ex-toc nav a:hover { color: #fff; }
.ex-toc nav a.is-on { color: var(--gold-light, #f0c040); border-left-color: var(--gold-light, #f0c040); font-weight: 600; }
.ex-wa-card p { color: var(--muted, rgba(240, 244, 255, .7)); font-size: .9rem; line-height: 1.5; margin: 0 0 14px; }
.ex-wa-card .btn { width: 100%; justify-content: center; }
.ex-wa-card .ex-wa-num { margin: 10px 0 0; text-align: center; font-size: .85rem; }
@media (max-width: 991px) { .ex-toc { display: none; } }
@media (max-width: 560px) {
    .ex-share { margin-left: 0; width: 100%; }
    .ex-hero-title { max-width: 100%; }
}

/* the tutoring request form (JotForm), when switched on in the admin */
.ex-book-btn { display: inline-flex; align-items: center; gap: 8px; }
.ex-form { margin-top: 40px; padding: 26px; border-radius: 18px; border: 1px solid rgba(240, 192, 64, .28);
    background: linear-gradient(160deg, rgba(240, 192, 64, .07), rgba(13, 34, 84, .35)); scroll-margin-top: 90px; }
.ex-form h2 { font: 700 1.35rem/1.25 'Syne', sans-serif; color: var(--white, #f0f4ff); margin: 0 0 8px; }
.ex-form h2 i { color: #f0c040; margin-right: 4px; }
.ex-form > p { color: var(--muted, rgba(240, 244, 255, .72)); margin: 0 0 18px; line-height: 1.6; }
.ex-form-frame { border-radius: 14px; overflow: hidden; background: #fff; }
.ex-form-frame iframe { display: block; width: 100%; min-width: 100%; height: 1500px; border: 0; }
.ex-form .ex-form-alt { margin: 12px 0 0; font-size: .85rem; }
.ex-form .ex-form-alt a { color: #f0c040; }
.ex-book-card .btn { width: 100%; justify-content: center; }
@media (max-width: 600px) { .ex-form { padding: 16px; margin-left: -4px; margin-right: -4px; } .ex-form-frame iframe { height: 1800px; } }

/* key facts above the guide (2026-11-22) */
.ex-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; margin: 0 0 28px; border-radius: 14px; overflow: hidden;
    border: 1px solid var(--glass-border, rgba(255, 255, 255, .1)); background: var(--glass-border, rgba(255, 255, 255, .1)); }
.ex-facts > div { padding: 12px 16px; background: rgba(8, 20, 44, .92); min-width: 0; }
.ex-facts dt { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #f0c040; margin: 0 0 3px; }
.ex-facts dd { margin: 0; color: var(--white, #f0f4ff); font-size: .92rem; line-height: 1.4; overflow-wrap: anywhere; }
