:root {
    color-scheme: light;
    --ink: #10212b;
    --muted: #52636d;
    --surface: #f6f8f5;
    --accent: #147a76;
    --accent-dark: #0f5652;
    --line: #dbe5df;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background: var(--surface);
    font-family: "Segoe UI", Arial, sans-serif;
}

.page-shell {
    display: grid;
    min-height: 100vh;
    padding: 32px 20px;
    place-items: center;
}

.page-shell-wide {
    place-items: start center;
}

.hero,
.panel {
    width: min(100%, 760px);
    padding: 40px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(16, 33, 43, 0.08);
}

.admin-panel {
    width: min(100%, 1120px);
}

.template-gallery-panel {
    width: min(100%, 1120px);
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--accent-dark);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(2.2rem, 8vw, 4.5rem);
    line-height: 1;
}

.lead {
    max-width: 620px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 1.18rem;
    line-height: 1.65;
}

.button,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 28px;
    min-height: 44px;
    color: #ffffff;
    background: var(--accent);
    border-radius: 6px;
    padding: 0 18px;
    font-weight: 700;
    text-decoration: none;
}

.button {
    border: 0;
    cursor: pointer;
    font: inherit;
}

.button:hover,
.text-link:hover {
    background: var(--accent-dark);
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.56;
}

.compact-button,
.compact-link {
    margin-top: 0;
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.92rem;
}

.secondary-link {
    color: var(--accent-dark);
    background: #eef6f4;
}

.secondary-link:hover {
    color: #ffffff;
}

