/* /recipes (recipes.ts): the public recipes list on top of guide.css (dark; ?mode=light adds light.css; ?mode=paper too,
   plus the paper tokens below). One calm card per recipe, in one column: title · one line · needs, ONE "Copy prompt" (the
   app's lime pill: flowboard.css .fl-acc), quiet extras in the foot. Filter chips as the app's (flowboard.css .fl-fb). */
.rp-page { --lm: #c6ff3d; --lm-ln: rgba(198,255,61,.32); --lm-bg: rgba(198,255,61,.06); --sv: #c9d2dc; --sv-ln: rgba(201,210,220,.14); --sv-ln2: rgba(201,210,220,.26); }
.rp-page.light { --lm: #4a8a00; --lm-ln: rgba(74,138,0,.36); --lm-bg: rgba(198,255,61,.16); --sv: #5d6776; --sv-ln: rgba(93,103,118,.2); --sv-ln2: rgba(93,103,118,.34); }
.rp-page.light.paper { --lm: #4a7600; --lm-ln: rgba(74,118,0,.34); --lm-bg: rgba(178,214,76,.17); }

.rp-wrap { max-width: 880px; padding-bottom: 72px; }
.rp-intro { padding: 128px 0 8px; }
.rp-intro h1 { font-weight: 500; font-size: clamp(36px, 5vw, 60px); letter-spacing: -.045em; line-height: 1; margin: 14px 0 16px; }
.rp-intro h1 em { font-style: normal; color: var(--warm); }
.rp-intro .lead { color: var(--ink2); font-size: 16.5px; max-width: 62ch; margin: 0 0 14px; }
.rp-intro .lead b { color: var(--ink); font-weight: 500; }
.rp-built { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin: 0; font-size: 13px; color: var(--ink2); }
.rp-built span, .rp-n span { font-family: var(--hud); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink3); }

/* filter chips: the app's chips */
.rp-flt { display: flex; gap: 6px; flex-wrap: wrap; margin: 26px 0 16px; }
.rp-flt button { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--sv-ln); background: none; color: var(--ink2); font: 500 12px var(--sans); cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.rp-flt button em { font: 400 10.5px var(--hud); font-style: normal; color: var(--ink3); }
.rp-flt button:hover { border-color: var(--sv-ln2); color: var(--ink); }
.rp-flt button[aria-checked="true"] { background: color-mix(in srgb, var(--sv) 14%, transparent); border-color: var(--sv-ln2); color: var(--ink); }
.rp-flt button[aria-checked="true"] em { color: var(--ink2); }

/* the list */
.rp-list { display: grid; gap: 10px; }
.rp { border: 1px solid var(--ln2); border-radius: 16px; background: var(--card); padding: 18px 20px 14px; min-width: 0; transition: border-color .15s; }
.rp:hover { border-color: color-mix(in srgb, var(--ink) 16%, transparent); }
.rp[hidden] { display: none; }
.rp-hd { display: flex; align-items: flex-start; gap: 16px; }
.rp-tx { flex: 1; min-width: 0; }
.rp h3 { margin: 0 0 4px; font-size: 16.5px; font-weight: 500; letter-spacing: -.015em; line-height: 1.3; }
.rp-b { margin: 0 0 6px; color: var(--ink2); font-size: 14px; line-height: 1.5; }
.rp-n { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 0; font-size: 13px; color: var(--ink2); }
.rp-tips { margin: 10px 0 0; padding-left: 18px; color: var(--ink2); font-size: 13px; }
.rp-tips li { margin: 2px 0; }

/* the one action: the app's lime pill (lime tint, lime border and text; solid lime on hover) */
.rp-cp { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px 0 12px; border-radius: 999px; border: 1px solid var(--lm-ln); background: var(--lm-bg); color: var(--lm); font: 600 12.5px var(--sans); cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.rp-cp:hover, .rp-cp:focus-visible { background: #c6ff3d; border-color: transparent; color: #0b0d07; outline: 0; }
.rp-cp:focus-visible { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--lm); }
.rp-cp.is-ok { background: #c6ff3d; border-color: transparent; color: #0b0d07; }

/* the foot: quiet extras on one line */
.rp-ft { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--ln); }
.rp-v { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 2px; border-radius: 999px; border: 1px solid var(--sv-ln); }
.rp-v button { height: 24px; padding: 0 10px; border: 0; border-radius: 999px; background: none; color: var(--ink3); font: 500 12px var(--sans); cursor: pointer; white-space: nowrap; }
.rp-v button:hover { color: var(--ink); }
.rp-v button[aria-checked="true"] { background: color-mix(in srgb, var(--sv) 14%, transparent); color: var(--ink); }
.rp-v.is-off button[aria-checked="true"] { background: none; color: var(--ink3); }
.rp-sw { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink2); cursor: pointer; user-select: none; }
.rp-sw em { font-style: normal; color: var(--ink3); }
.rp-sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rp-swt { position: relative; flex: none; width: 26px; height: 16px; border-radius: 999px; border: 1px solid var(--sv-ln2); background: none; transition: background .15s, border-color .15s; }
.rp-swt::after { content: ''; position: absolute; left: 2px; top: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--ink3); transition: transform .15s, background .15s; }
.rp-sw input:checked + .rp-swt { background: var(--lm-bg); border-color: var(--lm-ln); }
.rp-sw input:checked + .rp-swt::after { transform: translateX(10px); background: var(--lm); }
.rp-sw input:checked ~ span em { color: var(--ink2); }
.rp-sw input:focus-visible + .rp-swt { outline: 2px solid var(--lm); outline-offset: 2px; }
.rp-rd { margin-left: auto; height: 26px; padding: 0 2px; border: 0; background: none; color: var(--ink3); font: 500 12px var(--sans); cursor: pointer; text-decoration: underline; text-decoration-color: var(--ln2); text-underline-offset: 3px; }
.rp-rd:hover, .rp-rd[aria-expanded="true"] { color: var(--ink); }
.rp-pre, .rp-rules pre { margin: 10px 0 2px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--ln); background: color-mix(in srgb, var(--ink) 3%, transparent); font: 400 12px/1.6 var(--hud); color: var(--ink2); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 320px; overflow: auto; }

