/* PTE materials pages.
 *
 * The one stylesheet every page under tests/pte/ loads, next to the Tailwind
 * runtime and assets/css/style.css the hand-written pages already carry in
 * their <head> (kept unchanged). Rules are scoped to body.pt so they win over
 * Tailwind's preflight, which is injected after this file.
 *
 * Started from assets/ielts/ielts.css (same design system) and brought to the
 * latest templates: test selector in the header, smaller hero, the task list
 * under "Description" in the sidebar. scripts/pte_redesign/ emits the classes.
 *
 * Breakpoints follow the design: the header collapses into a menu below
 * 1060px, and the sidebar gives way to a row of section chips below 760px.
 */

@font-face {
  font-family: 'ProductSans';
  src: url('../fonts/Product Sans Regular.woff2') format('woff2'),
    url('../fonts/Product Sans Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'ProductSans';
  src: url('../fonts/Product Sans Bold.woff2') format('woff2'),
    url('../fonts/Product Sans Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --pt-ink: #1d1d3a;
  --pt-title: #111;
  --pt-prose: #4b4d55;
  --pt-soft: #3f4250;
  --pt-muted: #6e7071;
  --pt-brand: #5e61f6;
  --pt-brand-deep: #634bf6;
  --pt-teal: #0f6f7c;
  --pt-grad: linear-gradient(90deg, #634bf6, #4baef6);
  --pt-surface: #f8f9fb;
  --pt-tint: #f1f5ff;
  --pt-chip: #f2f4f7;
  --pt-chip-hover: #e9ecf3;
  --pt-chip-on: #e4f6f8;
  --pt-line: #e6e9f2;
  --pt-line-soft: #eceef3;
  --pt-rule: #eef0f5;
  --pt-gutter: clamp(16px, 3vw, 32px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body.pt {
  margin: 0;
  background: #fff;
  color: var(--pt-ink);
  font-family: 'ProductSans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  /* The material is ours; copying it wholesale is discouraged. */
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.pt input,
.pt select,
.pt textarea {
  -webkit-user-select: text;
  user-select: text;
}

.pt img {
  max-width: 100%;
}

.pt a {
  color: var(--pt-brand);
  text-decoration: none;
}

/* :where keeps these at element weight, so widgets injected by shared scripts
   (the app banner) keep their own link colours. */
.pt a:hover {
  color: var(--pt-brand-deep);
  text-decoration: underline;
}

.pt button,
.pt select,
.pt input {
  font-family: inherit;
}

.pt button:focus-visible,
.pt a:focus-visible,
.pt summary:focus-visible,
.pt select:focus-visible,
.pt input:focus-visible {
  outline: 2px solid var(--pt-brand);
  outline-offset: 2px;
}

/* index.js swaps the Log In link for the avatar of a signed-in visitor. */
.pt .hidden {
  display: none !important;
}

.pt-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   header
   -------------------------------------------------------------------------- */

.pt-hdr {
  position: relative;
  z-index: 30;
  background: #fff;
  border-bottom: 1px solid var(--pt-rule);
}

.pt-hdr__bar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px var(--pt-gutter);
}

.pt-logo {
  display: block;
  flex: none;
}

.pt-logo img {
  display: block;
  height: 40px;
  width: auto;
}

.pt-test {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--pt-chip);
  border-radius: 999px;
  font-size: 14px;
  color: var(--pt-ink);
  white-space: nowrap;
  cursor: pointer;
}

.pt-test:hover {
  background: var(--pt-chip-hover);
}

.pt-test select {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  color: var(--pt-ink);
  padding: 0 22px 0 0;
  cursor: pointer;
  outline-offset: 4px;
}

.pt-test .pt-caret {
  flex: none;
  margin-left: -22px;
  pointer-events: none;
}

.pt-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  /* PTE's accent in the main site's test switcher (TestSelect.tsx) */
  background: #3b5bfd;
}

.pt-lang {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--pt-chip);
  border-radius: 999px;
  font-size: 14px;
  color: var(--pt-ink);
  cursor: pointer;
}

.pt-lang:hover {
  background: var(--pt-chip-hover);
}

.pt-lang svg {
  flex: none;
}

.pt-lang select {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  color: var(--pt-ink);
  padding: 0 22px 0 2px;
  cursor: pointer;
  outline-offset: 4px;
}

.pt-lang .pt-caret {
  margin-left: -22px;
  pointer-events: none;
}

.pt-tabs {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(6px, 1.6vw, 22px);
  font-size: 16px;
  font-weight: 700;
}

.pt .pt-tab {
  color: var(--pt-muted);
  padding: 6px 10px;
  border-radius: 8px;
}

.pt .pt-tab:hover {
  color: var(--pt-title);
  text-decoration: none;
}

.pt .pt-tab.is-active {
  color: var(--pt-title);
  background: var(--pt-chip-on);
}

.pt .pt-login {
  flex: none;
  background: var(--pt-grad);
  color: #fff;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 12px;
  white-space: nowrap;
}

.pt .pt-login:hover {
  color: #fff;
  text-decoration: none;
  filter: brightness(1.05);
}

.pt-avatar {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: #60a5fa;
  object-fit: cover;
}

/* The menu is a <details>, so it opens without JavaScript. Its button sits in
   the header bar; the panel drops below the bar and pushes the page down. */
.pt-mnav {
  display: none;
}

.pt-burger {
  position: absolute;
  top: 16px;
  right: var(--pt-gutter);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--pt-chip);
  color: var(--pt-ink);
  cursor: pointer;
  list-style: none;
}

.pt-burger::-webkit-details-marker {
  display: none;
}

.pt-burger::marker {
  content: '';
}

.pt-burger .pt-i-close,
.pt-mnav[open] .pt-burger .pt-i-open {
  display: none;
}

.pt-mnav[open] .pt-burger .pt-i-close {
  display: block;
}

.pt-mnav__panel {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px 20px;
  border-top: 1px solid var(--pt-rule);
  font-size: 17px;
}

.pt .pt-mnav__link {
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--pt-ink);
}

