/*
Theme Name: theRestart
Theme URI: https://the-restart.co
Author: Andrew Neher
Author URI: https://the-restart.co
Description: Gift registry theme for people restarting after a divorce.
Version: 1.2.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: therestart
Tags: block-patterns, block-styles, full-site-editing, custom-colors, custom-logo, custom-menu
*/

/* ── Global ── */
*, *::before, *::after { box-sizing: border-box; }

body {
    background-color: var(--wp--preset--color--mint);
    color: var(--wp--preset--color--dark);
    font-family: var(--wp--preset--font-family--libre-caslon-text);
}

/* ── Header ── */
.site-branding {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
}

.site-logo-lockup {
    display: block;
    height: 50px;
    width: auto;
}

.site-logo-mark {
    display: none;
    height: 41px;
    width: auto;
}

@media (max-width: 600px) {
    .site-logo-lockup { display: none; }
    .site-logo-mark { display: block; }
}

.site-header__bar {
    align-items: baseline !important;
    flex-wrap: nowrap !important;
    max-width: 1200px !important;
    padding-inline: clamp(16px, 4vw, 40px);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.site-header .wp-block-site-title a {
    color: var(--wp--preset--color--primary) !important;
    text-decoration: none;
    font-family: var(--wp--preset--font-family--libre-caslon-display);
    font-weight: 700;
    font-size: 32px;
    letter-spacing: 0.06em;
    text-transform: none;
}

.site-header .wp-block-navigation__container {
    flex-wrap: nowrap !important;
}

.site-header .wp-block-navigation-item__content {
    padding-inline: 0.5rem !important;
}

.site-header .wp-block-navigation a {
    color: #ffffff !important;
    text-decoration: none;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: var(--wp--preset--font-family--montserrat);
    font-size: 13px;
    font-weight: 700;
    transition: color 0.2s;
    /* Keep each nav label on a single line at tablet widths (~768px) where
       the desktop nav is still showing but space is tight. */
    white-space: nowrap;
}

.site-header .wp-block-navigation a:hover,
.site-header .wp-block-navigation a.is-current,
.site-header .wp-block-navigation a[aria-current="page"] {
    color: var(--wp--preset--color--primary) !important;
}

.site-header .wp-block-navigation a.is-current,
.site-header .wp-block-navigation a[aria-current="page"] {
    border-bottom: 2px solid var(--wp--preset--color--primary);
    padding-bottom: 2px;
}

.site-header .wp-block-navigation__responsive-container-open,
.site-header .wp-block-navigation__responsive-container-close {
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
}

/* ── Footer ── */
.site-footer__brand {
    display: inline-block;
    line-height: 0;
    text-decoration: none;
}

/* Render the logo via CSS mask so the multi-color SVG becomes a single-color
   silhouette tinted to match the footer body text. Sized at ~2/3 of the
   header logo for visual hierarchy: brand reads as a quiet credit, not a
   second header. */
.site-footer__logo {
    display: block;
    width: 198px;
    height: 45px;
    background-color: var(--wp--preset--color--mint);
    -webkit-mask: url('assets/logo-light.svg') left center / contain no-repeat;
            mask: url('assets/logo-light.svg') left center / contain no-repeat;
}

.site-footer .wp-block-navigation a {
    color: var(--wp--preset--color--mint) !important;
    text-decoration: none;
    font-family: var(--wp--preset--font-family--montserrat);
    font-size: 13px;
    transition: color 0.2s;
}

.site-footer .wp-block-navigation a:hover {
    color: var(--wp--preset--color--primary) !important;
}

/* ── Buttons ── */
.wp-block-button__link,
.wp-element-button {
    background-color: var(--wp--preset--color--primary);
    color: #ffffff !important;
    font-family: var(--wp--preset--font-family--montserrat);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 4px;
    border: none;
    transition: background-color 0.2s;
}

.wp-block-button__link:hover,
.wp-element-button:hover {
    background-color: var(--wp--preset--color--dark);
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--wp--preset--color--dark);
    line-height: 1.2;
}

h1 {
    font-family: var(--wp--preset--font-family--libre-caslon-display);
    font-weight: 400;
}

