:root {
    --t48-family-blue: #0266c8;
    --t48-family-blue-dark: #005bb4;
    --t48-family-ink: #0b0b0b;
    --t48-family-body: #2b3035;
    --t48-family-muted: #66717b;
    --t48-family-soft: #f1f1f1;
    --t48-family-pale-blue: #eef6ff;
    --t48-family-border: #dce5ee;
    --t48-family-shadow: 0 18px 48px rgba(20, 54, 84, .08);
}

.t48-treatment-family,
.t48-treatment-family * {
    box-sizing: border-box;
}

.t48-treatment-family {
    overflow-x: clip;
    background: #fff;
    color: var(--t48-family-body);
}

.t48-treatment-family a:focus-visible,
.t48-treatment-family button:focus-visible {
    outline: 3px solid rgba(2, 102, 200, .32);
    outline-offset: 4px;
}

.t48-family-eyebrow {
    margin: 0 0 14px;
    color: var(--t48-family-blue) !important;
    font-family: "Times New Roman", Times, serif !important;
    font-size: 24px !important;
    font-weight: 400;
    line-height: 1.2 !important;
}

.t48-family-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 9px;
    align-items: center;
    margin: 0 0 30px;
    color: #5d6973;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.45;
}

.t48-family-breadcrumbs a {
    color: var(--t48-family-blue) !important;
    text-decoration: none;
}