.pt .pt-mnav__link.is-active {
  background: var(--pt-tint);
  color: var(--pt-brand);
  font-weight: 700;
}

.pt-mnav__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 0;
}

.pt .pt-mnav__chip {
  background: var(--pt-chip);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--pt-ink);
}

.pt .pt-mnav__chip.is-active {
  background: var(--pt-chip-on);
}

.pt-mnav__lang {
  padding: 4px 0 8px;
}

.pt-mnav__lang .pt-lang {
  padding: 10px 16px;
}

.pt .pt-mnav__login {
  display: block;
  text-align: center;
  padding: 14px;
}

@media (max-width: 1059.98px) {
  .pt-hdr__full {
    display: none !important;
  }

  .pt-hdr__bar {
    padding-right: calc(var(--pt-gutter) + 60px);
  }

  .pt-test {
    padding: 6px 12px;
    font-size: 13px;
  }

  .pt-test select {
    font-size: 13px;
  }

  .pt-mnav {
    display: block;
  }
}

@media (max-width: 759.98px) {
  .pt-logo img {
    height: 32px;
  }

  .pt-burger {
    top: 12px;
  }
}

/* --------------------------------------------------------------------------
   page frame: sidebar + main column
   -------------------------------------------------------------------------- */

.pt-wrap {
  /* content-box, as in the design: 1280px of content inside the gutters */
  box-sizing: content-box;
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px var(--pt-gutter) 96px;
  display: flex;
  gap: 40px;
  align-items: flex-start;
  min-width: 0;
}

/* A sticky column taller than the window pins its top and puts everything
   below the fold out of reach: the course card could not be scrolled to and
   the lower menu entries looked frozen. Capping it to the viewport lets it
   scroll on its own when it does not fit, and changes nothing when it does,
   so the fully-open sidebar the design asks for is kept. */
.pt-side {
  flex: none;
  width: 230px;
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.pt-side__nav {
  background: var(--pt-surface);
  border-radius: 20px;
  padding: 20px 16px;
  font-size: 16px;
}

.pt-side__list,
.pt-side__sub {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.pt-side__list {
  gap: 4px;
}

.pt .pt-side__link {
  display: block;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--pt-ink);
}

.pt .pt-side__link:hover {
  background: #fff;
  text-decoration: none;
}

.pt .pt-side__link.is-active {
  background: #fff;
  font-weight: 700;
  color: var(--pt-brand);
  box-shadow: 0 1px 4px rgba(29, 29, 58, 0.06);
}

.pt-side__sub {
  gap: 2px;
  padding: 2px 0 6px 14px;
  margin: 0 0 2px 14px;
  border-left: 2px solid #e3e7f3;
}

.pt .pt-side__sub a {
  display: block;
  padding: 7px 12px;
  font-size: 14.5px;
  line-height: 1.35;
  color: var(--pt-prose);
}

.pt .pt-side__sub a:hover,
.pt .pt-side__sub a.light-blue {
  color: var(--pt-brand);
  text-decoration: none;
}

.pt-premium {
  border-radius: 20px;
  background: linear-gradient(135deg, #f3eeff, #eaf3ff);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pt-premium__title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  color: var(--pt-brand-deep);
}

.pt-premium__text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--pt-soft);
}

.pt-premium__text b {
  color: var(--pt-ink);
}

.pt .pt-btn {
  display: block;
  background: var(--pt-grad);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 11px;
  border-radius: 10px;
  text-align: center;
}

