/* ============================================================================
   free2027.css — 2027 Free Tutorial Edition (temporary, switchable)
   ----------------------------------------------------------------------------
   ONE mechanism does the hiding: `body.f27-mode`. While that class is present
   the original hub's screens and chrome are not shown, and the edition's six
   screens are. Remove the class — which is all "Original Mode" does — and every
   original screen, the tab bar, the sidebar and the admin entrance are exactly
   as they were. Nothing is deleted, renamed or commented out, so the original
   hub remains fully recoverable from the console's mode switch.

   Deleting this file restores the original hub completely (the screens simply
   stay hidden behind the same class rule below, which is also in styles.css? no —
   it is here only, so removing the stylesheet shows the original hub).
   ========================================================================== */

/* ---- what 2027 Free Tutorial Mode hides ---------------------------------- */
body.f27-mode .tabbar,
body.f27-mode #pvBar,
body.f27-mode .screen.pad,
body.f27-mode #landing .lp-features-note,
body.f27-mode #adminEntry { display: none !important; }

/* The original in-app screens (dashboard, study, CBT, league, profile …) are
   all of the form #screen.pad or the exam screens. Rather than name thirty
   selectors that would go stale, the rule above hides every `.screen` that is
   NOT one of the edition's, the homepage, or the administrator's own screens. */
body.f27-mode .screen { display: none !important; }
body.f27-mode .screen.active.f27,
body.f27-mode #admin-gate.active,
body.f27-mode #admin.active,
body.f27-mode #free-admin.active,
body.f27-mode #staff-change-password.active { display: flex !important; }

/* The ORIGINAL student account experience stays fully reachable in Free
   Tutorial Mode. Registration, login, the pending-verification step and the
   signed-in student's own screens are the original hub's, unchanged — the
   edition runs alongside them and never replaces them. Without this the
   homepage account buttons would resolve to a screen the rule above hides. */
body.f27-mode #login-v2.active,
body.f27-mode #signup.active,
body.f27-mode #signup-pending.active,
body.f27-mode #change-password.active,
body.f27-mode #home.active,
body.f27-mode #profile.active,
body.f27-mode #results.active,
body.f27-mode #league.active,
body.f27-mode #study.active,
body.f27-mode #studySet.active,
body.f27-mode #reading.active,
body.f27-mode #bookmarks.active,
body.f27-mode #mistakes.active,
body.f27-mode #review.active,
body.f27-mode #studyRes.active,
body.f27-mode #lesson.active,
body.f27-mode #practice.active,
body.f27-mode #cbt.active,
body.f27-mode #wtResult.active,
body.f27-mode #resources.active{ display: flex !important; }

/* While an ORIGINAL student screen is open the hub's own navigation chrome
   comes back, so a signed-in student can actually use their account. The class
   is set by the navigation wrapper and only applies to those screens. */
body.f27-mode.goc-original-area .tabbar,
body.f27-mode.goc-original-area #pvBar { display: flex !important; }
@media (min-width: 900px) {
  body.f27-mode.goc-original-area .phone:not(.is-login) .tabbar { display: flex !important; }
  body.f27-mode.goc-original-area .phone:not(.is-login) .screens { left: 256px !important; }
}

/* On a wide screen the hub draws a sidebar for everything except its public
   screens; the edition's screens are public, so they get the full width. */
body.f27-mode .phone { }
@media (min-width: 900px) {
  body.f27-mode .tabbar,
  body.f27-mode .side { display: none !important; }
  body.f27-mode .screens { left: 0 !important; }
}

/* The original public homepage remains intact and visible in either mode.
   Only unrelated in-app student screens are disabled while the testing edition
   is active; the homepage, admin sign-in and admin console remain reachable. */