.t48-family-breadcrumbs a:hover {
    color: var(--t48-family-blue-dark) !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Category landing hero. */
.t48-family-hero {
    padding: 42px 0 78px;
}

.t48-family-hero__panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(360px, .92fr) minmax(520px, 1.08fr);
    gap: 54px;
    align-items: center;
    min-height: 520px;
    padding: 52px 52px 52px 58px;
    overflow: hidden;
    border: 1px solid rgba(2, 102, 200, .07);
    border-radius: 30px;
    background:
        radial-gradient(circle at 100% 0%, rgba(2, 102, 200, .16), transparent 39%),
        linear-gradient(135deg, #f7f8f9 0%, #eef4f9 100%);
}

.t48-family-hero__panel::before {
    position: absolute;
    top: -120px;
    left: -120px;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(2, 102, 200, .14);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.t48-family-hero__copy,
.t48-family-hero__visual {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.t48-family-hero h1,
.t48-detail-hero h1 {
    margin: 0;
    color: var(--t48-family-ink) !important;
    font-family: "Times New Roman", Times, serif !important;
    font-weight: 400 !important;
    letter-spacing: -.025em;
}

.t48-family-hero h1 {
    max-width: 620px;
    margin-bottom: 24px;
    font-size: clamp(52px, 5vw, 76px) !important;
    line-height: .98 !important;
}

.t48-family-hero__lead {
    max-width: 560px;
    margin: 0 0 28px !important;
    color: #252b30 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 17px !important;
    line-height: 1.65 !important;
}

.t48-family-hero__lead a {
    color: var(--t48-family-blue) !important;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.t48-treatment-family .t48-family-hero__button,
.t48-treatment-family .t48-detail-hero .t48-button {
    min-height: 52px;
    padding: 0 23px;
    border: 1px solid var(--t48-family-blue);
    border-radius: 10px;
    background: var(--t48-family-blue);
    color: #fff !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1;
    text-decoration: none;
    transition: transform .22s ease, background-color .22s ease, box-shadow .22s ease;
}

.t48-family-hero__button {
    gap: 12px;
}

.t48-family-hero__visual {
    min-height: 390px;
}

.t48-family-hero__main-image {
    position: absolute;
    inset: 0 52px 0 0;
    margin: 0;
    overflow: hidden;
    border-radius: 24px 76px 24px 24px;
    background: #dce9f5;
    box-shadow: 0 24px 56px rgba(14, 50, 82, .14);
}

.t48-family-hero__main-image .t48-family-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.t48-family-hero__accent-image {
    position: absolute;
    right: 0;
    bottom: 26px;
    width: min(42%, 250px);
    margin: 0;
    padding: 11px;
    overflow: hidden;
    border: 1px solid rgba(2, 102, 200, .14);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(13, 48, 82, .16);
}

.t48-family-hero__accent-image .t48-family-hero__image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Category cards. */
.t48-family-grid-section {
    padding: 76px 0 92px;
    background: #fff;
}

.t48-family-section-heading {
    max-width: 720px;
    margin: 0 0 38px;
}

.t48-family-section-heading h2 {
    margin: 0;
    color: var(--t48-family-ink) !important;
    font-family: "Times New Roman", Times, serif !important;
    font-size: clamp(38px, 3.5vw, 52px) !important;
    font-weight: 400 !important;
    line-height: 1.08 !important;
}

.t48-family-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.t48-family-grid--five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.t48-family-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.t48-family-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 920px;
}

.t48-family-grid--five .t48-family-card h3 {
    padding-inline: 17px;
    font-size: 21px !important;
}

.t48-family-notice {
    display: grid;
    grid-template-columns: minmax(150px, .34fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    margin: 0 0 54px;
    padding: 30px 34px;
    border: 1px solid rgba(2, 102, 200, .13);
    border-radius: 20px;
    background: linear-gradient(135deg, #f7fbff 0%, #eef5fb 100%);
    box-shadow: 0 10px 28px rgba(20, 54, 84, .06);
}

.t48-family-notice__eyebrow {
    margin: 0 !important;
    color: var(--t48-family-blue) !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.t48-family-notice > p:last-child {
    margin: 0 !important;
    color: #344451 !important;
    font-size: 17px !important;
    line-height: 1.7 !important;
}

.t48-family-notice--media {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 250px);
    align-items: center;
}

.t48-family-notice__content p {
    margin: 0 0 12px !important;
    color: #344451 !important;
    font-size: 17px !important;
    line-height: 1.7 !important;
}

.t48-family-notice__content p:last-child {
    margin-bottom: 0 !important;
}

.t48-family-notice__content .t48-family-notice__eyebrow {
    margin-bottom: 10px !important;
    color: var(--t48-family-blue) !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
}

.t48-family-notice__media {
    margin: 0;
    padding: 10px;
    overflow: hidden;
    border: 1px solid rgba(2, 102, 200, .12);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(20, 54, 84, .08);
}

.t48-family-notice__image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    border-radius: 10px;
}

.t48-family-card {
    min-width: 0;
    margin: 0;
}

.t48-family-card__link {
    display: block;
    height: 100%;
    overflow: hidden;
    border: 1px solid #e0e7ed;
    border-radius: 20px;
    background: #f6f7f8;
    color: var(--t48-family-ink) !important;
    text-decoration: none !important;
    box-shadow: 0 9px 26px rgba(20, 54, 84, .06);
    transition: transform .23s ease, background-color .23s ease, border-color .23s ease, box-shadow .23s ease;
}

.t48-family-card__media {
    position: relative;
    aspect-ratio: 300 / 174;
    margin: 10px 10px 0;
    overflow: hidden;
    border-radius: 14px;
    background: #dde7ef;
}

.t48-family-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .28s ease;
}

.t48-family-card__arrow {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: var(--t48-family-blue);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 22px;
    box-shadow: 0 7px 16px rgba(6, 38, 67, .16);
    transition: transform .22s ease;
}

.t48-family-card h3 {
    margin: 0;
    padding: 22px 20px 24px;
    color: var(--t48-family-ink) !important;
    font-family: "Times New Roman", Times, serif !important;
    font-size: 23px !important;
    font-weight: 400 !important;
    line-height: 1.18 !important;
    transition: color .2s ease;
}

/* Detail hero. Keep legacy 300x174 featured images crisp instead of stretching them. */
.t48-detail-hero {
    padding: 42px 0 54px;
}

.t48-detail-hero__panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(320px, .84fr);
    gap: 52px;
    align-items: center;
    min-height: 430px;
    padding: 52px 58px;
    overflow: hidden;
    border: 1px solid rgba(2, 102, 200, .07);
    border-radius: 30px;
    background:
        radial-gradient(circle at 100% 0%, rgba(2, 102, 200, .16), transparent 43%),
        linear-gradient(135deg, #f8f9fa 0%, #eef5fb 100%);
}

.t48-detail-hero__panel::after {
    position: absolute;
    right: -110px;
    bottom: -130px;
    width: 330px;
    height: 330px;
    border: 1px solid rgba(2, 102, 200, .14);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.t48-detail-hero__copy,
.t48-detail-hero__visual {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.t48-detail-hero h1 {
    max-width: 820px;
    margin-bottom: 31px;
    font-size: clamp(48px, 4.7vw, 72px) !important;
    line-height: 1 !important;
    overflow-wrap: anywhere;
}

.t48-detail-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 22px;
    align-items: center;
}

.t48-detail-back {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    min-height: 46px;
    color: var(--t48-family-blue) !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
}

.t48-detail-hero__visual {
    display: grid;
    min-height: 290px;
    place-items: center;
}

.t48-detail-hero__image-card {
    position: relative;
    display: grid;
    width: min(100%, 420px);
    min-height: 270px;
    place-items: center;
    padding: 34px;
    border: 1px solid rgba(2, 102, 200, .11);
    border-radius: 28px 68px 28px 28px;
    background: rgba(255, 255, 255, .84);
    box-shadow: var(--t48-family-shadow);
}

.t48-detail-hero__image-card::before {
    position: absolute;
    inset: 18px;
    border: 1px dashed rgba(2, 102, 200, .14);
    border-radius: 20px 54px 20px 20px;
    content: "";
    pointer-events: none;
}

.t48-detail-hero__image {
    position: relative;
    z-index: 1;
    display: block;
    width: min(100%, 300px);
    height: auto;
    max-height: 210px;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(15, 51, 83, .14);
}

/* Four-page local navigation. */
.t48-detail-subnav {
    padding: 0 0 58px;
}

.t48-detail-subnav__inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 10px;
    border: 1px solid #e1e8ee;
    border-radius: 18px;
    background: #f4f6f8;
}

.t48-detail-subnav__inner--five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.t48-detail-subnav__inner--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 760px;
}

.t48-detail-subnav__inner--many {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.t48-detail-subnav__inner--many .t48-detail-subnav__link {
    min-height: 50px;
    padding-inline: 10px;
    font-size: 13px;
}

.t48-detail-subnav__link {
    display: flex;
    min-width: 0;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 11px;
    color: #222b33 !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    text-decoration: none !important;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.t48-detail-subnav__link.is-current {
    background: var(--t48-family-blue);
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(2, 102, 200, .18);
}

/* Original WordPress/SiteOrigin content, presented in a clean reading surface. */
.t48-detail-content {
    padding: 0 0 94px;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.t48-detail-content__container {
    width: min(calc(100% - 144px), 1120px);
    margin-inline: auto;
}

.t48-treatment-article {
    min-width: 0;
}

.t48-treatment-article__source,
.t48-treatment-article__source > .panel-layout,
.t48-treatment-article__source .panel-grid,
.t48-treatment-article__source .panel-row-style,
.t48-treatment-article__source .panel-grid-cell,
.t48-treatment-article__source .so-panel,
.t48-treatment-article__source .panel-widget-style,
.t48-treatment-article__source .textwidget,
.t48-treatment-article__source .siteorigin-widget-tinymce {
    min-width: 0;
    max-width: 100%;
}

.t48-treatment-article__source > .panel-layout {
    display: block !important;
}

.t48-treatment-article__source > .panel-layout > .panel-grid {
    display: block !important;
    width: 100% !important;
    margin: 0 0 30px !important;
    padding: 0 !important;
}

.t48-treatment-article__source > .panel-layout > .panel-grid > .panel-row-style,
.t48-treatment-article__source > .panel-layout > .panel-grid > .panel-grid-cell {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: transparent !important;
}

.t48-treatment-article__source .panel-grid-cell {
    width: 100% !important;
    margin: 0 !important;
}

.t48-treatment-article__source .panel-grid-cell-empty,
.t48-treatment-article__source .empty-space {
    display: none !important;
}

.t48-treatment-article__source .so-panel,
.t48-treatment-article__source .panel-widget-style {
    margin: 0 !important;
    padding: 0 !important;
}

.t48-treatment-article__source > .panel-layout > .panel-grid:not(:last-child) {
    padding: 42px 46px !important;
    border: 1px solid #e2e9ef;
    border-radius: 24px;
    background: #fff !important;
    box-shadow: 0 12px 34px rgba(20, 54, 84, .055);
}

.t48-treatment-article__source p,
.t48-treatment-article__source li {
    color: var(--t48-family-body) !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 17px !important;
    line-height: 1.74 !important;
    text-align: left !important;
}

.t48-treatment-article__source p {
    margin: 0 0 20px !important;
    padding: 0 !important;
}

.t48-treatment-article__source p:last-child {
    margin-bottom: 0 !important;
}

.t48-treatment-article__source h2,
.t48-treatment-article__source h3,
.t48-treatment-article__source h4,
.t48-treatment-article__source h5,
.t48-treatment-article__source h6,
.t48-treatment-article__source .widget-title {
    margin: 0 0 22px;
    color: var(--t48-family-ink) !important;
    font-family: "Times New Roman", Times, serif !important;
    font-weight: 400 !important;
    line-height: 1.15 !important;
    text-align: left !important;
}

.t48-treatment-article__source h2 {
    font-size: clamp(34px, 3vw, 46px) !important;
}

.t48-treatment-article__source h3,
.t48-treatment-article__source .widget-title {
    font-size: clamp(30px, 2.6vw, 40px) !important;
}

.t48-treatment-article__source h4,
.t48-treatment-article__source h5,
.t48-treatment-article__source h6 {
    font-size: 26px !important;
}

.t48-treatment-article__source strong {
    color: #111 !important;
    font-weight: 700;
}

.t48-treatment-article__source a:not(.btn) {
    color: var(--t48-family-blue) !important;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.t48-treatment-article__source img {
    max-width: 100%;
    height: auto;
}

.t48-treatment-article__source .textwidget > p > img,
.t48-treatment-article__source .siteorigin-widget-tinymce > p > img,
.t48-treatment-article__source .column > p > img {
    display: block;
    width: auto;
    max-width: 100%;
    margin: 24px auto 28px;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(20, 54, 84, .09);
}

/* Legacy alignment classes can keep floating images beside long text blocks.
 * On the redesigned Vanlige problemer pages, normalize them into predictable
 * responsive media blocks so tablet/mobile text never squeezes beside them. */
.t48-treatment-detail--vanlige-problemer .t48-treatment-article__source img.alignleft,
.t48-treatment-detail--vanlige-problemer .t48-treatment-article__source img.alignright,
.t48-treatment-detail--vanlige-problemer .t48-treatment-article__source img.aligncenter,
.t48-treatment-detail--vanlige-problemer .t48-treatment-article__source img.alignnone {
    float: none !important;
    clear: both;
}

.t48-treatment-detail--vanlige-problemer .t48-treatment-article__source h2 > img,
.t48-treatment-detail--vanlige-problemer .t48-treatment-article__source h3 > img,
.t48-treatment-detail--vanlige-problemer .t48-treatment-article__source h4 > img,
.t48-treatment-detail--vanlige-problemer .t48-treatment-article__source h5 > img,
.t48-treatment-detail--vanlige-problemer .t48-treatment-article__source h6 > img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 24px auto 28px;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(20, 54, 84, .09);
}

/* Native WordPress clinical gallery: keep thumbnails crisp and captions readable. */
.t48-treatment-article__source .gallery {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 8px 0 0 !important;
}

.t48-treatment-detail--rotfyllinger .t48-treatment-article__source .gallery-columns-4,
.t48-treatment-detail--barn-og-tannbehandling .t48-treatment-article__source .gallery-columns-4,
.t48-treatment-detail--vanlige-problemer .t48-treatment-article__source .gallery-columns-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.page-id-4072 .t48-treatment-detail--rotfyllinger .t48-treatment-article__source .gallery-columns-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Vanlige problemer uses many non-square clinical/educational thumbnails. Preserve
 * the complete image instead of forcing every source into a 150x150 crop. */
.t48-treatment-detail--vanlige-problemer .t48-treatment-article__source .gallery-icon img {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 170px;
    object-fit: contain;
    background: #fff;
}

/* Barn og tannbehandling: preserve the full-width eruption charts and make them readable. */
.page-id-4485 .t48-treatment-article__source p > a {
    display: block;
    margin: 28px 0 34px;
    overflow: hidden;
    border: 1px solid #dce5ee;
    border-radius: 18px;
    background: #f7fafc;
    box-shadow: 0 10px 28px rgba(20, 54, 84, .08);
}

.page-id-4485 .t48-treatment-article__source p > a > img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

/* Trauma illustrations are educational diagrams; avoid aggressive cropping. */
.page-id-4493 .t48-treatment-article__source .gallery-icon img {
    object-fit: contain;
    background: #fff;
}

/* Tannkjøttsbehandling clinical galleries are landscape; preserve their natural proportions. */
.page-id-4092 .t48-treatment-article__source #pg-4092-1 .gallery-icon img,
.page-id-4110 .t48-treatment-article__source #pg-4110-1 .gallery-icon img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    object-fit: contain;
    background: #fff;
}

.t48-treatment-article__source .gallery-item {
    display: block !important;
    float: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 20px;
    border: 1px solid #e1e8ee;
    border-radius: 18px;
    background: #f6f8fa;
    text-align: center;
}

.t48-treatment-article__source .gallery-icon {
    margin-bottom: 13px;
}

.t48-treatment-article__source .gallery-icon a {
    display: block;
    width: 100%;
}

.t48-treatment-article__source .gallery-icon img {
    display: block;
    width: 150px !important;
    height: 150px !important;
    max-width: 150px !important;
    margin: 0 auto;
    border: 0 !important;
    border-radius: 12px;
    object-fit: cover;
}

.t48-treatment-article__source .gallery-caption {
    margin: 0 !important;
    color: #3d4852 !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px !important;
    font-style: normal !important;
    line-height: 1.55 !important;
    text-align: left;
}

/* Videos remain native/editable but receive the redesigned shell. */
.t48-treatment-article__source .wp-video,
.t48-treatment-article__source .mejs-container,
.t48-treatment-article__source video {
    max-width: 100% !important;
}

.t48-treatment-article__source .wp-video {
    width: min(100%, 820px) !important;
    margin: 8px auto 0;
    overflow: hidden;
    border-radius: 18px;
    background: #0c1116;
    box-shadow: 0 16px 36px rgba(13, 39, 62, .14);
}

.t48-treatment-article__source video {
    width: 100% !important;
    height: auto !important;
}

/*
 * The examination page stores the "Se video" heading and its two videos in
 * separate SiteOrigin rows. Present them as one coherent media section rather
 * than two unrelated white cards.
 */
.page-id-2877 .t48-treatment-article__source #pg-2877-2 {
    margin-bottom: 0 !important;
    padding: 42px 46px 18px !important;
    border-bottom: 0 !important;
    border-radius: 24px 24px 0 0 !important;
    box-shadow: 0 12px 34px rgba(20, 54, 84, .055) !important;
}

.page-id-2877 .t48-treatment-article__source #pg-2877-2 h2 {
    margin-bottom: 0 !important;
}

.page-id-2877 .t48-treatment-article__source #pg-2877-3 {
    margin: 0 0 30px !important;
    padding: 0 46px 46px !important;
    border-top: 0 !important;
    border-radius: 0 0 24px 24px !important;
    background: #fff !important;
    box-shadow: 0 12px 34px rgba(20, 54, 84, .055) !important;
}