.pt .pt-btn:hover {
  color: #fff;
  text-decoration: none;
  filter: brightness(1.05);
}

.pt-main {
  flex: 1 1 300px;
  min-width: 0;
  max-width: 860px;
  display: flex;
  flex-direction: column;
  gap: 48px;
  overflow-wrap: break-word;
}

/* Phone-only pieces: the section chips and the in-column premium card. */
.pt-chips,
.pt-premium--inline {
  display: none;
}

@media (max-width: 759.98px) {
  .pt-wrap {
    display: block;
    box-sizing: border-box;
    padding: 16px 16px 96px;
  }

  .pt-side {
    display: none;
  }

  .pt-main {
    gap: 40px;
  }

  .pt-premium--inline {
    display: flex;
    padding: 18px 20px;
  }

  .pt-premium--inline .pt-btn {
    font-size: 15px;
    padding: 13px;
    border-radius: 12px;
  }

  .pt-chips {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 10;
    margin: 0 -16px -16px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid var(--pt-rule);
  }

  .pt-chips::-webkit-scrollbar {
    display: none;
  }

  .pt .pt-chips a {
    flex: none;
    background: var(--pt-chip);
    border-radius: 999px;
    padding: 9px 14px;
    font-size: 14px;
    font-weight: 700;
    color: var(--pt-ink);
    white-space: nowrap;
  }
}

/* --------------------------------------------------------------------------
   hero
   -------------------------------------------------------------------------- */

.pt-hero {
  border-radius: 24px;
  background: linear-gradient(110deg, #e9f9fb 0%, #f1f5ff 60%, #f4f0ff 100%);
  padding: clamp(20px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pt-eyebrow {
  margin: 0;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--pt-teal);
}

.pt-h1 {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.18;
  letter-spacing: -0.4px;
  font-weight: 700;
  color: var(--pt-title);
  text-wrap: balance;
}

.pt-lead {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--pt-soft);
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   sections and text blocks
   -------------------------------------------------------------------------- */

.pt-sec {
  display: flex;
  flex-direction: column;
  gap: 18px;
  scroll-margin-top: 72px;
  min-width: 0;
}

.pt-h2 {
  margin: 0;
  font-size: clamp(21px, 1.8vw, 24px);
  line-height: 1.2;
  font-weight: 700;
  color: var(--pt-title);
}

.pt-h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--pt-brand);
}

.pt-p {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--pt-prose);
  text-wrap: pretty;
}

.pt-p:empty {
  display: none;
}

.pt-p strong,
.pt-list strong {
  color: var(--pt-ink);
}

.pt-q {
  font-weight: 700;
  color: var(--pt-ink);
}

.pt-quote {
  border-left: 4px solid var(--pt-brand);
  padding-left: 16px;
  font-style: italic;
}

.pt-note {
  border-radius: 18px;
  background: var(--pt-tint);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pt-list {
  margin: 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--pt-prose);
}

ul.pt-list {
  list-style: disc;
}

ol.pt-list {
  list-style: decimal;
}

ol.pt-list--roman {
  list-style-type: lower-roman;
  padding-left: 36px;
}

.pt-list--tight {
  gap: 6px;
  font-size: 16px;
  line-height: 1.5;
}

.pt-ans {
  color: #15803d;
  font-weight: 700;
}

.pt-muted {
  color: var(--pt-muted);
}

.pt-warn {
  color: #b45309;
}

/* tables: bordered and rounded; a wide one scrolls inside its frame */
.pt-table {
  border: 1px solid var(--pt-line);
  border-radius: 20px;
  overflow-x: auto;
  background: #fff;
}

.pt-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
  line-height: 1.5;
}

.pt-table th {
  text-align: left;
  padding: 14px 18px;
  background: var(--pt-surface);
  font-weight: 700;
  color: var(--pt-ink);
  vertical-align: bottom;
}

.pt-table td {
  padding: 14px 18px;
  border-top: 1px solid var(--pt-line-soft);
  color: var(--pt-soft);
  vertical-align: top;
}

.pt-table td strong {
  color: var(--pt-ink);
}

/* two-column cards */
.pt-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.pt-card {
  border: 1px solid var(--pt-line);
  border-radius: 20px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
}

.pt .pt-card__title {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--pt-teal);
}

.pt-card__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--pt-soft);
}

/* FAQ: an accordion of <details> */
.pt-faq {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pt-faq__item {
  border-radius: 20px;
  border: 1px solid var(--pt-line);
  background: #fff;
}

.pt-faq__item[open] {
  background: var(--pt-surface);
}

.pt-faq__item > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
}

.pt-faq__item > summary::-webkit-details-marker {
  display: none;
}

.pt-faq__item > summary::after {
  content: '+';
  margin-left: auto;
  flex: none;
  font-size: 22px;
  line-height: 1;
  color: var(--pt-brand-deep);
}

