/* =====================================================================
   Recipe Detail Page — BEAST_RECIPE_TEMPLATE.md spec.
   Dark-first, no shadows, no gradients, no blur.
   Notes panel is a slide-out drawer from the right edge.
   ===================================================================== */

/* --- Tokens (shared by page + drawer) --- */
:root {
    --rd-black:     #0E0E0E;
    --rd-surface:   #161616;
    --rd-raised:    #1a1a1a;
    --rd-gold:      #E8B400;
    --rd-deep-gold: #C99700;
    --rd-bone:      #F5F3EE;
    --rd-steel:     #9A9A9A;
    --rd-border:    #1e1e1e;
    --rd-border-card: #2a2a2a;

    /* Goal accents — Bulk is RED per brand spec */
    --rd-bulk-color:  #CE1126;
    --rd-bulk-bg:     #1f0d10;
    --rd-bulk-border: #8a0e1f;
    --rd-cut-color:   #4fc87a;
    --rd-cut-bg:      #0d1f14;
    --rd-cut-border:  #2a7a45;
    --rd-maint-color: #E8B400;
    --rd-maint-bg:    #1a1700;
    --rd-maint-border:#C99700;
}

/* --- Page wrapper --- */
.rd-page {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 40px 96px;
    color: var(--rd-bone);
    font-family: 'Hanken Grotesk', 'Space Grotesk', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    background: var(--rd-black);
}

/* =====================================================================
   HERO BLOCK
   ===================================================================== */
.rd-hero {
    position: relative;
    background: var(--rd-black);
    padding: 2rem 0 1.25rem;
    border-bottom: 1px solid var(--rd-border);
}
.rd-hero-stripe {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--rd-gold);
}
.rd-eyebrow {
    font-family: 'Space Grotesk', Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--rd-gold);
    margin-bottom: 12px;
}
.rd-title {
    font-family: 'Space Grotesk', Arial, sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--rd-bone);
    line-height: 1.1;
    margin: 0 0 12px;
    text-transform: uppercase;
}
.rd-subtitle {
    color: var(--rd-steel);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 20px;
    max-width: 560px;
}
.rd-stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}
.rd-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.rd-stat-val {
    font-family: 'Space Grotesk', Arial, sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--rd-gold);
}
.rd-stat-lbl {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--rd-steel);
}

/* =====================================================================
   HERO IMAGE
   ===================================================================== */
.rd-image {
    margin: 24px 0;
    border-radius: 8px;
    overflow: hidden;
    border: 0.5px solid var(--rd-border-card);
}
.rd-image img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* =====================================================================
   SECTION LABELS (used in page + drawer)
   ===================================================================== */
.rd-section-label {
    font-family: 'Space Grotesk', Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--rd-gold);
    margin: 1.75rem 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--rd-border);
}

/* =====================================================================
   INGREDIENT GRID
   ===================================================================== */
.rd-ingredients {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
    gap: 7px;
    margin-bottom: 8px;
}
.rd-ing {
    background: var(--rd-surface);
    border: 0.5px solid var(--rd-border-card);
    border-radius: 8px;
    padding: 9px 11px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, opacity 0.15s;
    user-select: none;
}

/* Checkbox */
.rd-ing-check {
    width: 17px;
    height: 17px;
    border: 1.5px solid #3a3a3a;
    border-radius: 3px;
    flex-shrink: 0;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s;
}
.rd-ing-check span {
    display: none;
    width: 5px;
    height: 9px;
    border-right: 2px solid var(--rd-black);
    border-bottom: 2px solid var(--rd-black);
    transform: rotate(45deg);
    margin-top: -2px;
}