h2, h3, h4, h5, h6 {
    font-family: var(--wp--preset--font-family--montserrat);
}

a {
    color: var(--wp--preset--color--dark);
    transition: color 0.2s;
}

a:hover { color: var(--wp--preset--color--primary); }

/* ── Hero ── */
.hero-cover,
.hero-page {
    background-image: url('assets/hero-sunrise.png');
    background-size: cover;
    background-position: center top;
}

/* Per-page hero backgrounds. Each rule targets a wp:cover whose className
   matches one of these. The dark-dim overlay (has-background-dim-65) on
   the inner cover__background span sits on top, so the image reads through
   at ~35% — readable text + visible scenery. */
.hero-bg-articles { background-image: url('assets/background_images/kari-shea-JaWhDrtNlXw-unsplash-1024x683.jpg'); }
.hero-bg-favorites { background-image: url('assets/background_images/amy-humphries-vXMziXHXseo-unsplash-1024x739.jpg'); }
.hero-bg-gifts { background-image: url('assets/background_images/vitaly-gariev-ihyo6ih7Fro-unsplash-1024x576.jpg'); }
.hero-bg-registry-archive { background-image: url('assets/background_images/sunrise-mountains-scaled-1-1024x576.jpg'); }
.hero-bg-about { background-image: url('assets/background_images/mountaintop-819x1024.jpg'); }
.hero-bg-start { background-image: url('assets/background_images/sun-fog-full-scaled-1-768x1086.jpg'); }
.hero-bg-terms { background-image: url('assets/background_images/sky-bg-scaled-1-1024x683.jpg'); }
.hero-bg-privacy { background-image: url('assets/background_images/ocean-bg-scaled-1-1024x576.jpg'); }

[class*="hero-bg-"] {
    background-size: cover;
    background-position: center;
}

/* Mint body copy on the hero loses contrast where the photo is brightest.
   A subtle drop-shadow restores legibility without darkening the photo. */
.hero-cover p,
.hero-page p,
[class*="hero-bg-"] p {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* ── Registry pages ── */
.rr-page-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(20px, 4vw, 60px) clamp(16px, 4vw, 40px);
}

.rr-registry-grid {
    display: grid;
    /* auto-fit (vs auto-fill) collapses empty tracks so 2-card or 5-card rows
       fill the row instead of leaving a gap on the right. */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.rr-registry-card {
    display: flex;
    flex-direction: column;
}

.rr-registry-card .wp-block-post-excerpt {
    flex: 1;
}

.rr-item-row__thumb img {
    max-height: 60px;
    object-fit: contain;
}

/* My Account page */
.restart-my-account {
    max-width: 700px;
}

.restart-my-account__greeting {
    font-family: var(--wp--preset--font-family--libre-caslon-text);
    font-size: 18px;
    color: #193540;
    margin-bottom: 2rem;
}

.restart-my-account__nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.restart-my-account__nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    font-family: var(--wp--preset--font-family--montserrat);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #47b4b0;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid #c8e8d4;
    border-radius: 4px;
    background: #ffffff;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.restart-my-account__nav a:hover {
    color: #193540;
    background: #c8e8d4;
    border-color: #47b4b0;
}

.restart-my-account__edit-panel {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1.5px solid #e5eaea;
}

.restart-my-account__section-title {
    font-family: var(--wp--preset--font-family--libre-caslon-display);
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 400;
    color: #193540;
    margin-bottom: 1.5rem;
}

.restart-form__actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.restart-btn--ghost {
    background: transparent;
    color: #8a9ea0 !important;
    border: 1.5px solid #8a9ea0;
}

.restart-btn--ghost:hover {
    background: transparent;
    color: #193540 !important;
    border-color: #193540;
}

.restart-btn--danger {
    background-color: #c0392b;
    color: #fff !important;
}

.restart-btn--danger:hover {
    background-color: #96281b;
    color: #fff !important;
}