.pt-faq__item[open] > summary::after {
  content: '\2212';
}

.pt-faq__q {
  margin: 0;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--pt-ink);
}

.pt-faq__a {
  margin: 0;
  padding: 0 22px 20px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--pt-prose);
}

/* worked example and printed task material */
.pt-example,
.pt-task {
  border-radius: 24px;
  background: var(--pt-surface);
  padding: clamp(18px, 3vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.pt-passage {
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--pt-line);
  padding: 20px 22px;
  max-height: 420px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pt-box {
  border: 1px solid var(--pt-line);
  border-radius: 18px;
  padding: 16px 20px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pt-box--text {
  display: block;
  font-size: 17px;
  line-height: 1.65;
  color: var(--pt-prose);
}

.pt-figure {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--pt-line);
  background: #fff;
}

/* multiple-choice options: real radio buttons, so they work without JS */
.pt-opts {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 560px;
  padding-left: 12px;
  border-left: 2px solid #d9defa;
}

.pt-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1.4;
  color: var(--pt-soft);
}

.pt-opt:hover {
  background: var(--pt-tint);
}

.pt-opt input {
  width: 18px;
  height: 18px;
  flex: none;
  margin: 0;
  accent-color: var(--pt-brand);
}

/* answer keys and model answers: <details>, open without JS */
.pt-reveal {
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--pt-line);
}

.pt-reveal > summary {
  cursor: pointer;
  padding: 13px 18px;
  font-weight: 700;
  font-size: 15px;
  color: var(--pt-brand);
}

.pt-reveal > summary::marker {
  color: var(--pt-brand);
}

.pt-reveal__body {
  padding: 2px 18px 16px;
}

.pt-reveal__label {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 700;
  color: var(--pt-ink);
}

.pt-line {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--pt-soft);
}

.pt-model {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--pt-ink);
  text-wrap: pretty;
}

.pt-why {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: #4b5563;
}

/* speaking cue card */
.pt-cue {
  border-radius: 22px;
  background: var(--pt-tint);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pt-cue__eyebrow {
  margin: 0;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--pt-brand-deep);
}

.pt-cue__title {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--pt-title);
}

.pt-cue__say {
  margin: 0;
  font-size: 15px;
  color: var(--pt-prose);
}

/* audio player: audio.js finds its parts by these class names */
.pt-audio {
  border-radius: 16px;
  background: var(--pt-tint);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.pt-audio__ctl {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}

.pt-audio button {
  width: 24px;
  height: 24px;
  flex: none;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
}

.pt-audio button img {
  display: block;
  width: 100%;
  height: 100%;
}

.pt-audio__time {
  color: var(--pt-brand);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.pt-audio .audio-progress {
  flex: 1 1 auto;
  height: 4px;
  border-radius: 6px;
  background: rgba(94, 97, 246, 0.2);
  overflow: hidden;
}

.pt-audio .audio-progress > div {
  max-width: 0%;
  width: 100%;
  height: 100%;
  background: var(--pt-brand);
  transition: max-width 0.3s ease;
}

/* audio.js toggles this on the volume button when muted */
.pt .muted-volume::after {
  content: '';
  position: absolute;
  top: 55%;
  left: -30%;
  width: 140%;
  height: 2px;
  transform: rotate(45deg) translateY(-55%);
  background-color: #000;
}

.pt .transcript-toggle {
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  color: var(--pt-brand);
}

.pt .transcript {
  font-size: 16px;
  line-height: 1.65;
  color: var(--pt-prose);
}

/* calculators */
.pt-author {
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: 22px;
  background: var(--pt-surface);
  padding: 20px 22px;
}

.pt-author__photo {
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 2px #fff;
}

.pt-author__photo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 66% 34%;
  transform: scale(2.1);
  transform-origin: 66% 34%;
}

.pt-author__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.pt-author__name {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  color: #1f2937;
}

.pt-author__bio {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: #4b5563;
}

.pt-stars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #f59e0b;
  white-space: nowrap;
}

.pt-stars__part {
  position: relative;
  display: inline-block;
  color: #d1d5db;
}

.pt-stars__fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 70%;
  overflow: hidden;
  color: #f59e0b;
}

.pt-stars__num {
  margin-left: 4px;
  color: #4b5563;
}

/* floating mock-test button. mobile-app-banner.js moves anything whose class
   ends in -cta-sticky to the left while its desktop card is showing. */
.pte-cta-sticky {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
}

.pt .pte-cta-sticky a {
  display: block;
  background: var(--pt-grad);
  color: #fff;
  font-size: 16px;
  padding: 12px 22px;
  border-radius: 12px;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(99, 75, 246, 0.3);
}

.pt .pte-cta-sticky a:hover {
  color: #fff;
  text-decoration: none;
  filter: brightness(1.05);
}

