/* Resources page. Everything is scoped under .rf so the main site styles stay untouched. */
.rf {
  --cream: #f8f3e9;
  --cream-2: #fbf7ee;
  --paper: #fffdf8;
  --dark: #10342c;
  --green: #173f35;
  --ink: #233e34;
  --gold: #d5b779;
  --gold-btn: #dfc18b;
  --gold-ink: #7a5f2a;
  --gold-soft: #f1e6cc;
  --line: #d5d8ca;
  --muted: #5d6959;
  --sage: #e3eadf;
  --open: #24614a;
  --warn: #8a4b14;
  --warn-soft: #f6e3cf;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
  --pad: 24px;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
}
.rf [hidden] { display: none !important; }
.rf a { color: var(--green); }
.rf .wrap { max-width: 880px; margin: 0 auto; padding: 0 var(--pad); }

/* hero */
.rf-hero { background: var(--green); color: var(--cream); padding: 56px 0 34px; }
.rf-hero .eyebrow { display: flex; align-items: center; gap: 13px; margin: 0 0 18px; color: #dbbf8b; }
.rf-hero h1 { font-size: clamp(44px, 5vw, 70px); line-height: 1.04; margin: 0 0 16px; max-width: none; color: var(--cream); }
.rf-hero h1 em { color: #e2c992; }
.rf-hero .hero-sub { margin: 0 0 24px; color: #e1e7dc; font-size: 16px; line-height: 1.6; max-width: 46ch; }
.rf .hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.rf-filter { display: inline-flex; margin-top: 22px; border: 1px solid rgba(248, 243, 233, 0.45); border-radius: 12px; overflow: hidden; }
.rf-filter button { font: inherit; font-size: 14px; min-height: 44px; padding: 0 18px; background: transparent; color: var(--cream); border: 0; border-right: 1px solid rgba(248, 243, 233, 0.3); cursor: pointer; }
.rf-filter button:last-child { border-right: 0; }
.rf-filter button[aria-pressed="true"] { background: var(--gold-btn); color: var(--dark); }
.rf-filter-label { display: block; margin-top: 22px; font-size: 11px; letter-spacing: .17em; text-transform: uppercase; color: #dbbf8b; }
.rf-filter-label + .rf-filter { margin-top: 8px; }

.rf .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 18px; border-radius: 12px;
  font: inherit; font-size: 15px; text-decoration: none; cursor: pointer;
  border: 1px solid var(--green); background: transparent; color: var(--green);
}
.rf .btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.rf .btn-gold { background: var(--gold-btn); border-color: var(--gold-btn); color: var(--dark); }
.rf .btn-ghost { border-color: rgba(248, 243, 233, 0.6); color: var(--cream); }
.rf .picker { position: relative; overflow: hidden; }
.rf .picker input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; margin: 0; }
.rf .picker input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.rf :focus-visible { outline: 3px solid #ba8235; outline-offset: 3px; }

/* day strip */
.rf-days { background: var(--cream-2); border-bottom: 1px solid var(--line); }
.rf .days-track { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0; scrollbar-width: none; }
.rf .days-track::-webkit-scrollbar { display: none; }
.rf .day {
  flex: 1 0 62px; min-width: 62px; padding: 8px 6px 9px; text-align: center;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  font: inherit; cursor: pointer; border-radius: 12px;
}
.rf .day b { display: block; font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.1; }
.rf .day span { display: block; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.rf .day i { display: block; font-style: normal; font-size: 11px; color: var(--gold-ink); margin-top: 2px; min-height: 16px; }
.rf .day[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--cream); }
.rf .day[aria-pressed="true"] span, .rf .day[aria-pressed="true"] i { color: var(--gold); }

/* notices */
.rf .notice { margin-top: 16px; padding: 12px 14px; border: 1px solid var(--line); background: var(--paper); font-size: 14px; border-radius: 12px; }
.rf .notice strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 18px; color: var(--green); margin-bottom: 2px; }
.rf .notice.warn { background: var(--warn-soft); border-color: #e7c9a8; }
.rf .notice.warn strong { color: var(--warn); }
.rf .notice.gold { background: var(--gold-soft); border-color: #e2cf9f; }
.rf .notice.gold strong { color: var(--gold-ink); }

/* sections */
.rf-body { padding: 6px 0 40px; }
.rf .section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 30px 0 4px; }
.rf .section-head h2 { font-family: var(--serif); font-weight: 400; font-size: 28px; letter-spacing: -0.8px; margin: 0; color: var(--green); }
.rf .section-head p { margin: 0; font-size: 13px; color: var(--muted); text-align: right; }

/* cards */
.rf .card { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; margin-top: 12px; padding: 16px 14px 14px 12px; }
.rf .card.ended { opacity: 1; border-style: dashed; } /* Dec 2026: was opacity .72, which pushed gray text below readable contrast */
.rf .card.unconfirmed, .rf .info.unconfirmed { background: var(--cream-2); border-style: dashed; }
.rf .time { border-right: 1px solid var(--line); padding-right: 10px; text-align: right; }
.rf .time b { display: block; font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1; letter-spacing: -0.5px; color: var(--green); }
.rf .time span { display: block; font-size: 11px; letter-spacing: 1.5px; color: var(--muted); margin-top: 3px; }
.rf .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.rf .tag { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; padding: 3px 8px; background: var(--sage); color: var(--green); border-radius: 6px; }
.rf .tag.open { background: var(--open); color: #fff; }
.rf .tag.later { background: var(--gold-soft); color: var(--gold-ink); }
.rf .tag.ended { background: #ebe8df; color: var(--muted); }
.rf .tag.warn { background: var(--warn-soft); color: var(--warn); }
.rf .tag.ok { background: var(--sage); color: var(--green); }
.rf .tag.cat-food { background: #fff; color: var(--green); box-shadow: inset 0 0 0 1px #c9d3c2; }
.rf .tag.cat-clothing { background: #fff; color: #6a4f86; box-shadow: inset 0 0 0 1px #d6cbe2; }
.rf .tag.who-tag { background: #eef0f6; color: #34416a; text-transform: none; letter-spacing: 0; font-size: 12px; }
.rf .card h3, .rf .info h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.15; letter-spacing: -0.5px; margin: 0 0 4px; color: var(--dark); }
.rf .when { margin: 0; font-size: 15px; color: var(--ink); }
.rf .when .hl { display: inline-block; margin-top: 4px; padding: 2px 8px; background: var(--gold-soft); color: var(--gold-ink); font-size: 13px; border-radius: 6px; }
.rf .where { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.rf .offers { list-style: none; margin: 12px 0 0; padding: 0; font-size: 14px; }
.rf .offers li { position: relative; padding-left: 22px; margin: 5px 0; }
.rf .offers li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 9px; height: 5px; border-left: 2px solid var(--open); border-bottom: 2px solid var(--open); transform: rotate(-45deg); }
.rf .who { margin: 12px 0 0; font-size: 14px; }
.rf .who b { font-weight: 400; color: var(--muted); }
.rf .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.rf .actions .btn { min-height: 44px; padding: 0 14px; font-size: 14px; flex: 1 1 auto; }
.rf .actions .btn-gold { flex: 1 1 100%; }
.rf .card details { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; font-size: 14px; }
.rf .card summary { cursor: pointer; color: var(--green); min-height: 32px; display: flex; align-items: center; list-style: none; }
.rf .card summary::-webkit-details-marker { display: none; }
.rf .card summary::after { content: "+"; margin-left: auto; font-size: 20px; color: var(--gold-ink); }
.rf .card details[open] summary::after { content: "–"; }
.rf .detail h4 { margin: 12px 0 4px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-ink); font-weight: 400; }
.rf .detail p, .rf .detail ul { margin: 0; }
.rf .detail ul { padding-left: 18px; }
.rf .detail li { margin: 3px 0; }
.rf .phones a { display: inline-block; margin-right: 8px; }

.rf .info { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-top: 12px; }
.rf .info .why { margin: 4px 0 0; font-size: 15px; }
.rf .info .src { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
.rf .info.soon { background: #fff; }
.rf .info.soon p { margin: 0; font-size: 14px; }

.rf .empty { margin-top: 16px; padding: 22px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.rf .empty h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin: 0 0 6px; color: var(--green); letter-spacing: -0.5px; }
.rf .empty p { margin: 0 0 14px; color: var(--muted); }

/* before you go + page notes */
.rf-before { background: #e6e8db; padding: 46px 0 40px; }
.rf-before h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; letter-spacing: -0.8px; margin: 0 0 14px; color: var(--green); }
.rf-before ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid #cad1c0; }
.rf-before li { padding: 14px 0; border-bottom: 1px solid #cad1c0; font-size: 15px; line-height: 1.6; color: #3c4f42; }
.rf-before li b { color: var(--dark); font-weight: 700; }
.rf-notes { background: #fff; border-top: 1px solid var(--line); padding: 30px 0 34px; font-size: 14px; color: #3c4f42; }
.rf-notes p { margin: 0 0 10px; }
.rf-notes .checked { font-family: var(--serif); font-size: 19px; color: var(--green); }
.rf-notes .small { font-size: 12px; color: var(--muted); }

@media (min-width: 720px) {
  .rf { --pad: 40px; }
  .rf .actions .btn-gold { flex: 1 1 auto; }
  .rf .card { padding: 18px 18px 16px 14px; grid-template-columns: 66px minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .rf-hero { padding: 42px 0 28px; }
  .rf-hero h1 { font-size: 44px; }
  .rf-hero .hero-sub { font-size: 15px; }
}
@media (max-width: 350px) {
  .rf { --pad: 18px; }
  .rf-hero h1 { font-size: 38px; }
  .rf-filter button { padding: 0 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  .rf .card, .rf .info { animation: rf-rise 0.25s ease-out both; }
  .rf .card.ended { animation: none; }
}
@keyframes rf-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media print {
  .header, .mobile-nav, .rf-filter, .rf-filter-label, .hero-actions, .rf-days, .rf .actions, .rf .card details, footer { display: none !important; }
  .rf-hero { background: none; color: #000; padding: 0 0 10px; }
  .rf-hero h1, .rf-hero .hero-sub, .rf-hero .eyebrow { color: #000; }
  .rf .card, .rf .info { break-inside: avoid; animation: none; }
}
@media (min-width: 720px) { .rf .info.soon .actions .btn { flex: 0 0 auto; } }
.rf-notes a, .rf-before a, .rf .detail a { text-decoration: underline; text-underline-offset: 3px; }
/* Phone fixes (Nov 1, 2026) */
.rf .picker input { font-size: 16px; } /* stops iPhone zooming in when the date picker opens */
.rf .card summary { min-height: 44px; }
@media (max-width: 560px) {
  .rf .days-track { gap: 5px; overflow-x: visible; }
  .rf .day { flex: 1 1 0; min-width: 0; padding: 8px 2px 9px; }
  .rf .day span { letter-spacing: .5px; font-size: 10.5px; }
  .rf .day b { font-size: 20px; }
  .rf .day i .w { display: none; }
  .rf .day i .n { display: inline-block; min-width: 18px; padding: 0 4px; border-radius: 9px; background: var(--gold-soft); color: var(--gold-ink); font-size: 11px; line-height: 16px; }
  .rf .day[aria-pressed="true"] i .n { background: var(--gold); color: var(--dark); }
}
/* Keep the page from jumping while the list fills in */
.rf .days-track { min-height: 84px; }
.rf-loading .rf-body, .rf-loading .rf-before, .rf-loading .rf-notes, .rf-loading ~ footer { visibility: hidden; }
.rf .day .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rf .day { position: relative; }
.rf .days-track { min-height: 123px; }
@media (max-width: 560px) { .rf .days-track { min-height: 104px; } }
/* Dark mode (added Nov 1, 2026) */
@media screen {
  html[data-theme="dark"] .rf {
    --cream-2: #102620; --paper: #132b24; --ink: #ece4d3; --line: #2a453b; --muted: #a9b8a6;
    --sage: #1d3a30; --gold-soft: #3a3220; --gold-ink: #e2c992; --warn-soft: #3a2416; --warn: #f2b48a;
    --open: #2e7658; --green: #b9dcc6;
  }
  html[data-theme="dark"] .rf-hero { background: #143329; }
  html[data-theme="dark"] .rf .card h3, html[data-theme="dark"] .rf .info h3, html[data-theme="dark"] .rf .empty h3 { color: #f1e8d6; }
  html[data-theme="dark"] .rf .day[aria-pressed="true"] { background: #dfc18b; border-color: #dfc18b; color: #10342c; }
  html[data-theme="dark"] .rf .day[aria-pressed="true"] span, html[data-theme="dark"] .rf .day[aria-pressed="true"] i { color: #10342c; }
  html[data-theme="dark"] .rf .day[aria-pressed="true"] i .n { background: #10342c; color: #dfc18b; }
  html[data-theme="dark"] .rf .tag.ended { background: #24342e; }
  html[data-theme="dark"] .rf .tag.cat-food { background: #132b24; color: #b9dcc6; box-shadow: inset 0 0 0 1px #355447; }
  html[data-theme="dark"] .rf .tag.cat-clothing { background: #1f1a2b; color: #d3bff0; box-shadow: inset 0 0 0 1px #4a3d63; }
  html[data-theme="dark"] .rf .tag.who-tag { background: #1d2540; color: #c3cdf2; }
  html[data-theme="dark"] .rf .notice.warn { border-color: #6b4630; }
  html[data-theme="dark"] .rf .notice.gold { border-color: #5e5132; }
  html[data-theme="dark"] .rf .info.soon { background: #132b24; }
  html[data-theme="dark"] .rf-before { background: #152e26; }
  html[data-theme="dark"] .rf-before h2 { color: #f1e8d6; }
  html[data-theme="dark"] .rf-before ul, html[data-theme="dark"] .rf-before li { border-color: #2a453b; }
  html[data-theme="dark"] .rf-before li { color: #c9d2c4; }
  html[data-theme="dark"] .rf-before li b { color: #ece4d3; }
  html[data-theme="dark"] .rf-notes { background: #11271f; border-top-color: #22403a; color: #c9d2c4; }
  html[data-theme="dark"] .rf-notes .checked { color: #e2c992; }
  html[data-theme="dark"] .rf .btn-gold { color: #10342c; }
}

/* Readable text on phones (added Nov 10, 2026, from the impeccable audit) */
@media (max-width: 700px) {
  .rf-filter-label, .rf .time span, .rf .tag, .rf .detail h4 { font-size: 12px; }
  .rf .day span { font-size: 12px; letter-spacing: 0; }
  .rf .day i, .rf .day i .n { font-size: 12px; }
  .rf .where, .rf .offers, .rf .who, .rf .notice, .rf .card details, .rf .info.soon p, .rf-notes { font-size: 15px; }
  .rf .section-head p, .rf .when .hl { font-size: 14px; }
  .rf .info .src, .rf-notes .small { font-size: 13px; }
  .rf .days-track { min-height: 127px; }
  .rf .card summary { gap: 12px; }
}
@media (max-width: 560px) { .rf .days-track { min-height: 107px; } }

/* Critique fixes (added Nov 10, 2026): readable line length on desktop, and no dark bar
   across the selected day in dark mode on wider screens (the count is a pill only on phones). */
.rf .info p, .rf-before ul, .rf-notes p { max-width: 62ch; }
@media screen and (min-width: 561px) {
  html[data-theme="dark"] .rf .day[aria-pressed="true"] i .n { background: transparent; color: inherit; }
}
