/* BroadbandSwitch.uk author profile pages (Alex J. Martin-Smith, Adrian James)
   Scoped to .bsx-ap so it never touches the site header, nav or footer.
   Version 2026-10-20 */

.bsx-ap {
  --bsx-pink: #E50571;
  --bsx-pink-hover: #C2045F;
  --bsx-pink-text: #C2045F;
  --bsx-plum: #2A1028;
  --bsx-ink: #3B2737;
  --bsx-muted: #634459;
  --bsx-soft: #FFF5FA;
  --bsx-soft-2: #FDE7F1;
  --bsx-line: #F4C6DB;
  --bsx-white: #FFFFFF;
  --bsx-radius: 20px;
  --bsx-shadow: 0 10px 30px rgba(138, 20, 80, .10);
  color: var(--bsx-ink);
  font-size: 1.0625rem;
  line-height: 1.65;
  background: var(--bsx-white);
}
.bsx-ap *, .bsx-ap *::before, .bsx-ap *::after { box-sizing: border-box; }
.bsx-ap img { max-width: 100%; height: auto; display: block; }
.bsx-ap a { color: var(--bsx-pink-text); text-underline-offset: 3px; }
.bsx-ap a:hover { color: var(--bsx-plum); }
.bsx-ap :focus-visible { outline: 3px solid var(--bsx-plum); outline-offset: 3px; border-radius: 6px; }

.bsx-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .bsx-wrap { padding: 0 24px; } }

/* Breadcrumb */
.bsx-crumbs { font-size: .9rem; color: var(--bsx-muted); padding-top: 20px; }
.bsx-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.bsx-crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--bsx-line); }
.bsx-crumbs a { color: var(--bsx-muted); }
.bsx-crumbs [aria-current] { color: var(--bsx-plum); font-weight: 600; }

/* Hero */
.bsx-hero {
  background: radial-gradient(1100px 420px at 85% 0%, var(--bsx-soft-2), transparent 70%), var(--bsx-white);
  padding: 8px 0 40px;
}
.bsx-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "head" "photo" "intro" "cta" "meta";
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}
@media (min-width: 900px) {
  .bsx-hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    grid-template-areas: "head photo" "intro photo" "cta photo" "meta photo";
    column-gap: 56px;
    row-gap: 18px;
    margin-top: 28px;
  }
}
.bsx-hero__head { grid-area: head; }
.bsx-hero__photo { grid-area: photo; }
.bsx-hero__intro { grid-area: intro; }
.bsx-hero__cta { grid-area: cta; }
.bsx-hero__meta { grid-area: meta; }

.bsx-eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bsx-pink-text);
  background: var(--bsx-white);
  border: 1px solid var(--bsx-line);
  border-radius: 999px;
  padding: 5px 12px;
  margin: 0 0 14px;
  white-space: nowrap;
}
.bsx-ap h1 {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--bsx-plum);
  margin: 0 0 10px;
  font-weight: 800;
}
.bsx-role { font-size: 1.15rem; font-weight: 600; color: var(--bsx-muted); margin: 0; }
.bsx-lede { font-size: 1.2rem; line-height: 1.6; color: var(--bsx-ink); margin: 0; max-width: 34em; }
.bsx-lede + .bsx-lede { margin-top: 12px; }

.bsx-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.bsx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none;
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.bsx-ap .bsx-btn--primary { background: var(--bsx-pink); color: var(--bsx-white); box-shadow: 0 8px 20px rgba(229, 5, 113, .25); }
.bsx-ap .bsx-btn--primary:hover { background: var(--bsx-pink-hover); color: var(--bsx-white); transform: translateY(-1px); }
.bsx-ap .bsx-btn--ghost { background: var(--bsx-white); color: var(--bsx-plum); border: 2px solid var(--bsx-pink); }
.bsx-ap .bsx-btn--ghost:hover { background: var(--bsx-soft); color: var(--bsx-plum); }
.bsx-btn svg { width: 18px; height: 18px; flex: none; }

.bsx-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .92rem; color: var(--bsx-muted); margin: 4px 0 0; padding: 0; list-style: none; }
.bsx-meta li { display: inline-flex; align-items: center; gap: 6px; }
.bsx-meta svg { width: 16px; height: 16px; color: var(--bsx-pink); }

/* Portrait: square, rounded, subtle pink base */
.bsx-portrait { margin: 0; max-width: 460px; width: 100%; justify-self: center; }
@media (min-width: 900px) { .bsx-portrait { justify-self: end; } }
.bsx-portrait__frame {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  border-radius: 24px; background: var(--bsx-soft-2);
  box-shadow: var(--bsx-shadow);
  border-bottom: 6px solid var(--bsx-pink);
}
.bsx-portrait__frame img { width: 100%; height: 100%; object-fit: cover; }
.bsx-portrait figcaption { font-size: .9rem; color: var(--bsx-muted); margin-top: 10px; text-align: center; }