/* On a phone the app banner takes the bottom of the screen; the button
   comes back once it is dismissed. */
body.has-app-banner .pte-cta-sticky {
  display: none;
}

/* --------------------------------------------------------------------------
   footer: a static copy of the main site's footer
   -------------------------------------------------------------------------- */

.ts-footer {
  background: #fafafa;
  padding: 56px 0 36px;
  color: #12284a;
  border-top: 1px solid rgba(18, 40, 74, 0.08);
}

.ts-footer__container {
  max-width: 1470px;
  padding: 0 15px;
  margin: 0 auto;
}

.ts-footer__top {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.ts-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.ts-footer__logo {
  display: block;
  width: 140px;
  height: 90px;
  object-fit: contain;
}

.ts-footer__langs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  font-size: 16px;
  line-height: 1.3;
}

.pt .ts-footer__lang {
  color: #183b63;
  font-weight: 700;
}

.pt .ts-footer__lang:hover {
  color: #183b63;
  text-decoration: underline;
}

.pt .ts-footer__lang.is-active:hover {
  text-decoration: none;
}

.ts-footer__desc {
  display: grid;
  gap: 8px;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(18, 40, 74, 0.78);
}

.ts-footer__desc p {
  margin: 0;
}

.ts-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.pt .ts-footer__legal a,
.pt .ts-footer__mail {
  color: #183b63;
  font-size: 16px;
  line-height: 1.4;
}

.pt .ts-footer__legal a:hover,
.pt .ts-footer__mail:hover {
  color: #183b63;
  text-decoration: underline;
}

.ts-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.ts-footer__social a {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.ts-footer__social a:hover {
  opacity: 0.72;
}

.ts-footer__social img {
  display: block;
  width: 24px;
  height: 24px;
}

.ts-footer__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.ts-footer__badges a {
  display: inline-flex;
  align-items: center;
}

.ts-footer__badges img {
  display: block;
  height: 48px;
  width: auto;
}

.ts-footer__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.ts-footer__col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.ts-footer__title {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 700;
  color: #12284a;
}

.ts-footer__links {
  display: grid;
  gap: 14px;
}

.pt .ts-footer__links a {
  color: #183b63;
  font-size: 18px;
  line-height: 1.35;
}

.pt .ts-footer__links a:hover {
  color: #183b63;
  text-decoration: underline;
}

.ts-footer__bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(18, 40, 74, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(18, 40, 74, 0.62);
  font-size: 14px;
  line-height: 1.5;
}

.ts-footer__bottom p {
  margin: 0;
}

@media (max-width: 1100px) {
  .ts-footer__top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .ts-footer__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 24px;
  }
}

@media (max-width: 700px) {
  .ts-footer {
    padding: 40px 0 28px;
  }

  .ts-footer__brand {
    gap: 16px;
  }

  .ts-footer__legal {
    gap: 8px 16px;
  }

  .ts-footer__title {
    font-size: 22px;
  }

  .pt .ts-footer__links a {
    font-size: 16px;
  }

  .ts-footer__bottom {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .ts-footer__cols {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }

  .ts-footer__badges {
    gap: 10px;
  }

  .ts-footer__badges img {
    width: auto;
    max-width: 146px;
    height: auto;
  }
}

/* --------------------------------------------------------------------------
   PTE content components (latest templates)
   -------------------------------------------------------------------------- */

.pt-body {
  display: flex;
  flex-direction: column;
  gap: 44px;
  min-width: 0;
}

.pt-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.pt-grid2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 14px;
}

.pt-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.pt-h4 {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--pt-ink);
}

.pt-block {
  display: block;
}

.pt-accent {
  color: var(--pt-teal);
  font-weight: 700;
}

.pt-good {
  color: #15803d;
}

.pt-bad {
  color: #dc2626;
  font-weight: 700;
}

.pt .pt-prompt {
  display: block;
  font-size: 16px;
  line-height: 1.6;
  font-style: italic;
  color: var(--pt-soft);
}

/* "On this page" box (task guides) */
.pt-toc {
  padding: 16px;
  background: #f8f8f8;
  border-radius: 20px;
}

.pt-toc__title {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: clamp(15px, 0.6vw + 11px, 18px);
  line-height: 1.6;
  color: var(--pt-ink);
}

.pt .pt-toc__list {
  margin: 0;
  padding-left: 20px;
  list-style: disc;
  color: var(--pt-brand);
  font-size: clamp(15px, 0.6vw + 11px, 18px);
  line-height: 1.6;
}

/* "Read more about ..." guide link card */
.pt .pt-guide {
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 18px;
  background: var(--pt-surface);
  padding: 14px 18px;
  color: var(--pt-ink);
}