.table-wrap {
    overflow-x: auto;
    margin-top: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.data-table {
    width: 100%;
    min-width: 780px;
    border-collapse: collapse;
    background: #ffffff;
}

.data-table th,
.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.data-table th {
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
}

.data-table tr:last-child td {
    border-bottom: 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    margin: 2px 4px 2px 0;
    padding: 0 8px;
    color: var(--accent-dark);
    background: #eef6f4;
    border: 1px solid #cfe5df;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.detail-list {
    display: grid;
    gap: 12px;
    margin: 28px 0;
}

.detail-list div {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 16px;
}

.detail-list dt {
    color: var(--muted);
    font-weight: 700;
}

.detail-list dd {
    margin: 0;
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.template-card {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.template-card h2 {
    margin: 0;
}

.template-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.template-preview {
    display: grid;
    min-height: 120px;
    place-items: center;
    padding: 14px;
    color: var(--accent-dark);
    background: #eef6f4;
    border: 1px dashed #b9d8cf;
    border-radius: 6px;
    font-size: 0.86rem;
    font-weight: 700;
    overflow-wrap: anywhere;
    text-align: center;
}

.template-meta {
    display: grid;
    gap: 8px;
    margin: 0;
}

.template-meta dt {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.template-meta dd {
    margin: 0;
}

h2 {
    margin: 34px 0 0;
    font-size: 1.35rem;
}

.data-table code,
.lead code {
    overflow-wrap: anywhere;
}

.auth-form {
    display: grid;
    gap: 12px;
    margin-top: 28px;
    max-width: 420px;
}

.auth-form label {
    color: var(--ink);
    font-weight: 700;
}

.auth-form input {
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0 12px;
    color: var(--ink);
    font: inherit;
    background: #ffffff;
}

.editor-form {
    display: grid;
    gap: 16px;
    margin-top: 28px;
}

.editor-form label,
.hours-row label {
    display: grid;
    gap: 6px;
    color: var(--ink);
    font-weight: 700;
}

.editor-form input,
.editor-form textarea,
.editor-form select,
.hours-row input {
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 8px 12px;
    color: var(--ink);
    font: inherit;
    background: #ffffff;
}

.editor-form textarea {
    resize: vertical;
    line-height: 1.5;
}

.editor-form input:disabled,
.editor-form textarea:disabled,
.editor-form select:disabled,
.hours-row input:disabled {
    color: var(--muted);
    background: #f2f5f3;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.brand-editor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 16px;
    align-items: start;
}

.readonly-context {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f9fbfa;
}

.readonly-context h2,
.readonly-context p {
    margin: 0;
}

.readonly-context p {
    color: var(--muted);
    line-height: 1.55;
}

.theme-fieldset {
    gap: 14px;
}

.theme-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.theme-choice-card {
    display: grid !important;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px !important;
    min-height: 138px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.theme-choice-card-selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(20, 122, 118, 0.14);
}

.theme-choice-card input {
    min-height: 18px;
    margin-top: 2px;
}

.theme-choice-card strong,
.theme-choice-card span span {
    display: block;
}

.theme-choice-card span span {
    margin-top: 5px;
    color: var(--muted);
    font-weight: 600;
    line-height: 1.45;
}

.theme-choice-card .theme-best-for {
    color: var(--accent-dark);
    font-size: 0.86rem;
    font-weight: 800;
}

.theme-choice-card .theme-layout-label {
    display: inline-flex;
    width: fit-content;
    margin-top: 8px;
    padding: 3px 8px;
    border: 1px solid rgba(20, 122, 118, 0.2);
    border-radius: 999px;
    color: var(--accent-dark);
    background: #eef7f4;
    font-size: 0.78rem;
    font-weight: 800;
}

.theme-choice-card .theme-layout-emphasis {
    font-size: 0.86rem;
}

.colour-fieldset {
    gap: 16px;
}

.colour-control {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #f9fbfa;
}

.colour-control-active {
    border-color: #b9d8cf;
}

.colour-control label {
    display: block;
}

.colour-input-row {
    display: grid;
    grid-template-columns: 42px 56px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.colour-swatch {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: inset 0 0 0 2px #ffffff;
}

.editor-form .native-colour-input {
    min-height: 42px;
    width: 56px;
    padding: 3px;
    cursor: pointer;
}

.editor-form .colour-text-input {
    min-width: 0;
    text-transform: uppercase;
}

.colour-control-invalid .colour-text-input {
    border-color: #9b1c1c;
}

.field-error {
    color: #9b1c1c;
    font-size: 0.9rem;
    font-weight: 700;
}

.colour-presets {
    display: grid;
    gap: 10px;
    padding-top: 4px;
}

.colour-presets-title {
    margin: 0;
    color: var(--muted);
    font-weight: 800;
}

.colour-preset-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.colour-preset {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 10px;
    color: var(--ink);
    background: #ffffff;
    cursor: pointer;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
}

.colour-preset span {
    width: 18px;
    height: 18px;
    border: 1px solid rgba(16, 33, 43, 0.2);
    border-radius: 999px;
}

.colour-preset .colour-preset-light {
    border-color: rgba(16, 33, 43, 0.38);
}

.colour-preset:hover {
    border-color: var(--accent);
    background: #eef6f4;
}

.colour-preset:disabled {
    cursor: not-allowed;
    opacity: 0.56;
}

.button:focus-visible,
.text-link:focus-visible,
.colour-preset:focus-visible,
.editor-form input:focus-visible,
.editor-form textarea:focus-visible,
.editor-form select:focus-visible {
    outline: 3px solid #f4a261;
    outline-offset: 2px;
}

.brand-preview {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.brand-preview h2 {
    margin: 0;
    font-size: 1.2rem;
}

.brand-preview-kicker {
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.brand-preview-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(16, 33, 43, 0.1);
    border-top: 5px solid var(--brand-primary);
    border-radius: 8px;
    background: #fbfcf8;
}

.brand-preview-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--brand-secondary);
}

.brand-preview-logo {
    width: auto;
    height: 42px;
    max-width: 150px;
    object-fit: contain;
}

.brand-preview-mark {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #ffffff;
    background: var(--brand-primary);
    border-radius: 999px;
    font-weight: 800;
}

.brand-preview-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.brand-preview-badge {
    display: inline-flex;
    width: fit-content;
    min-height: 28px;
    align-items: center;
    border-radius: 999px;
    padding: 0 10px;
    color: #10212b;
    background: var(--brand-accent);
    font-size: 0.82rem;
    font-weight: 800;
}

.brand-preview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.brand-preview-primary,
.brand-preview-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border-radius: 6px;
    padding: 0 12px;
    font-weight: 800;
}

.brand-preview-primary {
    border: 0;
    color: #ffffff;
    background: var(--brand-primary);
}

.brand-preview-secondary {
    color: var(--brand-secondary);
    background: #ffffff;
    border: 1px solid var(--brand-secondary);
    text-decoration: none;
}

.checkbox-row,
.radio-row {
    display: flex !important;
    align-items: flex-start;
    gap: 10px !important;
}

.checkbox-row input,
.radio-row input {
    width: 18px;
    min-width: 18px;
    min-height: 18px;
    margin-top: 3px;
}

.fieldset {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.fieldset legend {
    padding: 0 6px;
    color: var(--muted);
    font-weight: 800;
}

.radio-row strong,
.radio-row span span {
    display: block;
}

.radio-row span span {
    margin-top: 3px;
    color: var(--muted);
    font-weight: 600;
}

.media-choice {
    align-items: center;
}

.media-thumb {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #ffffff;
}

.inline-form {
    margin-top: 24px;
}

.action-row .inline-form {
    margin-top: 0;
}

.inline-form select {
    min-height: 36px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 6px 10px;
    color: var(--ink);
    background: #ffffff;
    font: inherit;
}

.hours-editor-list {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.hours-row {
    display: grid;
    grid-template-columns: 110px 90px repeat(3, minmax(120px, 1fr)) auto;
    gap: 12px;
    align-items: end;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.secret-panel {
    margin-top: 18px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #f9fbfa;
}

.secret-panel code {
    display: block;
    overflow-wrap: anywhere;
    color: var(--ink);
    font: 0.95rem Consolas, "Courier New", monospace;
    line-height: 1.5;
}

.secret-label {
    margin: 0 0 8px;
    color: var(--muted);
    font-weight: 700;
}

.status-message {
    margin: 22px 0 0;
    color: var(--muted);
    font-weight: 700;
}

.status-error {
    color: #9b1c1c;
}

body.product-site {
    --product-ink: #112229;
    --product-muted: #54646d;
    --product-bg: #fbfcf8;
    --product-band: #ffffff;
    --product-contrast: #eef4ef;
    --product-deep: #173c43;
    --product-action: #b24c34;
    --product-action-dark: #873521;
    --product-soft: #f5e9df;
    color: var(--product-ink);
    background: var(--product-bg);
}

.product-section-inner {
    width: min(100%, 1120px);
    margin: 0 auto;
    padding: 0 20px;
}

.product-hero,
.product-band {
    padding: 56px 0;
}

.product-hero {
    min-height: 620px;
    display: flex;
    align-items: center;
    color: #ffffff;
    background:
        linear-gradient(90deg, rgba(17, 34, 41, 0.94), rgba(23, 60, 67, 0.74)),
        linear-gradient(135deg, #173c43, #657d61);
}

.product-hero .eyebrow,
.product-hero h1,
.product-hero .lead {
    color: #ffffff;
}

.product-hero h1 {
    max-width: 760px;
    font-size: 4rem;
    line-height: 1.04;
}

.product-hero-grid,
.product-split {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
    gap: 34px;
    align-items: center;
}

.product-split {
    align-items: start;
}

.product-site h2 {
    margin: 0;
    max-width: 760px;
    font-size: 2rem;
    line-height: 1.15;
}

.product-site h3 {
    margin: 0;
    font-size: 1.12rem;
    line-height: 1.25;
}

.product-copy p,
.product-card p,
.pricing-card p,
.product-cta p {
    color: var(--product-muted);
    line-height: 1.65;
}

.product-copy p:first-child {
    margin-top: 0;
}

.product-preview {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.22);
}

.preview-browser-bar {
    display: flex;
    gap: 7px;
    padding: 13px 16px;
    background: #eef4ef;
}

.preview-browser-bar span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #9db4aa;
}

.preview-template {
    display: grid;
    gap: 12px;
    padding: 24px;
    color: var(--product-ink);
}

.preview-template h2 {
    font-size: 1.55rem;
}

.preview-template p {
    margin: 0;
    color: var(--product-muted);
    line-height: 1.55;
}

.preview-label {
    color: var(--product-deep) !important;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.preview-row {
    height: 12px;
    border-radius: 999px;
    background: #dbe5df;
}

.preview-row.short {
    width: 68%;
}

.preview-cta {
    display: inline-flex;
    justify-content: center;
    width: fit-content;
    margin-top: 10px;
    min-height: 38px;
    padding: 9px 13px;
    color: #ffffff;
    background: var(--product-action);
    border-radius: 6px;
    font-weight: 800;
}

.product-site .button,
.product-site .text-link {
    margin-top: 0;
    color: #ffffff;
    background: var(--product-action);
}

.product-site .button:hover,
.product-site .text-link:hover {
    background: var(--product-action-dark);
}

.product-site .secondary-button,
.product-site .secondary-link {
    color: var(--product-deep);
    background: var(--product-soft);
}

.product-site .secondary-button:hover,
.product-site .secondary-link:hover {
    color: #ffffff;
    background: var(--product-deep);
}

.product-contrast-band {
    background: var(--product-contrast);
}

.product-card-grid,
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 26px;
}

.product-card,
.pricing-card,
.extras-panel {
    padding: 20px;
    border: 1px solid rgba(19, 32, 39, 0.1);
    border-radius: 8px;
    background: #ffffff;
}

.product-card {
    min-height: 170px;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.feature-list li {
    padding: 16px 18px;
    border-left: 4px solid var(--product-action);
    background: var(--product-contrast);
    font-weight: 700;
    line-height: 1.45;
}

.price {
    margin: 18px 0 0;
    color: var(--product-deep) !important;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.extras-panel {
    margin-top: 16px;
}

.extras-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.extras-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #ffffff;
}

.product-cta {
    color: #ffffff;
    background: var(--product-deep);
}

.product-cta .eyebrow,
.product-cta h2,
.product-cta p {
    color: #ffffff;
}

body.public-site {
    --public-ink: #132027;
    --public-muted: #53616a;
    --public-bg: #fbfcf8;
    --public-band: #ffffff;
    --public-contrast: #edf4ee;
    --public-brand-primary: #2f80a7;
    --public-deep: #0a3d62;
    --public-action: #147a76;
    --public-action-dark: #0f5652;
    --public-action-foreground: #ffffff;
    --public-soft: #e9f4f8;
    color: var(--public-ink);
    background: var(--public-bg);
}

.public-header {
    border-bottom: 1px solid rgba(19, 32, 39, 0.1);
    background: rgba(251, 252, 248, 0.96);
}

.public-header-inner,
.public-section-inner {
    width: min(100%, 1120px);
    margin: 0 auto;
    padding: 0 20px;
}

.public-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 72px;
}

.practice-mark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--public-deep);
    font-size: 1.02rem;
    font-weight: 800;
    text-decoration: none;
}

.practice-mark img {
    width: auto;
    height: 42px;
    max-width: 150px;
    object-fit: contain;
}

.public-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px;
}

.public-nav a,
.public-site a {
    color: var(--public-deep);
}

.public-nav a {
    font-weight: 700;
    text-decoration: none;
}

.public-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 6px;
    padding: 0 16px;
    color: var(--public-action-foreground);
    background: var(--public-action);
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.header-cta:hover {
    background: var(--public-action-dark);
}

.preview-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 20px;
    color: #ffffff;
    background: var(--public-deep);
    font-size: 0.92rem;
}

.preview-banner a {
    color: #ffffff;
    font-weight: 700;
}

.public-hero,
.public-band,
.public-footer {
    padding: 56px 0;
}

.public-hero {
    min-height: 520px;
    display: flex;
    align-items: center;
    color: #ffffff;
    background:
        linear-gradient(90deg, rgba(19, 32, 39, 0.9), rgba(23, 60, 67, 0.68)),
        linear-gradient(135deg, #173c43, #657d61);
}

.public-hero .eyebrow,
.public-hero h1,
.public-hero p {
    color: #ffffff;
}

.public-site h1 {
    max-width: 760px;
    font-size: 4rem;
    line-height: 1.04;
}

.public-site h2 {
    margin: 0;
    max-width: 760px;
    font-size: 2rem;
    line-height: 1.15;
}

.public-site h3 {
    margin: 0;
    font-size: 1.12rem;
    line-height: 1.25;
}

.hero-grid,
.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.85fr);
    gap: 34px;
    align-items: center;
}