/* ── Account danger zone ────────────────────────────────────────────────── */
.restart-account-danger-zone {
    border: 1px solid #fad0cc;
    border-radius: 6px;
    overflow: hidden;
    margin-top: 1.5rem;
}
.restart-account-danger-zone__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
}
.restart-account-danger-zone__row + .restart-account-danger-zone__row {
    border-top: 1px solid #fad0cc;
}
.restart-account-danger-zone__row--delete {
    background: #fff8f8;
}
.restart-account-danger-zone__row strong {
    display: block;
    font-size: 14px;
    color: #193540;
    margin-bottom: 0.2rem;
}
.restart-account-danger-zone__row p {
    font-size: 13px;
    color: #8a9ea0;
    margin: 0;
}
.restart-account-delete-warning {
    color: #c0392b;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

/* ── Account modals (reuse contact-modal shape) ─────────────────────────── */
.restart-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.restart-modal[hidden] { display: none; }
.restart-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(25,53,64,0.5);
}
.restart-modal__dialog {
    position: relative;
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(25,53,64,0.18);
}
.restart-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: #8a9ea0;
    line-height: 1;
}
.restart-modal__close:hover { color: #193540; }
.restart-modal__title {
    font-family: var(--wp--preset--font-family--libre-caslon-display);
    font-size: clamp(20px, 2.5vw, 26px);
    font-weight: 400;
    color: #193540;
    margin: 0 0 1rem;
    padding-right: 2rem;
}

.restart-form__success {
    padding: 0.75rem 1rem;
    background: #f0fff8;
    border: 1.5px solid #47b4b0;
    border-radius: 3px;
    color: #1a7a70;
    font-family: var(--wp--preset--font-family--montserrat);
    font-size: 13px;
    margin-bottom: 1.5rem;
}

.restart-form__footer-link {
    margin-top: 1.25rem;
}

.restart-form__footer-link a {
    color: #47b4b0;
    text-decoration: underline;
}

/* My Registries */
.restart-my-registries__section {
    margin-bottom: 3rem;
}

.restart-my-registries__heading {
    font-family: var(--wp--preset--font-family--libre-caslon-display);
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 400;
    color: #193540;
    margin-bottom: 1.25rem;
}

.restart-my-registries__empty {
    color: #8a9ea0;
    font-family: var(--wp--preset--font-family--montserrat);
    font-size: 14px;
}

.restart-my-registries__empty a {
    color: #47b4b0;
    text-decoration: underline;
}

.restart-registry-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1.5px solid #e5eaea;
}

.restart-registry-list__item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid #e5eaea;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .restart-registry-list__item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

.restart-registry-list__title {
    font-family: var(--wp--preset--font-family--libre-caslon-text);
    font-size: 17px;
    color: #193540;
    text-decoration: none;
    flex: 1 1 auto;
}

.restart-registry-list__title:hover {
    color: #47b4b0;
}

.restart-registry-list__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.restart-registry-list__type,
.restart-registry-list__owner {
    font-family: var(--wp--preset--font-family--montserrat);
    font-size: 12px;
    color: #8a9ea0;
}

.restart-registry-list__status {
    font-family: var(--wp--preset--font-family--montserrat);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 3px;
}

.restart-registry-list__status--publish {
    background: #f0fff8;
    color: #1a7a70;
}

.restart-registry-list__status--private {
    background: #fff8e6;
    color: #a07a00;
}

.restart-registry-list__status--draft {
    background: #f4f4f4;
    color: #8a9ea0;
}

/* Footer */
/* All direct children (columns row, separator, copyright row) share the header
   bar's max-width + padding so the columns, the hr beneath them, and the
   copyright/Terms row at the bottom all line up at the same gutters at desktop
   widths. Without this override, the constrained layout caps direct children
   at theme.json's contentSize (780px) — narrower than the header. */
.site-footer.is-layout-constrained > * {
    max-width: 1200px !important;
    padding-inline: clamp(16px, 4vw, 40px);
    box-sizing: border-box;
    width: 100%;
}

.site-footer__columns {
    min-width: 0;
}

/* All three columns share equal width at desktop. Earlier the brand column
   was auto-width while Explore + Account were `flex: 1`, which left a
   narrow brand on the left and two large columns on the right — visually
   right-heavy. Equal flex restores the rhythm. */
@media (min-width: 601px) {
    .site-footer__columns > * {
        flex: 1 1 0;
        min-width: 0;
    }
}

