/* PD Toolkit chrome — Beta tag, feedback link, locked state.
   Tool-internal styles are inlined from each tool's source HTML and emitted via wp_head. */

/* The theme sets #page { padding-top: 50px } site-wide for breathing room below the nav.
   Toolkit pages want the chrome bar flush against the WP header, so undo that here only. */
body.pd-toolkit-page #page {
    padding-top: 0 !important;
}

body.pd-toolkit-page:has(#pd-toolkit-root .pd-toolkit-body .modal:not(.hidden)) #page,
body.pd-toolkit-page:has(#pd-toolkit-root .pd-toolkit-body .modal:not(.hidden)) .site-content {
    position: relative;
    z-index: 100001;
}

#pd-toolkit-root {
    --pd-toolkit-body-top: 188px;
    background: #FEFCEE;
}

body.admin-bar #pd-toolkit-root {
    --pd-toolkit-body-top: 220px;
}

#pd-toolkit-root .pd-toolkit-chrome {
    background: #FEF7D8;
    border-bottom: 0.8px solid #E5DCB5;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 13px;
}

.pd-toolkit-beta {
    background: #282828;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 50px;
}

#pd-toolkit-root .pd-toolkit-title {
    font-family: "Lora", Georgia, serif;
    font-size: 15px;
    color: #282828;
}

#pd-toolkit-root .pd-toolkit-feedback {
    margin-left: auto;
    color: #555050;
    text-decoration: underline;
    font-size: 12px;
}

#pd-toolkit-root .pd-toolkit-feedback:hover {
    color: #282828;
}

#pd-toolkit-root .pd-toolkit-body {
    /* The tool's own .layout / .sidebar / .main render here. */
}

#trial-countdown-banner .pd-toolkit-trial-plans {
    display: inline-block;
    margin-right: 12px;
    color: #282828;
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-decoration: underline;
}

#trial-countdown-banner .pd-toolkit-trial-plans:hover {
    color: #282828;
    opacity: 0.8;
}

html.pd-toolkit-article-is-open {
    overflow: hidden;
}

.pd-toolkit-article-overlay {
    align-items: flex-start;
    background: rgba(40, 40, 40, 0.55);
    display: flex;
    inset: 0;
    justify-content: center;
    opacity: 0;
    overflow-y: scroll;
    pointer-events: none;
    position: fixed;
    scrollbar-gutter: stable;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    visibility: hidden;
    z-index: 100000;
}

.pd-toolkit-article-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.pd-toolkit-article-shell {
    background: #FEFCEE;
    color: #282828;
    font-family: "DM Sans", system-ui, sans-serif;
    margin: 0;
    max-width: 840px;
    min-height: 100vh;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.24s ease, transform 0.24s ease;
    width: 100%;
}

.pd-toolkit-article-overlay.is-open .pd-toolkit-article-shell {
    opacity: 1;
    transform: translateY(0);
}

.pd-toolkit-article-topbar {
    align-items: center;
    background: #FEFCEE;
    border-bottom: 0.8px solid #E5DCB5;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 12px 32px;
    position: sticky;
    top: 0;
    z-index: 2;
}

.pd-toolkit-article-crumb {
    align-items: center;
    color: #555050;
    display: flex;
    font-size: 12px;
    font-weight: 500;
    gap: 8px;
    min-width: 0;
}