.hero-lead {
    max-width: 700px;
    margin: 22px 0 0;
    font-size: 1.2rem;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.public-site .button,
.public-site .text-link {
    margin-top: 0;
    color: var(--public-action-foreground);
    background: var(--public-action);
}

.public-site .button:hover,
.public-site .text-link:hover {
    background: var(--public-action-dark);
}

.public-site .secondary-button,
.public-site .secondary-link {
    color: var(--public-deep);
    background: var(--public-soft);
}

.public-site .secondary-button:hover,
.public-site .secondary-link:hover {
    color: #ffffff;
    background: var(--public-deep);
}

.hero-status,
.info-panel {
    padding: 22px;
    border: 1px solid rgba(19, 32, 39, 0.12);
    border-radius: 8px;
    background: #ffffff;
    color: var(--public-ink);
}

.hero-status {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.94);
}

.hero-practice-photo {
    display: block;
    width: calc(100% + 44px);
    max-width: none;
    aspect-ratio: 4 / 3;
    margin: -22px -22px 18px;
    object-fit: cover;
}

.hero-status p,
.info-panel p,
.public-card p,
.public-band p {
    color: var(--public-muted);
    line-height: 1.65;
}

.hero-status .placeholder-copy {
    color: var(--public-muted);
}

.contrast-band {
    background: var(--public-contrast);
}

.contact-band {
    background: var(--public-soft);
}

.narrow-copy {
    max-width: 820px;
}

.gallery-band {
    background: #ffffff;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 26px;
}

.photo-grid figure {
    margin: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #eef4ef;
}

.photo-grid img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.narrow-copy p {
    font-size: 1.08rem;
}

.public-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 26px;
}

.public-card {
    min-height: 180px;
    padding: 20px;
    border: 1px solid rgba(19, 32, 39, 0.1);
    border-radius: 8px;
    background: #ffffff;
}

.team-card {
    min-height: 160px;
}

.card-kicker,
.gdc-line {
    font-weight: 700;
}

.reason-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.reason-list li {
    padding: 16px 18px;
    border-left: 4px solid var(--public-action);
    background: #ffffff;
    font-weight: 700;
}

.opening-hours,
.compliance-list {
    display: grid;
    gap: 12px;
    margin: 18px 0 0;
}

.opening-hours div,
.compliance-list div {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 14px;
}

.opening-hours dt,
.compliance-list dt {
    color: var(--public-deep);
    font-weight: 800;
}

.opening-hours dd,
.compliance-list dd {
    margin: 0;
    color: var(--public-muted);
}

.opening-hours small {
    display: block;
    margin-top: 3px;
    color: var(--public-muted);
}

.public-site address {
    display: grid;
    gap: 3px;
    color: var(--public-muted);
    font-style: normal;
    line-height: 1.55;
}

.public-footer {
    color: #ffffff;
    background: var(--public-deep);
}

.public-footer p,
.public-footer dt,
.public-footer dd,
.public-footer a {
    color: #ffffff;
}

.footer-legal-details {
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-legal-details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    color: #ffffff;
    cursor: pointer;
    font-weight: 800;
}

.footer-legal-details summary::after {
    content: "+";
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    margin-left: 12px;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 999px;
    font-size: 1.15rem;
    line-height: 1;
}

.footer-legal-details[open] summary::after {
    content: "-";
}

.footer-legal-details .compliance-list {
    margin-bottom: 20px;
    padding-top: 0;
    border-top: 0;
}

.cookie-notice {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    width: min(calc(100% - 40px), 880px);
    padding: 18px;
    border: 1px solid rgba(10, 61, 98, 0.18);
    border-left: 5px solid var(--public-action);
    border-radius: 8px;
    color: var(--public-ink);
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(10, 61, 98, 0.18);
}

.cookie-notice[hidden] {
    display: none;
}

.cookie-notice-copy {
    display: grid;
    gap: 6px;
}

.cookie-notice-copy p {
    margin: 0;
    color: var(--public-muted);
    line-height: 1.55;
}

.cookie-notice-copy .cookie-notice-title {
    color: var(--public-deep);
    font-weight: 800;
}

.cookie-notice-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.cookie-notice-button,
.cookie-notice-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border: 1px solid var(--public-action);
    border-radius: 6px;
    padding: 0 14px;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
}

.cookie-notice-button {
    color: var(--public-action-foreground);
    background: var(--public-action);
    cursor: pointer;
}

.cookie-notice-link,
.secondary-cookie-button {
    color: var(--public-deep);
    background: #ffffff;
}

.cookie-notice-button:hover {
    background: var(--public-action-dark);
}

.cookie-notice-link:hover,
.secondary-cookie-button:hover {
    color: #ffffff;
    background: var(--public-deep);
    border-color: var(--public-deep);
}

.subpage-hero {
    padding: 48px 0;
    color: #ffffff;
    background: var(--public-deep);
}

.subpage-hero .eyebrow,
.subpage-hero h1,
.subpage-hero p {
    color: #ffffff;
}

.subpage-hero h1 {
    font-size: 3rem;
}

.treatment-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.7fr);
    gap: 34px;
    align-items: start;
}

.treatment-summary-panel {
    position: sticky;
    top: 20px;
}

.subpage-detail-list {
    display: grid;
    gap: 14px;
    margin: 0 0 22px;
}

.subpage-detail-list div {
    display: grid;
    gap: 4px;
}

.subpage-detail-list dt {
    color: var(--public-deep);
    font-weight: 800;
}

.subpage-detail-list dd {
    margin: 0;
    color: var(--public-muted);
    line-height: 1.55;
}

.fee-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(19, 32, 39, 0.12);
    border-radius: 8px;
    background: #ffffff;
}

.fee-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

.fee-table th,
.fee-table td {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(19, 32, 39, 0.1);
    text-align: left;
    vertical-align: top;
}

.fee-table th {
    color: var(--public-deep);
    font-size: 0.82rem;
    text-transform: uppercase;
}

.fee-table tr:last-child td {
    border-bottom: 0;
}