/* Sections */
.bsx-section { padding: 52px 0; }
.bsx-section--soft { background: var(--bsx-soft); }
.bsx-ap h2 {
  font-size: clamp(1.55rem, 3.2vw, 2.15rem); line-height: 1.2; letter-spacing: -.01em;
  color: var(--bsx-plum); margin: 0 0 14px; font-weight: 800;
}
.bsx-ap h3 { font-size: 1.15rem; line-height: 1.3; color: var(--bsx-plum); margin: 0 0 6px; font-weight: 800; }
.bsx-ap p { margin: 0 0 14px; }
.bsx-prose { max-width: 44em; }
.bsx-kicker { font-size: 1.12rem; color: var(--bsx-muted); max-width: 44em; margin-bottom: 26px; }

.bsx-quote {
  margin: 26px 0 0; padding: 22px 24px; max-width: 44em;
  border-left: 6px solid var(--bsx-pink); border-radius: 0 16px 16px 0;
  background: var(--bsx-soft); color: var(--bsx-plum);
  font-size: clamp(1.2rem, 2.4vw, 1.45rem); line-height: 1.45; font-weight: 700;
}
.bsx-quote p { margin: 0; }

/* Diagram */
.bsx-diagram { margin: 26px 0 0; }
.bsx-diagram picture, .bsx-diagram img { display: block; width: 100%; height: auto; }
.bsx-diagram img { border-radius: 24px; box-shadow: var(--bsx-shadow); }
@media (max-width: 899px) { .bsx-diagram img { max-width: 560px; margin: 0 auto; } }
.bsx-diagram figcaption { font-size: .9rem; color: var(--bsx-muted); margin-top: 12px; text-align: center; }