.page-id-2877 .t48-treatment-article__source #pg-2877-3 > .panel-row-style {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}

.page-id-2877 .t48-treatment-article__source #pgc-2877-3-1,
.page-id-2877 .t48-treatment-article__source #pgc-2877-3-3 {
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
}

.page-id-2877 .t48-treatment-article__source #pgc-2877-3-2,
.page-id-2877 .t48-treatment-article__source #pgc-2877-3-0,
.page-id-2877 .t48-treatment-article__source #pgc-2877-3-4 {
    display: none !important;
}

.page-id-2877 .t48-treatment-article__source #pg-2877-3 .wp-video {
    width: 100% !important;
    margin: 0 !important;
    border-radius: 16px;
}

/*
 * Tenner og graviditet also stores its "Se video" heading separately from a
 * two-video SiteOrigin row. Treat both rows as one calm, responsive media card.
 */
.page-id-3717 .t48-treatment-article__source #pg-3717-1 {
    margin-bottom: 0 !important;
    padding: 42px 46px 18px !important;
    border-bottom: 0 !important;
    border-radius: 24px 24px 0 0 !important;
    box-shadow: 0 12px 34px rgba(20, 54, 84, .055) !important;
}

.page-id-3717 .t48-treatment-article__source #pg-3717-1 h2 {
    margin-bottom: 0 !important;
    text-align: center !important;
}