@media (max-width: 600px) {
    .site-footer {
        padding-inline: var(--wp--preset--spacing--small);
    }
    .site-footer__columns {
        flex-direction: column !important;
        gap: 2rem;
    }
    .site-footer__columns > * {
        width: 100%;
    }
}

.site-footer .wp-block-navigation a {
    color: #9fd4b3;
    text-decoration: none;
    transition: color 0.15s ease;
}

.site-footer .wp-block-navigation a:hover {
    color: #47b4b0;
}

/* Header mobile overlay */
.site-header .wp-block-navigation__responsive-container.is-menu-open {
    background-color: #193540;
    padding: var(--wp--preset--spacing--medium);
}

.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a {
    font-family: var(--wp--preset--font-family--montserrat);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9fd4b3;
}

.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a:hover {
    color: #47b4b0;
}

/* Start a Registry */
.restart-login-prompt {
    text-align: center;
    padding: 3rem 0;
}

.restart-login-prompt p {
    font-family: var(--wp--preset--font-family--libre-caslon-text);
    font-size: 18px;
    color: #193540;
    margin-bottom: 1.5rem;
}

/* ── Button color convention ──
 * Two colors are used intentionally and consistently:
 * - GOLD (--wp--preset--color--primary, #ebd060): marketing/discovery CTAs.
 *   Used on the front page hero and call-to-action patterns ("Create a
 *   Registry", "Find a Registry"). These are aspirational, journey-starting
 *   actions and they sit on photo backgrounds where gold reads brightly.
 * - TEAL (--wp--preset--color--accent, #47b4b0): in-app action buttons.
 *   Login submit, profile save, registry create, purchase — all happen
 *   inside the app on plain backgrounds, where teal carries the brand
 *   identity without competing with photo content.
 *
 * Don't mix them: a "Submit" button on a marketing page and a "Submit"
 * button on /login both use teal. A "Get started" CTA on any page uses gold.
 */
.restart-btn {
    display: inline-block;
    background-color: var(--wp--preset--color--primary);
    color: #ffffff !important;
    font-family: var(--wp--preset--font-family--montserrat);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.restart-btn:hover {
    background-color: var(--wp--preset--color--dark);
    color: #ffffff !important;
}

.restart-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.restart-form {
    max-width: 560px;
}

.restart-form__group {
    margin-bottom: 1.5rem;
}

.restart-form__label {
    display: block;
    font-family: var(--wp--preset--font-family--montserrat);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #193540;
    margin-bottom: 0.4rem;
}

.restart-form__input,
.restart-form__select,
.restart-form__textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    font-family: var(--wp--preset--font-family--libre-caslon-text);
    font-size: 15px;
    color: #193540;
    background: #ffffff;
    border: 1.5px solid #8a9ea0;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.15s;
}

.restart-form__input:focus,
.restart-form__select:focus,
.restart-form__textarea:focus {
    border-color: #47b4b0;
}

.restart-form__textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.restart-form__hint {
    font-family: var(--wp--preset--font-family--montserrat);
    font-size: 12px;
    color: #8a9ea0;
    margin-top: 0.35rem;
    margin-bottom: 0;
}

.restart-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    margin-top: 0.25rem;
}

.restart-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.restart-toggle__track {
    flex-shrink: 0;
    width: 40px;
    height: 22px;
    background: #8a9ea0;
    border-radius: 11px;
    position: relative;
    transition: background-color 0.2s;
}

.restart-toggle__track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.2s;
}

.restart-toggle input:checked ~ .restart-toggle__track {
    background: #47b4b0;
}

.restart-toggle input:checked ~ .restart-toggle__track::after {
    transform: translateX(18px);
}

.restart-toggle__label {
    font-family: var(--wp--preset--font-family--libre-caslon-text);
    font-size: 15px;
    color: #193540;
}

.restart-form__error {
    padding: 0.75rem 1rem;
    background: #fff0f0;
    border: 1.5px solid #e07070;
    border-radius: 3px;
    color: #c0392b;
    font-family: var(--wp--preset--font-family--montserrat);
    font-size: 13px;
    margin-bottom: 1.5rem;
}