/* Stat / report cards with big numbers */
.bsx-cards { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .bsx-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .bsx-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bsx-card {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  background: var(--bsx-white); border: 1px solid var(--bsx-line); border-radius: var(--bsx-radius);
  padding: 22px 22px 20px; box-shadow: 0 4px 14px rgba(138, 20, 80, .05);
  transition: transform .25s ease, box-shadow .25s ease;
}
.bsx-card:hover { transform: translateY(-3px); box-shadow: var(--bsx-shadow); }
.bsx-card__tag { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--bsx-pink-text); }
.bsx-card__num { font-size: clamp(2.2rem, 5vw, 2.8rem); line-height: 1.05; font-weight: 800; color: var(--bsx-pink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bsx-card__num small { font-size: .5em; font-weight: 700; letter-spacing: 0; }
.bsx-card p { margin: 0; color: var(--bsx-ink); }
.bsx-card__link { margin-top: auto; padding-top: 10px; font-weight: 700; }
.bsx-card__link a::after { content: ""; position: absolute; inset: 0; border-radius: var(--bsx-radius); }

/* Tool cards */
.bsx-tool { flex-direction: row; gap: 16px; align-items: flex-start; }
.bsx-tool__icon {
  flex: none; width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center; background: var(--bsx-soft-2); color: var(--bsx-pink);
}
.bsx-tool__icon svg { width: 28px; height: 28px; }
.bsx-tool__body { display: flex; flex-direction: column; gap: 4px; }

/* Press card */
.bsx-press {
  margin-top: 22px; display: grid; gap: 10px;
  background: var(--bsx-plum); color: #FCE9F2; border-radius: var(--bsx-radius); padding: 26px 26px 22px;
}
.bsx-press .bsx-press__lead { margin: 0; font-size: clamp(1.2rem, 2.6vw, 1.5rem); line-height: 1.4; font-weight: 700; color: var(--bsx-white); }
.bsx-press p { margin: 0; color: #FCE9F2; }
.bsx-ap .bsx-press a { color: #FFC2DD; font-weight: 700; }
.bsx-ap .bsx-press a:hover { color: var(--bsx-white); }

/* Highlight panel (social tariffs, two roles) */
.bsx-panel {
  display: grid; gap: 18px; align-items: center;
  background: linear-gradient(135deg, var(--bsx-soft-2), var(--bsx-soft));
  border: 1px solid var(--bsx-line); border-radius: 24px; padding: 26px;
}
@media (min-width: 900px) { .bsx-panel { grid-template-columns: auto 1fr; padding: 32px 36px; } }
.bsx-panel__badge {
  width: 84px; height: 84px; border-radius: 24px; display: grid; place-items: center;
  background: var(--bsx-pink); color: var(--bsx-white);
}
.bsx-panel__badge svg { width: 42px; height: 42px; }
.bsx-panel p:last-child { margin-bottom: 0; }

/* Trust list */
.bsx-trust { display: grid; gap: 12px; grid-template-columns: 1fr; margin: 18px 0 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .bsx-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .bsx-trust { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bsx-trust a {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 16px;
  background: var(--bsx-white); border: 1px solid var(--bsx-line); border-radius: 14px;
  color: var(--bsx-plum); font-weight: 700; text-decoration: none;
}
.bsx-trust a:hover { border-color: var(--bsx-pink); color: var(--bsx-pink-text); }
.bsx-trust svg { width: 20px; height: 20px; color: var(--bsx-pink); flex: none; }

/* Credentials chips */
.bsx-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 16px; padding: 0; list-style: none; }
.bsx-chips li { display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--bsx-white); border: 1px solid var(--bsx-line); }
.bsx-chips strong { color: var(--bsx-pink-text); font-weight: 800; }
.bsx-chips span { color: var(--bsx-ink); font-size: .95rem; }

/* Big stat (Adrian page) */
.bsx-bigstat { display: grid; gap: 20px; align-items: center; margin-bottom: 8px; }
@media (min-width: 900px) { .bsx-bigstat { grid-template-columns: auto 1fr; gap: 36px; } }
.bsx-bigstat__num { font-size: clamp(3.2rem, 9vw, 5rem); line-height: 1; font-weight: 800; color: var(--bsx-pink); letter-spacing: -.03em; }
.bsx-bigstat__num small { display: block; font-size: .28em; letter-spacing: .02em; color: var(--bsx-muted); font-weight: 700; margin-top: 8px; }

/* Contact */
.bsx-contact { display: grid; gap: 12px; grid-template-columns: 1fr; margin: 18px 0 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .bsx-contact { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bsx-contact li { background: var(--bsx-white); border: 1px solid var(--bsx-line); border-radius: 16px; padding: 16px 18px; }
.bsx-contact span { display: block; font-size: .85rem; color: var(--bsx-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.bsx-contact a { font-weight: 700; word-break: break-word; }

/* FAQ */
.bsx-faq { display: grid; gap: 12px; max-width: 52em; }
.bsx-faq details { background: var(--bsx-white); border: 1px solid var(--bsx-line); border-radius: 16px; overflow: hidden; }
.bsx-faq details[open] { border-color: var(--bsx-pink); box-shadow: 0 6px 18px rgba(138, 20, 80, .08); }
.bsx-faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 20px; font-weight: 800; color: var(--bsx-plum); font-size: 1.05rem; line-height: 1.35;
}
.bsx-faq summary::-webkit-details-marker { display: none; }
.bsx-faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--bsx-soft-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C2045F' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .2s ease;
}
.bsx-faq details[open] summary::after { transform: rotate(45deg); }
.bsx-faq .bsx-faq__a { padding: 0 20px 18px; color: var(--bsx-ink); }
.bsx-faq .bsx-faq__a p:last-child { margin-bottom: 0; }

/* Closing call to action */
.bsx-cta-band {
  margin: 8px 0 0; border-radius: 28px; padding: 34px 26px; text-align: center;
  background: radial-gradient(600px 240px at 15% 0%, rgba(229, 5, 113, .45), transparent 70%), linear-gradient(135deg, #3A1236, var(--bsx-plum));
  color: #FCE9F2;
}
.bsx-ap .bsx-cta-band h2 { color: var(--bsx-white); }
.bsx-cta-band p { color: #FCE9F2; margin: 0 auto 20px; max-width: 34em; }
.bsx-cta-band .bsx-btns { justify-content: center; }

/* References */
.bsx-refs { font-size: .95rem; color: var(--bsx-ink); max-width: 56em; }
.bsx-refs ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.bsx-refs li { padding-left: 2em; text-indent: -2em; word-break: break-word; }
.bsx-updated { font-size: .9rem; color: var(--bsx-muted); margin-top: 18px; }

/* Gentle reveal, only when JavaScript is running and motion is welcome */
@media (prefers-reduced-motion: no-preference) {
  .bsx-js .bsx-reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .bsx-js .bsx-reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bsx-ap *, .bsx-ap *::before, .bsx-ap *::after { transition: none !important; animation: none !important; }
}
@media print {
  .bsx-btns, .bsx-cta-band { display: none; }
  .bsx-ap { font-size: 11pt; }
}

/* Prose sections keep the same left edge as the rest of the page */
.bsx-wrap.bsx-prose, .bsx-wrap.bsx-refs { max-width: 1120px; }
.bsx-wrap.bsx-prose > *, .bsx-wrap.bsx-refs > * { max-width: 46em; }
.bsx-nowrap { white-space: nowrap; }
.bsx-refs .bsx-updated { margin-top: 22px; }
@media (max-width: 480px) {
  .bsx-cta-band { padding: 30px 16px; }
  .bsx-btn { padding: 12px 18px; }
}

/* ===== 21 October 2026: Meaning before money, and videos ===== */
.bsx-quote--lead {
  max-width: 52em; margin-top: 8px; padding: 26px 28px;
  font-size: clamp(1.3rem, 2.8vw, 1.7rem); line-height: 1.4;
  background: var(--bsx-white); box-shadow: var(--bsx-shadow);
}
.bsx-ap .bsx-kicker--after { margin: 26px 0 18px; }
.bsx-ap .bsx-card--links .bsx-card__link a::after { display: none; }
.bsx-card--links .bsx-card__link { display: flex; flex-direction: column; gap: 6px; }
.bsx-more { margin: 22px 0 0; font-weight: 700; }

/* Video cards: a poster that becomes the YouTube player when tapped */
.bsx-videos { list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; }
.bsx-video { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.bsx-video__frame {
  position: relative; display: block; overflow: hidden; aspect-ratio: 9 / 16;
  border-radius: 20px; background: var(--bsx-plum);
  border-bottom: 5px solid var(--bsx-pink);
  box-shadow: 0 10px 26px rgba(138, 20, 80, .16);
  isolation: isolate;
}
.bsx-video__frame--wide { aspect-ratio: 16 / 9; }
.bsx-video__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.bsx-video__frame::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(42, 16, 40, 0) 55%, rgba(42, 16, 40, .45) 100%);
}
.bsx-video__play {
  position: absolute; z-index: 2; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--bsx-pink); color: var(--bsx-white);
  box-shadow: 0 0 0 0 rgba(229, 5, 113, .55), 0 10px 24px rgba(0, 0, 0, .25);
  transition: transform .25s ease, background-color .25s ease;
}
.bsx-video__play svg { width: 28px; height: 28px; margin-left: 4px; }
.bsx-video__frame--wide .bsx-video__play { width: 80px; height: 80px; margin: -40px 0 0 -40px; }
.bsx-video__frame--wide .bsx-video__play svg { width: 34px; height: 34px; }
.bsx-video__time {
  position: absolute; z-index: 2; right: 10px; bottom: 10px; padding: 3px 9px; border-radius: 999px;
  background: rgba(42, 16, 40, .88); color: var(--bsx-white); font-size: .8rem; font-weight: 700; letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}
.bsx-video__frame:hover img, .bsx-video__frame:focus-visible img { transform: scale(1.04); }
.bsx-video__frame:hover .bsx-video__play, .bsx-video__frame:focus-visible .bsx-video__play { transform: scale(1.08); background: var(--bsx-pink-hover); }
.bsx-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }
.bsx-video__frame.is-playing::after { display: none; }
.bsx-ap .bsx-video__title { font-size: 1rem; line-height: 1.35; margin: 6px 0 0; }
.bsx-video__desc { font-size: .93rem; line-height: 1.5; color: var(--bsx-muted); margin: 0; }
.bsx-swipe { display: none; }

/* Phones: a swipeable row */
@media (max-width: 719px) {
  .bsx-videos:not(.bsx-videos--wide) {
    overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    margin: 0 -16px; padding: 4px 16px 14px; scroll-padding-left: 16px;
  }
  .bsx-videos:not(.bsx-videos--wide) .bsx-video { flex: 0 0 64%; scroll-snap-align: start; }
  .bsx-swipe { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; font-size: .9rem; font-weight: 700; color: var(--bsx-muted); }
  .bsx-swipe::after { content: "\2192"; color: var(--bsx-pink-text); font-size: 1.1rem; }
}
/* Tablets and up: a centred grid */
@media (min-width: 720px) {
  .bsx-videos { flex-wrap: wrap; justify-content: center; }
  .bsx-videos .bsx-video { flex: 0 0 calc((100% - 32px) / 3); }
}
@media (min-width: 1000px) {
  .bsx-videos--5 .bsx-video { flex-basis: calc((100% - 64px) / 5); }
  .bsx-videos--4 .bsx-video { flex-basis: calc((100% - 48px) / 4); }
}
.bsx-videos--wide { display: block; }
.bsx-videos--wide .bsx-video { width: 100%; }

/* Text beside a video */
.bsx-split { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .bsx-split { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; } }
.bsx-split__text p { max-width: 34em; }

@media (prefers-reduced-motion: no-preference) {
  .bsx-video__frame:not(.is-playing) .bsx-video__play { animation: bsx-pulse 2.6s ease-out infinite; }
  @keyframes bsx-pulse {
    0% { box-shadow: 0 0 0 0 rgba(229, 5, 113, .5), 0 10px 24px rgba(0, 0, 0, .25); }
    70% { box-shadow: 0 0 0 16px rgba(229, 5, 113, 0), 0 10px 24px rgba(0, 0, 0, .25); }
    100% { box-shadow: 0 0 0 0 rgba(229, 5, 113, 0), 0 10px 24px rgba(0, 0, 0, .25); }
  }
}