/* Checked state */
.rd-ing.checked {
    background: var(--rd-bulk-bg);
    border-color: var(--rd-deep-gold);
    opacity: 0.55;
}
.rd-ing.checked .rd-ing-check {
    background: var(--rd-gold);
    border-color: var(--rd-gold);
}
.rd-ing.checked .rd-ing-check span { display: block; }
.rd-ing.checked .rd-ing-name {
    text-decoration: line-through;
    color: #444;
}
.rd-ing.checked .rd-ing-qty { color: #666; }

/* Ingredient info */
.rd-ing-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.rd-ing-qty {
    font-family: 'Space Grotesk', Arial, sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: var(--rd-gold);
    text-transform: uppercase;
}
.rd-ing-name {
    font-size: 13px;
    color: var(--rd-bone);
    line-height: 1.5;
    transition: color 0.15s;
}

/* Beast product badge */
.rd-beast-badge {
    display: inline-block;
    background: var(--rd-gold);
    color: var(--rd-black);
    font-family: 'Space Grotesk', Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    margin-left: 6px;
    vertical-align: middle;
}

/* =====================================================================
   METHOD / BODY (legacy fallback)
   ===================================================================== */
.rd-method {
    font-size: 13px;
    line-height: 1.7;
    color: var(--rd-bone);
    padding-bottom: 32px;
}

/* =====================================================================
   METHOD STEPS — expandable accordion
   ===================================================================== */
.rd-steps {
    display: flex;
    flex-direction: column;
}
.rd-step {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 0.5px solid var(--rd-raised);
    cursor: pointer;
    transition: opacity 0.15s;
}
.rd-step:last-child { border-bottom: none; }

.rd-step-num {
    font-family: 'Space Grotesk', Arial, sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #2a2a2a;
    min-width: 30px;
    line-height: 1;
    padding-top: 2px;
    transition: color 0.2s;
}
.rd-step.active .rd-step-num { color: var(--rd-gold); }

.rd-step-content { flex: 1; }

.rd-step-title {
    font-family: 'Space Grotesk', Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--rd-steel);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 5px;
    transition: color 0.2s;
}
.rd-step.active .rd-step-title { color: var(--rd-gold); }

.rd-step-body {
    font-size: 13px;
    color: var(--rd-steel);
    line-height: 1.7;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, color 0.2s;
}
.rd-step.active .rd-step-body {
    color: #b8b5ae;
    max-height: 300px;
}

/* =====================================================================
   RECIPE NAVIGATION (prev / discover / next)
   ===================================================================== */
.rd-recipe-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 28px 0 0;
    border-top: 1px solid var(--rd-border);
    margin-top: 8px;
}

.rd-recipe-nav__slot {
    flex: 1;
    display: flex;
}

.rd-recipe-nav__slot--prev { justify-content: flex-start; }
.rd-recipe-nav__slot--center { justify-content: center; flex: 0 0 auto; }
.rd-recipe-nav__slot--next { justify-content: flex-end; }

/* Prev / next links */
.rd-recipe-nav__link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--rd-steel);
    transition: color 0.2s;
    max-width: 240px;
}
.rd-recipe-nav__link:hover { color: var(--rd-gold); }

.rd-recipe-nav__link--next { flex-direction: row; }

.rd-recipe-nav__arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    opacity: 0.6;
    transition: opacity 0.2s, transform 0.2s;
}
.rd-recipe-nav__link:hover .rd-recipe-nav__arrow { opacity: 1; }
.rd-recipe-nav__link--prev:hover .rd-recipe-nav__arrow { transform: translateX(-3px); }
.rd-recipe-nav__link--next:hover .rd-recipe-nav__arrow { transform: translateX(3px); }

.rd-recipe-nav__meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.rd-recipe-nav__meta--right { text-align: right; }

.rd-recipe-nav__label {
    font-family: 'Space Grotesk', Arial, sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--rd-gold);
    opacity: 0.7;
}

.rd-recipe-nav__title {
    font-family: 'Space Grotesk', Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

/* Centre — Back to Discover */
.rd-recipe-nav__discover {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--rd-steel);
    font-family: 'Space Grotesk', Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}
.rd-recipe-nav__discover:hover { color: var(--rd-gold); }

/* Mobile */
@media (max-width: 640px) {
    .rd-recipe-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .rd-recipe-nav__slot--center {
        order: -1;
        padding-bottom: 20px;
        border-bottom: 1px solid var(--rd-border);
        margin-bottom: 20px;
    }
    .rd-recipe-nav__slot--prev,
    .rd-recipe-nav__slot--next { justify-content: flex-start; }
    .rd-recipe-nav__slot--next { margin-top: 16px; }
    .rd-recipe-nav__title { max-width: 100%; white-space: normal; }
}

/* =====================================================================
   NOTES — VERTICAL TAB (fixed on right edge, always visible)
   ===================================================================== */