/* ── Pagination ── */
.wp-block-query-pagination,
.wp-block-comments-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.wp-block-query-pagination-numbers a,
.wp-block-query-pagination-numbers span,
.wp-block-query-pagination-previous a,
.wp-block-query-pagination-next a,
.wp-block-comments-pagination-previous a,
.wp-block-comments-pagination-next a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.6rem;
    font-family: var(--wp--preset--font-family--montserrat);
    font-size: 13px;
    font-weight: 700;
    color: #193540;
    text-decoration: none;
    border: 1.5px solid #9fd4b3;
    border-radius: 3px;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.wp-block-query-pagination-numbers a:hover,
.wp-block-query-pagination-previous a:hover,
.wp-block-query-pagination-next a:hover,
.wp-block-comments-pagination-previous a:hover,
.wp-block-comments-pagination-next a:hover {
    background-color: #47b4b0;
    border-color: #47b4b0;
    color: #ffffff;
}

.wp-block-query-pagination-numbers .current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.6rem;
    font-family: var(--wp--preset--font-family--montserrat);
    font-size: 13px;
    font-weight: 700;
    background-color: #193540;
    color: #ffffff;
    border: 1.5px solid #193540;
    border-radius: 3px;
}

/* ── Comments ── */
/* Section as a whole reads as a small footnote under the article body, not
   a second feature; constrained width + reduced inputs keep it compact. */
.wp-block-comments {
    max-width: 540px;
    margin-inline: auto;
    font-size: 13px;
}

.wp-block-comments .wp-block-comments-title {
    font-size: 16px !important;
}

.wp-block-post-comments-form label {
    display: block;
    font-family: var(--wp--preset--font-family--montserrat);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #193540;
    margin-bottom: 0.3rem;
    margin-top: 0.6rem;
}

.wp-block-post-comments-form input[type="text"],
.wp-block-post-comments-form input[type="email"],
.wp-block-post-comments-form input[type="url"],
.wp-block-post-comments-form textarea {
    width: 100%;
    padding: 0.4rem 0.6rem;
    font-family: var(--wp--preset--font-family--libre-caslon-text);
    font-size: 13px;
    color: #193540;
    background: #ffffff;
    border: 1px solid #8a9ea0;
    border-radius: 3px;
    outline: none;
    transition: border-color 0.15s;
}

.wp-block-post-comments-form input:focus,
.wp-block-post-comments-form textarea:focus {
    border-color: #47b4b0;
}

.wp-block-post-comments-form textarea {
    min-height: 70px;
    resize: vertical;
    line-height: 1.5;
}

.wp-block-post-comments-form .submit,
.wp-block-post-comments-form input[type="submit"] {
    display: inline-block;
    margin-top: 0.6rem;
    background-color: #47b4b0;
    color: #ffffff;
    font-family: var(--wp--preset--font-family--montserrat);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.45rem 1.1rem;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.wp-block-post-comments-form .submit:hover,
.wp-block-post-comments-form input[type="submit"]:hover {
    background-color: #193540;
}

/* ── Design Tokens ── */
:root {
    --rr-radius: 4px;
    --rr-radius-card: 8px;
    --rr-shadow-card: 0 2px 12px rgba(25, 53, 64, 0.07);
    --rr-border-card: 1px solid #c8e8d4;
}

/* ── Cards: white backgrounds fix contrast & visual hierarchy ── */
.rr-registry-card {
    background-color: #ffffff !important;
    border: var(--rr-border-card) !important;
    box-shadow: var(--rr-shadow-card) !important;
    border-radius: var(--rr-radius-card) !important;
    overflow: hidden;
}

/* Fix excerpt text contrast (#8a9ea0 on mint fails WCAG AA at 1.6:1) */
.rr-registry-card .wp-block-post-excerpt,
.rr-registry-card .wp-block-post-excerpt p {
    color: #4d6a72 !important;
}

/* ── Accent (yellow) buttons: ensure dark text for contrast ── */
.wp-block-button__link[style*="#ebd060"],
.wp-block-button__link[style*="ebd060"] {
    color: #193540 !important;
}

.wp-block-button__link[style*="#ebd060"]:hover,
.wp-block-button__link[style*="ebd060"]:hover {
    filter: brightness(0.92);
    color: #193540 !important;
}

/* ── Contact Modal ── */
/* Base .rr-modal visibility (display:none default, .is-open to show) is
   owned by the plugin stylesheet. Only layout overrides belong here. */
.rr-modal.is-open {
    padding: 1rem;
}

.rr-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(25, 53, 64, 0.7);
}