.page-id-3717 .t48-treatment-article__source #pg-3717-2 {
    margin: 0 0 30px !important;
    padding: 0 46px 46px !important;
    border-top: 0 !important;
    border-radius: 0 0 24px 24px !important;
    background: #fff !important;
    box-shadow: 0 12px 34px rgba(20, 54, 84, .055) !important;
}

.page-id-3717 .t48-treatment-article__source #pg-3717-2 > .panel-row-style {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
    align-items: start;
}

.page-id-3717 .t48-treatment-article__source #pgc-3717-2-0,
.page-id-3717 .t48-treatment-article__source #pgc-3717-2-2 {
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
}

.page-id-3717 .t48-treatment-article__source #pgc-3717-2-1 {
    display: none !important;
}

.page-id-3717 .t48-treatment-article__source #pg-3717-2 .wp-video {
    width: 100% !important;
    margin: 0 !important;
    border-radius: 16px;
}

.page-id-3717 .t48-treatment-article__source #pg-3717-2 h5 {
    margin: 15px 0 0 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    text-align: center !important;
}

/* Preserve and restyle each page's original final booking CTA. */
.t48-treatment-article__source > .panel-layout > .panel-grid:last-child {
    position: relative;
    margin: 56px 0 0 !important;
    padding: 52px 34px !important;
    overflow: hidden;
    border: 0;
    border-radius: 28px;
    background:
        linear-gradient(90deg, rgba(0, 46, 91, .91), rgba(2, 102, 200, .73)),
        url("../../../../uploads/2018/05/Header-background-image-tannlegene.jpg") center / cover no-repeat !important;
    box-shadow: 0 16px 38px rgba(13, 48, 82, .14);
}

