.website-page {
    background: var(--page, #f4f4f4);
    color: var(--ink, #332c2b);
    min-height: 100vh;
}

.website-page a {
    color: var(--deep-red, #9a1b20);
}

.website-wrap {
    margin: 0 auto;
    width: min(1220px, calc(100% - 32px));
}

.website-hero {
    background: linear-gradient(180deg, #ffffff 0%, #fffaf3 100%);
    border-bottom: 1px solid rgba(213, 153, 97, 0.28);
    padding: 42px 0 34px;
}

.website-crumb {
    color: var(--muted, #766f6c);
    font-size: 14px;
    margin: 0 0 12px;
}

.website-hero h1 {
    color: var(--dark, #332c2b);
    font-size: 34px;
    line-height: 1.25;
    margin: 0 0 12px;
}

.website-hero p {
    color: var(--muted, #766f6c);
    font-size: 16px;
    line-height: 1.8;
    margin: 0;
    max-width: 760px;
}

.website-layout {
    display: grid;
    gap: 22px;
    grid-template-columns: 260px 1fr;
    padding: 28px 0 46px;
}

.website-card,
.website-side,
.website-content {
    background: #fff;
    border: 1px solid var(--line, #dedede);
    border-radius: 0;
    box-shadow: 0 12px 30px rgba(51, 44, 43, 0.06);
}

.website-side {
    align-self: start;
    padding: 18px;
}

.website-side h2,
.website-card h2 {
    font-size: 18px;
    margin: 0 0 14px;
}

.website-category-list,
.website-list,
.website-meta-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.website-category-list a {
    border-radius: 0;
    color: var(--dark, #332c2b);
    display: block;
    padding: 10px 12px;
    text-decoration: none;
}

.website-category-list a.is-current,
.website-category-list a:hover {
    background: var(--light-gold, #ffd9a6);
    color: var(--dark, #332c2b);
}

.website-content {
    padding: 24px;
}

.website-toolbar {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 20px;
}

.website-search-form {
    display: flex;
    gap: 8px;
}

.website-search-form input {
    border: 1px solid var(--line, #dedede);
    border-radius: 0;
    height: 38px;
    min-width: 220px;
    padding: 0 12px;
}

.website-search-form button,
.website-button {
    background: var(--red, #b72024);
    border: 0;
    border-radius: 0;
    color: #fff;
    cursor: pointer;
    height: 38px;
    padding: 0 16px;
    text-decoration: none;
}

.website-search-tip {
    color: var(--gold-dark, #9a5f2d);
    font-size: 13px;
    margin-top: 6px;
}

.website-list li {
    border-bottom: 1px solid var(--line, #dedede);
    padding: 18px 0;
}

.website-list li:first-child {
    padding-top: 0;
}

.website-list li:last-child {
    border-bottom: 0;
}

.website-list h2,
.website-list h3 {
    color: var(--dark, #332c2b);
    font-size: 20px;
    line-height: 1.4;
    margin: 0 0 8px;
}

.website-list p,
.website-meta-list li,
.website-richtext {
    color: var(--muted, #766f6c);
    line-height: 1.8;
}

.website-list time,
.website-meta {
    color: var(--muted, #766f6c);
    font-size: 13px;
}

.website-pagination {
    align-items: center;
    border-top: 1px solid var(--line, #dedede);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 22px;
    padding-top: 18px;
}

.website-pagination a,
.website-tag {
    border: 1px solid var(--line, #dedede);
    border-radius: 0;
    color: var(--dark, #332c2b);
    padding: 6px 12px;
    text-decoration: none;
}

.website-richtext {
    font-size: 16px;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
}

.website-richtext img {
    height: auto;
    max-width: 100% !important;
}

.website-richtext video,
.website-richtext iframe,
.website-richtext embed,
.website-richtext object {
    max-width: 100%;
}

.website-richtext table {
    max-width: 100%;
    border-collapse: collapse;
}

.website-richtext pre {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
}

.website-doctor-head {
    display: grid;
    gap: 22px;
    grid-template-columns: 132px 1fr;
}

.website-avatar {
    align-items: center;
    background: linear-gradient(160deg, rgba(183, 32, 36, 0.88), rgba(213, 153, 97, 0.86)), var(--red, #b72024);
    border-radius: 0;
    color: #fff;
    display: flex;
    font-size: 36px;
    font-weight: 700;
    height: 132px;
    justify-content: center;
    overflow: hidden;
    width: 132px;
}

.website-avatar img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.website-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 22px 0;
}

.doctor-info-grid {
    gap: 0;
    border: 1px solid var(--line, #dedede);
    background: #fff;
}

.doctor-info-grid .website-card {
    min-height: 122px;
    padding: 20px 18px;
    border: 0;
}

.doctor-info-grid .website-card:nth-child(odd) {
    border-right: 1px solid var(--line, #dedede);
}

.doctor-info-grid .website-card:nth-child(n+3) {
    border-top: 1px solid var(--line, #dedede);
}

.doctor-info-grid .website-card h2 {
    margin-bottom: 12px;
    font-size: 18px;
    line-height: 1.35;
}

.doctor-info-grid .website-card p {
    margin: 0;
    color: var(--ink, #332c2b);
    line-height: 1.8;
}

.website-card {
    padding: 18px;
}

.website-hotwords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

@media (max-width: 768px) {
    .website-layout,
    .website-doctor-head,
    .website-grid {
        grid-template-columns: 1fr;
    }

    .website-hero h1 {
        font-size: 26px;
    }

    .website-toolbar,
    .website-search-form {
        align-items: stretch;
        flex-direction: column;
    }

    .website-search-form input {
        min-width: 0;
        width: 100%;
    }
}

/* Match dynamic content pages to the original official-site design draft. */
.website-page {
    background: var(--page, #f4f4f4);
}

.website-page a {
    text-decoration: none;
}

.website-hero {
    position: relative;
    overflow: hidden;
    padding: 54px 0 58px;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.46) 52%, rgba(0, 0, 0, 0.38) 100%),
        var(--subpage-hero-image, url("/assets/img/hero-dental.png")) center / cover,
        #5b4640;
    border-bottom: 0;
}

.website-hero::after {
    content: "";
    position: absolute;
    right: clamp(24px, 9vw, 150px);
    bottom: -36px;
    width: 260px;
    height: 110px;
    border: 1px solid rgba(255, 217, 166, 0.35);
    border-radius: 999px 999px 0 0;
    opacity: 0.55;
}

.website-hero .website-wrap {
    position: relative;
    z-index: 1;
}

.website-crumb {
    color: var(--light-gold, #ffd9a6);
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 10px;
}

.website-hero h1 {
    color: #fff;
    font-size: clamp(38px, 4.4vw, 58px);
    line-height: 1.1;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.website-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1.8;
    margin: 12px 0 0;
    max-width: 760px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.website-hero .website-meta {
    color: rgba(255, 255, 255, 0.86);
}

.website-layout {
    display: grid;
    grid-template-columns: 248px 1fr;
    gap: 24px;
    padding: 34px 0 46px;
}

.website-side {
    align-self: start;
    padding: 0;
    background: #fff;
    border: 0;
    border-top: 5px solid var(--red, #b72024);
    box-shadow: 0 16px 36px rgba(51, 44, 43, 0.08);
}

.website-side h2 {
    margin: 0;
    padding: 18px 20px;
    color: var(--deep-red, #9a1b20);
    background: linear-gradient(90deg, #fff8ec, #ffffff);
    font-size: 22px;
}

.website-category-list a {
    display: block;
    padding: 14px 18px 14px 24px;
    border-bottom: 1px solid var(--line, #dedede);
    color: var(--dark, #332c2b);
    background: #fff;
    font-weight: 700;
}

.website-category-list a.is-current,
.website-category-list a:hover,
.website-category-list a:focus-visible {
    color: var(--deep-red, #9a1b20);
    background: var(--light-gold, #ffd9a6);
}

.website-content {
    padding: 24px;
    background: #fff;
    border: 1px solid var(--line, #dedede);
    box-shadow: 0 12px 30px rgba(51, 44, 43, 0.06);
}

.website-content.is-loading {
    opacity: 0.72;
    pointer-events: none;
}

.website-card {
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line, #dedede);
    box-shadow: none;
}

.website-card + .website-card,
.website-grid + .website-card {
    margin-top: 18px;
}

.website-card h2,
.website-list h2,
.website-list h3 {
    color: var(--deep-red, #9a1b20);
}

.website-list li {
    border-bottom: 1px dashed #eeeeee;
}

.website-list h2 a,
.website-list h3 a {
    color: var(--deep-red, #9a1b20);
}

.website-list p,
.website-meta-list li,
.website-richtext {
    color: var(--muted, #766f6c);
}

.website-toolbar {
    border-bottom: 1px solid var(--line, #dedede);
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.website-search-form {
    gap: 8px;
}

.website-search-form input {
    border: 1px solid var(--line, #dedede);
    border-radius: 0;
}

.website-search-form button,
.website-button {
    background: var(--red, #b72024);
    border-radius: 0;
}

.website-pagination {
    border-top: 1px solid var(--line, #dedede);
}

.website-avatar {
    border-radius: 0;
}

.website-hotwords {
    padding: 0 18px 18px;
}

.website-tag {
    display: inline-block;
    color: var(--dark, #332c2b);
    background: #fff;
}

.website-tag:hover,
.website-tag:focus-visible {
    color: var(--deep-red, #9a1b20);
    background: var(--light-gold, #ffd9a6);
}

@media (max-width: 768px) {
    .website-wrap {
        width: 100%;
        padding-right: 12px;
        padding-left: 12px;
    }

    .website-page {
        background: #f5f5f5;
    }

    .website-layout {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px 0 28px;
    }

    .website-hero {
        padding: 28px 0 34px;
    }

    .website-hero h1 {
        font-size: 28px;
        line-height: 1.2;
    }

    .website-hero p {
        font-size: 14px;
        line-height: 1.65;
    }

    .website-crumb {
        margin-bottom: 8px;
        font-size: 13px;
    }

    .website-side,
    .website-content,
    .website-card {
        border-color: #eeeeee;
        box-shadow: 0 8px 18px rgba(51, 44, 43, 0.05);
    }

    .website-side {
        border-top-width: 4px;
    }

    .website-content {
        padding: 14px;
        border: 0;
    }

    .website-side h2 {
        padding: 12px 14px;
        font-size: 18px;
    }

    .website-category-list {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
        padding: 10px 12px 12px;
    }

    .website-category-list a {
        display: grid;
        min-height: 38px;
        place-items: center;
        padding: 8px 12px;
        border: 1px solid var(--line, #dedede);
        background: #fff;
        font-size: 13px;
        line-height: 1.25;
        text-align: center;
        word-break: keep-all;
    }

    .website-category-list a.is-current {
        border-color: var(--light-gold, #ffd9a6);
    }

    .website-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 14px;
        padding-bottom: 14px;
    }

    .website-search-form {
        display: grid;
        grid-template-columns: 1fr 76px;
        gap: 8px;
        width: 100%;
    }

    .website-search-form input {
        height: 42px;
    }

    .website-search-form button {
        height: 42px;
        padding: 0 10px;
    }

    .website-list h2,
    .website-list h3 {
        font-size: 18px;
        line-height: 1.45;
    }

    .website-list li {
        margin: 0 0 12px;
        padding: 14px;
        border: 1px solid #eeeeee;
        background: #fff;
    }

    .website-list li:last-child {
        margin-bottom: 0;
        border-bottom: 1px solid #eeeeee;
    }

    .website-list p {
        margin: 6px 0 0;
        font-size: 14px;
        line-height: 1.7;
    }

    .website-meta {
        display: block;
        line-height: 1.6;
    }

    .website-richtext {
        overflow-x: hidden;
        font-size: 15px;
        line-height: 1.82;
    }

    .website-richtext p,
    .website-richtext div,
    .website-richtext section,
    .website-richtext article {
        max-width: 100%;
    }

    .website-richtext p {
        margin: 0 0 12px;
    }

    .website-richtext h1,
    .website-richtext h2,
    .website-richtext h3,
    .website-richtext h4,
    .website-richtext h5,
    .website-richtext h6 {
        margin: 18px 0 10px;
        color: var(--dark, #332c2b);
        line-height: 1.35;
        word-break: break-word;
    }

    .website-richtext h1 {
        font-size: 24px;
    }

    .website-richtext h2 {
        font-size: 22px;
    }

    .website-richtext h3 {
        font-size: 20px;
    }

    .website-richtext h4,
    .website-richtext h5,
    .website-richtext h6 {
        font-size: 18px;
    }

    .website-richtext img {
        width: auto !important;
        max-width: 100% !important;
        height: auto !important;
        margin-right: auto;
        margin-left: auto;
    }

    .website-richtext video,
    .website-richtext iframe,
    .website-richtext embed,
    .website-richtext object {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
    }

    .website-richtext iframe,
    .website-richtext video {
        aspect-ratio: 16 / 9;
        height: auto !important;
    }

    .website-richtext table {
        display: block;
        width: 100% !important;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .website-richtext th,
    .website-richtext td {
        min-width: 88px;
        padding: 8px;
        border: 1px solid var(--line, #dedede);
        white-space: normal;
        word-break: break-word;
    }

    .website-richtext ul,
    .website-richtext ol {
        margin: 0 0 12px;
        padding-left: 20px;
    }

    .website-richtext blockquote {
        margin: 14px 0;
        padding: 10px 12px;
        border-left: 4px solid var(--light-gold, #ffd9a6);
        background: #fffaf3;
    }

    .website-richtext a {
        word-break: break-all;
    }

    .doctor-info-grid {
        border: 0;
        gap: 10px;
        background: transparent;
    }

    .doctor-info-grid .website-card {
        min-height: 0;
        padding: 14px;
        border: 1px solid #eeeeee;
    }

    .doctor-info-grid .website-card:nth-child(odd),
    .doctor-info-grid .website-card:nth-child(n+3) {
        border: 1px solid #eeeeee;
    }

    .doctor-info-grid .website-card h2 {
        margin-bottom: 8px;
        font-size: 17px;
    }

    .website-doctor-head {
        grid-template-columns: 84px 1fr;
        gap: 14px;
    }

    .website-avatar {
        width: 84px;
        height: 92px;
        font-size: 28px;
    }

    .website-pagination {
        display: grid;
        grid-template-columns: 82px minmax(0, 1fr) 82px;
        align-items: center;
        gap: 8px;
    }

    .website-pagination a {
        display: grid;
        min-width: 0;
        min-height: 42px;
        place-items: center;
        padding: 8px 10px;
        text-align: center;
    }

    .website-pagination .website-meta {
        text-align: center;
    }
}