.rr-modal__dialog {
    position: relative;
    background: #ffffff;
    border-radius: 6px;
    padding: clamp(1.5rem, 5vw, 2.5rem);
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 40px rgba(25, 53, 64, 0.2);
}

.rr-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: #8a9ea0;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    transition: color 0.15s;
}

.rr-modal__close:hover { color: #193540; }

.rr-modal__title {
    font-family: var(--wp--preset--font-family--libre-caslon-display);
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 400;
    color: #193540;
    margin: 0 0 1.5rem;
}

body.rr-modal-open { overflow: hidden; }

/* ── Contact Form (inside modal) ── */
.rr-contact-form { display: flex; flex-direction: column; gap: 1rem; }

.rr-contact-form__field { display: flex; flex-direction: column; gap: 0.35rem; }

.rr-contact-form__field label {
    font-family: var(--wp--preset--font-family--montserrat);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #193540;
}

.rr-contact-form__optional {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: #8a9ea0;
}

.rr-contact-form__field input,
.rr-contact-form__field textarea {
    font-family: var(--wp--preset--font-family--libre-caslon-text);
    font-size: 15px;
    padding: 0.625rem 0.75rem;
    border: 1px solid #c8e8d4;
    border-radius: 4px;
    background: #ffffff;
    color: #193540;
}

.rr-contact-form__field input:focus,
.rr-contact-form__field textarea:focus {
    outline: 2px solid #47b4b0;
    outline-offset: 1px;
    border-color: #47b4b0;
}

.rr-contact-form__field textarea { resize: vertical; min-height: 6rem; }

.rr-contact-form__honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.rr-contact-form__submit { align-self: flex-start; }

.rr-contact-form__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.rr-contact-form__status {
    font-family: var(--wp--preset--font-family--montserrat);
    font-size: 13px;
    margin: 0;
    min-height: 1.25rem;
}

.rr-contact-form__status.is-success { color: #2d6a4f; }
.rr-contact-form__status.is-error   { color: #b14848; }

/* ── FAQ Accordion ── */
.wp-block-details {
    border-bottom: 1px solid #c8e8d4;
    padding: 1.1rem 0;
}

.wp-block-details summary {
    font-family: var(--wp--preset--font-family--montserrat);
    font-size: 15px;
    font-weight: 700;
    color: #193540;
    cursor: pointer;
    list-style: none;
    padding-right: 2rem;
    position: relative;
}

.wp-block-details summary::-webkit-details-marker { display: none; }

.wp-block-details summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    color: #47b4b0;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
}

.wp-block-details[open] summary::after {
    content: '−';
}

.wp-block-details summary:hover {
    color: #47b4b0;
}

.wp-block-details > :not(summary) {
    padding-top: 0.75rem;
    font-family: var(--wp--preset--font-family--libre-caslon-text);
    font-size: 16px;
    line-height: 1.7;
    color: #193540;
}

/* ── User nav submenu ─────────────────────────────────────────────────────── */

.site-header .wp-block-navigation-item.rr-has-submenu {
    position: relative;
}

.site-header .wp-block-navigation-item.rr-has-submenu > a::after {
    content: ' ▾';
    font-size: 9px;
    vertical-align: middle;
    margin-left: 1px;
}

.site-header .rr-submenu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #193540;
    border-top: 2px solid #47b4b0;
    min-width: 170px;
    list-style: none;
    padding: 0.35rem 0;
    margin: 0;
    z-index: 9999;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

.site-header .wp-block-navigation-item.rr-submenu-open .rr-submenu {
    display: block;
}

.site-header .rr-submenu li {
    display: block;
}

.site-header .rr-submenu li a {
    display: block;
    padding: 0.45rem 1.1rem;
    color: #9fd4b3;
    text-decoration: none;
    font-family: var(--wp--preset--font-family--montserrat);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
    transition: color 0.15s;
}

.site-header .rr-submenu li a:hover,
.site-header .rr-submenu li a:focus {
    color: #47b4b0;
    outline: none;
}