.rp-more { margin: 22px 0 2px; font-family: var(--hud); font-size: 10px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; color: var(--ink3); scroll-margin-top: 88px; }
.rp-more[hidden] { display: none; }
.rp-none { color: var(--ink2); margin: 6px 0 0; }
.rp-rules { margin-top: 32px; border-top: 1px solid var(--ln); }
.rp-rules summary { cursor: pointer; list-style: none; position: relative; padding: 16px 28px 12px 0; font-weight: 500; font-size: 15px; }
.rp-rules summary::-webkit-details-marker { display: none; }
.rp-rules summary::after { content: '+'; position: absolute; right: 4px; top: 14px; font-family: var(--hud); color: var(--warm); font-size: 16px; }
.rp-rules[open] summary::after { content: '\2212'; }
.rp-plans { margin: 14px 0 0; color: var(--ink3); font-size: 12.5px; max-width: 70ch; }

.rp-toast { position: fixed; left: 50%; bottom: 24px; z-index: 30; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--ln2); background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--ink); font: 500 13px var(--sans); transform: translate(-50%, 10px); opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; max-width: calc(100% - 32px); }
.rp-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.light .rp-intro h1 em { color: #4a8a00; }
.light .rp:hover { border-color: rgba(16,19,23,.18); }

/* phones */
@media (max-width: 760px) {
  .rp-intro { padding-top: 96px; }
  .gbar a.back { display: none; }
  .rp { padding: 16px 16px 12px; }
  .rp-hd { flex-direction: column; gap: 12px; }
  .rp-cp { height: 36px; }
  .rp-rd { margin-left: 0; }
  .rp-v { max-width: 100%; }
  .rp-v button { padding: 0 9px; }
}
@media (prefers-reduced-motion: reduce) { .rp-toast, .rp-swt, .rp-swt::after { transition: none; } }

/* paper: warm paper tokens (as the app's Paper look, flowlook.css) */
body.light.paper { --bg: #f4f1ea; --ink: #2a2620; --ink2: #57514a; --ink3: #6a6359; --ln: rgba(72,60,42,.12); --ln2: rgba(72,60,42,.2); --card: rgba(251,249,244,.7); --glass: rgba(251,249,244,.78); --warm: #4a7600; --lime: #4a7600; --dot: rgba(72,60,42,.09); }
body.light.paper .rp-intro h1 em { color: #4a7600; }