.fee-table td:nth-child(2) {
    min-width: 160px;
    font-weight: 800;
}

.simple-list {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
    padding-left: 20px;
    color: var(--public-muted);
    line-height: 1.6;
}

.public-enquiry-form {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

.public-enquiry-form label {
    display: grid;
    gap: 6px;
    color: var(--public-deep);
    font-weight: 800;
}

.public-enquiry-form input,
.public-enquiry-form textarea {
    min-height: 44px;
    width: 100%;
    border: 1px solid rgba(19, 32, 39, 0.16);
    border-radius: 6px;
    padding: 8px 12px;
    color: var(--public-ink);
    background: #ffffff;
    font: inherit;
}

.public-enquiry-form textarea {
    resize: vertical;
    line-height: 1.5;
}

.public-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.honeypot-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 18px;
}

.footer-links a {
    font-weight: 700;
}

.compliance-list {
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.placeholder-copy,
.section-placeholder,
.placeholder-pill {
    color: var(--public-muted);
    font-style: italic;
}

.section-placeholder,
.placeholder-pill {
    display: inline-flex;
    margin-top: 20px;
    padding: 10px 12px;
    border: 1px dashed rgba(19, 32, 39, 0.28);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.72);
}

.public-home-main {
    display: flex;
    flex-direction: column;
}

.gallery-section {
    order: 10;
}

.about-section {
    order: 20;
}

.treatments-section {
    order: 30;
}

.why-section {
    order: 40;
}

.team-section {
    order: 50;
}

.finance-section {
    order: 60;
}

.contact-section {
    order: 70;
}

.theme-classic-practice .public-header {
    background: rgba(255, 255, 255, 0.97);
}

.theme-classic-practice .public-hero {
    background:
        linear-gradient(90deg, rgba(10, 61, 98, 0.94), rgba(47, 128, 167, 0.64)),
        linear-gradient(135deg, var(--public-deep), var(--public-brand-primary));
}

.theme-classic-practice .contrast-band {
    background: var(--public-soft);
}

.theme-classic-practice .contact-band {
    background: #eaf6f4;
}

.theme-classic-practice .public-card,
.theme-classic-practice .info-panel,
.theme-classic-practice .hero-status {
    border-color: rgba(47, 128, 167, 0.16);
}

.theme-classic-practice .reason-list li {
    border-left-color: var(--public-action);
}

.theme-modern-smile .public-header-inner {
    max-width: 1320px;
}

.theme-modern-smile .public-hero {
    min-height: 640px;
}

.theme-modern-smile .hero-grid {
    grid-template-columns: minmax(0, 1.8fr) minmax(300px, 0.72fr);
    gap: 48px;
}

.theme-modern-smile h1 {
    max-width: 840px;
}

.theme-modern-smile .treatments-section {
    order: 22;
}

.theme-modern-smile .public-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.theme-modern-smile .public-card {
    min-height: 210px;
    border: 0;
    border-top: 5px solid var(--public-action);
    box-shadow: 0 18px 42px rgba(19, 32, 39, 0.1);
}

.theme-modern-smile .contact-band {
    background: var(--public-deep);
}

.theme-modern-smile .contact-band h2,
.theme-modern-smile .contact-band p,
.theme-modern-smile .contact-band a,
.theme-modern-smile .contact-band address {
    color: #ffffff;
}

.theme-boutique-dental .public-header-inner,
.theme-boutique-dental .public-section-inner {
    max-width: 1080px;
}

.theme-boutique-dental .public-band,
.theme-boutique-dental .public-footer {
    padding: 76px 0;
}

.theme-boutique-dental .public-hero {
    min-height: 620px;
    text-align: center;
}

.theme-boutique-dental .hero-grid {
    grid-template-columns: 1fr;
    justify-items: center;
}

.theme-boutique-dental .hero-actions {
    justify-content: center;
}

.theme-boutique-dental .hero-status {
    max-width: 620px;
}

.theme-boutique-dental .gallery-section {
    order: 12;
}

.theme-boutique-dental .about-section {
    order: 18;
}

.theme-boutique-dental .photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.theme-boutique-dental .photo-grid img {
    aspect-ratio: 5 / 4;
}

.theme-boutique-dental .public-card,
.theme-boutique-dental .info-panel,
.theme-boutique-dental .hero-status {
    border-color: rgba(19, 32, 39, 0.08);
    box-shadow: 0 16px 38px rgba(19, 32, 39, 0.08);
}

.theme-family-friendly .public-hero {
    min-height: 560px;
    background:
        linear-gradient(90deg, rgba(19, 32, 39, 0.82), rgba(20, 122, 118, 0.6)),
        linear-gradient(135deg, var(--public-brand-primary), #f4a261);
}

.theme-family-friendly .why-section {
    order: 14;
}

.theme-family-friendly .team-section {
    order: 24;
}

.theme-family-friendly .contact-section {
    order: 38;
}

.theme-family-friendly .public-card,
.theme-family-friendly .info-panel,
.theme-family-friendly .reason-list li {
    border-radius: 8px;
    background: var(--public-soft);
}

.theme-family-friendly .public-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.theme-family-friendly .hero-actions .button,
.theme-family-friendly .contact-band .text-link {
    border-radius: 999px;
}

.theme-premium-cosmetic .public-header {
    border-bottom-color: var(--public-action);
}

.theme-premium-cosmetic .public-hero {
    min-height: 680px;
    background:
        linear-gradient(90deg, rgba(16, 33, 43, 0.94), rgba(16, 33, 43, 0.62)),
        linear-gradient(135deg, var(--public-deep), var(--public-brand-primary));
}

.theme-premium-cosmetic .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
}

.theme-premium-cosmetic .hero-practice-photo {
    aspect-ratio: 1 / 1;
}

.theme-premium-cosmetic .treatments-section {
    order: 16;
}

.theme-premium-cosmetic .gallery-section {
    order: 28;
}

.theme-premium-cosmetic .public-card {
    min-height: 220px;
    border-top: 5px solid var(--public-brand-primary);
    box-shadow: 0 22px 54px rgba(16, 33, 43, 0.1);
}