.rd-notes-tab {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 40;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px 10px;
    background: var(--rd-raised);
    border: 1px solid #2E2A22;
    border-right: none;
    border-radius: 10px 0 0 10px;
    color: var(--rd-gold);
    font-family: 'Space Grotesk', Arial, sans-serif;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: right 0.35s cubic-bezier(.4,0,.2,1),
                background 0.2s, color 0.2s;
}
.rd-notes-tab svg {
    width: 16px; height: 16px;
    stroke: currentColor; fill: none;
    stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.rd-notes-tab:hover {
    background: #2E2A22;
    color: var(--rd-bone);
}

/* Shift the tab left when the drawer is open */
.rd-notes-tab.is-open {
    right: 360px;
}

/* =====================================================================
   NOTES — SLIDE-OUT DRAWER
   ===================================================================== */
.rd-notes-drawer {
    position: fixed;
    right: -360px;
    top: 0;
    width: 360px;
    height: 100vh;
    background: var(--rd-surface);
    border-left: 1px solid #2E2A22;
    z-index: 45;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    transition: right 0.35s cubic-bezier(.4,0,.2,1);
}
.rd-notes-drawer.is-open {
    right: 0;
}

/* Drawer header */
.rd-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px 20px;
    border-bottom: 1px solid #2E2A22;
    flex-shrink: 0;
}
.rd-drawer-head h3 {
    font-family: 'Anton', 'Space Grotesk', Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--rd-bone);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}
.rd-drawer-head h3 svg {
    stroke: var(--rd-gold); fill: none;
    stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.rd-drawer-close {
    background: none;
    border: 1px solid #2E2A22;
    border-radius: 8px;
    width: 34px; height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rd-steel);
    font-size: 1.4rem;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
.rd-drawer-close:hover {
    border-color: var(--rd-gold);
    color: var(--rd-gold);
}

/* Drawer body */
.rd-drawer-body {
    padding: 24px 28px;
    flex: 1;
    overflow-y: auto;
}

/* Backdrop overlay */
.rd-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(6, 5, 4, 0.55);
    z-index: 39;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.rd-drawer-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* =====================================================================
   GOAL NOTES (inside drawer)
   ===================================================================== */

/* Nutritional Info (formerly General Notes) */
.rd-nutritional-block {
    padding: 0 0 16px;
    border-bottom: 1px solid var(--rd-border);
    margin-bottom: 14px;
}
.rd-nutritional-title {
    font-family: 'Space Grotesk', Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rd-gold);
    margin-bottom: 8px;
}
.rd-nutritional-body {
    font-family: 'Hanken Grotesk', 'Space Grotesk', Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
    color: var(--rd-bone);
}

/* Goal tabs */
.rd-goal-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 14px;
}
.rd-goal-tab {
    flex: 1;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 8px 0;
    font-family: 'Space Grotesk', Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rd-steel);
    cursor: pointer;
    text-align: center;
    transition: color 0.2s, border-color 0.2s;
}

/* Active tab colors */
.rd-goal-tab[data-goal="bulk"].active {
    color: var(--rd-bulk-color);
    border-bottom-color: var(--rd-bulk-color);
}
.rd-goal-tab[data-goal="cut"].active {
    color: var(--rd-cut-color);
    border-bottom-color: var(--rd-cut-color);
}
.rd-goal-tab[data-goal="maintain"].active {
    color: var(--rd-maint-color);
    border-bottom-color: var(--rd-maint-color);
}

/* Goal panels */
.rd-goal-panel { display: none; }
.rd-goal-panel.active { display: block; }

/* Goal phase badges */
.rd-goal-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-family: 'Space Grotesk', Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.rd-goal-badge-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
}
.rd-badge-bulk     { background: var(--rd-bulk-bg);  color: var(--rd-bulk-color);  border: 0.5px solid var(--rd-bulk-border);  }
.rd-badge-cut      { background: var(--rd-cut-bg);   color: var(--rd-cut-color);   border: 0.5px solid var(--rd-cut-border);   }
.rd-badge-maint    { background: var(--rd-maint-bg); color: var(--rd-maint-color); border: 0.5px solid var(--rd-maint-border); }

/* Mod card list */
.rd-mod-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Mod cards */
.rd-mod-card {
    background: var(--rd-raised);
    border: 0.5px solid var(--rd-border-card);
    border-radius: 8px;
    padding: 11px 13px;
}
.rd-mod-card .rd-mod-title {
    font-family: 'Space Grotesk', Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 5px;
}
.rd-mod-card p {
    font-size: 12px;
    line-height: 1.6;
    color: var(--rd-steel);
    margin: 0;
}
.rd-mod-bulk     { }
.rd-mod-cut      { }
.rd-mod-maintain { }

