/* ==========================================================================
   Redesign D — About, Residents, Contact, Legal, SMS opt-in, Showing pages.
   Layouts follow the approved mockup artboards. Linked AFTER theme.css.
   All classes are prefixed rd- so they never collide with the base sheets.
   ========================================================================== */
:root {
    --rd-navy: #0D1B2A;
    --rd-ink: #111827;
    --rd-body: #374151;
    --rd-muted: #4B5563;
    --rd-line: #E5E7EB;
    --rd-soft: #F9FAFB;
    --rd-grey: #F3F4F6;
    --rd-cream: #FFF7ED;
    --rd-accent: var(--primary-color, #FEA327);
    --rd-accent-hover: var(--primary-hover, #e8911f);
    /* WCAG 1.4.3: --primary-text is the raw brand colour (#FEA327 = 2:1 on white); text needs the darkened --primary-link */
    --rd-accent-text: var(--primary-link, #B45309);
    --rd-link: var(--primary-link, #B45309);
    --rd-head: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    --rd-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

.rd-page { font-family: var(--rd-sans); color: var(--rd-ink); }
.rd-page *, .rd-page *::before, .rd-page *::after { box-sizing: border-box; }
.rd-wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.rd-cream { background: var(--rd-cream); }
.rd-soft { background: var(--rd-soft); }

.rd-h1 {
    margin: 0; font-family: var(--rd-head); font-weight: 800; font-size: 54px;
    line-height: 1.05; letter-spacing: -0.02em; color: var(--rd-navy);
}
.rd-h2 { margin: 0; font-family: var(--rd-head); font-weight: 800; font-size: 36px; line-height: 1.15; color: var(--rd-navy); }
.rd-lead { margin: 0; font-size: 18px; line-height: 1.7; color: var(--rd-muted); }
.rd-text { margin: 0; font-size: 16px; line-height: 1.7; color: var(--rd-body); }
.rd-sub { margin: 0; font-size: 16px; color: var(--rd-muted); }

/* Buttons --------------------------------------------------------------- */
.rd-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 24px; border-radius: 12px; border: 0;
    font: inherit; font-weight: 700; font-size: 15px; line-height: 1.2;
    text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.rd-btn-primary, a.rd-btn-primary { background: var(--rd-accent); color: #FFFFFF; }
.rd-btn-primary:hover, a.rd-btn-primary:hover { background: var(--rd-accent-hover); color: #FFFFFF; }
.rd-btn-primary:disabled { opacity: .6; cursor: not-allowed; }
.rd-btn-outline, a.rd-btn-outline { background: #FFFFFF; border: 1.5px solid var(--rd-accent); color: var(--rd-accent-text); font-weight: 600; }
.rd-btn-outline:hover, a.rd-btn-outline:hover { background: var(--rd-cream); color: var(--rd-accent-text); }
.rd-btn-danger { background: #FFFFFF; border: 1.5px solid #B91C1C; color: #B91C1C; }
.rd-btn-danger:hover { background: #FEF2F2; }
.rd-btn-muted, a.rd-btn-muted { background: var(--rd-grey); color: var(--rd-ink); font-weight: 600; }
.rd-btn-muted:hover, a.rd-btn-muted:hover { background: var(--rd-line); color: var(--rd-ink); }
.rd-btn-lg { min-height: 52px; padding: 0 30px; font-size: 16px; }

/* Icon tile (cream square, accent glyph) */
.rd-icon {
    width: 48px; height: 48px; flex: 0 0 auto; border-radius: 12px;
    background: var(--rd-cream); color: var(--rd-accent-text);
    display: inline-flex; align-items: center; justify-content: center; font-size: 20px;
}

/* Form controls -------------------------------------------------------- */
.rd-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--rd-body); min-width: 0; }
.rd-field label, .rd-field .rd-flabel { font-size: 13px; font-weight: 600; color: var(--rd-body); }
.rd-input, .rd-page .rd-field input[type=text], .rd-page .rd-field input[type=email], .rd-page .rd-field input[type=tel] {
    width: 100%; min-height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid #D1D5DB;
    font: inherit; font-size: 15px; font-weight: 400; color: var(--rd-ink); background: #FFFFFF;
}
.rd-page .rd-field textarea, .rd-textarea {
    width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid #D1D5DB;
    font: inherit; font-size: 15px; font-weight: 400; color: var(--rd-ink); resize: vertical; background: #FFFFFF;
}
.rd-page .rd-field input:focus, .rd-page .rd-field textarea:focus, .rd-textarea:focus {
    outline: none; border-color: var(--rd-accent); box-shadow: 0 0 0 3px rgba(254, 163, 39, .18);
}
.rd-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }

/* ========================== ABOUT US ================================== */
.rd-split {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px;
}
.rd-split-solo { grid-template-columns: 1fr; }
.rd-stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.rd-photo {
    min-height: 360px; border-radius: 24px; background: var(--rd-line); overflow: hidden; position: relative;
}
.rd-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.rd-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 6px; }
.rd-stat { background: #FFFFFF; border-radius: 16px; padding: 16px 14px; display: flex; flex-direction: column; gap: 2px; }
.rd-stat-num { font-family: var(--rd-head); font-weight: 800; font-size: 26px; color: var(--rd-navy); line-height: 1.1; }
.rd-stat-label { font-size: 13px; color: var(--rd-muted); }

.rd-section { padding-top: 72px; padding-bottom: 72px; }
.rd-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.rd-textlink { font-weight: 600; font-size: 15px; text-decoration: none; padding: 10px 0; color: var(--rd-link); display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.rd-textlink:hover { color: var(--rd-link); text-decoration: underline; }

.rd-mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 220px; gap: 12px; }
.rd-tile {
    position: relative; border-radius: 18px; background: var(--rd-grey); overflow: hidden;
    display: flex; align-items: flex-end; padding: 18px; text-decoration: none; color: var(--rd-ink);
}
.rd-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.rd-tile:hover img { transform: scale(1.03); }
.rd-tile-label { position: relative; padding: 8px 12px; border-radius: 10px; background: #FFFFFF; font-weight: 700; font-size: 15px; color: var(--rd-ink); max-width: 100%; }
.rd-mosaic .rd-tile:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.rd-mosaic .rd-tile:nth-child(2) { grid-column: span 2; }
/* fewer photos: let the tiles fill the row */
.rd-mosaic-1 .rd-tile:nth-child(1) { grid-column: 1 / -1; grid-row: span 2; }
.rd-mosaic-2 .rd-tile:nth-child(2) { grid-row: span 2; }
.rd-mosaic-3 .rd-tile:nth-child(3) { grid-column: span 2; }

.rd-mission-wrap { padding-bottom: 80px; }
.rd-mission { background: var(--rd-navy); border-radius: 28px; padding: 56px 48px; display: flex; flex-direction: column; gap: 16px; }
.rd-eyebrow { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rd-accent); }
.rd-mission h2.rd-eyebrow { font-family: var(--rd-sans); }
.rd-mission-text { margin: 0; font-family: var(--rd-head); font-weight: 700; font-size: 30px; line-height: 1.35; color: #FFFFFF; max-width: 860px; }

/* ========================== RESIDENTS ================================= */
.rd-hero-pad { padding: 24px 24px 0; }
.rd-navy-hero {
    max-width: 1392px; margin: 0 auto; border-radius: 28px; background: var(--rd-navy);
    padding: 72px 48px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px;
}
.rd-navy-hero h1 { margin: 0; font-family: var(--rd-head); font-weight: 800; font-size: 56px; line-height: 1.05; letter-spacing: -0.02em; color: #FFFFFF; }
.rd-navy-hero .rd-btn { min-height: 54px; padding: 0 30px; font-size: 17px; }
.rd-split-photo { min-height: 380px; }
.rd-collage { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 190px 190px; gap: 12px; }
.rd-collage img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; display: block; }
.rd-collage img:nth-child(3) { grid-column: 1 / -1; }
.rd-collage-2 img { grid-row: span 2; }
.rd-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 28px; }
.rd-quick-card {
    background: #FFFFFF; border: 1px solid var(--rd-line); border-radius: 18px; padding: 26px;
    text-decoration: none; color: var(--rd-ink); display: flex; flex-direction: column; gap: 14px;
    transition: border-color .15s, box-shadow .15s;
}
.rd-quick-card:hover { border-color: var(--rd-accent); box-shadow: 0 8px 24px rgba(13, 27, 42, .08); color: var(--rd-ink); }
.rd-quick-title { font-family: var(--rd-head); font-weight: 700; font-size: 20px; }
.rd-contact-card {
    border: 1px solid var(--rd-line); border-radius: 24px; padding: 40px;
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px;
}
.rd-contact-card h2 { font-size: 30px; }
.rd-btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.rd-address { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--rd-muted); line-height: 1.5; }

/* ========================== CONTACT US ================================ */
.rd-contact-layout { padding-top: 72px; padding-bottom: 88px; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.rd-contact-left { flex: 1 1 380px; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.rd-ways { display: flex; flex-direction: column; gap: 14px; }
.rd-way { background: #FFFFFF; border-radius: 16px; padding: 18px 20px; display: flex; align-items: center; gap: 14px; min-width: 0; }
.rd-way .rd-icon { width: 44px; height: 44px; font-size: 17px; }
.rd-way-body { display: flex; flex-direction: column; min-width: 0; }
.rd-way-label { font-size: 13px; color: var(--rd-muted); }
.rd-way-value, a.rd-way-value { font-weight: 600; font-size: 16px; color: var(--rd-ink); text-decoration: none; overflow-wrap: break-word; }
a.rd-way-value:hover { color: var(--rd-link); text-decoration: underline; }
.rd-form-card {
    flex: 999 1 520px; min-width: 0; background: #FFFFFF; border-radius: 24px; padding: 36px;
    box-shadow: 0 12px 32px rgba(13, 27, 42, .08); display: flex; flex-direction: column; gap: 16px;
}
.rd-form-card h2 { font-family: var(--rd-head); font-weight: 700; font-size: 26px; color: var(--rd-navy); margin: 0; }
.rd-form-card .rd-btn { align-self: flex-start; }
.rd-page .form-status { padding: 12px 14px; border-radius: 10px; font-size: 14px; }
.rd-page .form-status.status-success { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.rd-page .form-status.status-error { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }

/* ========================== LEGAL ===================================== */
.rd-legal-hero { background: var(--rd-soft); border-bottom: 1px solid var(--rd-line); }
.rd-legal-hero-inner { max-width: 1100px; margin: 0 auto; padding: 48px 24px 36px; display: flex; flex-direction: column; gap: 14px; }
.rd-legal-hero h1 { margin: 0; font-family: var(--rd-head); font-weight: 800; font-size: 44px; letter-spacing: -0.02em; color: var(--rd-navy); line-height: 1.1; }
.rd-legal-hero .legal-updated { margin: 0; font-size: 14px; color: var(--rd-muted); font-weight: 400; }
.rd-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.rd-pill {
    min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--rd-line); background: #FFFFFF;
    color: var(--rd-body); text-decoration: none; font-weight: 500; font-size: 14px; display: inline-flex; align-items: center;
}
.rd-pill:hover { border-color: var(--rd-navy); color: var(--rd-navy); }
.rd-pill.is-active { background: var(--rd-navy); border-color: var(--rd-navy); color: #FFFFFF; font-weight: 600; }
.rd-legal-main { max-width: 1100px; margin: 0 auto; padding: 40px 24px 88px; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.rd-toc { flex: 1 1 220px; max-width: 100%; display: flex; flex-direction: column; gap: 2px; border-left: 2px solid var(--rd-line); position: sticky; top: 24px; }
.rd-toc-title { padding: 0 0 10px 16px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rd-muted); }
.rd-toc a {
    margin-left: -2px; padding: 10px 16px; min-height: 44px; display: flex; align-items: center;
    text-decoration: none; font-size: 14px; font-weight: 500; color: var(--rd-muted); border-left: 2px solid transparent;
}
.rd-toc a:hover { color: var(--rd-ink); }
.rd-toc a.is-active { border-left-color: var(--rd-accent); color: var(--rd-ink); font-weight: 600; }
.rd-toc:empty, .rd-toc[hidden] { display: none; }
.rd-article { flex: 999 1 560px; min-width: 0; max-width: 720px; }
.rd-article .legal-body { max-width: none; }
.rd-article .legal-body h2, .rd-article .legal-body h3 {
    margin: 32px 0 10px; font-family: var(--rd-head); font-weight: 700; font-size: 22px; color: var(--rd-navy); scroll-margin-top: 24px; line-height: 1.3;
}
.rd-article .legal-body > h2:first-child, .rd-article .legal-body > h3:first-child { margin-top: 0; }
.rd-article .legal-body p, .rd-article .legal-body li { margin: 0 0 14px; font-size: 16px; line-height: 1.75; color: var(--rd-body); overflow-wrap: anywhere; }
.rd-article .legal-body a { color: var(--rd-link); }

/* ========================== SMS OPT-IN ================================ */
.rd-narrow { max-width: 560px; margin: 0 auto; padding: 72px 24px 96px; }
.rd-card {
    background: #FFFFFF; border: 1px solid var(--rd-line); border-radius: 24px; padding: 36px;
    display: flex; flex-direction: column; gap: 18px;
}
.rd-card h1 { margin: 0; font-family: var(--rd-head); font-weight: 800; font-size: 32px; color: var(--rd-navy); line-height: 1.15; }
.rd-card .rd-icon { width: 52px; height: 52px; border-radius: 14px; font-size: 22px; }
.rd-card-sub { margin: -8px 0 0; font-size: 14px; color: var(--rd-muted); }
.rd-sms-form { display: flex; flex-direction: column; gap: 18px; }
.rd-page .smsopt-intro { margin: 0; font-size: 15px; line-height: 1.6; color: var(--rd-muted); }
.rd-page .smsopt-field { margin: 0; }
.rd-page .smsopt-consent {
    display: flex; gap: 10px; align-items: flex-start; padding: 14px; border-radius: 12px;
    background: var(--rd-cream); border: 0;
}
.rd-page .smsopt-consent input[type=checkbox] { width: 20px; height: 20px; flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--rd-accent); cursor: pointer; }
.rd-page .smsopt-consent label { font-size: 13px; line-height: 1.55; color: var(--rd-body); cursor: pointer; }
.rd-page .smsopt-btn { margin: 0; width: 100%; min-height: 52px; border-radius: 12px; font-size: 16px; background: var(--rd-accent); color: #FFFFFF; }
.rd-page .smsopt-note { margin: -6px 0 0; text-align: center; font-size: 13px; color: var(--rd-muted); }
.rd-page .smsopt-fineprint { margin: 0; font-size: 13px; color: var(--rd-muted); line-height: 1.65; }
.rd-page a.smsopt-link { color: var(--rd-link); }
.rd-page .smsopt-alert { margin: 0; }

/* ========================== SHOWINGS ================================== */
.rd-ss-body { margin: 0; background: #F9FAFB; }
.rd-ss-brand { text-align: center; padding: 28px 16px 0; }
.rd-ss-brand img { height: 36px; }
.rd-ss-main { max-width: 640px; margin: 0 auto; padding: 40px 24px 96px; }
.rd-ss-main-wide { max-width: 1040px; display: flex; flex-direction: column; gap: 24px; padding-top: 32px; }
.rd-ss-card { align-items: center; text-align: center; padding: 40px; }
.rd-ss-card h1 { font-size: 30px; }
.rd-ss-card .rd-text { color: var(--rd-muted); }
.rd-ss-check {
    width: 64px; height: 64px; border-radius: 999px; background: #ECFDF5; color: #047857;
    display: flex; align-items: center; justify-content: center; font-size: 28px; flex: 0 0 auto;
}
.rd-ss-check.is-warn { background: #FEF3C7; color: #92400E; }
.rd-ss-check.is-neutral { background: var(--rd-cream); color: var(--rd-accent-text); }
.rd-ss-check.is-bad { background: #FEF2F2; color: #B91C1C; }
.rd-ss-summary {
    width: 100%; background: var(--rd-cream); border-radius: 16px; padding: 18px 20px;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; text-align: left;
}
.rd-ss-summary > div { display: flex; flex-direction: column; min-width: 0; }
.rd-ss-summary .rd-wide { grid-column: 1 / -1; }
.rd-ss-k { font-size: 12px; color: var(--rd-muted); }
.rd-ss-v { font-weight: 700; font-size: 16px; color: var(--rd-ink); overflow-wrap: anywhere; }
.rd-ss-v.is-light { font-weight: 600; font-size: 15px; }
.rd-ss-notes { margin-top: 6px; font-size: 13px; color: var(--rd-body); font-style: italic; line-height: 1.45; }
.rd-ss-maps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rd-ss-maps a {
    display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; background: #FFFFFF;
    border: 1px solid var(--rd-accent); border-radius: 999px; color: var(--rd-accent-text); text-decoration: none; font-weight: 600; font-size: 13px;
}
.rd-ss-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; }
.rd-ss-actions .rd-btn { flex: 1 1 180px; min-height: 50px; }
.rd-ss-lede { margin: 0; color: var(--rd-muted); font-size: 16px; line-height: 1.6; }

/* manage: status summary card */
.rd-ss-status {
    background: #FFFFFF; border: 1px solid var(--rd-line); border-radius: 20px; padding: 22px 26px;
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
}
.rd-ss-status-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rd-ss-status-k { font-size: 13px; color: var(--rd-muted); }
.rd-ss-status-title { font-family: var(--rd-head); font-weight: 700; font-size: 20px; color: var(--rd-navy); overflow-wrap: anywhere; }
.rd-ss-status-when { font-size: 15px; color: var(--rd-body); }
.rd-ss-status-meta { font-size: 14px; color: var(--rd-muted); line-height: 1.5; overflow-wrap: anywhere; }
.rd-ss-status-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.rd-badge { padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 700; background: var(--rd-grey); color: var(--rd-body); }
.rd-badge-confirmed { background: #ECFDF5; color: #065F46; }
.rd-badge-cancelled { background: #FEF2F2; color: #991B1B; }
.rd-badge-pending_verification, .rd-badge-rescheduled { background: #FEF3C7; color: #92400E; }
.rd-ss-cols { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.rd-ss-panel {
    background: #FFFFFF; border: 1px solid var(--rd-line); border-radius: 20px; padding: 28px;
    display: flex; flex-direction: column; gap: 18px; min-width: 0;
}
.rd-ss-panel-main { flex: 999 1 520px; }
.rd-ss-panel-side { flex: 1 1 300px; gap: 14px; }
.rd-ss-panel h1, .rd-ss-panel h2 { margin: 0; font-family: var(--rd-head); font-weight: 700; color: var(--rd-navy); }
.rd-ss-panel h1 { font-size: 24px; }
.rd-ss-panel h2 { font-size: 20px; }
.rd-ss-panel .rd-btn { width: auto; }
.rd-ss-panel-side .rd-btn { width: 100%; }
.rd-ss-panel form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.rd-ss-step { display: flex; flex-direction: column; gap: 10px; }
.rd-ss-step-label { font-weight: 700; font-size: 15px; color: var(--rd-ink); }
.rd-ss-msg { margin: 0; min-height: 0; font-size: 14px; color: var(--rd-body); }
.rd-ss-msg:empty { display: none; }
.rd-ss-msg.ss-msg-error { color: #B91C1C; }

/* inline calendar (re-uses the widget's sw-cal-pop markup + JS) */
.rd-ss-panel .sw-date-btn { display: none; }
.rd-ss-panel .sw-cal-pop[data-inline] {
    position: static; display: block; width: 100%; max-width: none; margin: 0; padding: 0;
    border: 0; box-shadow: none; background: transparent; transform: none;
}
.rd-ss-panel .sw-cal-pop[data-inline][hidden] { display: block; }
.rd-ss-panel .sw-cal-pop-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 8px; }
.rd-ss-panel .sw-cal-pop-title { font-weight: 700; font-size: 15px; color: var(--rd-ink); }
.rd-ss-panel .sw-cal-pop-nav {
    width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--rd-line); background: #FFFFFF;
    color: var(--rd-ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.rd-ss-panel .sw-cal-pop-nav:disabled { opacity: .4; cursor: not-allowed; }
.rd-ss-panel .sw-cal-pop-weekdays, .rd-ss-panel .sw-cal-pop-grid {
    display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; text-align: center;
}
.rd-ss-panel .sw-cal-pop-weekdays { font-size: 12px; color: var(--rd-muted); margin-bottom: 6px; }
.rd-ss-panel .sw-cal-pop-day {
    min-height: 44px; width: auto; height: auto; aspect-ratio: auto; border-radius: 10px; font: inherit; font-size: 14px;
    border: 0; background: transparent; color: #9CA3AF; font-weight: 400; padding: 0; cursor: default;
}
.rd-ss-panel .sw-cal-pop-day-open { border: 1px solid var(--rd-line); background: #FFFFFF; color: var(--rd-ink); font-weight: 600; cursor: pointer; }
.rd-ss-panel .sw-cal-pop-day-open:hover { border-color: var(--rd-accent); }
.rd-ss-panel .sw-cal-pop-day-selected { border: 1.5px solid var(--rd-accent); background: var(--rd-cream); color: #92400E; font-weight: 700; }
.rd-ss-panel .sw-cal-pop-day-today { text-decoration: underline; }
.rd-ss-panel .sw-cal-pop-empty { margin: 8px 0 0; font-size: 13px; color: var(--rd-muted); }
.rd-ss-panel .sw-slots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.rd-ss-panel .sw-slots-placeholder { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--rd-muted); }
.rd-ss-panel .sw-slot-btn {
    min-height: 44px; border-radius: 10px; font: inherit; font-size: 14px; border: 1px solid var(--rd-line);
    background: #FFFFFF; color: var(--rd-ink); font-weight: 600; cursor: pointer; padding: 0 8px; width: auto;
}
.rd-ss-panel .sw-slot-btn:hover { border-color: var(--rd-accent); }
.rd-ss-panel .sw-slot-btn.sw-slot-active { border: 1.5px solid var(--rd-accent); background: var(--rd-cream); color: #92400E; font-weight: 700; }
.rd-ss-panel .sw-empty { margin: 0; font-size: 14px; color: var(--rd-muted); }
.rd-ss-panel .ss-confirm-bar {
    padding: 16px 18px; background: var(--rd-cream); border: 1px solid #FED7AA; border-radius: 12px;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
}
.rd-ss-panel .ss-confirm-bar[hidden] { display: none; }
.rd-ss-panel .ss-confirm-summary { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: #9A3412; flex: 1 1 220px; min-width: 0; }
.rd-ss-panel .ss-confirm-summary i { color: var(--rd-accent-text); }
.rd-ss-panel #ss-confirm-when { font-weight: 700; color: var(--rd-ink); }
.rd-ss-success { text-align: center; align-items: center; }

/* ========================== RESPONSIVE ================================ */
@media (max-width: 900px) {
    .rd-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; }
    .rd-mosaic .rd-tile:nth-child(n) { grid-column: span 1; grid-row: span 1; }
    .rd-mosaic .rd-tile:nth-child(1) { grid-column: 1 / -1; grid-row: span 2; }
    .rd-mosaic-2 .rd-tile:nth-child(2), .rd-mosaic-3 .rd-tile:nth-child(3) { grid-column: span 1; }
    .rd-mosaic-2 .rd-tile:nth-child(2) { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
    .rd-h1 { font-size: 38px; }
    .rd-h2 { font-size: 28px; }
    .rd-split { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; padding-bottom: 40px; }
    .rd-photo { min-height: 240px; }
    .rd-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rd-section { padding-top: 48px; padding-bottom: 48px; }
    .rd-mission-wrap { padding-bottom: 56px; }
    .rd-mission { padding: 36px 24px; border-radius: 22px; }
    .rd-mission-text { font-size: 22px; }
    .rd-hero-pad { padding: 16px 16px 0; }
    .rd-navy-hero { padding: 44px 24px; border-radius: 22px; }
    .rd-navy-hero h1 { font-size: 36px; }
    .rd-navy-hero .rd-btn { width: 100%; }
    .rd-split-photo { min-height: 240px; }
    .rd-collage { grid-template-rows: 140px 140px; }
    .rd-quick { grid-template-columns: 1fr; }
    .rd-contact-card { padding: 24px; }
    .rd-contact-card .rd-btn-row, .rd-contact-card .rd-btn { width: 100%; }
    .rd-contact-layout { padding-top: 40px; padding-bottom: 56px; gap: 28px; }
    .rd-form-card { padding: 24px 20px; flex-basis: 100%; }
    .rd-form-card .rd-btn { align-self: stretch; }
    .rd-legal-hero-inner { padding: 32px 16px 24px; }
    .rd-legal-hero h1 { font-size: 32px; }
    .rd-legal-main { padding: 24px 16px 56px; gap: 24px; }
    .rd-toc { position: static; }
    .rd-narrow { padding: 32px 16px 56px; }
    .rd-card { padding: 24px 20px; }
    .rd-card h1 { font-size: 26px; }
    .rd-ss-main { padding: 24px 16px 56px; }
    .rd-ss-card h1 { font-size: 24px; }
    .rd-ss-status { padding: 18px; }
    .rd-ss-status-side { align-items: flex-start; }
    .rd-ss-panel { padding: 20px 16px; }
    .rd-ss-summary { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .rd-wrap { padding-left: 16px; padding-right: 16px; }
    .rd-mosaic { grid-template-columns: 1fr; }
    .rd-mosaic .rd-tile:nth-child(n) { grid-column: 1 / -1; grid-row: span 1; }
    .rd-ss-panel .sw-cal-pop-weekdays, .rd-ss-panel .sw-cal-pop-grid { gap: 4px; }
}

/* showing notices: legacy lede paragraphs passed in by the page */
.rd-ss-card .ss-lede { margin: 0; color: var(--rd-muted); font-size: 16px; line-height: 1.6; }
.rd-ss-card .rd-ss-summary { margin: 0; }
.rd-ss-panel .sw-cal-pop-day-open:hover { background: #FFFFFF; color: var(--rd-ink); transform: none; }
.rd-ss-panel .sw-cal-pop-day-open.sw-cal-pop-day-selected:hover { background: var(--rd-cream); color: #92400E; }
.rd-ss-panel .sw-cal-pop-day-empty { visibility: hidden; }
.rd-ss-panel .ss-confirm-actions { display: inline-flex; gap: 8px; }
@media (max-width: 560px) {
    .rd-ss-panel .ss-confirm-actions, .rd-ss-panel .ss-confirm-actions .rd-btn { width: 100%; }
}