.t48-treatment-article__source > .panel-layout > .panel-grid:last-child > .panel-row-style,
.t48-treatment-article__source > .panel-layout > .panel-grid:last-child > .panel-grid-cell {
    position: relative;
    z-index: 1;
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

/*
 * SiteOrigin injects its own gradient overlay element for the legacy CTA row.
 * The redesigned parent already owns the image + gradient, so keeping that
 * wrapper creates the unwanted purple rectangle seen inside the blue card.
 */
.t48-treatment-article__source > .panel-layout > .panel-grid:last-child .overlay-c1-c2-wrapper,
.t48-treatment-article__source > .panel-layout > .panel-grid:last-child .overlay-c2-c1-wrapper,
.t48-treatment-article__source > .panel-layout > .panel-grid:last-child .overlay-c1-wrapper,
.t48-treatment-article__source > .panel-layout > .panel-grid:last-child .overlay-c2-wrapper {
    display: none !important;
}

.t48-treatment-article__source > .panel-layout > .panel-grid:last-child h2,
.t48-treatment-article__source > .panel-layout > .panel-grid:last-child h3,
.t48-treatment-article__source > .panel-layout > .panel-grid:last-child p,
.t48-treatment-article__source > .panel-layout > .panel-grid:last-child strong {
    color: #fff !important;
    text-align: center !important;
}

.t48-treatment-article__source > .panel-layout > .panel-grid:last-child h2 {
    margin-bottom: 22px;
    font-size: clamp(36px, 3.5vw, 50px) !important;
    line-height: 1.08 !important;
    text-shadow: 0 2px 16px rgba(0, 30, 65, .18);
}

.t48-treatment-article__source > .panel-layout > .panel-grid:last-child .wrapper {
    text-align: center !important;
}

.t48-treatment-article__source > .panel-layout > .panel-grid:last-child .btn {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 0 26px;
    border: 1px solid #fff !important;
    border-radius: 10px;
    background: #fff !important;
    color: var(--t48-family-blue) !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(0, 31, 73, .16) !important;
    transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.t48-treatment-article__source > .panel-layout > .panel-grid:last-child .btn:hover,
.t48-treatment-article__source > .panel-layout > .panel-grid:last-child .btn:focus-visible {
    background: var(--t48-family-blue) !important;
    border-color: #fff !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0, 31, 73, .24) !important;
}

/* Reveal motion on the new treatment family templates. */
.t48-treatment-family [data-t48-treatment-reveal].t48-treatment-reveal {
    opacity: 0;
    transform: translateY(18px);
}

.t48-treatment-family [data-t48-treatment-reveal].t48-treatment-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity .52s ease var(--t48-treatment-delay, 0ms),
        transform .58s cubic-bezier(.2, .75, .25, 1) var(--t48-treatment-delay, 0ms);
}

@media (hover: hover) {
    .t48-family-card__link:hover {
        border-color: var(--t48-family-blue);
        background: var(--t48-family-blue);
        transform: translateY(-5px);
        box-shadow: 0 16px 34px rgba(2, 102, 200, .16);
    }

    .t48-family-card__link:hover .t48-family-card__image {
        transform: scale(1.045);
    }

    .t48-family-card__link:hover h3 {
        color: #fff !important;
    }

    .t48-family-card__link:hover .t48-family-card__arrow {
        transform: translateX(4px);
    }

    .t48-treatment-family .t48-family-hero__button:hover,
    .t48-treatment-family .t48-detail-hero .t48-button:hover {
        background: var(--t48-family-blue-dark);
        transform: translateY(-2px);
        box-shadow: 0 11px 23px rgba(2, 102, 200, .18);
    }

    .t48-detail-subnav__link:not(.is-current):hover {
        background: #e6eef6;
        color: var(--t48-family-blue-dark) !important;
        transform: translateY(-1px);
    }

    .t48-treatment-article__source > .panel-layout > .panel-grid:last-child .btn:hover {
        background: var(--t48-family-blue) !important;
        color: #fff !important;
    }
}

@media (max-width: 1180px) {
    .t48-family-hero__panel {
        grid-template-columns: minmax(320px, .9fr) minmax(440px, 1.1fr);
        gap: 38px;
        padding: 46px;
    }

    .t48-family-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .t48-detail-hero__panel {
        gap: 38px;
        padding: 46px;
    }

    .t48-detail-content__container {
        width: min(calc(100% - 64px), 1040px);
    }
}

@media (max-width: 1023px) {
    .t48-family-hero,
    .t48-detail-hero {
        padding-top: 30px;
    }

    .t48-family-hero__panel,
    .t48-detail-hero__panel {
        grid-template-columns: 1fr;
        gap: 36px;
        min-height: 0;
        padding: 40px;
        border-radius: 26px;
    }

    .t48-family-hero__visual {
        min-height: 420px;
    }

    .t48-detail-hero__visual {
        min-height: 260px;
    }

    .t48-detail-hero__image-card {
        width: min(100%, 520px);
    }

    .t48-detail-subnav__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .t48-treatment-article__source .gallery,
    .t48-treatment-detail--rotfyllinger .t48-treatment-article__source .gallery-columns-4,
    .page-id-4072 .t48-treatment-detail--rotfyllinger .t48-treatment-article__source .gallery-columns-4,
    .t48-treatment-detail--barn-og-tannbehandling .t48-treatment-article__source .gallery-columns-4,
    .t48-treatment-detail--vanlige-problemer .t48-treatment-article__source .gallery-columns-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .t48-family-hero {
        padding: 24px 0 58px;
    }

    .t48-detail-hero {
        padding: 24px 0 42px;
    }

    .t48-family-hero__panel,
    .t48-detail-hero__panel {
        gap: 30px;
        padding: 34px 28px;
        border-radius: 23px;
    }

    .t48-family-breadcrumbs {
        margin-bottom: 23px;
        font-size: 12px;
    }

    .t48-family-hero h1 {
        font-size: clamp(45px, 10vw, 58px) !important;
    }

    .t48-detail-hero h1 {
        font-size: clamp(42px, 9vw, 56px) !important;
    }

    .t48-family-hero__visual {
        min-height: 360px;
    }

    .t48-family-hero__main-image {
        right: 34px;
        border-radius: 20px 58px 20px 20px;
    }

    .t48-family-hero__accent-image {
        bottom: 18px;
        width: min(44%, 210px);
    }

    .t48-family-grid-section {
        padding: 58px 0 68px;
    }

    .t48-family-notice {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 40px;
        padding: 25px 26px;
    }

    .t48-family-notice--media {
        gap: 22px;
    }

    .t48-family-notice__media {
        width: min(100%, 280px);
        margin-inline: auto;
    }

    .t48-family-grid {
        gap: 18px;
    }

    .t48-detail-subnav {
        padding-bottom: 42px;
    }

    .t48-detail-content {
        padding-bottom: 72px;
    }

    .t48-detail-content__container {
        width: calc(100% - 40px);
    }

    .t48-treatment-article__source > .panel-layout > .panel-grid:not(:last-child) {
        padding: 34px 28px !important;
        border-radius: 20px;
    }

    .page-id-2877 .t48-treatment-article__source #pg-2877-2 {
        padding: 34px 28px 16px !important;
        border-radius: 20px 20px 0 0 !important;
    }

    .page-id-2877 .t48-treatment-article__source #pg-2877-3 {
        padding: 0 28px 34px !important;
        border-radius: 0 0 20px 20px !important;
    }

    .page-id-2877 .t48-treatment-article__source #pg-2877-3 > .panel-row-style {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .page-id-3717 .t48-treatment-article__source #pg-3717-1 {
        padding: 34px 28px 16px !important;
        border-radius: 20px 20px 0 0 !important;
    }

    .page-id-3717 .t48-treatment-article__source #pg-3717-2 {
        padding: 0 28px 34px !important;
        border-radius: 0 0 20px 20px !important;
    }

    .page-id-3717 .t48-treatment-article__source #pg-3717-2 > .panel-row-style {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .t48-treatment-article__source p,
    .t48-treatment-article__source li {
        font-size: 16px !important;
        line-height: 1.7 !important;
    }

    .t48-treatment-article__source > .panel-layout > .panel-grid:last-child {
        padding: 46px 26px !important;
        border-radius: 22px;
    }
}