.pt .pt-guide:hover {
  background: var(--pt-tint);
  color: var(--pt-ink);
  text-decoration: none;
}

.pt-guide__icon {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 10px;
  background: #fff;
  color: var(--pt-brand-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pt-guide__text {
  font-size: 15.5px;
  line-height: 1.35;
  min-width: 0;
}

.pt-guide__go {
  margin-left: auto;
  flex: none;
  font-weight: 700;
  color: var(--pt-brand);
}

.pt-row .pt-guide {
  flex: 1 1 280px;
}

/* at-a-glance tiles */
.pt-stats {
  border-radius: 22px;
  background: var(--pt-tint);
  padding: 6px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 6px;
}

.pt-stat {
  background: #fff;
  border-radius: 16px;
  padding: 16px 18px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--pt-title);
}

.pt-stat strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13.5px;
  line-height: 1.35;
  font-weight: 400;
  color: var(--pt-muted);
}

/* sample cards, as the templates' Q-cards */
.pt-qcard {
  border: 1px solid var(--pt-line);
  border-radius: 22px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fff;
  min-width: 0;
}

.pt .pt-qcard__title {
  margin: 0;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--pt-title);
}

.pt-qcard .pt-qcard {
  border-radius: 18px;
  padding: 16px 18px;
}

.pt-answer {
  border-radius: 14px;
  background: #f6f8fc;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.pt-item {
  padding: 12px 16px;
  background: var(--pt-surface);
  border-radius: 14px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--pt-soft);
}

