/* ============================================================================
   Costco97 — reading archives (Blog + Recipes, from Blog Archive.dc.html).
   Accent switches per archive via the --ra vars.
   ========================================================================== */

.c97ra--blog   { --ra-accent: #5b4b8a; --ra-tint: #f1eefb; --ra-line: #e2dcf3; }
.c97ra--recipe { --ra-accent: #BE4A1E; --ra-tint: #FBF0E8; --ra-line: #F0DAC9; }

/* ---- Header ---- */
.c97ra-head { background: linear-gradient(180deg, var(--c97-wash) 0%, #fafafb 60%, #fff 100%); border-bottom: 1px solid var(--c97-line-faint); padding-top: 16px; }
.c97ra-head__inner { padding-top: 36px; padding-bottom: 44px; }
.c97ra-kicker { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ra-accent); background: var(--ra-tint); border: 1px solid var(--ra-line); padding: 6px 13px; border-radius: var(--c97-r-pill); margin-bottom: 18px; }
.c97ra-h1 { margin: 0; font-size: 52px; line-height: 1.06; font-weight: 600; letter-spacing: -.025em; color: var(--c97-ink); max-width: 16ch; }
.c97ra-desc { margin: 18px 0 0; max-width: 660px; }
.c97ra-desc p { margin: 0; font-size: 19px; line-height: 1.55; font-weight: 300; color: var(--c97-muted-2); }
.c97ra-count { margin-top: 22px; font-size: 14px; color: var(--c97-muted); }

/* ---- Featured ---- */
.c97ra-featwrap { padding-top: 36px; padding-bottom: 8px; }
.c97ra-feat { display: grid; grid-template-columns: 1.15fr .85fr; gap: 34px; align-items: center; color: inherit; }
.c97ra-feat:hover { text-decoration: none; }
.c97ra-feat__img { width: 100%; aspect-ratio: 16 / 10; border-radius: var(--c97-r-md); overflow: hidden; background: var(--c97-wash); border: 1px solid var(--c97-line-faint); transition: transform .35s cubic-bezier(.33,1,.68,1), box-shadow .35s; }
.c97ra-feat:hover .c97ra-feat__img { transform: translateY(-4px); box-shadow: 0 22px 48px -30px rgba(0,0,0,.4); }
.c97ra-feat__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.c97ra-feat__label { display: inline-flex; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ra-accent); margin-bottom: 14px; }
.c97ra-feat__body h2 { margin: 0; font-size: 34px; line-height: 1.14; letter-spacing: -.02em; font-weight: 600; color: var(--c97-ink); }
.c97ra-feat:hover h2 { color: var(--c97-blue); }
.c97ra-feat__body p { margin: 16px 0 0; font-size: 17px; line-height: 1.6; font-weight: 300; color: var(--c97-muted-2); }
.c97ra-feat .c97ra-card__meta { margin-top: 20px; }

/* ---- Filter bar ---- */
.c97ra-filterwrap { padding-top: 30px; padding-bottom: 8px; }
.c97ra-rule { height: 1px; background: var(--c97-line-faint); margin-bottom: 26px; }
.c97ra-filterbar { display: flex; align-items: center; gap: 16px; }
.c97ra-searchwrap { position: relative; flex: 1; }
.c97ra-searchwrap svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); }
.c97ra-searchwrap input { width: 100%; border: 1px solid var(--c97-line); border-radius: var(--c97-r-pill); background: #fff; padding: 12px 16px 12px 42px; font-size: 15px; color: var(--c97-ink); outline: none; font-family: inherit; transition: border-color .2s, box-shadow .2s; }
.c97ra-searchwrap input:focus { border-color: #b0b0b6; box-shadow: 0 0 0 3px rgba(0,0,0,.06); }
.c97ra-sortwrap { position: relative; flex: 0 0 auto; }
.c97ra-sortwrap select { appearance: none; -webkit-appearance: none; border: 1px solid var(--c97-line); border-radius: var(--c97-r-pill); background: #fff; padding: 12px 40px 12px 18px; font-size: 15px; font-family: inherit; color: var(--c97-ink); cursor: pointer; outline: none; }
.c97ra-sortwrap svg { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; }

/* ---- Grid ---- */
.c97ra-gridwrap { padding-top: 24px; padding-bottom: 40px; }
.c97ra-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 44px 40px; }
.c97ra-card { display: flex; flex-direction: column; color: inherit; }
.c97ra-card:hover { text-decoration: none; }
.c97ra-card__img { width: 100%; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: var(--c97-wash); border: 1px solid var(--c97-line-faint); transition: transform .35s cubic-bezier(.33,1,.68,1), box-shadow .35s; }
.c97ra-card:hover .c97ra-card__img { transform: translateY(-6px); box-shadow: 0 18px 40px -26px rgba(0,0,0,.34); }
.c97ra-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.c97ra-card__title { margin: 18px 0 0; font-size: 25px; line-height: 1.2; letter-spacing: -.017em; font-weight: 600; color: var(--c97-ink); }
.c97ra-card:hover .c97ra-card__title { color: var(--c97-blue); }
.c97ra-card__excerpt { margin: 12px 0 0; font-size: 16px; line-height: 1.58; font-weight: 300; color: var(--c97-muted-2); }
.c97ra-card__meta { margin-top: 16px; display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--c97-muted); flex-wrap: wrap; }
.c97ra-dot { color: var(--c97-line); }

/* In-grid ad reuses .c97dg-gridad from the deals archive sheet — restated
   here so reading archives don't depend on that file. */
.c97ra-grid .c97dg-gridad { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 0; }
.c97ra-grid .c97dg-gridad .c97-adslot { width: 100%; max-width: 728px; min-height: 90px; }

/* ---- Empty + load more ---- */
.c97ra-empty { text-align: center; padding: 60px 20px 80px; }
.c97ra-empty__t { font-size: 20px; font-weight: 600; color: var(--c97-ink); }
.c97ra-empty p { margin: 8px 0 20px; font-size: 15px; color: var(--c97-muted); }
.c97ra-more { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 48px 0 8px; }
.c97ra-morebtn { display: inline-flex; align-items: center; gap: 9px; background: #fff; color: var(--c97-ink); border: 1px solid var(--c97-line); border-radius: var(--c97-r-pill); padding: 13px 28px; font-size: 15px; font-weight: 500; cursor: pointer; font-family: inherit; }
.c97ra-morebtn:hover { border-color: #b0b0b6; background: var(--c97-wash-2); }
.c97ra-morebtn:disabled { opacity: .55; cursor: default; }
.c97ra-more__count { font-size: 13px; color: var(--c97-muted); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
	.c97ra-feat { grid-template-columns: 1fr; gap: 20px; }
	.c97ra-grid { grid-template-columns: 1fr; }
	.c97ra-h1 { font-size: 40px; }
	.c97ra-filterbar { flex-direction: column; align-items: stretch; }
}