@media (max-width: 620px) {
    .t48-family-hero__panel,
    .t48-detail-hero__panel {
        padding: 29px 20px 22px;
    }

    .t48-family-eyebrow {
        font-size: 21px !important;
    }

    .t48-family-hero h1 {
        margin-bottom: 18px;
        font-size: clamp(41px, 12vw, 52px) !important;
    }

    .t48-detail-hero h1 {
        margin-bottom: 24px;
        font-size: clamp(38px, 11vw, 50px) !important;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: auto;
    }

    .t48-family-hero__lead {
        font-size: 16px !important;
    }

    .t48-treatment-family .t48-family-hero__button,
    .t48-treatment-family .t48-detail-hero .t48-button {
        width: 100%;
        justify-content: center;
    }

    .t48-family-hero__visual {
        min-height: 275px;
    }

    .t48-family-hero__main-image {
        inset: 0 24px 0 0;
        border-radius: 17px 44px 17px 17px;
    }

    .t48-family-hero__accent-image {
        right: 0;
        bottom: 13px;
        width: 45%;
        padding: 7px;
        border-radius: 13px;
    }

    .t48-family-section-heading {
        margin-bottom: 28px;
    }

    .t48-family-section-heading h2 {
        font-size: 36px !important;
    }

    .t48-family-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .t48-family-card h3 {
        font-size: 22px !important;
    }

    .t48-detail-hero__actions {
        display: grid;
        gap: 12px;
    }

    .t48-detail-back {
        justify-content: center;
    }

    .t48-detail-hero__image-card {
        width: 100%;
        min-height: 220px;
        padding: 28px 22px;
        border-radius: 20px 46px 20px 20px;
    }

    .t48-detail-subnav__inner {
        grid-template-columns: 1fr;
        gap: 7px;
        padding: 8px;
        border-radius: 15px;
    }

    /* Keep large treatment families compact on normal mobile widths. */
    .t48-detail-subnav__inner--many {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .t48-detail-subnav__link {
        min-height: 48px;
        justify-content: flex-start;
        text-align: left;
    }

    .t48-detail-subnav__inner--many .t48-detail-subnav__link {
        min-height: 52px;
        justify-content: center;
        padding-inline: 8px;
        overflow-wrap: anywhere;
        font-size: 12.5px;
        text-align: center;
    }

    .t48-detail-content__container {
        width: calc(100% - 28px);
    }

    .t48-treatment-article__source > .panel-layout > .panel-grid {
        margin-bottom: 20px !important;
    }

    .t48-treatment-article__source > .panel-layout > .panel-grid:not(:last-child) {
        padding: 27px 20px !important;
        border-radius: 18px;
    }

    .page-id-2877 .t48-treatment-article__source #pg-2877-2 {
        padding: 27px 20px 14px !important;
        border-radius: 18px 18px 0 0 !important;
    }

    .page-id-2877 .t48-treatment-article__source #pg-2877-3 {
        padding: 0 20px 27px !important;
        border-radius: 0 0 18px 18px !important;
    }

    .page-id-3717 .t48-treatment-article__source #pg-3717-1 {
        padding: 27px 20px 14px !important;
        border-radius: 18px 18px 0 0 !important;
    }

    .page-id-3717 .t48-treatment-article__source #pg-3717-2 {
        padding: 0 20px 27px !important;
        border-radius: 0 0 18px 18px !important;
    }

    .page-id-3717 .t48-treatment-article__source #pg-3717-2 > .panel-row-style {
        gap: 18px;
    }

    .t48-treatment-article__source h2 {
        font-size: 32px !important;
    }

    .t48-treatment-article__source h3,
    .t48-treatment-article__source .widget-title {
        font-size: 29px !important;
    }

    .t48-treatment-article__source h4,
    .t48-treatment-article__source h5,
    .t48-treatment-article__source h6 {
        font-size: 23px !important;
    }

    .t48-treatment-article__source .gallery,
    .t48-treatment-detail--rotfyllinger .t48-treatment-article__source .gallery-columns-4,
    .page-id-4072 .t48-treatment-detail--rotfyllinger .t48-treatment-article__source .gallery-columns-4,
    .t48-treatment-detail--barn-og-tannbehandling .t48-treatment-article__source .gallery-columns-4,
    .t48-treatment-detail--vanlige-problemer .t48-treatment-article__source .gallery-columns-4 {
        grid-template-columns: 1fr;
    }

    .t48-treatment-article__source .gallery-item {
        padding: 18px;
    }

    .t48-treatment-article__source > .panel-layout > .panel-grid:last-child {
        margin-top: 40px !important;
        padding: 40px 20px !important;
    }
}

@media (max-width: 430px) {
    .t48-family-breadcrumbs {
        gap: 5px 7px;
    }

    .t48-family-hero h1 {
        font-size: 42px !important;
    }

    .t48-detail-hero h1 {
        font-size: 39px !important;
    }

    .t48-family-hero__visual {
        min-height: 240px;
    }

    .t48-family-card__media {
        margin: 8px 8px 0;
    }

    .t48-treatment-article__source p,
    .t48-treatment-article__source li {
        font-size: 16px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .t48-treatment-family *,
    .t48-treatment-family *::before,
    .t48-treatment-family *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }

    .t48-treatment-family [data-t48-treatment-reveal] {
        opacity: 1 !important;
        transform: none !important;
    }
}