.theme-premium-cosmetic .public-card-grid {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.theme-emergency-first .public-header {
    border-bottom: 4px solid var(--public-action);
}

.theme-emergency-first .contact-section {
    order: 12;
}

.theme-emergency-first .treatments-section {
    order: 22;
}

.theme-emergency-first .public-hero,
.theme-emergency-first .subpage-hero {
    min-height: 500px;
    background:
        linear-gradient(90deg, rgba(19, 32, 39, 0.9), rgba(135, 53, 33, 0.72)),
        linear-gradient(135deg, var(--public-deep), var(--public-action));
}

.theme-emergency-first .hero-grid,
.theme-emergency-first .split-section {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
}

.theme-emergency-first .hero-actions .button:first-child,
.theme-emergency-first .contact-band .button,
.theme-emergency-first .contact-band .text-link {
    min-height: 54px;
    padding: 0 26px;
    font-size: 1.04rem;
}

.theme-emergency-first .contact-band {
    background: #fff7ed;
}

.theme-emergency-first .info-panel {
    border: 2px solid var(--public-action);
}

.theme-minimal-white .public-header,
.theme-minimal-white .public-card,
.theme-minimal-white .info-panel,
.theme-minimal-white .hero-status,
.theme-minimal-white .fee-table-wrap {
    box-shadow: none;
}

.theme-minimal-white .public-hero,
.theme-minimal-white .subpage-hero {
    min-height: 480px;
    color: var(--public-ink);
    background: #ffffff;
}

.theme-minimal-white .hero-grid {
    grid-template-columns: minmax(0, 1fr);
}

.theme-minimal-white .public-hero .eyebrow,
.theme-minimal-white .public-hero h1,
.theme-minimal-white .public-hero p,
.theme-minimal-white .subpage-hero .eyebrow,
.theme-minimal-white .subpage-hero h1,
.theme-minimal-white .subpage-hero p {
    color: var(--public-ink);
}

.theme-minimal-white .public-band {
    padding: 44px 0;
    border-top: 1px solid rgba(19, 32, 39, 0.1);
    background: #ffffff;
}

.theme-minimal-white .public-card,
.theme-minimal-white .info-panel,
.theme-minimal-white .reason-list li {
    border-width: 0 0 1px;
    border-radius: 0;
    background: #ffffff;
}

.theme-minimal-white .public-card-grid,
.theme-minimal-white .reason-list {
    grid-template-columns: 1fr;
    gap: 0;
}

.theme-warm-community .about-section {
    order: 12;
}

.theme-warm-community .team-section {
    order: 18;
}

.theme-warm-community .gallery-section {
    order: 24;
}

.theme-warm-community .contact-section {
    order: 42;
}

.theme-warm-community .public-hero {
    min-height: 560px;
}

.theme-warm-community .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
}

.theme-warm-community .public-card,
.theme-warm-community .info-panel,
.theme-warm-community .hero-status {
    background: var(--public-soft);
}

.theme-warm-community .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.theme-warm-community .contact-band {
    background: var(--public-contrast);
}

.theme-specialist-clinic .treatments-section {
    order: 12;
}

.theme-specialist-clinic .why-section {
    order: 18;
}

.theme-specialist-clinic .finance-section {
    order: 28;
}

.theme-specialist-clinic .public-hero {
    min-height: 540px;
}

.theme-specialist-clinic .hero-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
}

.theme-specialist-clinic .public-card,
.theme-specialist-clinic .info-panel,
.theme-specialist-clinic .reason-list li {
    border-left: 5px solid var(--public-brand-primary);
}

.theme-specialist-clinic .public-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.theme-specialist-clinic .reason-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.theme-specialist-clinic .public-card h3::before {
    content: "Service";
    display: block;
    margin-bottom: 8px;
    color: var(--public-deep);
    font-size: 0.76rem;
    text-transform: uppercase;
}

.theme-landing-page-pro .public-header {
    position: sticky;
    top: 0;
    z-index: 10;
}

.theme-landing-page-pro .public-nav a:not(:last-child) {
    display: none;
}

.theme-landing-page-pro .public-hero {
    min-height: 700px;
}

.theme-landing-page-pro .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
}

.theme-landing-page-pro .contact-section {
    order: 14;
}

.theme-landing-page-pro .why-section {
    order: 24;
}

.theme-landing-page-pro .treatments-section {
    order: 34;
}

.theme-landing-page-pro .hero-actions .button:first-child,
.theme-landing-page-pro .contact-band .button,
.theme-landing-page-pro .contact-band .text-link {
    min-height: 54px;
    padding: 0 28px;
}