.pt-item--opt {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.pt-opt__key {
  flex: none;
  font-weight: 700;
  color: var(--pt-brand);
}

.pt-chiprow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pt-chip {
  display: inline-block;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d8e2ec;
  padding: 5px 12px;
  font-size: 14.5px;
  color: var(--pt-soft);
}

.pt-note--good {
  background: #effaf3;
}

.pt-note > .pt-h3,
.pt-note > h3 {
  font-size: 18px;
}

.pt-reveal > summary {
  list-style-position: inside;
}

.pt .pt-btn-sm {
  display: inline-flex;
  align-items: center;
  border: 0;
  cursor: pointer;
  background: var(--pt-grad);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 9px 16px;
  border-radius: 12px;
}

.pt .pt-btn-sm:hover {
  filter: brightness(1.06);
}

/* carousel: every slide shows until the script marks it ready */
.pt-car {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.pt-car__bar {
  display: none;
  align-items: center;
  gap: 10px;
  background: var(--pt-surface);
  border-radius: 999px;
  padding: 6px;
}

.pt-car.is-ready .pt-car__bar {
  display: flex;
}

.pt-car__slide[hidden] {
  display: none;
}

.pt .pt-car__nav {
  flex: none;
  width: 40px;
  height: 40px;
  border: 0;
  cursor: pointer;
  border-radius: 50%;
  background: #fff;
  color: var(--pt-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(29, 29, 58, 0.08);
}

.pt .pt-car__nav:hover {
  color: var(--pt-brand);
}

.pt-car__chips {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.pt-car__chips::-webkit-scrollbar {
  display: none;
}

.pt .pt-car__chip {
  flex: none;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  background: transparent;
  color: var(--pt-ink);
}

.pt .pt-car__chip.is-on {
  background: var(--pt-grad);
  color: #fff;
}

.pt-car__pos {
  flex: none;
  padding: 0 4px;
  font-size: 14px;
  color: var(--pt-muted);
  font-variant-numeric: tabular-nums;
}

/* FAQ cards */
.pt-faqlist {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pt-qa {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(110, 112, 113, 0.2);
  border-radius: 22px;
  scroll-margin-top: 72px;
}

.pt .pt-qa__q {
  margin: 0;
  font-size: clamp(19px, 1.8vw, 24px);
  line-height: 1.25;
  font-weight: 700;
  color: var(--pt-title);
}

.pt-qa__a {
  margin: 0;
  font-size: clamp(16px, 0.6vw + 12px, 20px);
  line-height: 1.4;
  color: var(--pt-prose);
}

/* tinted "further reading" box */
.pt-guides,
.pt-verdict {
  padding: 24px;
  background: var(--pt-tint);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pt-guides .pt-p {
  color: var(--pt-muted);
}

.pt .pt-btn--inline {
  align-self: flex-start;
  padding: 12px 22px;
  font-size: 15px;
  border-radius: 12px;
}

/* blog */
.pt .pt-back {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: -28px;
}

.pt-hero__chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  order: 3;
}

.pt-hero__chip {
  background: #fff;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.pt-hero .pt-eyebrow { order: 0; }
.pt-hero .pt-h1 { order: 1; }
.pt-hero .pt-lead { order: 2; }

.pt-bgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 16px;
}

.pt .pt-bcard {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--pt-line);
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  color: var(--pt-ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pt .pt-bcard:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(29, 29, 58, 0.08);
  text-decoration: none;
  color: var(--pt-ink);
}

.pt-bcard__cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background: linear-gradient(135deg, #634bf6 0%, #4baef6 100%);
}

.pt-bcard__name {
  background: #fff;
  color: var(--pt-ink);
  font-weight: 700;
  font-size: 15px;
  padding: 9px 14px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.pt-bcard__vs {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pt-bcard__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.pt-bcard__title {
  font-size: 17px;
  line-height: 1.35;
  color: var(--pt-title);
  text-wrap: pretty;
}

.pt-bcard__date {
  font-size: 13.5px;
  color: var(--pt-muted);
}

.pt-bcard__more {
  margin-top: auto;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--pt-brand);
}

/* Old page styles the <head> still carries (blog posts tint the body). */
body.pt {
  background: #fff;
}

.pt .pt-side__sub a.is-current {
  color: var(--pt-brand);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Samples exercises. These styles used to sit in the pages' inline <style>
   blocks and Tailwind; the class names are the ones the exercise scripts use.
   -------------------------------------------------------------------------- */

.pt .pt-brandtext {
  color: var(--pt-brand);
}

.pt-small {
  font-size: 14px;
  line-height: 1.5;
  color: var(--pt-muted);
}

.pt-row--between {
  justify-content: space-between;
}

.pt-label {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--pt-ink);
}

.pt .pt-textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--pt-line);
  border-radius: 14px;
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  color: var(--pt-ink);
  background: #fff;
  resize: vertical;
}

.pt .pt-textarea:focus,
.pt .pt-select:focus,
.pt .pt-gap:focus {
  outline: 2px solid var(--pt-brand);
  outline-offset: 1px;
}

.pt .pt-select {
  margin: 0 4px;
  padding: 4px 8px;
  border: 1px solid var(--pt-line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 15px;
  color: var(--pt-ink);
}

.pt .pt-gap {
  width: 6rem;
  margin: 0 4px;
  padding: 2px 6px;
  border: 0;
  border-bottom: 2px solid #c9d2e0;
  background: transparent;
  font: inherit;
  color: var(--pt-ink);
}

.pt .pt-gap--sm {
  width: 5rem;
}

.pt-opt input[type='checkbox'],
.pt-opt input[type='radio'] {
  width: 18px;
  height: 18px;
  flex: none;
  margin: 0;
  accent-color: var(--pt-brand);
}

.pt .pt-sumopt {
  padding: 14px 16px;
  border: 1px solid var(--pt-line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}

.pt .pt-sumopt:hover {
  background: var(--pt-surface);
}

.pt .pt-sumopt.border-blue-500 {
  border-color: var(--pt-brand);
}

.pt .pt-sumopt.bg-blue-100 {
  background: var(--pt-tint);
}

.pt .pt-hl {
  padding: 0 4px;
  border-radius: 4px;
  cursor: pointer;
}

.pt .pt-hl.bg-yellow-200 {
  background: #fef08a;
}

.pt .pt-hl.bg-red-200 {
  background: #fecaca;
}

.pt .timer {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  background: linear-gradient(90deg, #3b82f6, #1d4ed8);
  color: #fff;
  font-weight: 700;
}

.pt .word-count {
  padding: 4px 12px;
  border-radius: 12px;
  background: #f3f4f6;
  font-size: 14px;
  color: #6b7280;
}

.pt .drag-item {
  padding: 12px;
  border: 1px solid var(--pt-line);
  border-radius: 10px;
  background: #f3f4f6;
  cursor: move;
  transition: all 0.3s ease;
}

.pt .drag-item:hover {
  transform: scale(1.02);
}

.pt .drop-zone {
  min-height: 50px;
  padding: 10px;
  border: 2px dashed #ccc;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.pt .drop-zone.drag-over {
  border-color: #3b82f6;
  background-color: #eff6ff;
}

.pt .word-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
  padding: 15px;
  border-radius: 8px;
  background-color: #f8fafc;
}

.pt .word-item {
  padding: 8px 12px;
  border-radius: 6px;
  background-color: #e2e8f0;
  cursor: move;
  user-select: none;
  transition: all 0.3s ease;
}

.pt .word-item:hover {
  background-color: #cbd5e1;
}

.pt .word-item.used {
  opacity: 0.5;
  cursor: not-allowed;
}

.pt .blank-space {
  display: inline-block;
  min-width: 100px;
  height: 30px;
  margin: 0 5px;
  border-bottom: 2px solid #3b82f6;
  vertical-align: middle;
}

.pt .blank-space.filled {
  padding: 2px 8px;
  border-radius: 4px;
  background-color: #dbeafe;
}

/* --------------------------------------------------------------------------
   Blog comparison tables (were in each post's inline <style>)
   -------------------------------------------------------------------------- */

.pt .table-card {
  background: #fff;
  border: 1px solid var(--pt-line);
  border-radius: 20px;
  padding: 12px;
}

.pt .table-wrapper {
  overflow-x: auto;
  padding-top: 18px;
  -webkit-overflow-scrolling: touch;
}

.pt .comparison-table {
  width: 100%;
  min-width: 640px;
  line-height: 1.5;
  border-collapse: collapse;
  background: #fff;
}

.pt .comparison-table th {
  position: relative;
  padding: 18px 12px 12px;
  background: #f3f4f6;
  color: #374151;
  text-align: center;
  font-weight: 700;
}

.pt .comparison-table th.feature-head {
  text-align: left;
  padding-left: 16px;
}

.pt .comparison-table td {
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
  text-align: center;
  color: #374151;
  vertical-align: middle;
}

.pt .comparison-table td.feature-cell {
  text-align: left;
  padding-left: 16px;
  font-weight: 600;
  color: #1f2937;
}

.pt .competitor {
  color: #6b7280;
  background: #fafafa;
}

.pt .winner {
  background: #e8f5e9;
  color: #2e7d32;
  font-weight: 700;
  border-left: 2px solid #2e7d32;
  border-right: 2px solid #2e7d32;
}

.pt .comparison-table th.winner-header {
  position: relative;
  padding-top: 26px;
  background: #2e7d32;
  color: #fff;
  border-radius: 12px 12px 0 0;
}

.pt .winner-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: #f1c40f;
  color: #333;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.pt .price-expensive {
  color: #c0392b;
  text-decoration: line-through;
  font-weight: 600;
  opacity: 0.8;
}

.pt .price-note {
  font-size: 0.75rem;
  color: #6b7280;
}

.pt .price-winner {
  font-size: 1.3rem;
  font-weight: 800;
  color: #2e7d32;
}

.pt .check {
  color: #2e7d32;
  font-weight: 700;
}

@media (max-width: 640px) {
  .pt .comparison-table {
    min-width: 0;
  }

  .pt .comparison-table thead {
    display: none;
  }

  .pt .comparison-table,
  .pt .comparison-table tbody,
  .pt .comparison-table tr,
  .pt .comparison-table td {
    display: block;
    width: 100%;
  }

  .pt .comparison-table tr {
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
  }

  .pt .comparison-table td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border: 0;
    text-align: left;
  }

  .pt .comparison-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #6b7280;
  }

  .pt .comparison-table th.winner-header {
    border-radius: 12px;
  }

  .pt .winner-badge {
    position: static;
    transform: none;
    margin-bottom: 8px;
  }
}

/* Gap-fill exercises
   The dropdowns sit inside a paragraph, so they carry their gap number and
   enough weight to be read as part of the sentence rather than page chrome.
   Right and wrong are carried by an icon and a border as well as colour. */
.pt .pt-select {
  font-weight: 600;
}

.pt .pt-select.is-right {
  border-color: #16a34a;
  background: #f0fdf4;
  color: #15803d;
}

.pt .pt-select.is-wrong {
  border-color: #dc2626;
  background: #fef2f2;
  color: #b91c1c;
}

.pt .pt-check {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.pt .pt-btn--check {
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid var(--pt-line);
  background: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  color: var(--pt-ink);
  cursor: pointer;
}

.pt .pt-btn--check:hover {
  border-color: var(--pt-brand);
  color: var(--pt-brand);
}

.pt .pt-check__go {
  border-color: transparent;
  background: var(--pt-brand);
  color: #fff;
}

.pt .pt-check__go:hover {
  opacity: 0.9;
  color: #fff;
}

.pt .pt-check__score {
  margin: 0;
  font-weight: 600;
  font-size: 15px;
  color: var(--pt-muted);
}

@media (max-width: 560px) {
  .pt .pt-check {
    gap: 8px;
  }

  .pt .pt-btn--check {
    flex: 1 1 auto;
  }
}

/* Hover in the sidebar highlights the entry, it does not underline it: the
   generic a:hover underline reads as a change of state rather than a pointer,
   and on the pages whose menu comes from the design import it was the only
   rule that matched. */
.pt .pt-side a:hover,
.pt .pt-side .aside__list a:hover {
  text-decoration: none;
  color: var(--pt-brand);
}

/* Limited-time offer countdown in the premium card, as on TOEIC. */
.pt-count {
  display: flex;
  gap: 6px;
}

.pt-count__cell {
  flex: 1;
  background: #fff;
  border-radius: 10px;
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}

.pt-count__cell b {
  font-size: 18px;
  color: var(--pt-title);
  font-variant-numeric: tabular-nums;
}

.pt-count__cell small {
  font-size: 11px;
  color: var(--pt-muted);
}