.pd-toolkit-article-crumb span:last-child {
    color: #282828;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pd-toolkit-article-actions {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

.pd-toolkit-article-open {
    color: #555050;
    font-size: 12px;
    text-decoration: underline;
}

.pd-toolkit-article-close {
    align-items: center;
    background: transparent;
    border: 0.8px solid #E5DCB5;
    border-radius: 8px;
    color: #555050;
    cursor: pointer;
    display: inline-flex;
    font-size: 22px;
    height: 34px;
    justify-content: center;
    line-height: 1;
    padding: 0 0 2px;
    width: 34px;
}

.pd-toolkit-article-close:hover {
    background: #FEF7D8;
    color: #282828;
}

.pd-toolkit-article-body {
    margin: 0 auto;
    max-width: 680px;
    padding: 32px 32px 80px;
}

.pd-toolkit-article-tag {
    background: #D8E8F5;
    border: 0.8px solid #9DC1DC;
    border-radius: 50px;
    color: #1B3F6A;
    display: inline-block;
    font-family: "Outfit", system-ui, sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 18px;
    padding: 4px 10px;
    text-transform: uppercase;
}

.pd-toolkit-article-body h1 {
    color: #282828;
    font-family: "Lora", Georgia, serif;
    font-size: 36px;
    font-weight: 500;
    line-height: 1.18;
    margin: 0 0 14px;
}

.pd-toolkit-article-dek {
    color: #555050;
    font-family: "Lora", Georgia, serif;
    font-size: 18px;
    font-style: italic;
    line-height: 1.5;
    margin: 0 0 22px;
}

.pd-toolkit-article-dek::first-letter {
    color: #1B3F6A;
    font-family: "Lora", Georgia, serif;
    font-size: 48px;
    font-weight: 500;
    line-height: 0.9;
    padding-right: 3px;
    vertical-align: text-bottom;
}

.pd-toolkit-article-dek--plain::first-letter {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    padding-right: 0;
    vertical-align: baseline;
}

.pd-toolkit-article-byline {
    align-items: center;
    border-bottom: 0.8px solid #E5DCB5;
    border-top: 0.8px solid #E5DCB5;
    color: #555050;
    display: flex;
    font-size: 13px;
    gap: 12px;
    margin-bottom: 28px;
    padding: 14px 0;
}

.pd-toolkit-article-avatar {
    align-items: center;
    background: #1B3F6A;
    border-radius: 50%;
    color: #FFFFFF;
    display: flex;
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 500;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.pd-toolkit-article-author {
    color: #282828;
    font-weight: 500;
}

.pd-toolkit-article-meta {
    color: #888480;
    font-size: 12px;
    margin-left: auto;
    text-align: right;
}

.pd-toolkit-article-hero {
    margin: 0 0 28px;
}

.pd-toolkit-article-hero img {
    border-radius: 8px;
    display: block;
    height: auto;
    width: 100%;
}

.pd-toolkit-article-content figure {
    margin: 28px 0;
}

.pd-toolkit-article-content figure img,
.pd-toolkit-article-content .wp-block-image img {
    display: block;
    height: auto;
    max-width: 100%;
}

.pd-toolkit-article-content figcaption,
.pd-toolkit-article-content .wp-element-caption,
.pd-toolkit-article-content .wp-caption-text,
.pd-toolkit-article-content .captioned-image-container small {
    color: #282828;
    display: block;
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 10px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.4;
    margin: 8px 0 0;
    text-align: left;
}

.pd-toolkit-article-content figcaption strong,
.pd-toolkit-article-content .wp-element-caption strong,
.pd-toolkit-article-content .wp-caption-text strong {
    font-weight: 400;
}

.pd-toolkit-article-content p,
.pd-toolkit-article-content li {
    color: #282828;
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.65;
}

.pd-toolkit-article-content p {
    margin: 0 0 18px;
}

.pd-toolkit-article-content blockquote.wp-block-quote:first-child {
    background: #FCEEA9;
    border: 0;
    color: #1A1A1A;
    font-family: "Lora", Georgia, serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.32;
    margin: 0 0 50px;
    padding: 25px 30px 30px;
    position: relative;
}

.pd-toolkit-article-content blockquote.wp-block-quote:first-child::before {
    color: #000000;
    content: "\201C";
    font-family: Arial, sans-serif;
    font-size: 28px;
    left: 10px;
    position: absolute;
    top: 18px;
}

.pd-toolkit-article-content blockquote.wp-block-quote:first-child::after {
    bottom: 40px;
    color: #000000;
    content: "\201E";
    font-family: Arial, sans-serif;
    font-size: 28px;
    position: absolute;
    right: 10px;
}

.pd-toolkit-article-content blockquote.wp-block-quote:first-child p {
    color: #1A1A1A;
    font-family: "Lora", Georgia, serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.32;
    margin: 0;
}

.pd-toolkit-article-content blockquote.wp-block-quote:first-child cite {
    background: #FAE57A;
    bottom: -30px;
    color: #1A1A1A;
    display: block;
    font-family: "Lora", Georgia, serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    left: 0;
    line-height: 1.5;
    padding: 5px 20px;
    position: absolute;
    right: 0;
    text-align: left;
    width: 100%;
}

.pd-toolkit-article-content h2 {
    color: #282828;
    font-family: "Lora", Georgia, serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.25;
    margin: 34px 0 14px;
}

.pd-toolkit-article-content h3 {
    color: #555050;
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin: 24px 0 10px;
    text-transform: uppercase;
}

.pd-toolkit-article-content ul,
.pd-toolkit-article-content ol {
    margin: 0 0 20px 22px;
}

.pd-toolkit-article-content a:not(.btn):not(.wp-block-button__link) {
    color: #1B3F6A;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pd-toolkit-article-content a.btn,
.pd-toolkit-article-content .wp-block-button__link {
    align-items: center;
    background: transparent;
    border: 2px solid #282828;
    border-radius: 999px;
    color: #282828;
    display: inline-flex;
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 16px;
    font-weight: 400;
    justify-content: center;
    line-height: 1.2;
    min-height: 56px;
    padding: 0 26px;
    text-decoration: none;
    transform: none;
    transition: none;
}

.pd-toolkit-article-content a.btn:hover,
.pd-toolkit-article-content .wp-block-button__link:hover {
    background: transparent;
    border-color: #282828;
    color: #282828;
    text-decoration: none;
    transform: none;
}

.pd-toolkit-article-content .wp-block-button,
.pd-toolkit-article-content .wp-block-buttons {
    text-align: center;
}

.pd-toolkit-article-footer {
    border-top: 0.8px solid #E5DCB5;
    margin-top: 48px;
    padding-top: 32px;
}

.pd-toolkit-article-footer-heading {
    color: #555050;
    font-family: "Outfit", system-ui, sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 14px;
    text-transform: uppercase;
}

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

.pd-toolkit-related-card {
    background: #FFFFFF;
    border: 0.8px solid #E5DCB5;
    border-radius: 8px;
    color: inherit;
    display: block;
    padding: 14px 16px;
    text-decoration: none;
    transition: border-color 0.12s, transform 0.12s;
}

.pd-toolkit-related-card:hover {
    border-color: #9DC1DC;
    color: inherit;
    text-decoration: none;
    transform: translateY(-1px);
}

.pd-toolkit-related-eyebrow {
    color: #1B3F6A;
    font-family: "Outfit", system-ui, sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.pd-toolkit-related-title {
    color: #282828;
    font-family: "Lora", Georgia, serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 6px;
}

.pd-toolkit-related-meta {
    color: #888480;
    font-size: 11px;
}

.pd-toolkit-return-cta {
    align-items: center;
    background: #D8E8F5;
    border: 0.8px solid #9DC1DC;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    margin-top: 32px;
    padding: 18px 22px;
}

.pd-toolkit-return-copy {
    color: #1B3F6A;
    font-size: 13px;
    font-weight: 500;
}

.pd-toolkit-return-copy small {
    color: #555050;
    display: block;
    font-size: 12px;
    font-weight: 400;
    margin-top: 3px;
}

.pd-toolkit-article-return {
    background: #1B3F6A;
    border: 0;
    border-radius: 50px;
    color: #FFFFFF;
    cursor: pointer;
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 13px;
    font-weight: 500;
    padding: 9px 20px;
    white-space: nowrap;
}

.pd-toolkit-article-skeleton {
    min-height: calc(100vh - 88px);
}

.pd-toolkit-skeleton-line,
.pd-toolkit-skeleton-avatar,
.pd-toolkit-skeleton-image {
    animation: pd-toolkit-skeleton-pulse 1.25s ease-in-out infinite;
    background: linear-gradient(90deg, #F3EBCB 0%, #FFF9DF 48%, #F3EBCB 100%);
    background-size: 220% 100%;
    border-radius: 8px;
}

.pd-toolkit-skeleton-line {
    height: 16px;
    margin-bottom: 12px;
    width: 100%;
}

.pd-toolkit-skeleton-tag {
    border-radius: 50px;
    height: 24px;
    margin-bottom: 20px;
    width: 120px;
}

.pd-toolkit-skeleton-title {
    height: 38px;
    margin-bottom: 10px;
}

.pd-toolkit-skeleton-title-short {
    width: 68%;
}

.pd-toolkit-skeleton-dek {
    height: 24px;
    margin: 20px 0 22px;
    width: 82%;
}

.pd-toolkit-skeleton-byline {
    align-items: center;
    border-bottom: 0.8px solid #E5DCB5;
    border-top: 0.8px solid #E5DCB5;
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
    padding: 14px 0;
}

.pd-toolkit-skeleton-avatar {
    border-radius: 50%;
    flex: 0 0 auto;
    height: 36px;
    width: 36px;
}

.pd-toolkit-skeleton-author {
    margin-bottom: 0;
    width: 140px;
}

.pd-toolkit-skeleton-meta {
    margin: 0 0 0 auto;
    width: 180px;
}

.pd-toolkit-skeleton-image {
    aspect-ratio: 16 / 9;
    margin-bottom: 28px;
    width: 100%;
}

.pd-toolkit-skeleton-copy-short {
    width: 74%;
}

@keyframes pd-toolkit-skeleton-pulse {
    0% {
        background-position: 120% 0;
    }

    100% {
        background-position: -120% 0;
    }
}

@media (max-width: 820px) {
    .pd-toolkit-article-topbar {
        padding: 10px 16px;
    }

    .pd-toolkit-article-body {
        padding: 24px 18px 60px;
    }

    .pd-toolkit-article-body h1 {
        font-size: 28px;
    }

    .pd-toolkit-article-dek {
        font-size: 16px;
    }

    .pd-toolkit-article-byline {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .pd-toolkit-article-meta {
        flex-basis: 100%;
        margin-left: 48px;
        text-align: left;
    }

    .pd-toolkit-article-content p,
    .pd-toolkit-article-content li {
        font-size: 16px;
    }

    .pd-toolkit-related-grid {
        grid-template-columns: 1fr;
    }
}

/* Hub landing */
.pd-toolkit-hub-strip {
    background: #FFFCEE;
    border-bottom: 0.8px solid #E5DCB5;
    padding: 16px max(32px, calc((100% - 900px) / 2 + 32px)) 0;
}

.pd-toolkit-hub-strip-label {
    color: #888480;
    font-family: "Outfit", system-ui, sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.pd-toolkit-hub-strip-row {
    padding-bottom: 16px;
}

.pd-toolkit-hub-all {
    background: #282828;
    border: 0.8px solid #282828;
    border-radius: 50px;
    color: #fff;
    display: inline-flex;
    font-family: "Outfit", system-ui, sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    padding: 7px 14px;
}

.pd-toolkit-hub {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 32px 80px;
    font-family: "DM Sans", system-ui, sans-serif;
}

.pd-toolkit-hub-header {
    margin-bottom: 16px;
    padding: 28px 0 4px;
}

.pd-toolkit-hub-header h1 {
    color: #282828;
    font-family: "Lora", Georgia, serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 3px;
}

.pd-toolkit-hub-header p:last-child {
    color: #555050;
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
    max-width: 520px;
}

.pd-toolkit-hub-section {
    margin-top: 28px;
}

.pd-toolkit-hub-section-header {
    align-items: center;
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.pd-toolkit-hub-section-header h2 {
    color: #888480;
    font-family: "Outfit", system-ui, sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin: 0;
    text-transform: uppercase;
    white-space: nowrap;
}

.pd-toolkit-hub-section-dot {
    background: #1B3F6A;
    border-radius: 50%;
    display: block;
    height: 7px;
    width: 7px;
}

.pd-toolkit-hub-section-family .pd-toolkit-hub-section-dot {
    background: #2B5B3F;
}

.pd-toolkit-hub-section-line {
    background: #E5DCB5;
    display: block;
    flex: 1;
    height: 1px;
}

.pd-toolkit-hub-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pd-toolkit-hub-card {
    align-items: flex-start;
    background: #fff;
    border: 0.8px solid #E5DCB5;
    border-radius: 24px;
    color: inherit;
    display: flex;
    gap: 14px;
    padding: 18px 20px;
    text-decoration: none;
    transition: border-color 0.15s, transform 0.1s;
}

.pd-toolkit-hub-card:hover {
    border-color: #C8BF9A;
    color: inherit;
    text-decoration: none;
    transform: translateY(-1px);
}

.pd-toolkit-hub-card-featured {
    grid-column: span 2;
}

.pd-toolkit-hub-card-featured-top {
    background: #FEFCEE;
    border-color: #282828;
    border-radius: 22px;
    margin: 0 0 28px;
    min-height: 154px;
    padding: 20px 22px;
    position: relative;
}

.pd-toolkit-hub-card-featured-top:hover {
    border-color: #282828;
}

.pd-toolkit-hub-icon {
    background: #D8E8F5;
    border: 0.8px solid #9DC1DC;
    align-items: center;
    border-radius: 10px;
    color: #1B3F6A;
    display: flex;
    flex: 0 0 auto;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.pd-toolkit-hub-icon svg {
    display: block;
    pointer-events: none;
}

.pd-toolkit-hub-section-family .pd-toolkit-hub-icon {
    background: #D6EAE0;
    border-color: #9ECAB4;
    color: #2B5B3F;
}

.pd-toolkit-hub-section-dinner .pd-toolkit-hub-section-dot {
    background: #C17817;
}

.pd-toolkit-hub-card-dinner-planner .pd-toolkit-hub-icon {
    background: #FEF7D8;
    border-color: #E5DCB5;
    color: #C17817;
}

.pd-toolkit-hub-feature-eyebrow {
    color: #282828;
    display: block;
    font-family: "Outfit", system-ui, sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.pd-toolkit-hub-feature-eyebrow::before {
    content: "★";
    font-size: 10px;
    margin-right: 6px;
}

.pd-toolkit-hub-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.pd-toolkit-hub-card-title {
    color: #282828;
    display: block;
    font-family: "Lora", Georgia, serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.25;
    margin-bottom: 4px;
}

.pd-toolkit-hub-card-description {
    color: #555050;
    display: block;
    font-size: 13px;
    line-height: 1.5;
}

.pd-toolkit-hub-card-tag {
    align-self: flex-start;
    background: #D8E8F5;
    border: 0.8px solid #9DC1DC;
    border-radius: 50px;
    color: #1B3F6A;
    display: inline-flex;
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
    margin-top: 9px;
    padding: 3px 10px;
}

.pd-toolkit-hub-section-family .pd-toolkit-hub-card-tag {
    background: #D6EAE0;
    border-color: #9ECAB4;
    color: #2B5B3F;
}

.pd-toolkit-hub-card-dinner-planner .pd-toolkit-hub-card-tag {
    background: #FEF7D8;
    border-color: #E5DCB5;
    color: #C17817;
}

.pd-toolkit-hub-card-featured-top .pd-toolkit-hub-card-tag {
    background: #FEFCEE;
    border-color: #282828;
    color: #282828;
}

.pd-toolkit-hub-card-arrow {
    color: #888480;
    display: flex;
    flex: 0 0 auto;
    margin-left: auto;
    margin-top: 2px;
}

.pd-toolkit-hub-card-arrow svg {
    display: block;
}

/* Hub profile strip */
.pd-toolkit-hub-strip-profile-wrap {
    margin: 0 -14px;
    padding: 0 14px;
    position: relative;
}

.pd-toolkit-hub-profile-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 18px;
    padding-top: 2px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.pd-toolkit-hub-profile-row::-webkit-scrollbar {
    display: none;
}

button.pd-hub-profile-card,
.pd-hub-profile-card {
    -webkit-appearance: none;
    appearance: none;
    align-items: center;
    background: #fff !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    color: inherit !important;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font-family: "DM Sans", system-ui, sans-serif !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    gap: 12px;
    min-width: 200px;
    outline: none;
    padding: 14px 16px !important;
    position: relative;
    text-align: left;
    transition: border-color 0.13s, transform 0.1s;
}

button.pd-hub-profile-card-empty,
.pd-hub-profile-card-empty {
    background: transparent !important;
    border: 1.5px dashed #D5CCAA !important;
}

button.pd-hub-profile-card-empty:hover,
.pd-hub-profile-card-empty:hover {
    border-color: #B8AF88 !important;
    transform: translateY(-1px);
}

button.pd-hub-profile-card-filled,
.pd-hub-profile-card-filled {
    border: 0.8px solid #E5DCB5 !important;
}

button.pd-hub-profile-card-filled:hover,
.pd-hub-profile-card-filled:hover {
    border-color: #C8BF9A !important;
    transform: translateY(-1px);
}

/* Scroll arrows */
.pd-hub-profile-scroll-btn {
    -webkit-appearance: none;
    appearance: none;
    align-items: center;
    background: #fff !important;
    border: 0.8px solid #D5CCAA !important;
    border-radius: 50% !important;
    box-shadow: 0 1px 8px rgba(0,0,0,0.10) !important;
    color: #555050 !important;
    cursor: pointer;
    display: flex;
    font-size: 20px !important;
    font-weight: 400 !important;
    height: 34px;
    justify-content: center;
    line-height: 1;
    padding: 0 0 2px !important;
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    transition: opacity 0.15s, border-color 0.12s, box-shadow 0.12s;
    width: 34px;
    z-index: 3;
}

.pd-hub-profile-scroll-btn-right {
    right: -14px;
}

.pd-hub-profile-scroll-btn-left {
    left: -14px;
}

.pd-hub-profile-scroll-btn:hover {
    border-color: #9DC1DC !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.14) !important;
    color: #1B3F6A !important;
}

.pd-hub-profile-scroll-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

.pd-hub-profile-card-icon {
    align-items: center;
    background: #F3EDD8;
    border: 0.8px solid #E5DCB5;
    border-radius: 50%;
    display: inline-flex;
    flex: 0 0 auto;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.pd-hub-profile-card-icon-empty {
    color: #B0AA98;
    font-size: 17px;
    line-height: 1;
}

.pd-hub-profile-card-icon-pregnancy {
    background: #FDE8F0;
    border-color: #F0C0D5;
    color: #C06080;
    font-size: 17px;
    line-height: 1;
}

.pd-hub-profile-card-icon-glyph {
    font-size: 16px;
    line-height: 1;
}

.pd-hub-profile-card-avatar {
    align-items: center;
    border: 0.8px solid #E5DCB5;
    border-radius: 50%;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 15px;
    font-weight: 600;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.pd-hub-profile-card-empty-body,
.pd-hub-profile-card-filled-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.pd-hub-profile-card-title {
    color: #282828;
    font-family: "Lora", Georgia, serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
    white-space: nowrap;
}

.pd-hub-profile-card-sub {
    color: #888480;
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
}

.pd-hub-profile-card-edit-label {
    color: #9DC1DC;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.03em;
    margin-top: 5px;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pd-hub-profile-card-filled:hover .pd-hub-profile-card-edit-label {
    color: #1B3F6A;
}

/* Hub modals */
.pd-hub-modal-overlay {
    align-items: center;
    background: rgba(40, 40, 40, 0.5);
    display: flex;
    inset: 0;
    justify-content: center;
    opacity: 0;
    padding: 24px 16px;
    pointer-events: none;
    position: fixed;
    transition: opacity 0.18s ease;
    visibility: hidden;
    z-index: 100002;
}

.pd-hub-modal-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.pd-hub-modal-shell {
    background: #FEFCEE;
    border: 0.8px solid #E5DCB5;
    border-radius: 20px;
    font-family: "DM Sans", system-ui, sans-serif;
    max-width: 420px;
    opacity: 0;
    overflow: hidden;
    transform: translateY(12px) scale(0.98);
    transition: opacity 0.2s ease, transform 0.2s ease;
    width: 100%;
}

.pd-hub-modal-overlay.is-open .pd-hub-modal-shell {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.pd-hub-modal-header {
    align-items: center;
    border-bottom: 0.8px solid #E5DCB5;
    display: flex;
    justify-content: space-between;
    padding: 16px 20px;
}

.pd-hub-modal-title {
    color: #282828;
    font-family: "Lora", Georgia, serif;
    font-size: 17px;
    font-weight: 400;
}

.pd-hub-modal-close {
    align-items: center;
    background: transparent;
    border: 0.8px solid #E5DCB5;
    border-radius: 8px;
    color: #555050;
    cursor: pointer;
    display: inline-flex;
    font-size: 20px;
    height: 32px;
    justify-content: center;
    line-height: 1;
    padding: 0 0 2px;
    width: 32px;
}

.pd-hub-modal-close:hover {
    background: #FEF7D8;
    color: #282828;
}

.pd-hub-modal-body {
    padding: 20px 20px 4px;
}

.pd-hub-modal-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.pd-hub-modal-label {
    color: #555050;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.03em;
}

.pd-hub-modal-input {
    background: #fff;
    border: 0.8px solid #D5CCAA;
    border-radius: 8px;
    box-sizing: border-box;
    color: #282828;
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 14px;
    outline: none;
    padding: 10px 12px;
    transition: border-color 0.12s;
    width: 100%;
}

.pd-hub-modal-input:focus {
    border-color: #9DC1DC;
}

.pd-hub-modal-checkbox-row {
    align-items: center;
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.pd-hub-modal-checkbox-label {
    color: #282828;
    cursor: pointer;
    font-size: 14px;
}

.pd-hub-modal-error {
    color: #B03A2E;
    font-size: 13px;
    margin-bottom: 8px;
    margin-top: 4px;
}

.pd-hub-modal-error.hidden {
    display: none;
}

.pd-hub-modal-footer {
    align-items: center;
    border-top: 0.8px solid #E5DCB5;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    padding: 14px 20px;
}

.pd-hub-modal-footer-right {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.pd-hub-modal-save {
    background: #282828;
    border: 0;
    border-radius: 50px;
    color: #fff;
    cursor: pointer;
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 13px;
    font-weight: 500;
    padding: 9px 20px;
    transition: opacity 0.12s;
    white-space: nowrap;
}

.pd-hub-modal-save:hover {
    opacity: 0.85;
}

.pd-hub-modal-remove {
    background: transparent;
    border: 0;
    color: #B03A2E;
    cursor: pointer;
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 13px;
    padding: 0;
    text-decoration: underline;
}

.pd-hub-modal-remove:hover {
    color: #8B2B21;
}

@media (max-width: 700px) {
    .pd-toolkit-hub-strip {
        padding: 12px 16px 0;
    }

    .pd-toolkit-hub {
        padding: 0 16px 60px;
    }

    .pd-toolkit-hub-header {
        padding-top: 24px;
    }

    .pd-toolkit-hub-grid {
        grid-template-columns: 1fr;
    }

    .pd-toolkit-hub-card-featured {
        grid-column: span 1;
    }

    .pd-toolkit-hub-card {
        padding: 16px;
    }
}

/* Placeholders (topnav, btn-petey, btn-hub-return, sidebar wrappers) are physically removed
   from each tool's HTML during sync (bin/sync-toolkit.sh). No CSS hide needed.
   If upstream renames a class, the smoke test in the sync script fails before the change
   is committed — see bin/sync-toolkit.sh smoke_test(). */

/* With the prototype's sidebar gone, the tool's <main> (capped at ~900px via inline style
   for readability) would sit flush-left and leave dead space on the right. Center it inside
   the flex layout — keeps the source's tuned width intact, no width override needed. */
#pd-toolkit-root .layout {
    justify-content: center;
}

/* Locked-state */
#pd-toolkit-locked {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FEFCEE;
    padding: 60px 20px;
}

.pd-toolkit-locked-card {
    background: #fff;
    border: 0.8px solid #E5DCB5;
    border-radius: 24px;
    padding: 40px;
    max-width: 520px;
    text-align: center;
    font-family: "DM Sans", system-ui, sans-serif;
}

.pd-toolkit-locked-card .pd-toolkit-beta {
    display: inline-block;
    margin-bottom: 16px;
}

.pd-toolkit-locked-card h1 {
    font-family: "Lora", Georgia, serif;
    font-size: 26px;
    font-weight: 400;
    color: #282828;
    margin: 0 0 12px;
    line-height: 1.3;
}

.pd-toolkit-locked-card p {
    color: #555050;
    margin: 0 0 24px;
    font-size: 15px;
    line-height: 1.6;
}

.pd-toolkit-cta-row {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pd-toolkit-cta {
    display: block;
    background: #282828;
    color: #fff;
    padding: 12px 28px;
    border-radius: 4px;
    border: 1px solid #282828;
    text-decoration: none;
    font-size: 14px;
    font-family: "DM Sans", system-ui, sans-serif;
    font-weight: 600;
    line-height: 1.35;
    min-width: 180px;
    text-align: center;
}

.pd-toolkit-cta-secondary {
    background: #fff;
    color: #282828;
}

.pd-toolkit-cta:hover {
    opacity: 0.85;
    color: #fff;
}

.pd-toolkit-cta-secondary:hover {
    background: #FEFCEE;
    color: #282828;
    opacity: 1;
}

.pd-toolkit-secondary {
    display: block;
    margin-top: 14px;
    color: #555050;
    font-size: 13px;
    text-decoration: underline;
}