.theme-landing-page-pro .public-card-grid,
.theme-landing-page-pro .reason-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.theme-smile-wild {
    --sw-ink: #132f3a;
    --sw-teal: var(--public-brand-primary, #0f6f6b);
    --sw-deep: var(--public-deep, #132f3a);
    --sw-mint: #bdeee2;
    --sw-coral: var(--public-action, #ff7a59);
    --sw-cream: #fff7ed;
    --sw-soft: #f4fbf8;
    --sw-card: #ffffff;
    --sw-border: rgba(19, 47, 58, 0.12);
    color: var(--sw-ink);
    background: var(--sw-soft);
}

.theme-smile-wild .public-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--sw-border);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
}

.theme-smile-wild .public-header-inner,
.theme-smile-wild .public-section-inner {
    max-width: 1240px;
}

.theme-smile-wild .practice-mark {
    color: var(--sw-deep);
}

.theme-smile-wild .public-nav {
    gap: 12px;
}

.theme-smile-wild .public-nav a {
    color: var(--sw-deep);
    font-size: 0.94rem;
}

.theme-smile-wild .header-cta,
.theme-smile-wild .button,
.theme-smile-wild .text-link {
    border-radius: 999px;
    box-shadow: 0 12px 28px rgba(255, 122, 89, 0.24);
}

.theme-smile-wild .secondary-button,
.theme-smile-wild .secondary-link {
    box-shadow: none;
}

.theme-smile-wild .sw-hero {
    min-height: 760px;
    color: var(--sw-deep);
    background:
        radial-gradient(circle at 86% 12%, rgba(189, 238, 226, 0.78), transparent 30%),
        linear-gradient(145deg, #fff7ed 0%, #f4fbf8 45%, #ffffff 100%);
}

.theme-smile-wild .sw-hero .eyebrow,
.theme-smile-wild .sw-hero h1,
.theme-smile-wild .sw-hero p {
    color: var(--sw-deep);
}

.theme-smile-wild .sw-hero h1 {
    max-width: 720px;
    font-size: 4.7rem;
    line-height: 0.98;
}

.theme-smile-wild .sw-subpage-main {
    background:
        linear-gradient(180deg, #ffffff 0%, var(--sw-soft) 44%, #ffffff 100%);
}

.theme-smile-wild .sw-subpage-hero {
    min-height: 440px;
    display: flex;
    align-items: center;
    color: var(--sw-deep);
    background:
        radial-gradient(circle at 88% 16%, rgba(255, 122, 89, 0.18), transparent 28%),
        linear-gradient(145deg, #fff7ed 0%, #f4fbf8 48%, #ffffff 100%);
}

.theme-smile-wild .sw-subpage-hero .eyebrow,
.theme-smile-wild .sw-subpage-hero h1,
.theme-smile-wild .sw-subpage-hero p {
    color: var(--sw-deep);
}

.theme-smile-wild .sw-subpage-hero h1 {
    max-width: 780px;
    font-size: 4rem;
    line-height: 0.98;
}

.sw-subpage-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
    gap: 36px;
    align-items: center;
}

.sw-subpage-hero-panel {
    padding: 24px;
    border: 1px solid var(--sw-border);
    border-left: 8px solid var(--sw-coral);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 44px rgba(19, 47, 58, 0.1);
}

.sw-subpage-hero-panel p {
    margin: 0;
    font-weight: 800;
    line-height: 1.55;
}

.theme-smile-wild .sw-subpage-content {
    background: transparent;
}

.theme-smile-wild .sw-subpage-content .public-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.theme-smile-wild .sw-subpage-content .public-card,
.theme-smile-wild .sw-subpage-content .info-panel,
.theme-smile-wild .treatment-summary-panel,
.theme-smile-wild .fee-table-wrap {
    border: 1px solid var(--sw-border);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(19, 47, 58, 0.08);
}

.theme-smile-wild .sw-subpage-content .public-card {
    min-height: 230px;
    border-top: 6px solid var(--sw-coral);
}

.theme-smile-wild .sw-subpage-content .team-card {
    border-top-color: var(--sw-teal);
}

.theme-smile-wild .sw-subpage-content .public-card h2,
.theme-smile-wild .sw-subpage-content .info-panel h2,
.theme-smile-wild .sw-subpage-content .narrow-copy h2 {
    margin-top: 0;
    color: var(--sw-deep);
    font-size: 1.45rem;
    line-height: 1.15;
}

.theme-smile-wild .sw-subpage-content .text-link,
.theme-smile-wild .sw-subpage-content .button {
    margin-top: 18px;
}

.theme-smile-wild .fee-table-wrap {
    overflow: hidden;
}

.theme-smile-wild .fee-table th {
    color: var(--sw-deep);
    background: var(--sw-cream);
}

.theme-smile-wild .fee-table td:nth-child(2) {
    color: var(--sw-teal);
    font-size: 1.06rem;
}

.theme-smile-wild .subpage-detail-list dt,
.theme-smile-wild .opening-hours dt,
.theme-smile-wild .compliance-list dt {
    color: var(--sw-deep);
}

.theme-smile-wild .sw-subpage-content.contact-band {
    background: #ffffff;
}

.theme-smile-wild .sw-subpage-content .public-enquiry-form input,
.theme-smile-wild .sw-subpage-content .public-enquiry-form textarea {
    border-radius: 14px;
    border-color: var(--sw-border);
    background: var(--sw-soft);
}

.sw-hero-grid,
.sw-feature-grid,
.sw-story-grid,
.sw-proof-grid {
    display: grid;
    gap: 42px;
    align-items: center;
}

.sw-hero-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
}

.sw-trust-line {
    max-width: 560px;
    margin: 18px 0 0;
    font-weight: 800;
}

.sw-hero-media {
    position: relative;
    min-height: 560px;
}

.sw-hero-image,
.sw-feature-media figure,
.sw-image-strip figure,
.sw-masonry-grid figure {
    margin: 0;
    overflow: hidden;
    background: var(--sw-mint);
}

.sw-hero-image img,
.sw-feature-media img,
.sw-image-strip img,
.sw-masonry-grid img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sw-hero-image-main,
.sw-feature-media figure,
.sw-feature-media .sw-image-placeholder {
    min-height: 460px;
    border-radius: 42px 42px 12px 42px;
    box-shadow: 0 26px 70px rgba(19, 47, 58, 0.16);
}

.sw-overlap-stack {
    position: absolute;
    right: 0;
    bottom: 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 16px;
    width: min(78%, 430px);
}

.sw-hero-image-small,
.sw-overlap-stack .sw-image-placeholder {
    min-height: 180px;
    border: 8px solid #ffffff;
    border-radius: 28px;
    box-shadow: 0 18px 44px rgba(19, 47, 58, 0.18);
}

.sw-image-placeholder,
.sw-card-image-slot {
    display: grid;
    place-items: center;
    min-height: 180px;
    color: rgba(19, 47, 58, 0.68);
    background:
        linear-gradient(135deg, rgba(189, 238, 226, 0.8), rgba(255, 247, 237, 0.9)),
        var(--sw-soft);
    border: 1px dashed rgba(19, 47, 58, 0.22);
    font-weight: 800;
}

.sw-feature-grid {
    grid-template-columns: minmax(320px, 0.86fr) minmax(0, 1fr);
}

.sw-treatment-spotlight {
    background: #ffffff;
}

.sw-treatment-spotlight h2,
.sw-trust-section h2,
.sw-scroll-section h2,
.sw-story-section h2,
.sw-categories-section h2,
.sw-proof-section h2,
.sw-transform-section h2 {
    font-size: 2.85rem;
    line-height: 1.02;
}

.sw-mini-card-grid,
.sw-benefit-grid,
.sw-category-grid {
    display: grid;
    gap: 16px;
    margin-top: 26px;
}

.sw-mini-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sw-benefit-grid,
.sw-category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sw-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sw-mini-card,
.sw-benefit-grid article,
.sw-category-card,
.sw-proof-card,
.sw-story-panel {
    padding: 22px;
    border: 1px solid var(--sw-border);
    border-radius: 18px;
    background: var(--sw-card);
    box-shadow: 0 14px 34px rgba(19, 47, 58, 0.07);
}

.sw-mini-card h3,
.sw-benefit-grid h3,
.sw-category-card h3 {
    color: var(--sw-deep);
}

.sw-benefit-grid article {
    min-height: 190px;
    border-top: 5px solid var(--sw-coral);
}

.sw-scroll-section,
.sw-proof-section {
    background: var(--sw-cream);
}

.sw-image-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 31%);
    gap: 16px;
    margin-top: 28px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding-bottom: 10px;
}

.sw-image-strip figure,
.sw-image-strip .sw-image-placeholder {
    min-height: 310px;
    border-radius: 34px;
}

.sw-story-grid,
.sw-proof-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.58fr);
}

.sw-story-section {
    background: var(--sw-deep);
}

.sw-story-section .eyebrow,
.sw-story-section h2,
.sw-story-section p {
    color: #ffffff;
}

.sw-story-panel {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: none;
}

.sw-card-image-slot {
    min-height: 190px;
    margin: -22px -22px 18px;
    border-width: 0 0 1px;
    border-radius: 18px 18px 0 0;
}

.sw-category-card {
    overflow: hidden;
}

.sw-category-card a {
    display: inline-flex;
    margin-top: 14px;
    color: var(--sw-teal);
    font-weight: 800;
}

.sw-proof-card {
    border-left: 8px solid var(--sw-coral);
}

.sw-masonry-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-flow: dense;
    gap: 14px;
    margin-top: 28px;
}

.sw-masonry-grid figure,
.sw-masonry-grid .sw-image-placeholder {
    min-height: 220px;
    border-radius: 26px;
}

.sw-masonry-grid figure:nth-child(1),
.sw-masonry-grid .sw-image-placeholder:nth-child(1) {
    grid-column: span 2;
    min-height: 320px;
}

.sw-contact-section {
    background: #ffffff;
}

.footer-practice-mark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.footer-practice-mark img {
    width: auto;
    height: 42px;
    max-width: 150px;
    object-fit: contain;
}

