/* Llewellyns — site styles */
:root {
  --navy: #072a66;
  --blue: #0b3d91;
  --blue-2: #1f5fd1;
  --accent: #00a4db;
  --accent-dark: #0083b0;
  --btn: #0073a8;        /* accessible button blue (5.2:1 with white) */
  --btn-hover: #005f8c;
  --label: #006fa3;      /* accessible small-label blue */
  --ink: #14243d;
  --muted: #55657d;
  --line: #dde4ee;
  --soft: #f3f6fb;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(7, 42, 102, .10);
  --wrap: 1160px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.65; font-size: 17px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-2); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.01em; color: var(--navy); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 650; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 650; }
h3 { font-size: 1.25rem; font-weight: 650; }
p { margin: 0 0 1.1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--white); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 10px; top: 10px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Top bar */
.topbar { background: var(--navy); color: rgba(255,255,255,.85); font-size: .85rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; justify-content: space-between; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: var(--white); text-decoration: none; }
.topbar a:hover { color: var(--accent); }
.topbar .tb-left, .topbar .tb-right { display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: center; }
.topbar svg { width: 15px; height: 15px; vertical-align: -3px; margin-right: 6px; fill: currentColor; }
.topbar .tb-label { opacity: .7; margin-right: .3em; }
@media (max-width: 1100px) { .topbar .hours { display: none; } }
@media (max-width: 760px) { .topbar .tb-right, .topbar .tb-email { display: none; } .topbar .tb-left { gap: 4px 16px; } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand img { width: 220px; height: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; gap: 4px; align-items: center; }
.nav a { display: block; padding: 10px 14px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 550; font-size: .98rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue-2); background: var(--soft); }
.nav .cta-link { background: var(--btn); color: var(--white); margin-left: 6px; }
.nav .cta-link:hover { background: var(--btn-hover); color: var(--white); }
.has-sub { position: relative; }
.has-sub > a { display: flex; gap: 8px; align-items: center; }
.has-sub > a::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); }
.sub { position: absolute; top: 100%; left: 0; min-width: 270px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; display: none; }
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { display: block; }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-toggle span:not(.visually-hidden) { display: block; width: 26px; height: 2px; background: var(--navy); margin: 6px 0; transition: .2s; }
@media (max-width: 960px) {
  .brand img { width: 180px; }
  .menu-toggle { display: block; }
  .nav { position: fixed; inset: 0 0 0 auto; width: min(340px, 88vw); background: var(--white); box-shadow: -10px 0 40px rgba(0,0,0,.15); padding: 90px 20px 30px; transform: translateX(100%); transition: transform .25s, visibility .25s; overflow-y: auto; visibility: hidden; }
  .nav.open { transform: none; visibility: visible; }
  .nav > ul { flex-direction: column; align-items: stretch; }
  .has-sub > a::after { display: none; }
  .sub { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0; }
  .nav .cta-link { margin: 10px 0 0; text-align: center; }
  .menu-toggle { position: relative; z-index: 60; }
  .menu-open .menu-toggle span:nth-child(2) { transform: translateY(8px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(3) { opacity: 0; }
  .menu-open .menu-toggle span:nth-child(4) { transform: translateY(-8px) rotate(-45deg); }
}

/* Hero (blue with drifting blobs) */
.hero { position: relative; overflow: hidden; color: var(--white); background: radial-gradient(circle at 20% 10%, var(--blue) 0%, var(--navy) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-top: 90px; padding-bottom: 90px; }
.hero.compact .wrap { padding-top: 56px; padding-bottom: 56px; }
.hero h1 { color: var(--white); max-width: 820px; }
.hero p.lead { font-size: 1.2rem; max-width: 680px; opacity: .92; }
.hero .eyebrow { display: inline-block; font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #9fe3fb; margin-bottom: 14px; }
.hero .meta { opacity: .85; font-size: .95rem; }
.hero .meta a { color: #9fe3fb; }
.blobs { position: absolute; inset: 0; z-index: 0; pointer-events: none; filter: blur(70px); opacity: .55; }
.blob { position: absolute; border-radius: 50%; will-change: transform; }
.b1 { width: 45vmax; height: 45vmax; background: #00a4db; top: -15vmax; left: -10vmax; animation: drift1 26s ease-in-out infinite alternate; opacity: .5; }
.b2 { width: 38vmax; height: 38vmax; background: #1f5fd1; bottom: -15vmax; right: -10vmax; animation: drift2 32s ease-in-out infinite alternate; }
.b3 { width: 30vmax; height: 30vmax; background: #3a86ff; top: 40%; left: 55%; animation: drift3 38s ease-in-out infinite alternate; opacity: .4; }
@keyframes drift1 { to { transform: translate(25vw, 20vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-20vw, -25vh) scale(.9); } }
@keyframes drift3 { to { transform: translate(-35vw, -10vh) scale(1.2); } }
@media (prefers-reduced-motion: reduce) { .blob { animation: none; } html { scroll-behavior: auto; } }

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 10px; font-weight: 600; text-decoration: none; border: 2px solid transparent; transition: background .15s, color .15s; font-size: 1rem; }
.btn-primary { background: var(--btn); color: var(--white); }
.btn-primary:hover { background: var(--btn-hover); color: var(--white); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: var(--white); }
.btn-outline { border-color: var(--blue-2); color: var(--blue-2); }
.btn-outline:hover { background: var(--blue-2); color: var(--white); }

/* Sections */
.section { padding: 80px 0; }
.section.soft { background: var(--soft); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.kicker { font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--label); margin-bottom: 8px; display: block; }

.grid { display: grid; gap: 22px; }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
@media (max-width: 400px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--muted); font-size: .98rem; margin: 0; }
.icon { width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, var(--accent), var(--blue-2)); display: grid; place-items: center; margin-bottom: 18px; }
.icon svg { width: 24px; height: 24px; stroke: var(--white); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Post cards */
.post-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
.post-card .thumb { aspect-ratio: 2 / 1; background: var(--soft); overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.post-card .thumb.placeholder { background: linear-gradient(135deg, var(--blue), var(--accent)); }
.post-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card h3 { font-size: 1.1rem; margin: 0; }
.post-card p { color: var(--muted); font-size: .95rem; margin: 0; }
.post-meta { font-size: .82rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.tag { display: inline-block; background: var(--soft); color: var(--blue-2); font-weight: 600; font-size: .75rem; padding: 3px 9px; border-radius: 999px; }
.read-more { margin-top: auto; font-weight: 600; color: var(--blue-2); font-size: .95rem; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.filters button { font: inherit; font-size: .9rem; font-weight: 600; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* Split / about */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 30px; } }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 16px; text-align: center; }
.stat strong { display: block; font-size: 1.9rem; color: var(--navy); line-height: 1.1; }
.stat span { font-size: .85rem; color: var(--muted); }
@media (max-width: 480px) { .stat-row { grid-template-columns: 1fr; } }

/* Prose (articles and pages) */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; font-size: 1.6rem; }
.prose h3 { margin-top: 1.4em; }
.prose h1 { font-size: 1.9rem; margin-top: 1.2em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li h3 { margin: .6em 0 .2em; font-size: 1.1rem; }
.prose ul.emoji-list { list-style: none; padding-left: 0; }
.prose ul.emoji-list li { padding-left: 0; }
.prose img { border-radius: 10px; margin: 1.4em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--soft); }
.prose blockquote { border-left: 4px solid var(--accent); margin: 1.4em 0; padding: .4em 0 .4em 1.2em; color: var(--muted); }
.prose a { word-break: break-word; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
@media (max-width: 980px) { .article-layout { grid-template-columns: 1fr; } }
.featured { border-radius: var(--radius); overflow: hidden; margin-bottom: 34px; box-shadow: var(--shadow); }
.featured img { width: 100%; }
.aside-box { background: var(--soft); border-radius: var(--radius); padding: 26px; position: sticky; top: 100px; }
.aside-box h3 { font-size: 1.15rem; }
.aside-box p { font-size: .95rem; color: var(--muted); }
.aside-box .btn { width: 100%; justify-content: center; margin-top: 8px; }
.cta-box { margin-top: 50px; background: radial-gradient(circle at 15% 0%, var(--blue) 0%, var(--navy) 100%); color: var(--white); border-radius: var(--radius); padding: 34px; }
.cta-box h2 { color: var(--white); margin-top: 0; font-size: 1.6rem; }
.cta-box p { opacity: .9; }
.breadcrumb { font-size: .88rem; margin-bottom: 18px; opacity: .85; }
.breadcrumb a { color: #9fe3fb; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.notice { background: #fff8e1; border: 1px solid #f3dd8c; border-radius: 10px; padding: 14px 18px; font-size: .95rem; margin-bottom: 26px; color: #5c4a00; }

/* Offices */
.office { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.office .map { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.office .map img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.office .map:hover img { transform: scale(1.03); }
.office .info { padding: 22px 24px; }
.office h3 { margin-bottom: .3em; }
.office address { font-style: normal; color: var(--muted); margin-bottom: 10px; }
.office a.tel { font-weight: 700; font-size: 1.15rem; text-decoration: none; }

/* Contact form */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .contact-wrap { grid-template-columns: 1fr; } }
.contact-details { list-style: none; padding: 0; margin: 0 0 24px; }
.contact-details li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.contact-details .ci { flex: 0 0 40px; height: 40px; border-radius: 10px; background: var(--soft); display: grid; place-items: center; }
.contact-details .ci svg { width: 20px; height: 20px; stroke: var(--blue-2); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-details strong { display: block; color: var(--navy); }
.contact-details a { text-decoration: none; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.form-card h2 { font-size: 1.5rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } .form-card { padding: 22px; } }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.field input, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--soft); border: 2px solid transparent; border-radius: 9px; padding: 11px 13px; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--white); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile-slot { min-height: 65px; margin: 4px 0 14px; }
.form-card button { font: inherit; font-weight: 600; font-size: 1rem; color: var(--white); background: var(--btn); border: 0; border-radius: 10px; padding: 13px 28px; cursor: pointer; }
.form-card button:hover { background: var(--btn-hover); }
.form-card button:disabled { opacity: .6; cursor: default; }
.status { margin: 14px 0 0; font-size: .95rem; min-height: 1.4em; }
.status.ok { color: #137a3a; font-weight: 600; }
.status.err { color: #b42318; font-weight: 600; }
.small { font-size: .82rem; color: var(--muted); margin-top: 12px; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.8); font-size: .95rem; }
.site-footer .wrap { padding-top: 60px; padding-bottom: 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4, .site-footer h2.footer-h { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer address { font-style: normal; }
.footer-logo { background: var(--white); display: inline-block; padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; }
.footer-logo img { width: 180px; }
.social { display: flex; gap: 10px; margin-top: 14px; }
.social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; }
.social a:hover { background: var(--accent); }
.social svg { width: 18px; height: 18px; fill: var(--white); }
.legal { border-top: 1px solid rgba(255,255,255,.15); margin-top: 40px; padding-top: 22px; font-size: .82rem; color: rgba(255,255,255,.6); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.legal p { margin: 0; }
#contact { scroll-margin-top: 90px; }

/* Author box */
.author-box { display: flex; gap: 18px; align-items: flex-start; margin-top: 46px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.author-box img, .author-box .avatar { flex: 0 0 72px; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin: 0; }
.author-box .avatar { display: grid; place-items: center; background: linear-gradient(135deg, var(--btn), var(--blue-2)); color: var(--white); font-weight: 700; font-size: 1.4rem; }
.author-box h3 { margin: 0 0 2px; font-size: 1.2rem; }
.author-box .kicker { margin-bottom: 2px; }
.author-box .author-role { color: var(--muted); font-size: .9rem; margin-bottom: 8px; }
.author-box p { font-size: .95rem; margin: 0; }
.hero .meta a { color: #9fe3fb; }
@media (max-width: 520px) { .author-box { flex-direction: column; } }

/* Reviews carousel */
.reviews-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; }
.reviews-head .section-head { margin-bottom: 0; }
.rating-summary { display: grid; grid-template-columns: auto auto; gap: 2px 12px; align-items: center; }
.rating-summary strong { font-size: 2.4rem; color: var(--navy); line-height: 1; grid-row: span 2; }
.rating-summary .stars { color: #f5a623; font-size: 1.2rem; letter-spacing: 2px; }
.rating-summary span { font-size: .9rem; color: var(--muted); }
.rating-summary .rating-links { grid-column: 1 / -1; margin-top: 6px; }
.carousel { position: relative; }
.carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 44px) / 3); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 2px 10px; scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: var(--radius); }
@media (max-width: 980px) { .carousel-track { grid-auto-columns: calc((100% - 22px) / 2); } }
@media (max-width: 640px) { .carousel-track { grid-auto-columns: 88%; } }
.review { scroll-snap-align: start; margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.review .stars { color: #f5a623; letter-spacing: 2px; font-size: 1.1rem; }
.review blockquote { margin: 0; flex: 1; }
.review blockquote p { margin: 0; font-size: .98rem; color: var(--ink); }
.review blockquote p::before { content: "“"; } .review blockquote p::after { content: "”"; }
.review figcaption strong { display: block; color: var(--navy); }
.review figcaption span { font-size: .85rem; color: var(--muted); }
.carousel-nav { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 18px; }
.carousel-nav button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--navy); font-size: 1.6rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding-bottom: 3px; }
.carousel-nav button:hover { background: var(--navy); color: var(--white); }
.car-dots { display: flex; gap: 8px; }
.car-dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: var(--line); }
.car-dots button[aria-current="true"] { background: var(--accent); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; max-width: 860px; counter-reset: none; }
.step { display: flex; gap: 20px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.step-num { flex: 0 0 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--btn), var(--blue-2)); color: var(--white); font-weight: 700; font-size: 1.15rem; display: grid; place-items: center; }
.step h3 { margin: 6px 0 4px; }
.step p { margin: 0; color: var(--muted); }
.card a { font-weight: 600; }

/* Placeholders */
mark.tbc { background: #fff3b0; color: #6b5300; padding: 1px 5px; border-radius: 4px; font-weight: 600; }

/* Tax card */
.taxcard-grid { columns: 3 320px; column-gap: 22px; }
.tc-block { break-inside: avoid; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0 0 22px; }
.tc-block h3 { margin: 0; padding: 14px 18px; background: var(--soft); font-size: 1.02rem; border-bottom: 3px solid var(--accent); }
.tc-block table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tc-block th, .tc-block td { padding: 9px 18px; border-top: 1px solid #eef2f7; text-align: left; font-weight: 400; vertical-align: top; }
.tc-block td { text-align: right; font-weight: 650; color: var(--navy); white-space: nowrap; }
.tc-extra .tc-block td { white-space: normal; text-align: left; font-weight: 400; color: var(--ink); }
.tc-extra .tc-block th { font-weight: 650; color: var(--navy); white-space: nowrap; }
.tc-block ul { margin: 14px 0; padding: 0 18px 0 36px; }
.tc-block .small, .tc-block p { padding: 0 18px; }
.taxcard-banner { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px 30px; padding: 26px 30px; border-radius: var(--radius); background: linear-gradient(120deg, #e6f6fc, #eef3fc); border: 1px solid #cfe7f5; }
.taxcard-banner h3 { margin: 0 0 4px; font-size: 1.35rem; }
.taxcard-banner p { margin: 0; color: var(--muted); }
.taxcard-banner .btns { margin-top: 0; }

/* ACCA badge */
.acca-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 34px; padding: 18px 22px; border-radius: 12px; background: rgba(255,255,255,.06); }
.acca-row img { height: 56px; width: auto; background: #fff; padding: 8px 12px; border-radius: 8px; }
.acca-row p { margin: 0; font-size: .9rem; }
.acca-row a { text-decoration: underline; }
.prose img.acca-logo { height: 64px; width: auto; margin: 0 0 10px; border-radius: 0; }

/* Software partners */
.partners { margin-top: 56px; }
.partner-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.partner-list a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 120px; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: box-shadow .2s; }
.partner-list a:hover { box-shadow: var(--shadow); }
.partner-list img { max-height: 76px; max-width: 200px; width: auto; height: auto; }
.pl-name { font-size: 1.5rem; font-weight: 700; color: var(--navy); letter-spacing: -.01em; }
.pl-label { font-size: .82rem; color: var(--muted); font-weight: 600; }
.partners.compact { margin: 0; }
.partners.compact .partner-list { display: flex; flex-wrap: wrap; gap: 10px; grid-template-columns: none; }
.partners.compact .partner-list a { min-height: 0; padding: 8px 14px; flex-direction: row; background: #fff; border: 0; border-radius: 8px; }
.partners.compact img { max-height: 40px; max-width: 130px; }
.partners.compact .pl-name { font-size: .95rem; }
.partners.compact .pl-label { display: none; }
.partner-list li { display: flex; }
.partner-list li > a { flex: 1; }
.partners.compact .partner-list a { height: 56px; }
.partners.compact img { max-height: 44px; max-width: 140px; }
.pl-logos { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.partner-list img.pl-brand { max-height: 40px; max-width: 150px; }
.partners.compact img.pl-brand { max-height: 26px; max-width: 100px; }
.partners.compact .pl-logos { gap: 10px; flex-wrap: nowrap; }
.pl-logos { flex-wrap: nowrap; }
.partner-list img.pl-brand { width: 140px; height: auto; max-height: none; }
.partners.compact img.pl-brand { width: 92px; height: auto; max-height: none; }
.partners.compact .partner-list a { width: auto; }
.partners.compact .pl-logos { gap: 12px; }

/* Larger tap targets (WCAG 2.5.8) */
.topbar a { display: inline-flex; align-items: center; min-height: 28px; }
.site-footer li a, .site-footer p a { display: inline-block; padding: 3px 0; min-height: 24px; }
.breadcrumb a { display: inline-block; padding: 4px 0; }
.rating-links a { display: inline-block; padding: 4px 0; }
.car-dots { gap: 2px; }
.car-dots button { position: relative; width: 26px; height: 26px; background: transparent; border-radius: 50%; }
.car-dots button::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--line); }
.car-dots button[aria-current="true"] { background: transparent; }
.car-dots button[aria-current="true"]::before { background: var(--btn); }
.contact-details a { display: inline-block; padding: 3px 0; }
/* Headings that are visually small but structurally h2 */
.h-small { font-size: 1.15rem; }
.author-box h2 { margin: 0 0 2px; font-size: 1.2rem; }
.careers-split { align-items: start; }
.perks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.perks .card { padding: 20px; }
.perks .card h3 { font-size: 1.05rem; }
.perks-title { font-size: 1.2rem; margin-bottom: 14px; }
@media (max-width: 520px) { .perks { grid-template-columns: 1fr; } }

/* Cookie banner */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100; max-width: 760px; margin: 0 auto; background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 16px 50px rgba(7,42,102,.25); padding: 20px 22px; display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; justify-content: space-between; }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; flex: 1 1 380px; font-size: .95rem; }
.cookie-banner strong { display: block; color: var(--navy); margin-bottom: 2px; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions .btn { padding: 10px 20px; }
.link-btn { background: none; border: 0; padding: 3px 0; font: inherit; color: rgba(255,255,255,.85); cursor: pointer; min-height: 24px; }
.link-btn:hover { color: var(--accent); }
.rating-summary .stars, .review .stars { color: #b86e00; }
.site-footer li a, .site-footer p a, .contact-details a { padding: 4px 0; }
.article-layout.single { grid-template-columns: minmax(0, 1fr); }
.review blockquote p.clamped { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.review .more { background: none; border: 0; padding: 4px 0; font: inherit; font-size: .9rem; font-weight: 600; color: var(--blue-2); cursor: pointer; align-self: flex-start; min-height: 24px; }
/* Keep the review carousel controls inside narrow screens (22 dots would overflow a phone) */
.carousel-nav { flex-wrap: nowrap; max-width: 100%; }
.car-dots { flex-wrap: wrap; justify-content: center; min-width: 0; flex: 0 1 auto; }
.review figcaption span { overflow-wrap: anywhere; }
@media (max-width: 640px) { .car-dots { display: none; } }