/* ---- the edition's own screens ------------------------------------------ */
.f27 { background: var(--bg, #F6F7F9); color: #6B0A10; }
.f27 .f27-nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; background: #fff; border-bottom: 1px solid #E4E7EC;
}
.f27 .f27-nav .lp-actions { display: flex; align-items: center; gap: 12px; }
.f27 .f27-who { font-size: 11.5px; font-weight: 700; color: #667085; max-width: 42vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.f27-hero {
  padding: 40px 20px 32px; text-align: center;
  background: linear-gradient(150deg, #8F0B11 0%, #7F1D1D 55%, #DC2626 100%);
  color: #fff;
}
.f27-kick { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #FECACA; }
.f27-hero h1 { font-size: 28px; line-height: 1.15; font-weight: 900; letter-spacing: -.02em; max-width: 22ch; margin: 12px auto 0; }
.f27-lead { font-size: 14.5px; line-height: 1.55; color: #FFE1E1; max-width: 52ch; margin: 14px auto 0; }
.f27-cta { display: flex; flex-direction: column; gap: 10px; max-width: 360px; margin: 22px auto 0; }
.f27-cta .btn { width: 100%; }
.f27-fine { font-size: 12px; line-height: 1.5; color: #667085; margin-top: 12px; text-align: center; }
.f27-hero .f27-fine { color: #FECACA; }
.f27-foot { font-size: 11.5px; color: #98A2B3; text-align: center; padding: 24px 16px 40px; }

.f27-cards { display: grid; gap: 12px; padding: 22px 16px 4px; max-width: 980px; margin: 0 auto; }
@media (min-width: 760px) { .f27-cards { grid-template-columns: repeat(3, 1fr); } }
.f27-card { background: #fff; border: 1px solid #E4E7EC; border-radius: 16px; padding: 18px; box-shadow: 0 1px 2px rgba(16,24,40,.05); }
.f27-ico { font-size: 22px; margin-bottom: 8px; }
.f27-card h3 { font-size: 15.5px; font-weight: 800; margin-bottom: 6px; }
.f27-card p { font-size: 13px; line-height: 1.55; color: #475467; }

.f27-sec { padding: 22px 16px 40px; max-width: 980px; margin: 0 auto; width: 100%; }
.f27-sec h2, .f27-h2 { font-size: 18px; font-weight: 900; letter-spacing: -.01em; margin-bottom: 12px; }
.f27-h1 { font-size: 22px; font-weight: 900; letter-spacing: -.02em; margin-bottom: 6px; }
.f27-open { display: grid; gap: 12px; }
.f27-open-card { background: #fff; border: 1px solid #E4E7EC; border-radius: 14px; padding: 16px; }
.f27-open-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.f27-open-card h3 { font-size: 15px; font-weight: 800; }
.f27-open-card p { font-size: 12.5px; color: #667085; margin-top: 4px; }
.f27-until { font-size: 11px; font-weight: 700; color: #98A2B3; }

/* registration */
.f27-form-wrap { padding: 26px 16px 48px; display: flex; justify-content: center; }
.f27-form { background: #fff; border: 1px solid #E4E7EC; border-radius: 18px; padding: 22px; width: 100%; max-width: 440px; box-shadow: 0 8px 30px rgba(16,24,40,.06); }
.f27-form h1 { font-size: 21px; font-weight: 900; letter-spacing: -.02em; }
.f27-form .f27-lead { color: #667085; margin: 8px 0 4px; text-align: left; font-size: 13.5px; }
.f27-form .field { margin-top: 14px; }
/* The registration and login password fields carry the edition's existing
   Show/Hide toggle. Scoped to these two forms only: it keeps the toggle from
   covering the last characters a student types, and changes nothing anywhere
   else on the site. */
.f27-form .pw-wrap input { padding-right: 62px; }
.f27-form .pw-toggle { color: #667085; }
.f27-err { color: #B91C1C; font-size: 12.5px; font-weight: 600; margin-top: 10px; min-height: 1em; }
.f27-dev-note { background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E; border-radius: 10px; padding: 10px 12px; font-size: 12.5px; line-height: 1.5; margin-top: 10px; }
.f27-otp-lead { font-size: 13.5px; line-height: 1.55; color: #475467; margin-top: 10px; }
.f27-otp-input { letter-spacing: .5em; font-size: 22px; font-weight: 800; text-align: center; }

/* portal */
.f27-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.f27-tab {
  border: 1px solid #E4E7EC; background: #fff; color: #475467;
  font-size: 12.5px; font-weight: 700; padding: 9px 14px; border-radius: 999px; cursor: pointer;
}
.f27-tab.on { background: #8F0B11; border-color: #8F0B11; color: #fff; }
.f27-list { display: grid; gap: 12px; }
.f27-item { background: #fff; border: 1px solid #E4E7EC; border-radius: 16px; padding: 16px; }
.f27-item h3 { font-size: 16px; font-weight: 800; margin: 8px 0 4px; }
.f27-instr { font-size: 12.5px; color: #475467; line-height: 1.5; }
.f27-item-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.f27-tag { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #B91C1C; background: #FEF2F2; border-radius: 999px; padding: 4px 9px; }
.f27-state { font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 999px; }
.f27-state.open { background: #ECFDF3; color: #027A48; }
.f27-state.soon { background: #FFFAEB; color: #B54708; }
.f27-state.shut { background: #F2F4F7; color: #667085; }
.f27-facts { display: flex; flex-wrap: wrap; gap: 10px 16px; font-size: 12px; color: #667085; margin: 10px 0 14px; }
.f27-facts b { color: #6B0A10; }
.f27-item .btn, .f27-open-card .btn { width: 100%; }
.f27-empty { background: #fff; border: 1px dashed #D0D5DD; border-radius: 16px; padding: 22px; text-align: center; color: #475467; font-size: 13.5px; }
.f27-mine { margin-top: 26px; }
.f27-res-row { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #E4E7EC; border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; }
.f27-res-row > div:first-child { flex: 1; min-width: 0; }
.f27-res-row b { display: block; font-size: 13.5px; }
.f27-res-row span { font-size: 11.5px; color: #667085; }
.f27-res-score { font-size: 15px; font-weight: 900; color: var(--red, #DC2626); }
.f27-res-row .btn { width: auto; }

/* result */
.f27-result { background: #fff; border: 1px solid #E4E7EC; border-radius: 18px; padding: 22px; max-width: 560px; margin: 0 auto; text-align: center; }
.f27-result h1 { font-size: 20px; font-weight: 900; margin: 10px 0 14px; }
.f27-score { display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.f27-score b { font-size: 46px; font-weight: 900; letter-spacing: -.03em; color: var(--red, #DC2626); line-height: 1; }
.f27-score span { font-size: 14px; color: #667085; font-weight: 700; }
.f27-bars { height: 10px; border-radius: 999px; background: #F2F4F7; overflow: hidden; margin: 16px 0; }
.f27-bars i { display: block; height: 100%; background: linear-gradient(90deg, #DC2626, #F59E0B); }
.f27-result .f27-facts { justify-content: center; }
.f27-result .f27-fine { text-align: center; }

/* leaderboard */
.f27-table-wrap { overflow-x: auto; background: #fff; border: 1px solid #E4E7EC; border-radius: 14px; }
.f27-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.f27-table th, .f27-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #F2F4F7; white-space: nowrap; }
.f27-table th { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: #667085; background: #F9FAFB; }
.f27-table tr.me td { background: #FEF2F2; font-weight: 700; }
.f27-table tr:last-child td { border-bottom: none; }
.f27-mine-card { background: #FEF2F2; border: 1px solid #FECACA; border-radius: 14px; padding: 16px; margin-top: 14px; text-align: center; }
.f27-mine-card b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #B91C1C; }
.f27-mine-card span { font-size: 28px; font-weight: 900; color: #6B0A10; }
.f27-mine-card p { font-size: 12px; color: #7F1D1D; margin-top: 6px; }

/* the examiner — light, mobile-first CBT */
/* Three regions: a header and a navigation bar that never move, and a body
   that scrolls between them. Sizing from the screen box (the phone frame is
   already 100dvh) instead of 100vh keeps the bar inside the VISUAL viewport
   when mobile browser chrome shows or hides. */
.f27-exam { background: #F6F7F9; color: #6B0A10; height: 100%; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.f27-cbt-header { flex: 0 0 auto; position: relative; z-index: 20; background: #fff; border-bottom: 1px solid #E4E7EC; padding: 12px 14px 10px; }
.f27-cbt-title-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.f27-cbt-back { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; border: 1px solid #E4E7EC; background: #fff; color: #6B0A10; font-size: 18px; font-weight: 800; cursor: pointer; }
.f27-cbt-title-wrap { flex: 1; min-width: 0; }
.f27-cbt-title-wrap h1 { font-size: 15px; line-height: 1.25; font-weight: 900; margin: 0; overflow-wrap: anywhere; }
.f27-cbt-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 3px; font-size: 11.5px; color: #667085; }
.f27-cbt-kind { display: inline-block; background: #FEF2F2; color: #B91C1C; border-radius: 999px; padding: 2px 8px; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.f27-cbt-timer { flex: 0 0 auto; margin-left: auto; background: #8F0B11; color: #fff; border-radius: 12px; padding: 8px 10px; font-size: 13px; font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; }
.f27-cbt-timer.warn { background: #B91C1C; }
/* Competition-only candidate strip — see freeExamCandidate in index.html. */
.f27-cbt-candidate { flex: 0 0 auto; min-width: 0; max-width: 40%; }
.f27-cbt-candidate-name { font-size: 12.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f27-cbt-candidate-id { font-size: 10.5px; color: #667085; white-space: nowrap; }
/* Competition-only "flag for review" button, same amber language the
   original hub's own flag-for-review uses (css/styles.css .cbt-flag-btn). */
.f27-cbt-flag {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin-top: 10px; padding: 10px 14px; border-radius: 12px;
  border: 1.5px solid #E4E7EC; background: #fff; color: #475467;
  font-family: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer;
}
.f27-cbt-flag-ic { font-size: 14px; }
.f27-cbt-flag.on { background: #FEF3C7; border-color: #D97706; color: #92400E; }
.f27-cbt-progress { margin-top: 8px; font-size: 12px; font-weight: 800; color: #475467; }
.f27-cbt-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; width: 100%; max-width: 860px; margin: 0 auto; padding: 14px; }
/* ---- Competition subject navigation (Free 2027 UTME competitions ONLY) ----
   Every selector is scoped to body.f27-mode #free-exam, so the original hub
   cannot render or be affected by this bar. The element lives inside the
   scrolling .f27-cbt-body, so it adds no flex region: the header/timer and the
   bottom question-navigator bar keep exactly their current positions. It is
   sticky so subjects stay reachable, and scrolls horizontally on narrow
   screens instead of wrapping to a taller block. */
body.f27-mode #free-exam .f27-cbt-subjects { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px; overflow-x: auto; overflow-y: hidden; margin: 0 0 12px; padding: 2px 0 8px; background: #F6F7F9; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
body.f27-mode #free-exam .f27-cbt-subjects[hidden] { display: none; }
body.f27-mode #free-exam .f27-cbt-subject { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 8px 14px; border: 1.5px solid #D0D5DD; border-radius: 999px; background: #fff; color: #475467; font: inherit; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; cursor: pointer; }
body.f27-mode #free-exam .f27-cbt-subject.on { border-color: #DC2626; background: #FEF2F2; color: #B91C1C; }
body.f27-mode #free-exam .f27-cbt-subject-count { font-weight: 900; }

.f27-cbt-card { background: #fff; border: 1px solid #E4E7EC; border-radius: 18px; padding: 18px; box-shadow: 0 1px 2px rgba(16,24,40,.05); min-width: 0; }
.f27-cbt-passage { background: #F9FAFB; border: 1px solid #E4E7EC; border-radius: 12px; padding: 12px; margin-bottom: 14px; font-size: 14px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.f27-cbt-image { margin-bottom: 14px; }
.f27-cbt-image img { max-width: 100%; height: auto; border-radius: 12px; display: block; }
.f27-cbt-question { font-size: 16px; line-height: 1.65; font-weight: 700; color: #6B0A10; white-space: pre-wrap; overflow-wrap: anywhere; }
.f27-cbt-options { display: grid; gap: 10px; margin-top: 18px; }
.f27-cbt-option { display: flex; align-items: flex-start; gap: 12px; width: 100%; min-width: 0; text-align: left; background: #fff; border: 1.5px solid #D0D5DD; border-radius: 14px; padding: 14px; cursor: pointer; font: inherit; color: #6B0A10; min-height: 52px; }
.f27-cbt-option:hover { border-color: #98A2B3; }
.f27-cbt-option.sel { border-color: #DC2626; background: #FEF2F2; box-shadow: 0 0 0 1px #DC2626 inset; }
.f27-cbt-letter { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 32px; border-radius: 10px; background: #F2F4F7; color: #344054; font-size: 13px; font-weight: 900; letter-spacing: .04em; }
.f27-cbt-option.sel .f27-cbt-letter { background: #DC2626; color: #fff; }
.f27-cbt-text { flex: 1; min-width: 0; font-size: 15px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
/* ---- Competition question display: fit the content area (Free 2027 UTME) ----
   Competition only; a Weekly Assessment keeps the exact layout it already had.
   The exam keeps its three existing regions, so the top-right timer and the
   bottom question-navigator bar do not move and are not pushed down. Inside the
   scrolling body the card now fills the height actually available, and the
   options sit in two columns from 640px up, so a normal question and every one
   of its options are visible together without scrolling.

   Type is reduced only to a readable floor (14px question, 13px option) and
   never below it. The card has no overflow rule, so it can never show an
   internal scrollbar. The body keeps its own overflow-y as a safety net: an
   unusually long question or passage stays fully reachable rather than being
   clipped, hidden or truncated. */
body.f27-mode #free-exam.f27-exam-competition .f27-cbt-body { display: flex; flex-direction: column; gap: 8px; padding: 10px 14px; }
body.f27-mode #free-exam.f27-exam-competition .f27-cbt-subjects { flex: 0 0 auto; margin-bottom: 0; }
body.f27-mode #free-exam.f27-exam-competition .f27-cbt-card { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding: 12px; }
body.f27-mode #free-exam.f27-exam-competition .q-passage { flex: 0 0 auto; margin-bottom: 8px; font-size: 13px; }
body.f27-mode #free-exam.f27-exam-competition .q-passage .q-passage-b { max-height: 22vh; }
body.f27-mode #free-exam.f27-exam-competition .f27-cbt-image { flex: 0 0 auto; margin-bottom: 8px; }
body.f27-mode #free-exam.f27-exam-competition .f27-cbt-image img { max-height: 30vh; width: auto; }
body.f27-mode #free-exam.f27-exam-competition .f27-cbt-question { flex: 0 0 auto; font-size: clamp(14px, 1.1vh + 9px, 17px); line-height: 1.45; }
body.f27-mode #free-exam.f27-exam-competition .f27-cbt-options { flex: 1 1 auto; min-height: 0; grid-template-columns: 1fr; gap: 6px; margin-top: 10px; align-content: start; }
body.f27-mode #free-exam.f27-exam-competition .f27-cbt-option { padding: 8px 10px; gap: 8px; min-height: 40px; border-radius: 10px; }
body.f27-mode #free-exam.f27-exam-competition .f27-cbt-letter { min-width: 36px; height: 26px; font-size: 12px; border-radius: 8px; }
body.f27-mode #free-exam.f27-exam-competition .f27-cbt-text { font-size: clamp(13px, 0.9vh + 8px, 15px); line-height: 1.4; }
@media (min-width: 640px) {
  body.f27-mode #free-exam.f27-exam-competition .f27-cbt-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.f27-cbt-bar { flex: 0 0 auto; position: relative; z-index: 20; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; background: #fff; border-top: 1px solid #E4E7EC; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); }
.f27-cbt-btn { min-height: 46px; border-radius: 12px; border: 1px solid #D0D5DD; background: #fff; color: #6B0A10; font-size: 13px; font-weight: 800; padding: 10px 12px; cursor: pointer; white-space: normal; line-height: 1.3; }
.f27-cbt-btn:disabled { opacity: .5; cursor: not-allowed; }
.f27-cbt-btn-outline { border-color: #DC2626; color: #B91C1C; background: #fff; }
.f27-cbt-btn-red { background: #DC2626; border-color: #DC2626; color: #fff; }
.f27-cbt-modal-back { position: fixed; inset: 0; background: rgba(80,6,10,.55); z-index: 60; }
.f27-cbt-modal { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 61; width: min(92vw, 520px); max-height: 86vh; overflow: auto; background: #fff; border-radius: 18px; padding: 18px; box-shadow: 0 20px 60px rgba(143,11,17,.25); }
.f27-cbt-modal-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.f27-cbt-modal-top h2 { font-size: 16px; font-weight: 900; margin: 0; }
.f27-cbt-close { width: 36px; height: 36px; border-radius: 10px; border: 1px solid #E4E7EC; background: #fff; font-size: 20px; cursor: pointer; }
.f27-cbt-legend { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; font-size: 12px; color: #475467; }
.f27-cbt-dot { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 5px; vertical-align: -1px; border: 1px solid #D0D5DD; background: #fff; }
.f27-cbt-dot.answered { background: #12B76A; border-color: #12B76A; }
.f27-cbt-dot.unanswered { background: #fff; border-color: #D0D5DD; }
.f27-cbt-dot.current { background: #DC2626; border-color: #DC2626; }
.f27-cbt-dot.flagged { background: #D97706; border-color: #D97706; }
.f27-cbt-navgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 8px; }
.f27-cbt-navq { min-height: 44px; border-radius: 10px; border: 1.5px solid #D0D5DD; background: #fff; color: #344054; font-weight: 800; cursor: pointer; }
.f27-cbt-navq.answered { background: #ECFDF3; border-color: #12B76A; color: #027A48; }
.f27-cbt-navq.unanswered { background: #fff; border-color: #D0D5DD; color: #667085; }
.f27-cbt-navq.flagged { background: #FEF3C7; border-color: #D97706; color: #92400E; }
.f27-cbt-navq.current { background: #DC2626; border-color: #DC2626; color: #fff; }
.f27-cbt-navq.flagged.current { box-shadow: inset 0 0 0 2px #D97706; }
.f27-cbt-confirm-lead { font-size: 13px; line-height: 1.6; color: #475467; margin: 10px 0 14px; }
.f27-cbt-confirm-counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.f27-cbt-confirm-counts div { background: #F9FAFB; border: 1px solid #E4E7EC; border-radius: 12px; padding: 12px 8px; text-align: center; }
.f27-cbt-confirm-counts b { display: block; font-size: 22px; font-weight: 900; color: #6B0A10; }
.f27-cbt-confirm-counts span { font-size: 11px; color: #667085; font-weight: 700; }
.f27-cbt-confirm-actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 640px) {
  .f27-cbt-bar { grid-template-columns: repeat(3, auto); justify-content: center; }
  .f27-cbt-confirm-actions { grid-template-columns: 1fr 1fr; }
  .f27-cbt-question { font-size: 17px; }
}
.f27-empty-state { display: grid; gap: 8px; justify-items: center; padding: 30px 18px; }
.f27-empty-icon { width: 44px; height: 44px; border-radius: 999px; background: #FEF2F2; color: #B91C1C; display: grid; place-items: center; font-size: 20px; font-weight: 900; }
.f27-empty-state h3 { font-size: 15px; font-weight: 900; color: #6B0A10; margin: 0; }
.f27-empty-state p { font-size: 13px; line-height: 1.6; color: #667085; margin: 0; max-width: 46ch; }
.f27-activity-category-grid { display: grid; gap: 10px; margin-top: 12px; }
.f27-activity-category { text-align: left; cursor: pointer; border: 1.5px solid #E4E7EC; background: #fff; }
.f27-activity-category b { display: block; font-size: 14px; color: #B91C1C; letter-spacing: .04em; }
.f27-activity-category span { display: block; margin-top: 6px; font-size: 12.5px; color: #475467; line-height: 1.5; }
.f27-availability { margin: 12px 0; padding: 12px; border: 1px solid #E4E7EC; border-radius: 12px; background: #F9FAFB; }
.f27-activity-editor, .f27-activity-chooser, .f27-distribution-grid { min-width: 0; max-width: 100%; }
@media (min-width: 640px) { .f27-activity-category-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) {
  .f27-cbt-body { padding: 10px; }
  .f27-cbt-card { padding: 14px; }
  .f27-cbt-bar { padding-left: 10px; padding-right: 10px; }
  .f27-cbt-btn { font-size: 12.5px; padding: 10px 8px; }
  .f27-activity-editor .ad-grid2.two { grid-template-columns: 1fr; }
}

/* the console's own 2027 panel */
.f27-mode-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; padding: 5px 10px; border-radius: 999px; background: #ECFDF3; color: #027A48; }
.f27-mode-pill.orig { background: #F2F4F7; color: #475467; }
.f27-admin-note { font-size: 12px; line-height: 1.55; color: #475467; }
.f27-admin-grid { display: grid; gap: 10px; }
@media (min-width: 620px) { .f27-admin-grid.two { grid-template-columns: 1fr 1fr; } }
/* Bank question selector. Inherits the console's existing .ad-field control
   styling; only the spacing around the new picker is set here. */
.f27-bank-picker { margin: 10px 0 4px; }
.f27-admin-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid #F2F4F7; }
.f27-admin-row:last-child { border-bottom: none; }
.f27-admin-row > div:first-child { flex: 1; min-width: 160px; }
.f27-admin-row b { display: block; font-size: 13px; }
.f27-admin-row span { font-size: 11.5px; color: #667085; }
.f27-chip { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: #F2F4F7; color: #475467; }
.f27-chip.ok { background: #ECFDF3; color: #027A48; }
.f27-chip.warn { background: #FFFAEB; color: #B54708; }
.f27-chip.no { background: #FEF2F2; color: #B91C1C; }

/* ---- the candidate's programme card (lessons, progress, access) ---------- */
/* ---- JAMB subject combination (Free 2027 UTME only) ----
   Shared by registration and the one-time choice in the portal. Every selector
   is mode-scoped, so the original hub cannot render or be affected by it. */
body.f27-mode .f27-comb-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-top: 8px; border: 1.5px solid #D0D5DD; border-radius: 12px; background: #fff; color: #6B0A10; font-size: 14px; font-weight: 600; cursor: pointer; }
body.f27-mode .f27-comb-item input { flex: 0 0 auto; width: 18px; height: 18px; accent-color: #DC2626; cursor: pointer; }
body.f27-mode .f27-comb-item.compulsory { border-color: #DC2626; background: #FEF2F2; color: #B91C1C; cursor: default; }
body.f27-mode .f27-comb-item.compulsory input { cursor: not-allowed; }
body.f27-mode .f27-comb-tag { margin-left: auto; padding: 3px 8px; border-radius: 999px; background: #DC2626; color: #fff; font-size: 10px; font-weight: 900; letter-spacing: .06em; }
body.f27-mode .f27-comb-summary { margin-top: 10px; font-size: 12.5px; font-weight: 700; color: #475467; }
body.f27-mode .f27-subjects-prompt { background: #fff; border: 1.5px solid #DC2626; border-radius: 16px; padding: 16px; margin-bottom: 14px; box-shadow: 0 1px 2px rgba(16,24,40,.05); }
body.f27-mode .f27-subjects-prompt[hidden] { display: none; }
body.f27-mode .f27-subjects-prompt h2 { margin: 0 0 8px; font-size: 16px; font-weight: 900; color: #6B0A10; }
/* .f27-lead is pale pink for the dark hero panels; inside this white card it
   needs the normal body colour to stay readable. */
body.f27-mode .f27-subjects-prompt .f27-lead { margin: 0 0 10px; max-width: none; font-size: 13.5px; color: #475467; }

.f27-programme { background: #fff; border: 1px solid #E4E7EC; border-radius: 16px; padding: 16px; margin-bottom: 14px; box-shadow: 0 1px 2px rgba(16,24,40,.05); }
.f27-prog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.f27-prog-head b { display: block; font-size: 15px; font-weight: 800; }
.f27-prog-head span { font-size: 12px; color: #667085; }
.f27-bar { height: 8px; border-radius: 999px; background: #F2F4F7; overflow: hidden; margin: 12px 0 8px; }
.f27-bar i { display: block; height: 100%; background: linear-gradient(90deg, #DC2626, #F59E0B); border-radius: 999px; }
.f27-programme .f27-fine { margin-bottom: 8px; }
.f27-lesson { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid #F2F4F7; }
.f27-lesson-main { flex: 1; min-width: 0; }
.f27-lesson-main b { display: block; font-size: 13.5px; font-weight: 700; }
.f27-lesson-main span { display: block; font-size: 11.5px; color: #667085; }
.f27-lesson.done .f27-lesson-main b { color: #047857; }
.f27-tick { font-size: 11.5px; font-weight: 800; color: #047857; white-space: nowrap; }
.f27-small { font-size: 12px; padding: 6px 10px; }

/* ---- 2027 question-bank entry: contained by the Admin Console sheet -------
   Keep the console's visual language, but give exam entry room to breathe.
   Everything is intrinsically sized: a long option, URL or CSV header cannot
   widen the bottom sheet. The sheet itself remains the vertical scroller. */
#f27AdmBody, .f27-bank-panel, .f27-question-editor, .f27-question-form,
.f27-question-field, .f27-csv-guide, .f27-csv-result { min-width: 0; max-width: 100%; }
.f27-bank-panel { overflow: hidden; }
.f27-question-editor { margin-top: 16px; border-color: #FCA5A5; scroll-margin-top: 12px; }
.f27-question-form { width: 100%; }
.f27-question-field { margin-top: 18px; }
.f27-question-field > label { margin-bottom: 8px; font-size: 13px; color: #344054; }
.f27-question-field input, .f27-question-field select, .f27-question-field textarea {
  display: block; width: 100%; min-width: 0; max-width: 100%; min-height: 48px;
  padding: 12px; font-size: 16px; line-height: 1.5; border-color: #D0D5DD;
}
.f27-question-field textarea { resize: vertical; min-height: 144px; }
.f27-question-field textarea#f27NQ-weekly-explanation,
.f27-question-field textarea#f27NQ-competition-explanation { min-height: 96px; }
.f27-question-field input:focus, .f27-question-field select:focus, .f27-question-field textarea:focus {
  outline: 2px solid #DC2626; outline-offset: 2px; border-color: #DC2626;
}
.f27-question-field [aria-invalid="true"] { border-color: #B91C1C; }
.f27-question-options { border: 0; padding: 0; margin: 22px 0 0; min-width: 0; }
.f27-question-options legend { font-size: 15px; font-weight: 800; color: #6B0A10; }
.f27-question-options .ad-note { margin-top: 5px; }
.f27-optional { font-weight: 500; color: #667085; }
.f27-question-active { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 13px; line-height: 1.5; min-height: 44px; }
.f27-question-active input { width: 20px; height: 20px; flex: 0 0 20px; accent-color: #DC2626; }
.f27-question-preview { margin-top: 22px; padding: 18px; border: 1px solid #E4E7EC; border-radius: 10px; background: #F9FAFB; overflow-wrap: anywhere; }
.f27-question-preview-label { color: #667085; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.f27-question-preview h4 { margin: 10px 0; font-size: 16px; color: #6B0A10; }
.f27-question-preview-text { font-size: 15px; line-height: 1.65; white-space: pre-wrap; }
.f27-question-preview-options { list-style: none; padding: 0; margin: 16px 0; }
.f27-question-preview-options li { display: flex; gap: 10px; margin: 10px 0; font-size: 14px; line-height: 1.6; }
.f27-question-preview-options li b { flex: 0 0 20px; }
.f27-question-preview-options li span { min-width: 0; white-space: pre-wrap; }
.f27-question-preview-answer { color: #166534; font-size: 14px; line-height: 1.6; }
.f27-question-preview-explanation { margin-top: 10px; color: #475467; font-size: 13px; line-height: 1.6; white-space: pre-wrap; }
.f27-question-message[hidden] { display: none; }
.f27-question-actions { padding-bottom: env(safe-area-inset-bottom, 0px); }
.f27-question-actions .ad-btn { min-height: 48px; white-space: normal; }
.f27-csv-guide { margin: 20px 0; padding: 16px; border: 1px solid #D0D5DD; border-radius: 10px; background: #F9FAFB; }
.f27-csv-guide h3 { font-size: 13px; line-height: 1.5; font-weight: 900; color: #6B0A10; overflow-wrap: anywhere; }
.f27-csv-guide p, .f27-csv-guide dd, .f27-csv-rules { font-size: 12px; line-height: 1.65; color: #475467; }
.f27-csv-guide p { margin-top: 8px; }
.f27-csv-guide .ad-cols { margin-top: 10px; white-space: pre-wrap; overflow-wrap: anywhere; word-break: normal; font-family: ui-monospace, monospace; }
.f27-csv-columns { margin: 14px 0; }
.f27-csv-columns > div { padding: 8px 0; border-bottom: 1px solid #E4E7EC; }
.f27-csv-columns dt { font-family: ui-monospace, monospace; font-size: 12px; font-weight: 800; color: #344054; }
.f27-csv-columns dd { margin-top: 3px; }
.f27-csv-guide h4 { margin-top: 14px; font-size: 12px; color: #344054; }
.f27-csv-rules { padding-left: 18px; margin-top: 14px; }
.f27-csv-rules li { margin-top: 7px; }
.f27-csv-download { margin-top: 16px; min-height: 48px; max-width: 100%; white-space: normal; line-height: 1.5; }
.f27-csv-result .ad-card { overflow-wrap: anywhere; }
.f27-csv-result .ad-btn { min-height: 48px; white-space: normal; }
@media (min-width: 600px) {
  .f27-csv-columns > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; }
  .f27-csv-columns dd { margin-top: 0; }
}
@media (max-width: 599px) {
  .adm-sheet-body { padding-left: 10px; padding-right: 10px; overscroll-behavior-y: contain; }
  .f27-bank-panel, .f27-question-editor { padding: 12px; }
  .f27-csv-guide, .f27-question-preview { padding: 12px; }
  .f27-question-actions { flex-direction: column; }
  .f27-question-actions .ad-btn, .f27-csv-download { width: 100%; flex: 0 0 auto; }
  .f27-bank-panel > .ad-actions .ad-btn { flex: 1 1 auto; white-space: normal; min-height: 44px; }
}

/* ============================================================================
   Recovered PR #9 Termux/Android-Chrome navigation corrections
   ----------------------------------------------------------------------------
   1. Back/Home visibility. The hub's base stylesheet hides every
      `.lp-nav .lp-actions .lp-link` below 900px (the drawer carries those
      links on mobile there). The edition's screens have no drawer, so their
      own nav controls (← Back, Home, Register, CBT Portal) must stay visible
      on phones. These rules are edition-scoped and do not touch Original Mode.
   2. Mode-specific navigation actions. In Free Tutorial Mode the landing
      inline actions and the mobile drawer show one CBT Portal entry instead of
      the original account actions; in Original Mode everything below is inert
      and the original markup shows exactly as it always did.
   ========================================================================== */

/* 1a. The edition's nav links stay visible at EVERY width. */
body.f27-mode .f27 .f27-nav .lp-actions .lp-link,
body.f27-mode .f27 .f27-nav .lp-actions .lp-link:hover,
body.f27-mode .f27 .f27-nav .lp-actions .lp-link:focus { display: inline-block; }

/* 1b. Keep the edition's nav bar from overflowing on narrow phones. */
.f27 .f27-nav { flex-wrap: wrap; row-gap: 6px; }
.f27 .f27-nav .lp-brand .bt { white-space: nowrap; }
@media (max-width: 480px) {
  .f27 .f27-nav { padding: 10px 10px; gap: 8px; }
  .f27 .f27-nav .lp-actions { gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
  .f27 .f27-nav .lp-actions .lp-link { padding: 8px 7px; font-size: 12.5px; }
  .f27 .f27-nav .f27-who { max-width: 38vw; }
}

/* 2. Mode-specific navigation actions. Default (Original Mode): the CBT
   Portal entries are hidden, the original account buttons show untouched. */
.dw-cbt, .dw-cbt-hint, #landing .dw-cbt-link { display: none; }

/* Free Tutorial Mode ADDS the CBT Portal entry to the drawer and inline nav.
   The hub's own account shortcuts stand down in this mode only — see the two
   mode-scoped rules below (Log in, and every homepage sign-up entry point).
   Nothing is deleted: Original Mode shows all of them exactly as before. */
body.f27-mode .dw-btns .dw-cbt { display: block; }
/* In Free Tutorial Mode the CBT Portal entry leads to the edition's own landing
   page, which offers Register free and Student log in. The hub's separate Log in
   shortcut (desktop nav + mobile drawer) would take a free-tutorial student to an
   account they never created, so it stands down in this mode only. It is NOT
   deleted: Original Mode shows it exactly as before, and the hub's login screen
   and account system keep working independently. */
body.f27-mode .dw-hub-login { display: none !important; }
/* Account CREATION on the homepage belongs to the original G.O.C Academy Hub
   experience, not the Free UTME Tutorial. In Free Tutorial Mode every hub
   sign-up entry point on the homepage stands down: the header/desktop-nav
   "Get started", the hero "Get started", the pricing-card "Create account", the
   "Create your free account" band, the footer's "Sign up free", and the mobile
   drawer's "Create free account". Free UTME students register through the
   edition landing page's own "Register free" instead.

   This is VISIBILITY ONLY, scoped to the mode class and to the homepage/drawer.
   The buttons, their text, styling, position and go('signup')/dwGo('signup')
   handlers all stay in index.html untouched, so removing the mode class
   (switching back to Original Mode) restores every one of them exactly as it
   was. The hub's registration screen, its authentication, and any sign-up
   entry point outside the homepage are not affected. */
body.f27-mode #landing button[onclick="go('signup')"],
body.f27-mode #lpDrawer button[onclick="dwGo('signup')"] { display: none !important; }
body.f27-mode .dw-btns .dw-cbt-hint {
  display: block; font-size: 12.5px; color: var(--slate, #667085);
  margin: 8px 0 0; text-align: center;
}
/* Keep a little breathing room between the added CBT entry and the original
   account buttons that follow it. */
body.f27-mode .dw-btns .dw-cbt-hint + .dw-original { margin-top: 12px; }
/* Desktop only: the inline CBT Portal entry. Below 900px the mobile CBT
   Portal entry lives in the drawer, so the two are never duplicated. */
@media (min-width: 900px) {
  body.f27-mode #landing .lp-actions .dw-cbt-link { display: inline-block; }
}

/* ============================================================================
   Homepage CTA corrections
   ----------------------------------------------------------------------------
   The obsolete bootcamp sign-up button is deleted from index.html — it is not
   hidden here. The CBT Portal entry is ADDED beside the original account
   actions. "I already have an account" is shown in both modes and routes by
   mode (heroAccount). The hero's original "Get started" belongs to the hub
   experience, so it is displayed in Original Mode only — see the rule below.
   ========================================================================== */
.hero-cbt { display: none; }
body.f27-mode #landing .hero-btns .hero-cbt { display: block; }
/* The hero's original "Get started" is the G.O.C Academy Hub sign-up, not part
   of the Free UTME Tutorial experience: in Free Tutorial Mode students register
   through the edition landing page's "Register free". It is NOT deleted — the
   button and its go('signup') handler stay in index.html, and removing the mode
   class (switching back to Original Mode) restores it exactly as it was. No
   other registration action is affected: the nav/drawer hub sign-up and the
   edition's "Register free" are untouched. */
body.f27-mode #landing .hero-btns .hero-original-cta { display: none !important; }

/* A guest browsing the CBT Portal is told plainly that no account is needed to
   look around, and that verifying an email is only for sitting a paper. */
.f27-guest-note {
  background: #fff; border: 1px solid var(--line, #e4e7ec); border-left: 4px solid var(--red, #dc2626);
  border-radius: 12px; padding: 12px 14px; margin: 0 0 14px;
  font-size: 13.5px; line-height: 1.55; color: var(--slate, #475467);
}
.f27-guest-note b { color: var(--ink, #101828); }

/* An ongoing examination must not offer a way out. Back and Home are hidden on
   the ACTIVE exam screen only — the buttons and their freeExamLeave() /
   freeExamHome() handlers stay in index.html, and every other page keeps its own
   Back / Back to Home navigation exactly as before. */
body.f27-mode #free-exam .f27-cbt-header .f27-cbt-back { display: none !important; }
/* Next and Submit swap places on the final question. paintExam() sets [hidden];
   this makes that authoritative over the button's own display. */
body.f27-mode #free-exam .f27-cbt-bar .f27-cbt-btn[hidden] { display: none !important; }
/* With the two exits gone the timer owns the far right of the header row on
   every width (margin-left:auto above), clear of the title and question card. */
@media (max-width: 480px) {
  .f27-cbt-header .f27-cbt-title-row { flex-wrap: wrap; row-gap: 6px; }
  .f27-cbt-header .f27-cbt-title-wrap { flex: 1 1 100%; order: 3; }
  .f27-cbt-header .f27-cbt-timer { order: 2; }
  .f27-cbt-header .f27-cbt-candidate { order: 4; flex: 1 1 100%; max-width: 100%; }
}

/* ---- mode before paint -------------------------------------------------
   The inline script in index.html adds f27-mode (with f27-pending) to
   <body> before first paint when this browser's last server-confirmed
   mode was the Free Tutorial. While the server has not yet answered, a
   neutral veil covers the page so neither mode flashes; applyMode()
   removes f27-pending the moment the mode is settled. With no remembered
   mode no class is added and the original hub paints exactly as before. */
body.f27-pending > :not(#f27Veil) { visibility: hidden; }
#f27Veil {
  position: fixed; inset: 0; z-index: 9999; display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: #0F2A1D; color: #fff; text-align: center; padding: 24px;
  font: 700 15px var(--font, system-ui, sans-serif); letter-spacing: .01em;
}
body.f27-pending #f27Veil { display: flex; }
#f27Veil .f27-veil-mark {
  width: 56px; height: 56px; border-radius: 16px; background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 900; letter-spacing: .02em;
  animation: f27VeilPulse 1.6s ease-in-out infinite;
}
#f27Veil .f27-veil-name { font-size: 17px; font-weight: 800; }
#f27Veil .f27-veil-line { font-size: 13px; font-weight: 500; color: rgba(255,255,255,.7); letter-spacing: 0; }
@keyframes f27VeilPulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #f27Veil .f27-veil-mark { animation: none; } }

/* ============================================================================
   COMPETITION CBT — DESKTOP EXAMINATION DESK (min-width: 1024px only)
   ----------------------------------------------------------------------------
   Everything above this block is the existing interface, untouched. Below
   1024px — every phone and small tablet — not one rule in this block
   applies, so the mobile competition experience is byte-for-byte the CSS
   it has always had; the palette host below is display:none there.
   On wide screens a competition paper becomes a JAMB-style desk: a
   full-width examination header, the question card on the left and the
   persistent question palette (answered / unanswered / current) on the
   right. Weekly Assessments never carry the competition class and never
   see any of this.
   ============================================================================ */
body.f27-mode #freeExamSide { display: none; }

@media (min-width: 1024px) {
  /* Use the desktop width for this screen only. The hub-wide 980px reading
     cap in styles.css is untouched; these selectors out-specify it here. */
  body.f27-mode #free-exam.f27-exam-competition .f27-cbt-header,
  body.f27-mode #free-exam.f27-exam-competition .f27-cbt-body,
  body.f27-mode #free-exam.f27-exam-competition .f27-cbt-bar {
    max-width: 1400px; width: 100%; margin-left: auto; margin-right: auto;
  }

  /* The desk: subjects across the top, question left, palette right. */
  body.f27-mode #free-exam.f27-exam-competition .f27-cbt-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 308px;
    grid-template-areas: "subjects subjects" "card side";
    column-gap: 22px; row-gap: 14px; align-content: start;
    padding: 18px 22px;
  }
  body.f27-mode #free-exam.f27-exam-competition .f27-cbt-subjects {
    grid-area: subjects; position: static; flex-wrap: wrap; overflow: visible;
    margin: 0; padding: 0;
  }
  body.f27-mode #free-exam.f27-exam-competition .f27-cbt-card {
    grid-area: card; align-self: start; padding: 26px 28px;
  }
  body.f27-mode #free-exam.f27-exam-competition #freeExamSide {
    grid-area: side; display: flex; flex-direction: column; gap: 12px;
    align-self: start; position: sticky; top: 0;
    background: #fff; border: 1px solid #E4E7EC; border-radius: 18px; padding: 16px;
    box-shadow: 0 1px 2px rgba(16,24,40,.05);
  }
  .f27-cbt-side-head { font-size: 14px; font-weight: 900; color: #6B0A10; }
  body.f27-mode #free-exam.f27-exam-competition #freeExamSide .f27-cbt-legend { margin: 0; }
  body.f27-mode #free-exam.f27-exam-competition #freeExamSide .f27-cbt-navgrid {
    grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
    max-height: 46vh; overflow-y: auto; padding: 2px;
  }
  .f27-cbt-side-count { font-size: 12.5px; font-weight: 800; color: #475467; }

  /* The header as an examination bar: title left, timer prominent right. */
  body.f27-mode #free-exam.f27-exam-competition .f27-cbt-header { padding: 16px 22px 12px; }
  body.f27-mode #free-exam.f27-exam-competition .f27-cbt-candidate-name { font-size: 14px; }
  body.f27-mode #free-exam.f27-exam-competition .f27-cbt-candidate-id { font-size: 11.5px; }
  body.f27-mode #free-exam.f27-exam-competition .f27-cbt-title-wrap h1 { font-size: 20px; }
  body.f27-mode #free-exam.f27-exam-competition .f27-cbt-meta { font-size: 12.5px; }
  body.f27-mode #free-exam.f27-exam-competition .f27-cbt-timer { font-size: 16px; padding: 10px 14px; }
  body.f27-mode #free-exam.f27-exam-competition .f27-cbt-progress { font-size: 13px; }

  /* Question and options at desktop scale, in the existing two columns. */
  body.f27-mode #free-exam.f27-exam-competition .q-passage { font-size: 15px; margin-bottom: 16px; }
  body.f27-mode #free-exam.f27-exam-competition .f27-cbt-question { font-size: 18px; line-height: 1.6; }
  body.f27-mode #free-exam.f27-exam-competition .f27-cbt-options {
    grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px;
  }
  body.f27-mode #free-exam.f27-exam-competition .f27-cbt-option {
    padding: 16px; min-height: 60px; border-radius: 14px; gap: 12px;
  }
  body.f27-mode #free-exam.f27-exam-competition .f27-cbt-letter { min-width: 44px; height: 32px; font-size: 13px; border-radius: 10px; }
  body.f27-mode #free-exam.f27-exam-competition .f27-cbt-text { font-size: 16px; line-height: 1.55; }

  /* The control bar spans the desk; its buttons gain desktop presence. */
  body.f27-mode #free-exam.f27-exam-competition .f27-cbt-bar { padding: 12px 22px; }
  body.f27-mode #free-exam.f27-exam-competition .f27-cbt-btn { min-height: 50px; font-size: 14px; padding: 12px 22px; }
}

/* ============================================================================
   COMPETITION EXAM — FULL MODE LOOK (white / red / black)
   ----------------------------------------------------------------------------
   Skin for every free paper (#free-exam): an
   ink rule under the header, a pill timer, underline subject tabs, flat
   answer rows, and a palette of red (answered), white (unanswered) and a red
   ring (current). Layout stays as it was for each kind; the competition desk
   layout lives in the 1024px block below.
   ============================================================================ */
body.f27-mode #free-exam .f27-cbt-header { border-bottom: 3px solid #8F0B11; }
body.f27-mode #free-exam .f27-cbt-title-wrap h1 { font-weight: 900; color: #6B0A10; }
body.f27-mode #free-exam .f27-cbt-kind { background: none; padding: 0; border-radius: 0; color: #B31119; font-size: 10px; font-weight: 900; letter-spacing: .2em; display: inline-flex; align-items: center; gap: 8px; }
body.f27-mode #free-exam .f27-cbt-kind::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #D1161E; }
body.f27-mode #free-exam .f27-cbt-timer { background: #8F0B11; border-radius: 999px; padding: 9px 16px; letter-spacing: .04em; }
body.f27-mode #free-exam .f27-cbt-timer.warn { background: #D1161E; }
body.f27-mode #free-exam .f27-cbt-candidate { border: 1px solid #E2E2E2; border-radius: 999px; padding: 5px 14px; }
body.f27-mode #free-exam .f27-cbt-progress { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #5B606A; }

body.f27-mode #free-exam .f27-cbt-subjects { background: #fff; gap: 0; border-bottom: 1px solid #EFEFEF; }
body.f27-mode #free-exam .f27-cbt-subject { border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: none; color: #A3A7AE; min-height: 0; padding: 15px 22px; font-size: 13px; letter-spacing: 0; text-transform: none; transition: color .18s ease, border-color .18s ease; }
body.f27-mode #free-exam .f27-cbt-subject:hover { color: #6B0A10; }
body.f27-mode #free-exam .f27-cbt-subject.on { background: none; color: #B31119; border-bottom-color: #D1161E; font-weight: 900; }

body.f27-mode #free-exam .f27-cbt-card { border-radius: 4px; }
body.f27-mode #free-exam .f27-cbt-question { color: #6B0A10; font-weight: 800; }
body.f27-mode #free-exam .f27-cbt-option { border: 2px solid #E2E2E2; border-radius: 3px; transition: border-color .15s ease, background-color .15s ease; }
body.f27-mode #free-exam .f27-cbt-option:hover { border-color: #8F0B11; }
body.f27-mode #free-exam .f27-cbt-option.sel { border-color: #D1161E; background: #FBEAEA; box-shadow: none; }
body.f27-mode #free-exam .f27-cbt-letter { border-radius: 3px; background: #fff; border: 2px solid #E2E2E2; color: #6B0A10; }
body.f27-mode #free-exam .f27-cbt-option.sel .f27-cbt-letter { background: #D1161E; border-color: #D1161E; color: #fff; }
body.f27-mode #free-exam .f27-cbt-flag.on { background: #8F0B11; border-color: #8F0B11; color: #fff; }

body.f27-mode #free-exam .f27-cbt-navq { border: 2px solid #8F0B11; border-radius: 3px; background: #fff; color: #6B0A10; transition: background-color .15s ease; }
body.f27-mode #free-exam .f27-cbt-navq.answered { background: #D1161E; border-color: #D1161E; color: #fff; }
body.f27-mode #free-exam .f27-cbt-navq.flagged { background: #8F0B11; border-color: #8F0B11; color: #fff; }
body.f27-mode #free-exam .f27-cbt-navq.current { background: #fff; border-color: #B31119; color: #B31119; box-shadow: 0 0 0 2px rgba(179,17,25,.25); }
body.f27-mode #free-exam .f27-cbt-navq.flagged.current { background: #8F0B11; color: #fff; box-shadow: 0 0 0 2px rgba(179,17,25,.45); }
body.f27-mode #free-exam .f27-cbt-dot { border: 2px solid #8F0B11; border-radius: 3px; }
body.f27-mode #free-exam .f27-cbt-dot.answered { background: #D1161E; border-color: #D1161E; }
body.f27-mode #free-exam .f27-cbt-dot.flagged { background: #8F0B11; border-color: #8F0B11; }
body.f27-mode #free-exam .f27-cbt-dot.current { background: #fff; border-color: #B31119; box-shadow: 0 0 0 2px rgba(179,17,25,.25); }
body.f27-mode #free-exam .f27-cbt-legend { color: #5B606A; font-weight: 700; }

body.f27-mode #free-exam .f27-cbt-bar { border-top: 1px solid #EFEFEF; background: #FBFAF8; }
body.f27-mode #free-exam .f27-cbt-btn { border: 2px solid #8F0B11; border-radius: 2px; color: #6B0A10; font-weight: 800; transition: background-color .15s ease, color .15s ease; }
body.f27-mode #free-exam #freeExamNext { background: #8F0B11; color: #fff; }
body.f27-mode #free-exam .f27-cbt-btn-outline { border-color: #8F0B11; color: #6B0A10; background: #fff; }
body.f27-mode #free-exam .f27-cbt-btn-red { background: #D1161E; border-color: #D1161E; color: #fff; }
body.f27-mode #free-exam .f27-cbt-btn:disabled { opacity: .35; }

@media (min-width: 1024px) {
  /* Edge to edge: no centred gutter around the desk. */
  body.f27-mode #free-exam.f27-exam-competition .f27-cbt-header,
  body.f27-mode #free-exam.f27-exam-competition .f27-cbt-body,
  body.f27-mode #free-exam.f27-exam-competition .f27-cbt-bar { max-width: none; }

  body.f27-mode #free-exam.f27-exam-competition .f27-cbt-header { padding: 16px 40px 0; }
  body.f27-mode #free-exam.f27-exam-competition .f27-cbt-title-wrap { order: 1; }
  body.f27-mode #free-exam.f27-exam-competition .f27-cbt-candidate { order: 2; margin-left: auto; }
  body.f27-mode #free-exam.f27-exam-competition .f27-cbt-timer { order: 3; margin-left: 0; font-size: 16px; padding: 10px 20px; }
  body.f27-mode #free-exam.f27-exam-competition .f27-cbt-progress { margin: 14px -40px 0; padding: 11px 40px; border-top: 1px solid #EFEFEF; }

  /* The desk fills the screen: tabs, then question and palette side by side,
     both stretching to the control bar with no empty band between them. */
  body.f27-mode #free-exam.f27-exam-competition .f27-cbt-body {
    grid-template-columns: minmax(0, 1fr) 300px;
    grid-template-rows: auto minmax(auto, 1fr);
    column-gap: 0; row-gap: 0; padding: 0;
  }
  body.f27-mode #free-exam.f27-exam-competition .f27-cbt-subjects { padding: 0 40px; }
  body.f27-mode #free-exam.f27-exam-competition .f27-cbt-card {
    align-self: stretch; padding: 34px 56px; border: 0; box-shadow: none;
  }
  body.f27-mode #free-exam.f27-exam-competition .f27-cbt-options { grid-template-columns: 1fr; align-content: stretch; grid-auto-rows: minmax(60px, 1fr); }
  body.f27-mode #free-exam.f27-exam-competition .f27-cbt-option { align-items: center; }
  body.f27-mode #free-exam.f27-exam-competition #freeExamSide {
    align-self: stretch; position: static; border: 0; border-left: 1px solid #EFEFEF;
    border-radius: 0; box-shadow: none; background: #FBFAF8; padding: 28px;
  }
  body.f27-mode #free-exam.f27-exam-competition .f27-cbt-side-head { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #B31119; }
  body.f27-mode #free-exam.f27-exam-competition #freeExamSide .f27-cbt-navgrid {
    grid-template-columns: repeat(6, 1fr); gap: 8px; max-height: none; overflow: visible; padding: 0;
  }
  body.f27-mode #free-exam.f27-exam-competition #freeExamSide .f27-cbt-navq { min-height: 38px; font-size: 12px; }

  body.f27-mode #free-exam.f27-exam-competition .f27-cbt-bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 40px; }
  body.f27-mode #free-exam.f27-exam-competition #freeExamPrev { order: 1; }
  body.f27-mode #free-exam.f27-exam-competition .f27-cbt-btn-outline { order: 2; margin-left: auto; margin-right: 14px; }
  body.f27-mode #free-exam.f27-exam-competition #freeExamNext,
  body.f27-mode #free-exam.f27-exam-competition #freeExamSubmit { order: 3; }
}

/* ============================================================================
   FREE TUTORIAL — HOME, REGISTER, LOGIN AND PORTAL (white / red / ink)
   ----------------------------------------------------------------------------
   Skin only: every rule is scoped to body.f27-mode and one of the four
   screens, so the original hub and the admin console are untouched. Motion is
   limited to a one-off rise on arrival, a slow drift behind the hero panels
   and hover lifts; all of it stops under prefers-reduced-motion.
   ============================================================================ */
@keyframes f27Rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes f27Drift { from { background-position: 0 0, 0 0; } to { background-position: 280px 280px, 0 0; } }
@keyframes f27Pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(209,22,30,.45); } 50% { box-shadow: 0 0 0 6px rgba(209,22,30,0); } }

body.f27-mode #free-home .f27-nav,
body.f27-mode #free-register .f27-nav,
body.f27-mode #free-login .f27-nav,
body.f27-mode #free-portal .f27-nav { border-bottom: 3px solid #8F0B11; }
body.f27-mode #free-home .f27-nav .lp-link,
body.f27-mode #free-register .f27-nav .lp-link,
body.f27-mode #free-login .f27-nav .lp-link,
body.f27-mode #free-portal .f27-nav .lp-link { position: relative; transition: color .15s ease; }
body.f27-mode #free-home .f27-nav .lp-link:hover,
body.f27-mode #free-register .f27-nav .lp-link:hover,
body.f27-mode #free-login .f27-nav .lp-link:hover,
body.f27-mode #free-portal .f27-nav .lp-link:hover { color: #B31119; }

/* ---------------------------------------------------------------- HOME */
body.f27-mode #free-home { background: #fff; }
body.f27-mode #free-home .f27-hero {
  position: relative; overflow: hidden; flex: 0 0 auto; text-align: left; color: #fff;
  padding: 56px 22px 150px; background: #8F0B11;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 56px), 0 100%);
}
body.f27-mode #free-home .f27-hero::before {
  content: ""; position: absolute; top: 0; right: -6%; width: 34%; height: 100%;
  background: #D1161E; clip-path: polygon(34% 0, 100% 0, 100% 100%, 0 100%);
}
body.f27-mode #free-home .f27-hero::after {
  content: "2027"; position: absolute; right: 2%; bottom: 4%; font-size: clamp(110px, 19vw, 300px);
  font-weight: 900; letter-spacing: -.05em; line-height: .8; color: transparent;
  -webkit-text-stroke: 2px rgba(255,255,255,.5); pointer-events: none; user-select: none;
}
body.f27-mode #free-home .f27-hero > * { position: relative; z-index: 1; animation: f27Rise .6s cubic-bezier(.2,.7,.2,1) both; }
body.f27-mode #free-home .f27-hero > :nth-child(2) { animation-delay: .06s; }
body.f27-mode #free-home .f27-hero > :nth-child(3) { animation-delay: .12s; }
body.f27-mode #free-home .f27-hero > :nth-child(4) { animation-delay: .18s; }
body.f27-mode #free-home .f27-hero > :nth-child(5) { animation-delay: .24s; }
body.f27-mode #free-home .f27-kick { display: inline-flex; align-items: center; gap: 10px; color: #fff; letter-spacing: .22em; font-size: 11px; }
body.f27-mode #free-home .f27-kick::before { content: ""; width: 12px; height: 12px; background: #D1161E; border: 2px solid #fff; }
body.f27-mode #free-home .f27-hero h1 { margin: 18px 0 0; max-width: 13ch; font-size: clamp(32px, 4.2vw, 56px); line-height: 1.04; letter-spacing: -.035em; }
body.f27-mode #free-home .f27-hero .f27-lead { margin: 20px 0 0; max-width: 46ch; color: #E4E4E7; text-align: left; }
body.f27-mode #free-home .f27-cta { flex-direction: column; max-width: 340px; margin: 28px 0 0; }
body.f27-mode #free-home .f27-hero .f27-fine { text-align: left; max-width: 52ch; color: #D4D4D8; }
body.f27-mode #free-home .f27-hero .btn { border-radius: 2px; font-size: 14px; letter-spacing: .02em; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease; }
body.f27-mode #free-home .f27-hero .btn-red { background: #D1161E; box-shadow: 5px 5px 0 #fff; }
body.f27-mode #free-home .f27-hero .btn-red:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 #fff; }
body.f27-mode #free-home .f27-hero .btn-outline { background: transparent; border: 2px solid #fff; color: #fff; }
body.f27-mode #free-home .f27-hero .btn-outline:hover { background: #fff; color: #B31119; }

body.f27-mode #free-home .f27-cards { counter-reset: f27n; margin-top: -70px; position: relative; z-index: 2; }
body.f27-mode #free-home .f27-card {
  position: relative; overflow: hidden; background: #fff; border: 3px solid #8F0B11; border-radius: 2px; padding: 22px 20px 20px;
  box-shadow: 6px 6px 0 #D1161E; counter-increment: f27n;
  transition: transform .18s ease, box-shadow .18s ease; animation: f27Rise .6s cubic-bezier(.2,.7,.2,1) both;
}
body.f27-mode #free-home .f27-card:nth-child(2) { animation-delay: .1s; }
body.f27-mode #free-home .f27-card:nth-child(3) { animation-delay: .2s; }
body.f27-mode #free-home .f27-card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 #D1161E; }
body.f27-mode #free-home .f27-card::after { content: "0" counter(f27n); position: absolute; top: 4px; right: 14px; font-size: 54px; font-weight: 900; color: #F6E3E3; line-height: 1; letter-spacing: -.04em; }
body.f27-mode #free-home .f27-ico { position: relative; z-index: 1; filter: grayscale(1); }
body.f27-mode #free-home .f27-card h3, body.f27-mode #free-home .f27-card p { position: relative; z-index: 1; }
body.f27-mode #free-home .f27-sec { padding-top: 40px; }
body.f27-mode #free-home .f27-sec h2 { display: flex; align-items: center; gap: 12px; font-size: 22px; letter-spacing: -.02em; }
body.f27-mode #free-home .f27-sec h2::before { content: ""; width: 28px; height: 6px; background: #D1161E; }
body.f27-mode #free-home .f27-open-card { border: 2px solid #8F0B11; border-left: 8px solid #D1161E; border-radius: 2px; }
body.f27-mode #free-home .f27-foot { color: #5B606A; border-top: 3px solid #8F0B11; margin: 0 16px; padding-top: 20px; }

@media (min-width: 900px) {
  body.f27-mode #free-home .f27-hero::before { width: 52%; }
  body.f27-mode #free-home .f27-hero { padding: 84px max(8vw, 40px) 190px; }
  body.f27-mode #free-home .f27-cta { flex-direction: row; max-width: none; flex-wrap: wrap; }
  body.f27-mode #free-home .f27-cta .btn { width: auto; min-width: 190px; }
  body.f27-mode #free-home .f27-cards { margin-top: -96px; }
}

/* ------------------------------------------------- REGISTER AND LOGIN */
body.f27-mode #free-register, body.f27-mode #free-login ,
body.f27-mode #free-password{ background: #fff; }
body.f27-mode #free-register .f27-form-wrap, body.f27-mode #free-login .f27-form-wrap ,
body.f27-mode #free-password .f27-form-wrap{
  position: relative; flex: 1 0 auto; align-items: flex-start; padding: 170px 16px 56px; overflow: hidden;
}
/* The red banner above the card on a phone; a full-height panel beside it on a desk. */
body.f27-mode #free-register .f27-form-wrap::before, body.f27-mode #free-login .f27-form-wrap::before ,
body.f27-mode #free-password .f27-form-wrap::before{
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 200px; z-index: 0;
  background:
    radial-gradient(rgba(255,255,255,.22) 1.6px, transparent 1.8px) 0 0 / 26px 26px,
    linear-gradient(120deg, #8F0B11 0%, #8F0B11 48%, #D1161E 100%);
  clip-path: polygon(0 0, 100% 0, 100% 62%, 0 100%);
  animation: f27Drift 36s linear infinite;
}
body.f27-mode #free-register .f27-form-wrap::after, body.f27-mode #free-login .f27-form-wrap::after ,
body.f27-mode #free-password .f27-form-wrap::after{
  content: "2027"; position: absolute; top: 14px; left: 18px; z-index: 0; font-size: 92px; font-weight: 900;
  letter-spacing: -.05em; line-height: .9; color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.75);
  pointer-events: none; user-select: none;
}
body.f27-mode #free-register .f27-form, body.f27-mode #free-login .f27-form ,
body.f27-mode #free-password .f27-form{
  position: relative; z-index: 1; background: #fff; border: 3px solid #8F0B11; border-radius: 2px;
  box-shadow: 8px 8px 0 #D1161E; padding: 26px 24px 24px; max-width: 460px;
  animation: f27Rise .6s cubic-bezier(.2,.7,.2,1) both;
}
body.f27-mode #free-register .f27-form h1, body.f27-mode #free-login .f27-form h1 ,
body.f27-mode #free-password .f27-form h1{ font-size: 26px; letter-spacing: -.03em; }
body.f27-mode #free-register .f27-form h1::after, body.f27-mode #free-login .f27-form h1::after ,
body.f27-mode #free-password .f27-form h1::after{ content: ""; display: block; width: 44px; height: 6px; background: #D1161E; margin-top: 10px; }
body.f27-mode #free-register .f27-form .field, body.f27-mode #free-login .f27-form .field ,
body.f27-mode #free-password .f27-form .field{ animation: f27Rise .5s cubic-bezier(.2,.7,.2,1) both; }
body.f27-mode #free-register .f27-form .field:nth-of-type(1), body.f27-mode #free-login .f27-form .field:nth-of-type(1) ,
body.f27-mode #free-password .f27-form .field:nth-of-type(1){ animation-delay: .08s; }
body.f27-mode #free-register .f27-form .field:nth-of-type(2), body.f27-mode #free-login .f27-form .field:nth-of-type(2) ,
body.f27-mode #free-password .f27-form .field:nth-of-type(2){ animation-delay: .14s; }
body.f27-mode #free-register .f27-form .field:nth-of-type(3) { animation-delay: .2s; }
body.f27-mode #free-register .f27-form .field:nth-of-type(4) { animation-delay: .26s; }
body.f27-mode #free-register .f27-form .field label, body.f27-mode #free-login .f27-form .field label ,
body.f27-mode #free-password .f27-form .field label{ font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #6B0A10; font-weight: 800; }
body.f27-mode #free-register .f27-form .field input, body.f27-mode #free-login .f27-form .field input ,
body.f27-mode #free-password .f27-form .field input{
  border: 2px solid #D9D9DC; border-radius: 2px; background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
body.f27-mode #free-register .f27-form .field input:hover, body.f27-mode #free-login .f27-form .field input:hover ,
body.f27-mode #free-password .f27-form .field input:hover{ border-color: #8F0B11; }
body.f27-mode #free-register .f27-form .field input:focus, body.f27-mode #free-login .f27-form .field input:focus ,
body.f27-mode #free-password .f27-form .field input:focus{
  border-color: #D1161E; box-shadow: 0 0 0 4px rgba(209,22,30,.14); outline: none;
}
body.f27-mode #free-register .f27-form .btn, body.f27-mode #free-login .f27-form .btn ,
body.f27-mode #free-password .f27-form .btn{ border-radius: 2px; transition: transform .15s ease, box-shadow .15s ease; }
body.f27-mode #free-register .f27-form .btn-red, body.f27-mode #free-login .f27-form .btn-red ,
body.f27-mode #free-password .f27-form .btn-red{ background: #D1161E; box-shadow: 4px 4px 0 #8F0B11; margin-top: 6px; }
body.f27-mode #free-register .f27-form .btn-red:hover, body.f27-mode #free-login .f27-form .btn-red:hover ,
body.f27-mode #free-password .f27-form .btn-red:hover{ transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #8F0B11; }
body.f27-mode #free-register .f27-form .btn-red:active, body.f27-mode #free-login .f27-form .btn-red:active ,
body.f27-mode #free-password .f27-form .btn-red:active{ transform: translate(2px, 2px); box-shadow: 1px 1px 0 #8F0B11; }
body.f27-mode #free-register .f27-form .btn-outline { border: 2px solid #8F0B11; color: #6B0A10; }
body.f27-mode #free-register .f27-form .btn-outline:hover { background: #8F0B11; color: #fff; }
body.f27-mode #free-register .f27-form a, body.f27-mode #free-login .f27-form a ,
body.f27-mode #free-password .f27-form a{ color: #B31119; font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 3px; }
body.f27-mode #free-register .f27-comb-item { border: 2px solid #D9D9DC; border-radius: 2px; transition: border-color .15s ease, background-color .15s ease; }
body.f27-mode #free-register .f27-comb-item:hover { border-color: #8F0B11; }
body.f27-mode #free-register .f27-comb-item:has(input:checked) { border-color: #D1161E; background: #FBEAEA; }
body.f27-mode #free-register .f27-comb-item.compulsory { background: #D1161E; border-color: #D1161E; color: #fff; }
body.f27-mode #free-register .f27-comb-tag { background: #8F0B11; border-radius: 2px; }
body.f27-mode #free-register .f27-otp-input { border-radius: 2px; }

@media (min-width: 900px) {
  /* A full-height ink-to-red panel on the left, the card on the right. */
  body.f27-mode #free-register .f27-form-wrap, body.f27-mode #free-login .f27-form-wrap ,
body.f27-mode #free-password .f27-form-wrap{
    justify-content: flex-end; align-items: center; padding: 48px max(7vw, 40px) 48px 0;
  }
  body.f27-mode #free-register .f27-form-wrap::before, body.f27-mode #free-login .f27-form-wrap::before ,
body.f27-mode #free-password .f27-form-wrap::before{
    top: 0; bottom: 0; right: auto; width: 52%; height: auto; clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%);
  }
  body.f27-mode #free-register .f27-form-wrap::after, body.f27-mode #free-login .f27-form-wrap::after ,
body.f27-mode #free-password .f27-form-wrap::after{
    top: auto; bottom: 6%; left: 4vw; font-size: clamp(150px, 18vw, 290px);
  }
}
@media (prefers-reduced-motion: reduce) {
  body.f27-mode #free-home .f27-hero > *, body.f27-mode #free-home .f27-card,
  body.f27-mode #free-register .f27-form, body.f27-mode #free-login .f27-form,
  body.f27-mode #free-register .f27-form .field, body.f27-mode #free-login .f27-form .field,
  body.f27-mode #free-register .f27-form-wrap::before, body.f27-mode #free-login .f27-form-wrap::before { animation: none; }
}

/* -------------------------------------------------------------- PORTAL */
body.f27-mode #free-portal { background: #fff; }
body.f27-mode #free-portal .f27-sec { padding-top: 26px; }
body.f27-mode #free-portal .f27-tabs { gap: 0; border-bottom: 3px solid #8F0B11; margin-bottom: 20px; flex-wrap: wrap; }
body.f27-mode #free-portal .f27-tab {
  border: 0; border-bottom: 5px solid transparent; border-radius: 0; background: none; color: #8A8F99; margin-bottom: -3px;
  padding: 14px 20px; font-size: 13.5px; font-weight: 800; letter-spacing: .01em; transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
body.f27-mode #free-portal .f27-tab:hover { color: #6B0A10; background: #FBFAF8; }
body.f27-mode #free-portal .f27-tab.on { background: none; color: #B31119; border-bottom-color: #D1161E; }

/* The candidate's record becomes the permit banner at the top of the desk. */
body.f27-mode #free-portal .f27-programme {
  position: relative; overflow: hidden; color: #fff; border: 0; border-radius: 2px; padding: 24px 26px 22px;
  background: radial-gradient(rgba(255,255,255,.2) 1.5px, transparent 1.7px) 0 0 / 24px 24px, linear-gradient(115deg, #8F0B11 0%, #8F0B11 52%, #D1161E 100%);
  box-shadow: 8px 8px 0 #8F0B11; animation: f27Rise .55s cubic-bezier(.2,.7,.2,1) both, f27Drift 40s linear infinite;
}
body.f27-mode #free-portal .f27-programme::after {
  content: "2027"; position: absolute; right: 16px; bottom: -14px; font-size: 110px; font-weight: 900; letter-spacing: -.05em;
  line-height: 1; color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.3); pointer-events: none;
}
body.f27-mode #free-portal .f27-programme > * { position: relative; z-index: 1; }
body.f27-mode #free-portal .f27-prog-head b { font-size: 22px; font-weight: 900; letter-spacing: -.02em; color: #fff; }
body.f27-mode #free-portal .f27-prog-head span { color: #FFD1D1; font-weight: 600; }
body.f27-mode #free-portal .f27-programme .f27-chip { background: #fff; color: #B31119; border-radius: 2px; font-weight: 900; letter-spacing: .1em; }
body.f27-mode #free-portal .f27-bar { height: 10px; border-radius: 0; background: rgba(255,255,255,.28); }
body.f27-mode #free-portal .f27-bar i { border-radius: 0; background: #fff; transition: width .6s ease; }
body.f27-mode #free-portal .f27-programme .f27-fine { color: #FFE1E1; text-align: left; }
body.f27-mode #free-portal .f27-programme .f27-fine b { color: #fff; }
body.f27-mode #free-portal .f27-lesson { border-top-color: rgba(255,255,255,.22); }
body.f27-mode #free-portal .f27-lesson-main span { color: #FFD1D1; }
body.f27-mode #free-portal .f27-lesson.done .f27-lesson-main b, body.f27-mode #free-portal .f27-tick { color: #fff; }
body.f27-mode #free-portal .f27-programme .btn-outline { background: transparent; border: 2px solid #fff; color: #fff; border-radius: 2px; }
body.f27-mode #free-portal .f27-programme .btn-outline:hover { background: #fff; color: #B31119; }

/* Papers: ink-edged tickets with a red spine and a hard shadow that lifts on hover. */
body.f27-mode #free-portal .f27-list { gap: 18px; }
body.f27-mode #free-portal .f27-item {
  position: relative; border: 3px solid #8F0B11; border-left: 10px solid #D1161E; border-radius: 2px; padding: 20px 22px;
  box-shadow: 6px 6px 0 #8F0B11; transition: transform .18s ease, box-shadow .18s ease; animation: f27Rise .55s cubic-bezier(.2,.7,.2,1) both;
}
body.f27-mode #free-portal .f27-item:nth-child(2) { animation-delay: .08s; }
body.f27-mode #free-portal .f27-item:nth-child(3) { animation-delay: .16s; }
body.f27-mode #free-portal .f27-item:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 #8F0B11; }
body.f27-mode #free-portal .f27-item h3 { font-size: 20px; font-weight: 900; letter-spacing: -.02em; }
body.f27-mode #free-portal .f27-tag { background: #8F0B11; color: #fff; border-radius: 2px; letter-spacing: .14em; }
body.f27-mode #free-portal .f27-state { border-radius: 2px; letter-spacing: .06em; text-transform: uppercase; font-size: 10.5px; }
body.f27-mode #free-portal .f27-state.open { background: #FBEAEA; color: #B31119; display: inline-flex; align-items: center; gap: 7px; }
body.f27-mode #free-portal .f27-state.open::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #D1161E; animation: f27Pulse 1.8s ease-out infinite; }
body.f27-mode #free-portal .f27-state.soon { background: #fff; color: #6B0A10; border: 2px solid #8F0B11; }
body.f27-mode #free-portal .f27-state.shut { background: #F1F1F2; color: #5B606A; }
body.f27-mode #free-portal .f27-facts { gap: 8px 22px; padding: 12px 0; margin: 12px 0 16px; border-top: 1px solid #EFEFEF; border-bottom: 1px solid #EFEFEF; }
body.f27-mode #free-portal .f27-item .btn { border-radius: 2px; background: #D1161E; color: #fff; box-shadow: 4px 4px 0 #8F0B11; transition: transform .15s ease, box-shadow .15s ease; }
body.f27-mode #free-portal .f27-item .btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #8F0B11; }
body.f27-mode #free-portal .f27-item .btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #8F0B11; }
body.f27-mode #free-portal .f27-item .btn:disabled { background: #E4E4E7; color: #8A8F99; box-shadow: none; transform: none; }
body.f27-mode #free-portal .f27-item .btn-outline { background: #fff; color: #6B0A10; border: 2px solid #8F0B11; }
body.f27-mode #free-portal .f27-empty { border: 2px dashed #8F0B11; border-radius: 2px; }
body.f27-mode #free-portal .f27-res-row { border: 2px solid #8F0B11; border-radius: 2px; }
body.f27-mode #free-portal .f27-res-score { color: #B31119; font-weight: 900; }
body.f27-mode #free-portal .f27-mine h2, body.f27-mode #free-portal .f27-sec > h2 { display: flex; align-items: center; gap: 12px; }
body.f27-mode #free-portal .f27-mine h2::before { content: ""; width: 28px; height: 6px; background: #D1161E; }
@media (prefers-reduced-motion: reduce) {
  body.f27-mode #free-portal .f27-programme, body.f27-mode #free-portal .f27-item, body.f27-mode #free-portal .f27-state.open::before { animation: none; }
}

@media (max-width: 700px) {
  body.f27-mode #free-portal .f27-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -16px; margin-right: -16px; padding: 0 8px; }
  body.f27-mode #free-portal .f27-tabs::-webkit-scrollbar { display: none; }
  body.f27-mode #free-portal .f27-tab { flex: 0 0 auto; white-space: nowrap; padding: 12px 14px; font-size: 13px; }
  body.f27-mode #free-portal .f27-programme { padding: 20px 18px 18px; }
  body.f27-mode #free-portal .f27-programme::after { font-size: 64px; right: 10px; bottom: -8px; -webkit-text-stroke-color: rgba(255,255,255,.16); }
  body.f27-mode #free-portal .f27-prog-head b { font-size: 19px; }
}
body.f27-mode #free-portal .f27-programme .f27-chip { white-space: nowrap; flex: 0 0 auto; }

/* ============================================================================
   RESULT, REVIEW, TOPIC ANALYSIS, LEADERBOARD, EXAM DIALOGS (white / red / ink)
   ============================================================================ */
body.f27-mode #free-result, body.f27-mode #free-leaderboard { background: #fff; }
body.f27-mode #free-result .f27-nav, body.f27-mode #free-leaderboard .f27-nav { border-bottom: 3px solid #8F0B11; }
body.f27-mode #free-result .f27-nav .lp-link:hover, body.f27-mode #free-leaderboard .f27-nav .lp-link:hover { color: #B31119; }
body.f27-mode #free-result > .f27-sec, body.f27-mode #free-leaderboard > .f27-sec { padding-top: 26px; }

body.f27-mode #free-result .f27-result {
  position: relative; background: #fff; border: 3px solid #8F0B11; border-radius: 2px; box-shadow: 8px 8px 0 #D1161E;
  padding: 28px 24px 26px; max-width: 640px; animation: f27Rise .55s cubic-bezier(.2,.7,.2,1) both;
}
body.f27-mode #free-result .f27-tag { background: #8F0B11; color: #fff; border-radius: 2px; letter-spacing: .14em; }
body.f27-mode #free-result .f27-result h1 { font-size: 24px; letter-spacing: -.03em; margin: 12px 0 8px; }
body.f27-mode #free-result .f27-score b { font-size: 64px; letter-spacing: -.05em; color: #D1161E; }
body.f27-mode #free-result .f27-score span { color: #5B606A; font-weight: 800; }
body.f27-mode #free-result .f27-bars { height: 12px; border-radius: 0; background: #F1E3E3; margin: 14px 0; }
body.f27-mode #free-result .f27-bars i { border-radius: 0; background: #D1161E; animation: f27Grow .8s cubic-bezier(.2,.7,.2,1) both; transform-origin: left; }
@keyframes f27Grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
body.f27-mode #free-result .f27-fine { color: #5B606A; }
body.f27-mode #free-result .f27-fine b { color: #6B0A10; }
body.f27-mode #free-result .f27-facts { gap: 8px; margin: 14px 0; }
body.f27-mode #free-result .f27-facts span { border: 2px solid #8F0B11; border-radius: 2px; padding: 6px 12px; color: #5B606A; }
body.f27-mode #free-result .f27-facts b { color: #6B0A10; }

body.f27-mode #free-result .f27-table-wrap { border: 2px solid #8F0B11; border-radius: 2px; margin: 16px 0; text-align: left; }
body.f27-mode #free-result .f27-table th { background: #8F0B11; color: #fff; letter-spacing: .1em; }
body.f27-mode #free-result .f27-table td { color: #6B0A10; font-weight: 700; }
body.f27-mode #free-result .f27-table tr.me td { background: #FBEAEA; color: #B31119; font-weight: 900; }

body.f27-mode #free-result .f27-detail-title { margin: 22px 0 8px; font-size: 11px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: #B31119; text-align: left; }
body.f27-mode #free-result .f27-result .f27-admin-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; text-align: left;
  padding: 12px 0; border-bottom: 1px solid #EFEFEF;
}
body.f27-mode #free-result .f27-result .f27-admin-row > div:first-child { min-width: 0; }
body.f27-mode #free-result .f27-result .f27-admin-row b { font-size: 15px; font-weight: 900; }
body.f27-mode #free-result .f27-result .f27-admin-row > div:first-child span { margin-left: 8px; font-size: 12px; font-weight: 800; color: #B31119; }
body.f27-mode #free-result .ad-btn { border: 2px solid #8F0B11; border-radius: 2px; background: #fff; color: #6B0A10; font-weight: 800; padding: 9px 14px; text-align: center; transition: background-color .15s ease, color .15s ease; }
body.f27-mode #free-result .ad-btn:hover { background: #8F0B11; color: #fff; }
body.f27-mode #free-result .ad-btn:last-child { background: #8F0B11; color: #fff; }
body.f27-mode #free-result .ad-btn:last-child:hover { background: #D1161E; border-color: #D1161E; }
body.f27-mode #free-result .f27-cta { max-width: none; margin: 22px 0 0; gap: 10px; }
body.f27-mode #free-result .f27-cta .btn { border-radius: 2px; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease; }
body.f27-mode #free-result .f27-cta .btn-red { background: #D1161E; box-shadow: 4px 4px 0 #8F0B11; }
body.f27-mode #free-result .f27-cta .btn-red:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #8F0B11; }
body.f27-mode #free-result .f27-cta .btn-outline { border: 2px solid #8F0B11; color: #6B0A10; }
body.f27-mode #free-result .f27-cta .btn-outline:hover { background: #8F0B11; color: #fff; }

/* chips: correct = red, incorrect = ink, awaiting = outlined */
body.f27-mode #free-result .f27-chip, body.f27-mode #free-leaderboard .f27-chip { border-radius: 2px; letter-spacing: .1em; }
body.f27-mode #free-result .f27-chip.ok { background: #D1161E; color: #fff; }
body.f27-mode #free-result .f27-chip.no { background: #8F0B11; color: #fff; }
body.f27-mode #free-result .f27-chip.warn { background: #fff; color: #6B0A10; border: 2px solid #8F0B11; }

/* the answer review: one ticket per question */
body.f27-mode #free-result .f27-item { border: 2px solid #8F0B11; border-left: 8px solid #D1161E; border-radius: 2px; box-shadow: none; padding: 16px 18px; }
body.f27-mode #free-result .f27-item p { margin: 6px 0; }
body.f27-mode #free-result .f27-cbt-passage { border: 2px dashed #8F0B11; border-radius: 2px; background: #FBFAF8; }
body.f27-mode #free-result .f27-result .f27-admin-row:last-of-type { border-bottom: 0; }

/* leaderboard */
body.f27-mode #free-leaderboard .f27-item { border: 3px solid #8F0B11; border-left: 10px solid #D1161E; border-radius: 2px; box-shadow: 6px 6px 0 #8F0B11; transition: transform .18s ease, box-shadow .18s ease; }
body.f27-mode #free-leaderboard .f27-item:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 #8F0B11; }
body.f27-mode #free-leaderboard .f27-item h3 { font-size: 19px; font-weight: 900; letter-spacing: -.02em; }
body.f27-mode #free-leaderboard .f27-item .btn { border-radius: 2px; background: #D1161E; box-shadow: 4px 4px 0 #8F0B11; }
body.f27-mode #free-leaderboard .f27-item .btn-outline { background: #fff; border: 2px solid #8F0B11; color: #6B0A10; box-shadow: none; }
body.f27-mode #free-leaderboard .f27-table-wrap { border: 2px solid #8F0B11; border-radius: 2px; }
body.f27-mode #free-leaderboard .f27-table th { background: #8F0B11; color: #fff; letter-spacing: .1em; }
body.f27-mode #free-leaderboard .f27-table td { font-weight: 700; color: #6B0A10; }
body.f27-mode #free-leaderboard .f27-table tr.me td { background: #FBEAEA; color: #B31119; font-weight: 900; }
body.f27-mode #free-leaderboard .f27-empty { border: 2px dashed #8F0B11; border-radius: 2px; }

/* exam dialogs: navigator and the submit confirmation */
body.f27-mode #free-exam .f27-cbt-modal { border: 3px solid #8F0B11; border-radius: 2px; box-shadow: 8px 8px 0 #D1161E; padding: 20px; }
body.f27-mode #free-exam .f27-cbt-modal-back { background: rgba(80,6,10,.55); }
body.f27-mode #free-exam .f27-cbt-modal-top h2 { font-size: 18px; font-weight: 900; letter-spacing: -.02em; }
body.f27-mode #free-exam .f27-cbt-close { border: 2px solid #8F0B11; border-radius: 2px; color: #6B0A10; }
body.f27-mode #free-exam .f27-cbt-confirm-counts div { border: 2px solid #8F0B11; border-radius: 2px; background: #fff; }
body.f27-mode #free-exam .f27-cbt-confirm-counts b { color: #B31119; font-size: 26px; }
body.f27-mode #free-exam .f27-cbt-confirm-counts span { text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
body.f27-mode #free-exam .f27-cbt-passage { border: 2px dashed #8F0B11; border-radius: 2px; }

/* the exam on a phone: nothing may sit on top of anything else. The card and
   the answer list take the height their content needs and the body scrolls,
   instead of squeezing a long passage and four options into the screen so the
   Flag button lands across them. */
body.f27-mode #free-exam.f27-exam-competition .f27-cbt-card { flex: 1 0 auto; min-height: auto; }
body.f27-mode #free-exam.f27-exam-competition .f27-cbt-options { flex: 1 0 auto; min-height: auto; }
body.f27-mode #free-exam.f27-exam-competition .f27-cbt-flag { flex: 0 0 auto; margin-top: 12px; }

@media (max-width: 560px) {
  body.f27-mode #free-result .f27-result { padding: 22px 18px 22px; }
  body.f27-mode #free-result .f27-score b { font-size: 54px; }
  body.f27-mode #free-result .f27-result .f27-admin-row { grid-template-columns: 1fr 1fr; }
  body.f27-mode #free-result .f27-result .f27-admin-row > div:first-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  body.f27-mode #free-result .f27-result, body.f27-mode #free-result .f27-bars i { animation: none; }
}

/* topic analysis rows: topic and percentage on the left, the band chip on the right */
body.f27-mode #free-result .f27-result .f27-admin-row:has(> .f27-chip) { grid-template-columns: minmax(0, 1fr) auto; }
body.f27-mode #free-result .f27-result .f27-admin-row:has(> .f27-chip) > div:first-child { grid-column: auto; }
body.f27-mode #free-result .f27-result .f27-admin-row:has(> .f27-chip) > div:first-child b { display: inline; }
body.f27-mode #free-result .f27-result .f27-admin-row:has(> .f27-chip) > div:first-child span { margin-left: 10px; }
body.f27-mode #free-result .f27-result .f27-admin-row > .f27-chip { justify-self: end; }
/* the reading passage keeps the edition's red, not the hub's blue */
body.f27-mode #free-exam .q-passage { border-left-color: #D1161E; }
body.f27-mode #free-exam .q-passage .q-passage-arrow { color: #D1161E; }
body.f27-mode #free-exam .q-passage .q-passage-t { color: #6B0A10; }

/* the answer review reads left to right, one question per ticket */
body.f27-mode #free-result .f27-item .f27-fine { text-align: left; margin: 4px 0; }
body.f27-mode #free-result .f27-item .f27-fine b { color: #B31119; }
body.f27-mode #free-result .f27-item > p:not(.f27-fine) { font-size: 15px; font-weight: 700; line-height: 1.55; }
body.f27-mode #free-result .f27-item-top b { font-size: 16px; font-weight: 900; }

/* The original homepage has no place in this mode: the Free Tutorial homepage
   is the front door. (Original Mode never carries f27-mode, so it is untouched.) */
body.f27-mode #landing { display: none !important; }

/* ------------------------------------------------------- HOME: CONTACT */
body.f27-mode #free-home .f27-contact { border-top: 3px solid #8F0B11; margin-top: 24px; max-width: 760px; }
body.f27-mode #free-home .f27-contact h2 { display: flex; align-items: center; gap: 12px; font-size: 22px; letter-spacing: -.02em; }
body.f27-mode #free-home .f27-contact h2::before { content: ""; width: 28px; height: 6px; background: #D1161E; }
body.f27-mode #free-home .f27-contact a { color: #B31119; font-weight: 800; }
body.f27-mode #free-home .f27-contact-form { margin-top: 14px; }
body.f27-mode #free-home .f27-contact .field label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #6B0A10; font-weight: 800; }
body.f27-mode #free-home .f27-contact .field input,
body.f27-mode #free-home .f27-contact .field textarea { width: 100%; border: 2px solid #D9D9DC; border-radius: 2px; background: #fff; padding: 13px; font: inherit; font-size: 15px; transition: border-color .15s ease, box-shadow .15s ease; }
body.f27-mode #free-home .f27-contact .field textarea { min-height: 110px; resize: vertical; }
body.f27-mode #free-home .f27-contact .field input:focus,
body.f27-mode #free-home .f27-contact .field textarea:focus { border-color: #D1161E; box-shadow: 0 0 0 4px rgba(209,22,30,.14); outline: none; }
body.f27-mode #free-home .f27-contact .btn { border-radius: 2px; background: #D1161E; box-shadow: 4px 4px 0 #8F0B11; margin-top: 14px; transition: transform .15s ease, box-shadow .15s ease; }
body.f27-mode #free-home .f27-contact .btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #8F0B11; }
body.f27-mode #free-home .f27-contact .lp-cstatus { margin-top: 10px; font-size: 13px; font-weight: 700; }
body.f27-mode #free-home .f27-contact .lp-cstatus.ok { color: #B31119; }
body.f27-mode #free-home .f27-contact .lp-cstatus.err { color: #6B0A10; }

/* ============================================================================
   COMPETITION CALCULATOR (white / red / ink)
   ============================================================================ */
body.f27-mode #free-exam .f27-cbt-calcbtn {
  flex: 0 0 auto; margin-left: auto; display: inline-flex; align-items: center; gap: 7px; min-height: 40px;
  padding: 0 14px; border: 2px solid #8F0B11; border-radius: 999px; background: #fff; color: #6B0A10;
  font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; transition: background-color .15s ease, color .15s ease;
}
body.f27-mode #free-exam .f27-cbt-calcbtn[hidden] { display: none; }
body.f27-mode #free-exam .f27-cbt-calcbtn:hover, body.f27-mode #free-exam .f27-cbt-calcbtn[aria-expanded="true"] { background: #8F0B11; color: #fff; }
body.f27-mode #free-exam .f27-cbt-calcbtn + .f27-cbt-timer { margin-left: 0; }

body.f27-mode #free-exam .f27-calc {
  position: fixed; z-index: 55; left: 0; right: 0; margin: 0 auto; bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  width: min(94vw, 340px); background: #fff; border: 3px solid #8F0B11; border-radius: 2px; box-shadow: 8px 8px 0 #D1161E;
  padding: 12px; animation: f27Rise .25s cubic-bezier(.2,.7,.2,1) both;
}
body.f27-mode #free-exam .f27-calc[hidden] { display: none; }
body.f27-mode #free-exam .f27-calc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: #B31119; }
body.f27-mode #free-exam .f27-calc-top .f27-cbt-close { width: 32px; height: 32px; font-size: 18px; }
body.f27-mode #free-exam .f27-calc-screen { background: #8F0B11; color: #fff; border-radius: 2px; padding: 10px 14px 12px; text-align: right; margin-bottom: 10px; min-height: 74px; overflow: hidden; }
body.f27-mode #free-exam .f27-calc-expr { min-height: 18px; font-size: 13px; font-weight: 700; color: #FFB3B6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.f27-mode #free-exam .f27-calc-out { font-size: 32px; font-weight: 900; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
body.f27-mode #free-exam .f27-calc-keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
body.f27-mode #free-exam .f27-calc-key {
  min-height: 46px; border: 2px solid #8F0B11; border-radius: 2px; background: #fff; color: #6B0A10;
  font: inherit; font-size: 18px; font-weight: 800; cursor: pointer; transition: transform .08s ease, background-color .12s ease, color .12s ease;
}
body.f27-mode #free-exam .f27-calc-key:hover { background: #F6EDED; }
body.f27-mode #free-exam .f27-calc-key:active { transform: scale(.95); }
body.f27-mode #free-exam .f27-calc-fn { background: #F6EDED; font-size: 15px; }
body.f27-mode #free-exam .f27-calc-op { background: #8F0B11; color: #fff; }
body.f27-mode #free-exam .f27-calc-op:hover { background: #D1161E; border-color: #D1161E; }
body.f27-mode #free-exam .f27-calc-eq { background: #D1161E; border-color: #D1161E; color: #fff; }
body.f27-mode #free-exam .f27-calc-eq:hover { background: #B31119; }
body.f27-mode #free-exam .f27-calc-key:nth-last-child(-n+2) { grid-column: span 2; }

@media (min-width: 1024px) {
  body.f27-mode #free-exam .f27-cbt-calcbtn { margin-left: 0; order: 3; }
  body.f27-mode #free-exam.f27-exam-competition .f27-cbt-timer { order: 4; }
  body.f27-mode #free-exam .f27-calc { left: auto; right: 24px; margin: 0; bottom: 100px; width: 320px; }
}
@media (max-width: 480px) {
  .f27-cbt-header .f27-cbt-calcbtn { order: 2; }
}
@media (prefers-reduced-motion: reduce) { body.f27-mode #free-exam .f27-calc { animation: none; } }

/* ============================================================================
   NO BLACK IN THE FREE TUTORIAL MODE
   The edition's dark tone is a deep red, its ink is a deep wine, and its fills
   and rules are red. This block settles the few places where the old dark tone
   did a job colour alone must now do.
   ============================================================================ */
body.f27-mode .screen.f27 { --ink: #6B0A10; }
/* A flagged question is told apart from an answered one by a folded corner,
   not by a darker fill. */
body.f27-mode #free-exam .f27-cbt-navq { position: relative; }
body.f27-mode #free-exam .f27-cbt-navq.flagged::after {
  content: ""; position: absolute; top: 0; right: 0; border-style: solid; border-width: 0 11px 11px 0; border-color: transparent #fff transparent transparent;
}
body.f27-mode #free-exam .f27-cbt-timer.warn { background: #D1161E; animation: f27Pulse 1.4s ease-out infinite; }
body.f27-mode #free-exam .f27-calc-op:hover { background: #D1161E; border-color: #D1161E; }
body.f27-mode #free-exam .f27-calc-eq { background: #D1161E; border-color: #D1161E; }
body.f27-mode .f27-chip, body.f27-mode .f27-tag { letter-spacing: .1em; }
@media (prefers-reduced-motion: reduce) { body.f27-mode #free-exam .f27-cbt-timer.warn { animation: none; } }
body.f27-mode .f27-nav .lp-link, body.f27-mode .f27-nav .f27-who { color: #6B0A10; }
body.f27-mode .f27-nav .lp-link:hover { color: #D1161E; }

/* ---------------------------------------------- console: add a student */
.f27-optional { font-weight: 600; color: #667085; font-size: 11.5px; }
.f27-add-subjects { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.f27-add-subj { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #6B0A10; cursor: pointer; }
.f27-add-subj input { width: 17px; height: 17px; accent-color: #D1161E; }
.f27-temp-card { margin-top: 14px; border: 3px solid #8F0B11; border-radius: 2px; background: #fff; box-shadow: 6px 6px 0 #D1161E; padding: 16px 18px; }
.f27-temp-h { font-size: 11px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: #B31119; }
.f27-temp-who { margin: 6px 0 12px; font-size: 14px; color: #6B0A10; }
.f27-temp-label { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #667085; margin-bottom: 6px; }
.f27-temp-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.f27-temp-row code { font: 900 24px/1.1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .12em; background: #FBEAEA; color: #8F0B11; padding: 10px 14px; border-radius: 2px; user-select: all; }

/* ==========================================================================
   FREE HOME — THE IMPOSSIBLE FRONT DOOR (red and white only)
   A tilted CBT screen floating in perspective, orbit rings, impossible
   stacked slabs, a staircase that climbs out of the page and a ticker.
   Moderate motion only; every animation stops under reduced motion.
   ========================================================================== */
body.f27-mode #free-home .f27-hero { display: grid; gap: 34px; padding: 48px 22px 130px; }
body.f27-mode #free-home .f27-hero::before { right: -10%; width: 46%; }
body.f27-mode #free-home .f27-hero-copy { position: relative; z-index: 2; }
@media (min-width: 960px) {
  body.f27-mode #free-home .f27-hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; padding: 72px 6vw 150px; gap: 40px; }
}

/* the floating exam screen */
body.f27-mode #free-home .f27-rig { position: relative; min-height: 330px; perspective: 1100px; z-index: 2; }
body.f27-mode #free-home .f27-rig-ring { position: absolute; border: 2px solid rgba(255,255,255,.55); border-radius: 50%; pointer-events: none; }
body.f27-mode #free-home .f27-rig-ring.r1 { inset: 6% 8% 6% 8%; transform: rotateX(72deg) rotateZ(0deg); animation: f27Spin 22s linear infinite; }
body.f27-mode #free-home .f27-rig-ring.r2 { inset: 0 2% 0 2%; border-style: dashed; border-color: rgba(255,255,255,.3); transform: rotateX(72deg) rotateZ(0deg); animation: f27Spin 34s linear infinite reverse; }
@keyframes f27Spin { to { transform: rotateX(72deg) rotateZ(360deg); } }
body.f27-mode #free-home .f27-screen {
  position: absolute; left: 50%; top: 50%; width: min(420px, 88%); margin: 0;
  background: #fff; color: #6B0A10; border: 3px solid #fff; border-radius: 4px;
  transform: translate(-50%, -50%) rotateY(-24deg) rotateX(10deg) rotateZ(2deg);
  box-shadow: -18px 22px 0 #D1161E, -36px 44px 0 rgba(255,255,255,.28);
  animation: f27Float 6s ease-in-out infinite;
}
@keyframes f27Float {
  0%, 100% { transform: translate(-50%, -50%) rotateY(-24deg) rotateX(10deg) rotateZ(2deg); }
  50% { transform: translate(-50%, -54%) rotateY(-18deg) rotateX(7deg) rotateZ(1deg); }
}
body.f27-mode #free-home .f27-scr-top { display: flex; justify-content: space-between; align-items: center; background: #D1161E; color: #fff; padding: 9px 12px; font-size: 11px; }
body.f27-mode #free-home .f27-scr-top span { background: #fff; color: #B31119; font-weight: 900; padding: 2px 9px; border-radius: 99px; }
body.f27-mode #free-home .f27-scr-tabs { display: flex; border-bottom: 1px solid #F3D3D3; }
body.f27-mode #free-home .f27-scr-tabs u { text-decoration: none; flex: 1; text-align: center; font-size: 9.5px; font-weight: 800; padding: 8px 2px; color: #C58A8D; }
body.f27-mode #free-home .f27-scr-tabs u.on { color: #B31119; border-bottom: 3px solid #D1161E; }
body.f27-mode #free-home .f27-scr-body { padding: 14px; }
body.f27-mode #free-home .f27-scr-q em { display: block; height: 9px; background: #F3D3D3; margin-bottom: 7px; border-radius: 2px; }
body.f27-mode #free-home .f27-scr-q em.s { width: 60%; }
body.f27-mode #free-home .f27-scr-opts { display: grid; gap: 7px; margin: 12px 0; }
body.f27-mode #free-home .f27-scr-opts i { display: flex; align-items: center; height: 26px; border: 2px solid #F3D3D3; border-radius: 3px; padding-left: 8px; }
body.f27-mode #free-home .f27-scr-opts i b { width: 15px; height: 15px; border-radius: 50%; border: 2px solid #F3D3D3; font-size: 8px; display: flex; align-items: center; justify-content: center; color: #B31119; }
body.f27-mode #free-home .f27-scr-opts i.on { border-color: #D1161E; background: #FBEAEA; }
body.f27-mode #free-home .f27-scr-opts i.on b { background: #D1161E; border-color: #D1161E; color: #fff; }
body.f27-mode #free-home .f27-scr-pal { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; }
body.f27-mode #free-home .f27-scr-pal i { height: 15px; border: 2px solid #8F0B11; border-radius: 2px; background: #fff; }
body.f27-mode #free-home .f27-scr-pal i.d { background: #D1161E; border-color: #D1161E; }
body.f27-mode #free-home .f27-scr-pal i.c { border-color: #B31119; box-shadow: 0 0 0 2px rgba(179,17,25,.3); }
body.f27-mode #free-home .f27-tag {
  position: absolute; background: #fff; color: #8F0B11; font-size: 11px; font-weight: 900; letter-spacing: .04em;
  padding: 8px 12px; border: 2px solid #8F0B11; box-shadow: 4px 4px 0 #D1161E; animation: f27Bob 5s ease-in-out infinite;
}
body.f27-mode #free-home .f27-tag.t1 { left: 0; top: 8%; }
body.f27-mode #free-home .f27-tag.t2 { right: 0; top: 40%; animation-delay: -1.6s; }
body.f27-mode #free-home .f27-tag.t3 { left: 6%; bottom: 4%; animation-delay: -3.2s; }
@keyframes f27Bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ticker */
body.f27-mode #free-home .f27-ticker { overflow: hidden; background: #D1161E; color: #fff; border-top: 3px solid #8F0B11; border-bottom: 3px solid #8F0B11; margin-top: -54px; position: relative; z-index: 3; transform: rotate(-1.2deg); width: 104%; margin-left: -2%; }
body.f27-mode #free-home .f27-ticker-run { display: flex; width: max-content; animation: f27Run 30s linear infinite; }
body.f27-mode #free-home .f27-ticker-run span { padding: 12px 26px; font-size: 13px; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
body.f27-mode #free-home .f27-ticker-run span::after { content: "✦"; margin-left: 52px; color: #fff; opacity: .7; }
@keyframes f27Run { to { transform: translateX(-50%); } }

/* shared section parts */
body.f27-mode #free-home .f27-eyebrow { display: inline-block; font-size: 11px; font-weight: 900; letter-spacing: .22em; text-transform: uppercase; color: #fff; background: #8F0B11; padding: 6px 12px; transform: skewX(-12deg); }
body.f27-mode #free-home .f27-sub { max-width: 62ch; font-size: 14.5px; line-height: 1.65; color: #6B0A10; margin: 0 0 8px; }
body.f27-mode #free-home .f27-about { padding-top: 70px; }
body.f27-mode #free-home .f27-about h2, body.f27-mode #free-home .f27-how h2, body.f27-mode #free-home .f27-subjects h2 { margin-top: 16px; font-size: clamp(24px, 3.2vw, 38px); line-height: 1.1; max-width: 22ch; }

/* impossible stacked slabs */
body.f27-mode #free-home .f27-stack { display: grid; gap: 18px; margin-top: 26px; }
body.f27-mode #free-home .f27-slab { position: relative; padding: 26px 22px 22px 26px; border: 3px solid #8F0B11; background: #fff; color: #6B0A10; transition: transform .2s ease, box-shadow .2s ease; }
body.f27-mode #free-home .f27-slab b { position: absolute; right: 12px; bottom: -6px; pointer-events: none; font-size: 64px; font-weight: 900; line-height: 1; color: transparent; -webkit-text-stroke: 2px #F0C9CB; letter-spacing: -.05em; }
body.f27-mode #free-home .f27-slab h3 { font-size: 18px; font-weight: 900; margin-bottom: 6px; position: relative; }
body.f27-mode #free-home .f27-slab p { font-size: 13.5px; line-height: 1.6; max-width: 40ch; position: relative; }
body.f27-mode #free-home .f27-slab.s1 { box-shadow: 10px 10px 0 #D1161E, 20px 20px 0 #F4CFD1; }
body.f27-mode #free-home .f27-slab.s2 { background: #D1161E; border-color: #8F0B11; color: #fff; box-shadow: 10px 10px 0 #8F0B11, 20px 20px 0 #F4CFD1; }
body.f27-mode #free-home .f27-slab.s2 b { -webkit-text-stroke-color: rgba(255,255,255,.55); }
body.f27-mode #free-home .f27-slab.s3 { box-shadow: 10px 10px 0 #8F0B11, 20px 20px 0 #F4CFD1; }
body.f27-mode #free-home .f27-slab:hover { transform: translate(-4px, -4px); }
@media (min-width: 900px) {
  body.f27-mode #free-home .f27-stack { grid-template-columns: repeat(3, 1fr); gap: 34px; padding-bottom: 24px; }
  body.f27-mode #free-home .f27-slab.s1 { transform: rotate(-2deg) translateY(10px); }
  body.f27-mode #free-home .f27-slab.s2 { transform: rotate(1.5deg) translateY(-18px); }
  body.f27-mode #free-home .f27-slab.s3 { transform: rotate(-1deg) translateY(14px); }
  body.f27-mode #free-home .f27-slab.s1:hover { transform: rotate(-2deg) translate(-4px, 6px); }
  body.f27-mode #free-home .f27-slab.s2:hover { transform: rotate(1.5deg) translate(-4px, -22px); }
  body.f27-mode #free-home .f27-slab.s3:hover { transform: rotate(-1deg) translate(-4px, 10px); }
}

/* subjects: skewed red tiles */
body.f27-mode #free-home .f27-subj { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 22px; }
body.f27-mode #free-home .f27-subj div { padding: 18px 16px; background: #fff; border: 3px solid #8F0B11; transform: skewX(-6deg); transition: background-color .18s ease, color .18s ease, transform .18s ease; }
body.f27-mode #free-home .f27-subj div:nth-child(5) { grid-column: span 2; }
body.f27-mode #free-home .f27-subj b { display: block; font-size: 17px; font-weight: 900; color: #8F0B11; }
body.f27-mode #free-home .f27-subj span { font-size: 12px; color: #6B0A10; }
body.f27-mode #free-home .f27-subj div:hover { background: #D1161E; transform: skewX(-6deg) translateY(-4px); }
body.f27-mode #free-home .f27-subj div:hover b, body.f27-mode #free-home .f27-subj div:hover span { color: #fff; }
@media (min-width: 900px) { body.f27-mode #free-home .f27-subj { grid-template-columns: repeat(5, 1fr); } body.f27-mode #free-home .f27-subj div:nth-child(5) { grid-column: auto; } }

/* the staircase */
body.f27-mode #free-home .f27-steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; counter-reset: none; }
body.f27-mode #free-home .f27-steps li { position: relative; padding: 20px 18px 18px 78px; background: #fff; border: 3px solid #8F0B11; box-shadow: 7px 7px 0 #D1161E; min-height: 96px; }
body.f27-mode #free-home .f27-steps li b { position: absolute; left: 0; top: 0; bottom: 0; width: 60px; background: #D1161E; color: #fff; font-size: 34px; font-weight: 900; display: flex; align-items: center; justify-content: center; clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%); padding-right: 8px; }
body.f27-mode #free-home .f27-steps li h3 { font-size: 16px; font-weight: 900; color: #8F0B11; margin-bottom: 4px; }
body.f27-mode #free-home .f27-steps li p { font-size: 13px; line-height: 1.55; color: #6B0A10; }
body.f27-mode #free-home .f27-steps li:nth-child(2) { margin-left: 14px; }
body.f27-mode #free-home .f27-steps li:nth-child(3) { margin-left: 28px; }
body.f27-mode #free-home .f27-steps li:nth-child(4) { margin-left: 42px; background: #FBEAEA; }
@media (min-width: 900px) {
  body.f27-mode #free-home .f27-steps { grid-template-columns: repeat(4, 1fr); align-items: end; gap: 22px; }
  body.f27-mode #free-home .f27-steps li { margin-left: 0 !important; padding: 84px 16px 18px; }
  body.f27-mode #free-home .f27-steps li b { right: 0; bottom: auto; height: 62px; width: auto; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 70%); padding: 0 0 8px; }
  body.f27-mode #free-home .f27-steps li:nth-child(1) { min-height: 210px; }
  body.f27-mode #free-home .f27-steps li:nth-child(2) { min-height: 250px; }
  body.f27-mode #free-home .f27-steps li:nth-child(3) { min-height: 290px; }
  body.f27-mode #free-home .f27-steps li:nth-child(4) { min-height: 330px; }
}

/* programme cards (kept) now sit under an eyebrow, not over the hero */
body.f27-mode #free-home .f27-inside .f27-cards { margin-top: 18px; padding: 0; }
body.f27-mode #free-home .f27-ico { font-weight: 900; font-size: 13px; color: #D1161E; filter: none; letter-spacing: .1em; }

@media (prefers-reduced-motion: reduce) {
  body.f27-mode #free-home .f27-rig-ring, body.f27-mode #free-home .f27-tag, body.f27-mode #free-home .f27-ticker-run { animation: none; }
  body.f27-mode #free-home .f27-screen { animation: none; }
}

/* ---------------------------------------------------- CONTACT + QUICK LINKS */
body.f27-mode #free-home .f27-contact { max-width: 980px; padding-top: 56px; }
body.f27-mode #free-home .f27-contact h2 { margin: 14px 0 22px; font-size: clamp(24px, 3vw, 34px); }
body.f27-mode #free-home .f27-contact-grid { display: grid; gap: 22px; }
body.f27-mode #free-home .f27-reach { background: #8F0B11; color: #fff; padding: 24px 20px; box-shadow: 8px 8px 0 #D1161E; display: grid; gap: 10px; align-content: start; clip-path: none; }
body.f27-mode #free-home .f27-reach p { font-size: 14px; line-height: 1.6; color: #FBE3E3; margin-bottom: 6px; }
body.f27-mode #free-home .f27-chan, body.f27-mode #free-home .f27-contact a.f27-chan { display: block; padding: 11px 14px; border: 2px solid rgba(255,255,255,.7); color: #fff; text-decoration: none; transition: background-color .15s ease, color .15s ease, transform .15s ease; }
body.f27-mode #free-home .f27-chan b { display: block; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: #FFB3B6; font-weight: 800; }
body.f27-mode #free-home .f27-chan span { font-size: 14.5px; font-weight: 700; overflow-wrap: anywhere; }
body.f27-mode #free-home .f27-chan:hover { background: #fff; color: #8F0B11; transform: translateX(4px); }
body.f27-mode #free-home .f27-chan:hover b { color: #D1161E; }
body.f27-mode #free-home .f27-contact-form { margin: 0; padding: 22px 20px; border: 3px solid #8F0B11; background: #fff; }
body.f27-mode #free-home .f27-contact-form .field { margin-bottom: 14px; }
body.f27-mode #free-home .f27-contact-form .btn { width: 100%; margin-top: 4px; }
@media (min-width: 860px) {
  body.f27-mode #free-home .f27-contact-grid { grid-template-columns: .85fr 1.15fr; gap: 34px; align-items: start; }
}

body.f27-mode #free-home .f27-quick { margin-top: 48px; background: #000; color: #fff; padding: 40px 22px 0; border-top: 6px solid #D1161E; }
body.f27-mode #free-home .f27-quick-in { max-width: 980px; margin: 0 auto; display: grid; gap: 30px; }
body.f27-mode #free-home .f27-quick-brand b { display: block; font-size: 22px; font-weight: 900; letter-spacing: -.02em; }
body.f27-mode #free-home .f27-quick-brand b::after { content: ""; display: block; width: 44px; height: 5px; background: #D1161E; margin-top: 10px; }
body.f27-mode #free-home .f27-quick-brand p { margin-top: 14px; font-size: 13.5px; line-height: 1.6; color: #D4D4D8; max-width: 34ch; }
body.f27-mode #free-home .f27-quick-col { display: grid; gap: 0; align-content: start; }
body.f27-mode #free-home .f27-quick-col h4 { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: #D1161E; font-weight: 900; padding-bottom: 10px; border-bottom: 2px solid #D1161E; margin: 0 0 4px; }
body.f27-mode #free-home .f27-quick-col a { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #2A2A2A; color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; overflow-wrap: anywhere; transition: color .15s ease, padding-left .15s ease; }
body.f27-mode #free-home .f27-quick-col a i { flex: none; min-width: 28px; font-style: normal; font-size: 11px; font-weight: 900; color: #D1161E; }
body.f27-mode #free-home .f27-quick-col a:hover { color: #FF5A61; padding-left: 8px; }
body.f27-mode #free-home .f27-quick-bar { max-width: 980px; margin: 32px auto 0; padding: 16px 0 22px; border-top: 1px solid #2A2A2A; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; font-size: 11.5px; color: #A1A1AA; }
@media (min-width: 860px) { body.f27-mode #free-home .f27-quick-in { grid-template-columns: 1.3fr 1fr 1fr; gap: 44px; } }

/* ---------------------------------------------------- HOME NAV: MOBILE TOGGLE */
.f27-burger { display: none; }
@media (max-width: 720px) {
  body.f27-mode #free-home .f27-nav { flex-wrap: wrap; align-items: center; justify-content: space-between; }
  body.f27-mode #free-home .f27-burger {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0 11px;
    background: #fff; border: 2px solid #8F0B11; border-radius: 2px; cursor: pointer; box-shadow: 3px 3px 0 #D1161E;
  }
  body.f27-mode #free-home .f27-burger span { display: block; height: 3px; background: #8F0B11; transition: transform .2s ease, opacity .2s ease; }
  body.f27-mode #free-home .f27-nav.f27-open .f27-burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.f27-mode #free-home .f27-nav.f27-open .f27-burger span:nth-child(2) { opacity: 0; }
  body.f27-mode #free-home .f27-nav.f27-open .f27-burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  body.f27-mode #free-home .f27-nav .lp-actions { display: none; flex: 0 0 100%; flex-direction: column; align-items: stretch; gap: 0; border-top: 3px solid #8F0B11; margin-top: 8px; }
  body.f27-mode #free-home .f27-nav.f27-open .lp-actions { display: flex; animation: f27Rise .25s ease both; }
  body.f27-mode #free-home .f27-nav .lp-actions .lp-link { display: block; text-align: left; padding: 15px 4px; font-size: 15px; font-weight: 800; border-bottom: 1px solid #F0C9CB; }
}