.rd-mod-bulk .rd-mod-title     { color: var(--rd-bulk-color); }
.rd-mod-cut .rd-mod-title      { color: var(--rd-cut-color); }
.rd-mod-maintain .rd-mod-title { color: var(--rd-maint-color); }

.rd-mod-empty {
    font-size: 12px;
    color: #555;
    font-style: italic;
    padding: 8px 0;
}

/* =====================================================================
   BEAST PRODUCTS BLOCK (inside drawer) — redesigned June 2026
   Gold as accent only: accent bar, chip bg, Add button, "Add all" text.
   No gold borders on cards, no gold product names.
   ===================================================================== */
.rd-bp-section {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--rd-border);
}

/* Section header */
.rd-bp-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}
.rd-bp-accent-bar {
    width: 3px;
    height: 16px;
    background: var(--rd-gold);
    border-radius: 2px;
    flex-shrink: 0;
}
.rd-bp-label {
    font-family: 'Space Grotesk', Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--rd-steel);
}

/* Card list */
.rd-bp-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Individual product card — surface lift, no border */
.rd-bp-card {
    background: #1A1A1A;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Image / icon chip */
.rd-bp-chip {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(232, 180, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.rd-bp-chip-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}
.rd-bp-chip-icon {   /* fallback Lucide icon */
    width: 20px;
    height: 20px;
    color: var(--rd-gold);
    stroke-width: 1.5;
}

/* Text block */
.rd-bp-text {
    flex: 1;
    min-width: 0;
}
.rd-bp-name {
    font-family: 'Space Grotesk', Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--rd-bone);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rd-bp-sub {
    font-family: 'Space Grotesk', Arial, sans-serif;
    font-size: 12px;
    color: var(--rd-steel);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Action area */
.rd-bp-action {
    flex-shrink: 0;
}

/* Add button — solid gold fill, compact with cart icon */
.rd-bp-add-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--rd-gold);
    color: var(--rd-black);
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    font-family: 'Space Grotesk', Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s, transform 0.1s;
    white-space: nowrap;
}
.rd-bp-add-btn:hover:not(:disabled) {
    background: var(--rd-deep-gold);
    transform: scale(0.98);
}
.rd-bp-add-btn:active:not(:disabled) {
    transform: scale(0.96);
}
.rd-bp-add-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}
.rd-bp-add-btn--added {
    background: var(--rd-cut-color) !important;
    color: #061a0c !important;
}
.rd-bp-add-btn:focus-visible {
    outline: 2px solid var(--rd-gold);
    outline-offset: 2px;
}
.rd-bp-btn-icon {
    width: 14px;
    height: 14px;
    stroke-width: 2;
    flex-shrink: 0;
}

/* Out-of-stock label — quiet, no button frame */
.rd-bp-oos {
    font-family: 'Space Grotesk', Arial, sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #666666;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* "Add all available" ghost footer button */
.rd-bp-add-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 16px;
    background: transparent;
    color: var(--rd-gold);
    border: 1px solid rgba(232, 180, 0, 0.25);
    border-radius: 8px;
    padding: 10px 0;
    font-family: 'Space Grotesk', Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s;
    white-space: nowrap;
}
.rd-bp-add-all:hover:not(:disabled) {
    background: rgba(232, 180, 0, 0.06);
    border-color: rgba(232, 180, 0, 0.45);
}
.rd-bp-add-all:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.rd-bp-add-all--done {
    border-color: rgba(79, 200, 122, 0.4) !important;
    color: var(--rd-cut-color) !important;
}
.rd-bp-add-all:focus-visible {
    outline: 2px solid var(--rd-gold);
    outline-offset: 2px;
}

/* Responsive: tight screens */
@media (max-width: 400px) {
    .rd-bp-chip { width: 36px; height: 36px; }
    .rd-bp-chip-icon { width: 18px; height: 18px; }
    .rd-bp-add-btn { padding: 7px 12px; }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 768px) {
    .rd-page { padding: 0 20px 64px; }
    .rd-title { font-size: 1.4rem; }
    .rd-ingredients {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    /* Narrower drawer on mobile */
    .rd-notes-drawer { width: 300px; right: -300px; }
    .rd-notes-drawer.is-open { right: 0; }
    .rd-notes-tab.is-open { right: 300px; }
}