.theme-new-virtu {
    --nv-ink: #172026;
    --nv-charcoal: var(--public-deep, #1e2a2f);
    --nv-ivory: #fbf7f1;
    --nv-champagne: var(--public-soft, #f4eee6);
    --nv-gold: var(--public-action, #b9845a);
    --nv-rose: #d7a08d;
    --nv-soft: #f7f3ee;
    --nv-card: #ffffff;
    --nv-border: rgba(23, 32, 38, 0.12);
    color: var(--nv-ink);
    background: var(--nv-ivory);
}

.theme-new-virtu .public-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--nv-border);
    background: rgba(251, 247, 241, 0.96);
    backdrop-filter: blur(12px);
}

.theme-new-virtu .public-header-inner,
.theme-new-virtu .public-section-inner {
    max-width: 1240px;
}

.theme-new-virtu .practice-mark,
.theme-new-virtu .public-nav a {
    color: var(--nv-charcoal);
}

.theme-new-virtu .public-nav {
    gap: 14px;
}

.theme-new-virtu .public-nav a {
    font-size: 0.92rem;
    font-weight: 800;
}

.theme-new-virtu .header-cta,
.theme-new-virtu .button,
.theme-new-virtu .text-link {
    border-radius: 999px;
    color: var(--public-action-foreground, #ffffff);
    background: var(--nv-gold);
    box-shadow: 0 14px 30px rgba(185, 132, 90, 0.22);
}

.theme-new-virtu .header-cta:hover,
.theme-new-virtu .button:hover,
.theme-new-virtu .text-link:hover {
    background: var(--public-action-dark, #8f623f);
}

.theme-new-virtu .secondary-button,
.theme-new-virtu .secondary-link {
    color: var(--nv-charcoal);
    background: var(--nv-champagne);
    box-shadow: none;
}

.theme-new-virtu .secondary-button:hover,
.theme-new-virtu .secondary-link:hover {
    color: #ffffff;
    background: var(--nv-charcoal);
}

.theme-new-virtu .eyebrow {
    color: var(--nv-gold);
}

.theme-new-virtu .nv-hero {
    min-height: 760px;
    display: flex;
    align-items: center;
    color: #ffffff;
    background:
        linear-gradient(90deg, rgba(23, 32, 38, 0.96), rgba(30, 42, 47, 0.78)),
        linear-gradient(135deg, var(--nv-charcoal), #41575e);
}

.theme-new-virtu .nv-hero .eyebrow,
.theme-new-virtu .nv-hero h1,
.theme-new-virtu .nv-hero p {
    color: #ffffff;
}

.theme-new-virtu .nv-hero h1 {
    max-width: 780px;
    font-size: 4.55rem;
    line-height: 0.98;
}

.nv-hero-grid,
.nv-split,
.nv-story-grid,
.nv-proof-grid {
    display: grid;
    gap: 44px;
    align-items: center;
}

.nv-hero-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
}

.nv-trust-line {
    max-width: 620px;
    margin: 18px 0 0;
    font-weight: 800;
    line-height: 1.5;
}

.nv-hero-media {
    min-height: 560px;
}

.nv-cinematic-frame,
.nv-card-image-slot,
.nv-transform-grid figure {
    margin: 0;
    overflow: hidden;
    background: var(--nv-champagne);
}

.nv-cinematic-frame,
.nv-card-image-slot,
.nv-transform-grid figure,
.nv-transform-grid .nv-image-placeholder {
    border-radius: 8px;
}

.nv-cinematic-frame {
    min-height: 560px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 32px 82px rgba(0, 0, 0, 0.24);
}

.nv-cinematic-frame img,
.nv-card-image-slot img,
.nv-transform-grid img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nv-image-placeholder,
.nv-card-image-slot {
    display: grid;
    place-items: center;
    min-height: 190px;
    color: rgba(23, 32, 38, 0.68);
    border: 1px dashed rgba(23, 32, 38, 0.22);
    background:
        linear-gradient(135deg, rgba(244, 238, 230, 0.94), rgba(255, 255, 255, 0.8)),
        var(--nv-soft);
    font-weight: 800;
}

.theme-new-virtu .nv-popular-section,
.theme-new-virtu .nv-enquiry-section,
.theme-new-virtu .nv-offer-section,
.theme-new-virtu .nv-contact-section {
    background: #ffffff;
}

.theme-new-virtu .nv-transform-section,
.theme-new-virtu .nv-proof-section {
    background: var(--nv-soft);
}

.theme-new-virtu .nv-info-section,
.theme-new-virtu .nv-numbered-section {
    background: var(--nv-ivory);
}

.theme-new-virtu .nv-story-section {
    color: #ffffff;
    background: var(--nv-charcoal);
}

.theme-new-virtu .nv-story-section .eyebrow,
.theme-new-virtu .nv-story-section h2,
.theme-new-virtu .nv-story-section p {
    color: #ffffff;
}

.theme-new-virtu .nv-popular-section h2,
.theme-new-virtu .nv-transform-section h2,
.theme-new-virtu .nv-enquiry-section h2,
.theme-new-virtu .nv-story-section h2,
.theme-new-virtu .nv-numbered-section h2,
.theme-new-virtu .nv-offer-section h2,
.theme-new-virtu .nv-proof-section h2,
.theme-new-virtu .nv-info-section h2,
.theme-new-virtu .nv-contact-section h2 {
    max-width: 820px;
    font-size: 2.75rem;
    line-height: 1.04;
}

.nv-treatment-card-grid,
.nv-numbered-grid {
    display: grid;
    gap: 18px;
    margin-top: 30px;
}

.nv-treatment-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.nv-numbered-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.nv-treatment-card,
.nv-numbered-grid article,
.nv-story-note,
.theme-new-virtu .nv-subpage-content .public-card,
.theme-new-virtu .nv-subpage-content .info-panel,
.theme-new-virtu .treatment-summary-panel,
.theme-new-virtu .fee-table-wrap {
    border: 1px solid var(--nv-border);
    border-radius: 8px;
    background: var(--nv-card);
    box-shadow: 0 18px 44px rgba(23, 32, 38, 0.08);
}

.nv-treatment-card {
    overflow: hidden;
    min-height: 360px;
}

.nv-treatment-card h3,
.nv-treatment-card p {
    margin-right: 18px;
    margin-left: 18px;
}

.nv-treatment-card h3 {
    color: var(--nv-charcoal);
    font-size: 1.2rem;
}

.nv-treatment-card p,
.nv-numbered-grid p,
.nv-proof-grid p {
    color: var(--public-muted);
    line-height: 1.65;
}

.nv-card-image-slot {
    min-height: 210px;
    border-width: 0 0 1px;
    border-radius: 0;
}

.nv-split {
    grid-template-columns: minmax(0, 0.72fr) minmax(340px, 1fr);
}

.nv-transform-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.nv-transform-grid figure,
.nv-transform-grid .nv-image-placeholder {
    min-height: 250px;
}

.nv-transform-grid figure:first-child,
.nv-transform-grid .nv-image-placeholder:first-child {
    grid-column: span 2;
    min-height: 360px;
}

.nv-story-grid,
.nv-proof-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
}

.nv-story-note {
    padding: 24px;
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.nv-numbered-grid article {
    min-height: 210px;
    padding: 24px;
    border-top: 5px solid var(--nv-gold);
}

.nv-numbered-grid span {
    color: var(--nv-gold);
    font-size: 0.85rem;
    font-weight: 900;
}

.nv-numbered-grid h3 {
    margin-top: 18px;
    color: var(--nv-charcoal);
}

.theme-new-virtu .nv-subpage-main {
    background:
        linear-gradient(180deg, #ffffff 0%, var(--nv-ivory) 48%, #ffffff 100%);
}

.theme-new-virtu .nv-subpage-hero {
    min-height: 430px;
    display: flex;
    align-items: center;
    color: #ffffff;
    background:
        linear-gradient(90deg, rgba(23, 32, 38, 0.95), rgba(30, 42, 47, 0.76)),
        linear-gradient(135deg, var(--nv-charcoal), #51666c);
}

.theme-new-virtu .nv-subpage-hero .eyebrow,
.theme-new-virtu .nv-subpage-hero h1,
.theme-new-virtu .nv-subpage-hero p {
    color: #ffffff;
}

.theme-new-virtu .nv-subpage-hero h1 {
    max-width: 760px;
    font-size: 3.7rem;
    line-height: 1;
}

.nv-subpage-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
    gap: 34px;
    align-items: center;
}

.nv-subpage-hero-panel {
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-left: 6px solid var(--nv-gold);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
}

.nv-subpage-hero-panel p {
    margin: 0;
    font-weight: 800;
    line-height: 1.55;
}

.theme-new-virtu .nv-subpage-content {
    background: transparent;
}

.theme-new-virtu .nv-subpage-content .public-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.theme-new-virtu .nv-subpage-content .public-card {
    min-height: 220px;
    padding: 24px;
    border-top: 5px solid var(--nv-gold);
}

.theme-new-virtu .nv-subpage-content .team-card {
    border-top-color: var(--public-brand-primary, #1e2a2f);
}

.theme-new-virtu .nv-subpage-content .public-card h2,
.theme-new-virtu .nv-subpage-content .info-panel h2,
.theme-new-virtu .nv-subpage-content .narrow-copy h2 {
    margin-top: 0;
    color: var(--nv-charcoal);
    font-size: 1.38rem;
    line-height: 1.18;
}

.theme-new-virtu .nv-subpage-content .text-link,
.theme-new-virtu .nv-subpage-content .button {
    margin-top: 18px;
}

.theme-new-virtu .fee-table-wrap {
    overflow: hidden;
}

.theme-new-virtu .fee-table th {
    color: var(--nv-charcoal);
    background: var(--nv-champagne);
}

.theme-new-virtu .fee-table td:nth-child(2),
.theme-new-virtu .subpage-detail-list dt,
.theme-new-virtu .opening-hours dt,
.theme-new-virtu .compliance-list dt {
    color: var(--nv-charcoal);
}

.theme-new-virtu .public-enquiry-form input,
.theme-new-virtu .public-enquiry-form textarea {
    border-radius: 8px;
    border-color: var(--nv-border);
    background: #ffffff;
}

@media (max-width: 540px) {
    .page-shell {
        padding: 20px 14px;
    }

    .hero,
    .panel {
        padding: 28px 22px;
    }

    .colour-input-row {
        grid-template-columns: 42px 56px 1fr;
    }

    .colour-preset {
        flex: 1 1 128px;
    }

    .detail-list div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

@media (max-width: 820px) {
    .public-header-inner {
        align-items: flex-start;
        flex-direction: column;
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .public-nav {
        justify-content: flex-start;
    }

    .public-header-actions {
        width: 100%;
    }

    .header-cta {
        width: 100%;
    }

    .hero-grid,
    .split-section,
    .sw-hero-grid,
    .sw-feature-grid,
    .sw-story-grid,
    .sw-proof-grid,
    .sw-subpage-hero-grid,
    .nv-hero-grid,
    .nv-split,
    .nv-story-grid,
    .nv-proof-grid,
    .nv-subpage-hero-grid,
    .product-hero-grid,
    .product-split,
    .treatment-detail-grid,
    .public-card-grid,
    .photo-grid,
    .product-card-grid,
    .pricing-grid,
    .feature-list,
    .extras-list,
    .template-grid,
    .brand-editor-grid,
    .public-form-grid,
    .reason-list,
    .theme-choice-grid {
        grid-template-columns: 1fr;
    }

    .treatment-summary-panel {
        position: static;
    }

    .public-hero,
    .public-band,
    .public-footer {
        padding: 40px 0;
    }

    .public-site h1 {
        font-size: 2.5rem;
    }

    .product-hero h1 {
        font-size: 2.5rem;
    }

    .public-site h2 {
        font-size: 1.65rem;
    }

    .product-site h2 {
        font-size: 1.65rem;
    }

    .subpage-hero h1 {
        font-size: 2.35rem;
    }

    .opening-hours div,
    .compliance-list div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .cookie-notice {
        left: 14px;
        right: 14px;
        bottom: 14px;
        grid-template-columns: 1fr;
        width: auto;
    }

    .cookie-notice-actions {
        justify-content: stretch;
    }

    .cookie-notice-button,
    .cookie-notice-link {
        flex: 1 1 140px;
    }

    .theme-modern-smile .hero-grid,
    .theme-modern-smile .public-card-grid,
    .theme-boutique-dental .hero-grid,
    .theme-boutique-dental .photo-grid,
    .theme-family-friendly .public-card-grid,
    .theme-premium-cosmetic .hero-grid,
    .theme-premium-cosmetic .public-card-grid,
    .theme-emergency-first .hero-grid,
    .theme-emergency-first .split-section,
    .theme-warm-community .hero-grid,
    .theme-warm-community .team-grid,
    .theme-specialist-clinic .hero-grid,
    .theme-specialist-clinic .public-card-grid,
    .theme-specialist-clinic .reason-list,
    .theme-landing-page-pro .hero-grid,
    .theme-landing-page-pro .public-card-grid,
    .theme-landing-page-pro .reason-list,
    .theme-smile-wild .sw-hero-grid,
    .theme-smile-wild .sw-feature-grid,
    .theme-smile-wild .sw-story-grid,
    .theme-smile-wild .sw-proof-grid,
    .theme-smile-wild .sw-subpage-hero-grid,
    .theme-smile-wild .sw-mini-card-grid,
    .theme-smile-wild .sw-benefit-grid,
    .theme-smile-wild .sw-category-grid,
    .theme-smile-wild .sw-subpage-content .public-card-grid,
    .theme-smile-wild .sw-masonry-grid,
    .theme-new-virtu .nv-hero-grid,
    .theme-new-virtu .nv-split,
    .theme-new-virtu .nv-story-grid,
    .theme-new-virtu .nv-proof-grid,
    .theme-new-virtu .nv-treatment-card-grid,
    .theme-new-virtu .nv-numbered-grid,
    .theme-new-virtu .nv-transform-grid,
    .theme-new-virtu .nv-subpage-hero-grid,
    .theme-new-virtu .nv-subpage-content .public-card-grid {
        grid-template-columns: 1fr;
    }

    .theme-smile-wild .sw-hero {
        min-height: auto;
    }

    .theme-smile-wild .sw-hero h1 {
        font-size: 2.7rem;
    }

    .theme-smile-wild .sw-subpage-hero {
        min-height: auto;
    }

    .theme-smile-wild .sw-subpage-hero h1 {
        font-size: 2.5rem;
    }

    .theme-new-virtu .nv-hero {
        min-height: auto;
    }

    .theme-new-virtu .nv-hero h1 {
        font-size: 2.7rem;
    }

    .theme-new-virtu .nv-subpage-hero {
        min-height: auto;
    }

    .theme-new-virtu .nv-subpage-hero h1 {
        font-size: 2.45rem;
    }

    .sw-hero-media {
        min-height: auto;
    }

    .nv-hero-media {
        min-height: auto;
    }

    .sw-overlap-stack {
        position: static;
        width: 100%;
        margin-top: 16px;
    }

    .sw-hero-image-main,
    .sw-feature-media figure,
    .sw-feature-media .sw-image-placeholder {
        min-height: 320px;
    }

    .nv-cinematic-frame {
        min-height: 340px;
    }

    .sw-treatment-spotlight h2,
    .sw-trust-section h2,
    .sw-scroll-section h2,
    .sw-story-section h2,
    .sw-categories-section h2,
    .sw-proof-section h2,
    .sw-transform-section h2 {
        font-size: 2rem;
    }

    .theme-new-virtu .nv-popular-section h2,
    .theme-new-virtu .nv-transform-section h2,
    .theme-new-virtu .nv-enquiry-section h2,
    .theme-new-virtu .nv-story-section h2,
    .theme-new-virtu .nv-numbered-section h2,
    .theme-new-virtu .nv-offer-section h2,
    .theme-new-virtu .nv-proof-section h2,
    .theme-new-virtu .nv-info-section h2,
    .theme-new-virtu .nv-contact-section h2 {
        font-size: 2rem;
    }

    .sw-image-strip {
        grid-auto-columns: minmax(220px, 82%);
    }

    .sw-masonry-grid figure:nth-child(1),
    .sw-masonry-grid .sw-image-placeholder:nth-child(1),
    .nv-transform-grid figure:first-child,
    .nv-transform-grid .nv-image-placeholder:first-child {
        grid-column: span 1;
    }
}
