/* Shared book controls: Nom geometry, Caddie headings and Favori person sizing. */
:root{--book-inset:20px;--content-inset:40px;--section-action-width:88px;--section-action-height:52px;--book-key-height:52px;--book-person-size:64px;--book-person-font:28px;--book-person-label:13px;--book-accent:#356f62;--instruction-red:#a62b36}
/* Five full-width rectangles per row, without rules around the navigation. */
html .frame>header{box-sizing:border-box;width:calc(100% - 2 * var(--book-inset));max-width:960px;margin-inline:auto;padding-inline:0}
html .frame>header{border:0}
html .rdnp-responsive-content > .view>:is(.notes-panel,.bemols-panel,.planning-panel,.shopping-panel,.family-home):not([hidden]),
html .frame .shopping-content:not([hidden]){display:flow-root;box-sizing:border-box;width:100%;max-width:none;margin:0;padding:0;border:0}
/* A selected ingredient and a selected bémol use exactly the same square. */
html .frame .unified-selector :is(.ingredient-selection-list,.bemol-selection-list,.bemol-selection-list:empty){grid-auto-columns:76px;gap:9px;height:92px;min-height:92px;max-height:92px}
html .frame .unified-selector :is(.ingredient-selection-list,.bemol-selection-list) .catalogue-chip{width:76px;height:76px;min-height:76px;padding:3px;aspect-ratio:1;gap:2px}
html .frame .unified-selector :is(.ingredient-selection-list,.bemol-selection-list) .catalogue-choice-icon{width:30px;height:30px;flex:0 0 30px}
html .frame .unified-selector :is(.ingredient-selection-list,.bemol-selection-list) .catalogue-choice-name{position:static;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;width:100%;height:auto;max-height:36px;clip-path:none;overflow:hidden;white-space:normal;overflow-wrap:anywhere;font-size:11px;line-height:12px;text-align:center}
html .frame .rmp-person-cell{position:relative;display:block;box-sizing:border-box;width:calc(var(--book-person-size) + 34px);max-width:100%;padding:0;margin:0;--person-choice-size:var(--book-person-size);--person-satellite-size:26px;--person-satellite-radius:calc((var(--person-choice-size) + var(--person-satellite-size)) / 2 - 1.414px);--person-satellite-x:calc(var(--person-satellite-radius) * .882948);--person-satellite-y:calc(var(--person-satellite-radius) * .469472);--person-edit-size:var(--person-satellite-size)}
html .frame :is(.view[data-view],.reading-page) .rmp-person-choice{--person-choice-size:var(--book-person-size);--person-satellite-size:26px;--person-satellite-radius:calc((var(--person-choice-size) + var(--person-satellite-size)) / 2 - 1.414px);--person-satellite-x:calc(var(--person-satellite-radius) * .882948);--person-satellite-y:calc(var(--person-satellite-radius) * .469472);position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:1px!important;width:var(--person-choice-size);min-width:0;margin:0;padding:0;border:0!important;border-radius:0;background:transparent!important;box-shadow:none!important;overflow:visible!important;font:inherit;color:var(--person-ink,var(--planning-person-color,var(--ink)))}
html .frame .view[data-view] .rmp-person-cell>.rmp-person-choice{width:100%;gap:1px!important}
html .frame :is(.view[data-view],.reading-page) .rmp-person-choice>:is(.mono,.notes-person-initial){display:grid;place-items:center;box-sizing:border-box;width:var(--person-choice-size)!important;height:var(--person-choice-size)!important;min-height:0;margin:0;border:1px solid var(--person-ink,var(--planning-person-color,var(--ink)))!important;border-radius:50%;background:var(--person-fill,var(--planning-person-fill,var(--card)))!important;color:var(--person-ink,var(--planning-person-color,var(--ink)))!important;opacity:1!important;box-shadow:none!important;font-size:var(--book-person-font)!important;font-weight:400!important;text-decoration:none!important}
html .frame :is(.view[data-view],.reading-page) .rmp-person-choice[aria-pressed=true]>:is(.mono,.notes-person-initial){font-weight:400!important;-webkit-text-stroke:0;box-shadow:inset 0 0 0 1px currentColor,0 0 0 1px currentColor!important}
html .frame :is(.view[data-view],.reading-page) .rmp-person-choice>:is(.lbl,.notes-person-name){display:block;color:var(--person-ink,var(--planning-person-color,var(--ink)))!important;font-size:var(--book-person-label);font-weight:400!important;line-height:13px;text-decoration:none!important;letter-spacing:0;text-align:center;white-space:normal;overflow-wrap:anywhere;margin:0}
html .frame :is(.view[data-view],.reading-page) .rmp-person-choice[aria-pressed=true]>:is(.lbl,.notes-person-name){font-weight:400!important}
html .frame :is(.view[data-view],.reading-page) .rmp-person-choice>:is(.lbl,.notes-person-name)::after{content:none!important}
html .frame .rmp-person-cell::before,html .frame .rmp-person-cell::after,
html .frame :is(.view[data-view],.reading-page) .rmp-person-choice:not(.rmp-person-cell>.rmp-person-choice)::before,html .frame :is(.view[data-view],.reading-page) .rmp-person-choice:not(.rmp-person-cell>.rmp-person-choice)::after{content:'';position:absolute;z-index:3;top:calc(var(--person-choice-size) / 2 - var(--person-satellite-y) - var(--person-satellite-size) / 2);display:block;box-sizing:border-box;width:var(--person-satellite-size);height:var(--person-satellite-size);border:1px solid var(--person-ink,var(--planning-person-color,var(--ink)));border-radius:50%;background:var(--person-fill,var(--planning-person-fill,var(--card)));box-shadow:none;pointer-events:none}
html .frame .rmp-person-cell::before,html .frame :is(.view[data-view],.reading-page) .rmp-person-choice:not(.rmp-person-cell>.rmp-person-choice)::before{left:calc(50% + var(--person-satellite-x) - var(--person-satellite-size) / 2)}
html .frame .rmp-person-cell::after,html .frame :is(.view[data-view],.reading-page) .rmp-person-choice:not(.rmp-person-cell>.rmp-person-choice)::after{top:calc(var(--person-choice-size) / 2 + var(--person-satellite-y) - var(--person-satellite-size) / 2);left:calc(50% + var(--person-satellite-x) - var(--person-satellite-size) / 2)}
html .frame .rmp-person-cell :is(.rmp-person-default,.rmp-person-edit){position:absolute;z-index:4;top:calc(var(--person-choice-size) / 2 - var(--person-satellite-y) - var(--person-satellite-size) / 2);right:auto;bottom:auto;display:grid;place-items:center;box-sizing:border-box;width:var(--person-satellite-size);height:var(--person-satellite-size);min-width:0;min-height:0;padding:0;margin:0;border:1px solid var(--person-ink,var(--ink));border-radius:50%;background:var(--person-fill,var(--card));color:var(--person-ink,var(--ink));box-shadow:none;cursor:pointer}
html .frame .rmp-person-cell .rmp-person-default{left:calc(50% + var(--person-satellite-x) - var(--person-satellite-size) / 2)}
html .frame .rmp-person-cell .rmp-person-edit{top:calc(var(--person-choice-size) / 2 + var(--person-satellite-y) - var(--person-satellite-size) / 2);left:calc(50% + var(--person-satellite-x) - var(--person-satellite-size) / 2);overflow:hidden}
html .frame .rmp-person-cell :is(.rmp-person-edit,.rmp-person-default)[hidden]{display:none}
html .frame .rmp-person-cell:has(>.rmp-person-choice[aria-pressed=true])::before,html .frame .rmp-person-cell:has(>.rmp-person-choice[aria-pressed=true])::after,
html .frame .rmp-person-cell:has(>.rmp-person-choice[aria-pressed=true]) :is(.rmp-person-default,.rmp-person-edit),
html .frame :is(.view[data-view],.reading-page) .rmp-person-choice[aria-pressed=true]:not(.rmp-person-cell>.rmp-person-choice)::before,html .frame :is(.view[data-view],.reading-page) .rmp-person-choice[aria-pressed=true]:not(.rmp-person-cell>.rmp-person-choice)::after{box-shadow:inset 0 0 0 1px var(--person-ink,var(--planning-person-color,var(--ink))),0 0 0 1px var(--person-ink,var(--planning-person-color,var(--ink)))!important}
html .frame .rmp-person-cell .rmp-person-default .rmp-person-default-check{appearance:none;display:block;position:absolute;inset:0;box-sizing:border-box;width:100%;height:100%;padding:0;margin:0;border:0;border-radius:50%;background:transparent;box-shadow:none;cursor:pointer}
html .frame .rmp-person-default .person-pin-icon{position:absolute;inset:4px;width:calc(100% - 8px);height:calc(100% - 8px);color:var(--person-ink,var(--ink));pointer-events:none;display:block;opacity:.55}
html .frame .rmp-person-default-check:checked+.person-pin-icon{opacity:1;stroke-width:1.6}
html .frame .rmp-person-default[aria-busy=true]{opacity:.6}
html .frame .rmp-person-cell .rmp-person-edit svg{position:static;display:block;width:calc(var(--person-satellite-size) - 8px);height:calc(var(--person-satellite-size) - 8px);max-width:none;max-height:none;transform:none}
html .frame .rmp-person-edit .person-confirm-label{font-family:inherit;font-size:11px;font-weight:700;line-height:1;letter-spacing:-.05em}
html .frame :is(.rmp-person-choice,.rmp-person-default-check,.rmp-person-edit):focus-visible{outline:2px solid var(--person-ink,var(--ink));outline-offset:4px}
html .frame .rmp-person-default-status{grid-column:1/-1;width:100%;margin:8px 0 0;font-size:13px;color:#a62b36}
html .frame :is(.view[data-view],.reading-page) :is(.notes-person-link,.planning-rendezvous-person).rmp-person-choice{--person-choice-size:36px;--person-satellite-size:16px;gap:1px!important;font-size:10px}
html .frame :is(.view[data-view],.reading-page) :is(.notes-person-link,.planning-rendezvous-person).rmp-person-choice>:is(.mono,.notes-person-initial){font-size:18px!important}
html .frame :is(.view[data-view],.reading-page) :is(.notes-person-link,.planning-rendezvous-person).rmp-person-choice>:is(.lbl,.notes-person-name){font-size:10px;line-height:12px}
html .frame .planning-panel .planning-rendezvous-entry .planning-rendezvous-person.rmp-person-choice{width:var(--person-choice-size);flex:none}
html .frame .planning-rendezvous-entry .planning-rendezvous-people:has(>.rmp-person-choice){gap:12px;max-width:100%;padding:7px 4px}
/* Page selectors share the Course palette and the approved two fixed sizes.
   Home and the person controls inside recipe sheets keep their own layout. */
html .frame .view[data-view] :has(>.rmp-page-person-cell){--book-person-size:62px}
html .frame .view[data-view] .rmp-page-person-cell,
html .frame .view[data-view] .rmp-page-person-cell>.rmp-person-choice{
 --book-person-size:62px;--book-person-font:25px;--book-person-label:12px;
 --person-choice-size:var(--book-person-size);--person-satellite-size:24px;
 --person-satellite-radius:calc((var(--person-choice-size) + var(--person-satellite-size)) / 2 - .5px);
 font-family:var(--ui-font-menu-family);gap:2px!important;
}
html .frame .view[data-view] .rmp-page-person-cell>.rmp-person-choice>:is(.mono,.notes-person-initial){line-height:1}
html .frame .view[data-view] .rmp-page-person-cell>.rmp-person-choice>:is(.lbl,.notes-person-name){line-height:15px}
html .frame .view[data-view] .rmp-page-person-cell::before,
html .frame .view[data-view] .rmp-page-person-cell::after{display:none}
html .frame .view[data-view] .rmp-page-person-cell :is(.rmp-person-default,.rmp-person-edit){box-shadow:none!important;opacity:1}
html .frame .view[data-view] .rmp-page-person-cell .person-pin-icon{visibility:hidden;opacity:1;stroke-width:1.6;inset:3px;width:16px;height:16px}
html .frame .view[data-view] .rmp-page-person-cell .rmp-person-default-check:checked+.person-pin-icon{visibility:visible;stroke-width:1.6}
html .frame .view[data-view] .rmp-page-person-cell .rmp-person-edit svg{width:16px;height:16px}
@media(max-width:699px){
 html .frame .view[data-view] :has(>.rmp-page-person-cell),
 html .frame .view[data-view] .rmp-page-person-cell,
 html .frame .view[data-view] .rmp-page-person-cell>.rmp-person-choice{--book-person-size:52px}
}
html .frame .notes-panel>.planning-unavailability{width:calc(100% - 2 * var(--book-inset));max-width:960px;margin:0 auto 18px;padding:8px 0;border:0}
html .frame .planning-unavailability[hidden]{display:none}
html .frame .notes-selection-actions :is(.notes-add,.notes-edit){color:#3e7d64}
html .frame .notes-selection-actions .notes-remove{color:#a73748}
html .frame .notes-selection-actions .notes-freeze{color:#b18023}
html .frame .notes-selection-actions .notes-archive-toggle{color:#5974a3}
html .frame .notes-notebook .notes-workspace{align-items:stretch}
html .frame .notes-notebook .notes-sidebar{display:flex;flex-direction:column;min-width:0;align-self:stretch}
html .frame .notes-notebook .notes-sidebar>.notes-list-pages{display:flex;flex-wrap:nowrap;align-items:stretch;justify-content:space-between;gap:5px;width:100%;padding:12px 0 0;margin-top:auto}
html .frame .notes-notebook .notes-sidebar>.notes-list-pages button{flex:1 1 0;min-width:0;width:0;min-height:36px;padding:5px 2px;font-size:11px;line-height:1.2;white-space:normal}
/* Month navigation and note tools share the same rectangular action frame. */
html .frame .notes-month-header>button{font-size:23px;line-height:1}
html .frame .view[data-view=notes] .notes-notebook .notes-header .notes-selection-actions button{box-sizing:border-box;flex:0 0 40px;display:grid;place-items:center;width:var(--ui-button-height);height:var(--ui-button-height);min-width:var(--ui-button-height);min-height:var(--ui-button-height);max-width:var(--ui-button-height);max-height:var(--ui-button-height);margin:0;padding:2px;border:1px solid var(--line);border-radius:5px;background:var(--card);box-shadow:none;font-size:13px}
html .frame .view[data-view=notes] .notes-notebook .notes-header .notes-selection-actions button>svg{width:32px;height:22px;max-width:100%;max-height:100%}
@media(max-width:1000px) and (min-width:700px){:root{--book-key-height:46px;--book-person-size:56px;--book-person-font:25px;--book-person-label:12px}}
@media(max-width:699px){
 html .frame :is(.rmp-person-cell,.rmp-person-choice){--person-satellite-size:22px;--person-edit-size:var(--person-satellite-size)}
 :root{--book-inset:10px;--content-inset:10px;--section-action-width:52px;--section-action-height:36px;--book-key-height:32px;--book-person-size:42px;--book-person-font:22px;--book-person-label:10px}
 html .frame>header{padding-block:2px}
 html .frame>header .title{line-height:1}
 html .frame .site-colophon{line-height:4px;margin:0}
 html .frame .notes-person-edit{padding:2px}
 html .frame .notes-person-edit svg{width:15px;height:15px}
 html .frame .planning-regular{width:22px;height:22px;right:-5px}
 html .frame .notes-notebook .notes-sidebar>.notes-list-pages{margin-top:12px}
}
@media(max-width:359px){:root{--book-key-height:30px;--book-person-size:38px;--book-person-font:20px}}

/* Mobile selections grow down the page instead of requiring a sideways gesture. */
@media(max-width:699px){
 html .frame .unified-selector :is(.ingredient-selection-list,.bemol-selection-list,.bemol-selection-list:empty){grid-auto-flow:row;grid-template-columns:repeat(var(--ui-selection-columns),minmax(0,1fr));grid-auto-columns:auto;gap:8px;height:auto;min-height:0;max-height:none;overflow:visible;padding-bottom:4px}
 html .frame .unified-selector :is(.ingredient-selection-list,.bemol-selection-list) .catalogue-chip{width:100%;max-width:76px;height:76px}
}

/* Discreet colophon above the masthead; installation and household tools below. */
html .frame .site-colophon{font-size:clamp(3px,.55vw,5px);line-height:8px;font-weight:400;letter-spacing:0;text-align:center;white-space:nowrap;color:var(--ink);opacity:.12;margin:0 0 2px;padding:0}
html .frame .site-recipe-actions{display:flex;flex-wrap:nowrap;align-items:center;gap:5px;flex:none;margin:0}
html .frame .site-recipe-actions:empty{display:none}
html .frame .family-person-inactive{display:none!important}

@media(max-width:699px){
html .frame .site-recipe-actions{gap:3px}}
html .frame .type-cell[hidden],html .frame .view[data-view=pays] .pays-grid[hidden]{display:none!important}

html .frame :is(.reading-section-header,.shopping-category-header)[hidden],html .frame :is(.reading-section-header,.shopping-category-header)>button[hidden]{display:none!important}
/* Content panels share the recipe grid's outer edges. */
html .frame .unified-selector :is(.ingredient-suggestions,.bemol-ingredients,.shopping-results,.shopping-category){box-sizing:border-box;width:calc(100% - 2 * var(--content-inset));max-width:none;margin-inline:auto}
html .frame .unified-selector .ingredient-suggestions :is(.catalogue-groups,.catalogue-selection){width:100%;max-width:none}
html .frame .unified-selector .catalogue-choice.catalogue-ingredient:not(.catalogue-chip) .catalogue-choice-mark{display:none}
html .frame .unified-selector .catalogue-choice.catalogue-ingredient:hover{background:transparent;box-shadow:none;transform:none}
html .frame .view[data-view=ingredients] .catalogue-choice.catalogue-ingredient .catalogue-choice-mark{display:none}
html .frame .notes-panel>.notes-month-view{padding:0;border:0;border-radius:0;background:transparent}
html .frame .notes-month-header{display:flex;align-items:center;justify-content:center;gap:10px;flex:1 1 100%;width:100%;padding:0;margin:0;background:transparent;border:0;font-size:18px;text-transform:none}
html .frame .notes-month-header>button{width:38px;height:30px;min-height:30px;margin:0;padding:0;border:1px solid var(--line);border-radius:5px;background:var(--card);font:22px/1 inherit}
html .frame .notes-month-label{font-size:18px;font-weight:400;text-transform:none}
html .frame .notes-month-view>.notes-calendar-filters,html .frame .notes-notebook .notes-header .notes-type-filters{display:grid;grid-template-columns:repeat(var(--ui-note-filter-columns),minmax(0,1fr));justify-content:center;align-items:stretch;width:100%;flex:1 1 100%;gap:5px}
html .frame :is(.notes-calendar-filters,.notes-type-filters)>button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;box-sizing:border-box;width:100%;min-width:0;max-width:none;height:70px;min-height:70px;max-height:none;flex:none;padding:4px 2px;margin:0;border:1px solid var(--line);border-radius:5px;font-size:10px;line-height:1.15;text-align:center}
html .frame :is(.notes-calendar-filters,.notes-type-filters)>button>:is(svg,img,.notes-category-icon){display:block;flex:none;width:36px;height:36px;max-width:100%;max-height:36px;object-fit:contain}
html .frame .notes-notebook .notes-header .notes-selection-actions{order:-1;margin:0;width:100%;justify-content:flex-start}
html .frame .notes-day-temperatures{display:grid;grid-template-columns:auto auto;grid-template-rows:auto auto;align-items:center;gap:0 2px;line-height:1.2}
html .frame .notes-temperature-unit{grid-column:2;grid-row:1/3}
html .frame .notes-temperature-high{grid-column:1;grid-row:1;color:#b33438}
html .frame .notes-temperature-low{grid-column:1;grid-row:2;color:#2867a2}
html .frame .notes-reference-event>summary{display:flex;align-items:center;justify-content:flex-start;gap:2px;width:auto}
html .frame .notes-reference-event-plus{margin-left:0}
html .frame .planning-calendar-bands{border:0;border-radius:0}
html .frame .notes-notebook .notes-sidebar>.notes-list-pages{justify-content:center}
@media(max-width:699px){
 html .frame :is(.notes-calendar-filters,.notes-type-filters)>button{height:66px;min-height:66px}
}

/* Search lines contain the typed words, never totals. */
html .frame :is(.query-count,.results-count,.shopping-query-count,.planning-query-count,.notes-query-count){display:none!important}
html .frame .catalog-pin-cell{position:relative;display:grid;justify-items:center;align-items:start;width:100%;min-width:0;max-width:140px}
html .frame .catalog-pin-cell>.catalog-pin{position:absolute;top:0;left:calc(50% + 22px);display:grid;place-items:center;width:22px;height:22px;padding:4px;border:1px solid var(--line);border-radius:50%;background:var(--paper);color:var(--ink);cursor:pointer}
html .frame .catalog-pin svg{width:100%;height:100%;opacity:.4}
html .frame .catalog-pin[aria-pressed=true] svg{opacity:1;stroke-width:2}
html .frame .catalog-pin[hidden],html .frame .catalog-pin-cell[hidden]{display:none!important}
html .frame .catalog-pin-cell :is(.type-cell,.pays-cell){width:100%;margin:0}
html .frame .source-users-grid .source-cell .mono{background:transparent;color:var(--ink)}
html .frame .source-users-grid .source-cell .lbl{font:inherit;font-size:13px;text-align:center}

@media(max-width:699px){
 html .frame .site-colophon{line-height:4px;margin:0}
}
