/* RAM Suggestion — base & calculator page styles */
:root {
    --rs-bg: #f8f9fb;
    --rs-card: #fff;
    --rs-border: #e2e5ea;
    --rs-accent: #2563eb;
    --rs-accent-h: #1d4ed8;
    --rs-text: #1a1d23;
    --rs-muted: #6b7280;
    --rs-radius: 10px;
    --rs-shadow: 0 2px 8px rgba(0,0,0,.08);
    --rs-shell-w: 1080px;
}

/* ── Shell ── */
.rs-shell { max-width: var(--rs-shell-w); margin: 0 auto; padding: 0 20px; }
.rs-h1 { font-size: 2rem; font-weight: 700; color: var(--rs-text); margin: 0 0 8px; line-height: 1.25; }
.rs-h2 { font-size: 1.35rem; font-weight: 700; color: var(--rs-text); margin: 0 0 16px; }

/* ── Calculator hero ── */
.rs-calc-hero { background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%); padding: 56px 0 40px; color: #fff; }
.rs-calc-hero .rs-h1 { color: #fff; font-size: 2.2rem; margin-bottom: 10px; }
.rs-calc-sub { color: rgba(255,255,255,.82); font-size: 1.05rem; margin: 0; }

/* ── Calculator form ── */
.rs-calc-form-wrap { background: var(--rs-bg); padding: 36px 0; }
.rs-calc-card { background: var(--rs-card); border: 1px solid var(--rs-border); border-radius: var(--rs-radius); padding: 28px 32px; box-shadow: var(--rs-shadow); max-width: 620px; }

.rs-steps { display: flex; gap: 12px; margin-bottom: 24px; }
.rs-step { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--rs-accent); font-weight: 600; }
.rs-step-inactive { color: var(--rs-muted); }
.rs-step-num { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 700; background: var(--rs-accent); color: #fff; }
.rs-step-inactive .rs-step-num { background: var(--rs-border); color: var(--rs-muted); }

.rs-form-group { margin-bottom: 20px; }
.rs-label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--rs-text); font-size: .95rem; }
.rs-search-wrap { position: relative; }
.rs-input { width: 100%; padding: 11px 14px; border: 1px solid var(--rs-border); border-radius: 6px; font-size: 1rem; outline: none; box-sizing: border-box; transition: border-color .15s; }
.rs-input:focus { border-color: var(--rs-accent); }

.rs-suggestions { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: var(--rs-card); border: 1px solid var(--rs-border); border-radius: 6px; box-shadow: var(--rs-shadow); list-style: none; margin: 0; padding: 4px 0; z-index: 200; }
.rs-suggestions li { padding: 9px 14px; cursor: pointer; font-size: .95rem; }
.rs-suggestions li:hover, .rs-suggestions li.rs-suggestion-active { background: var(--rs-bg); color: var(--rs-accent); }
.rs-suggestions[hidden] { display: none; }

/* ── Buttons ── */
.rs-btn { display: inline-flex; align-items: center; justify-content: center; padding: 11px 22px; border-radius: 6px; font-size: .95rem; font-weight: 600; text-decoration: none; cursor: pointer; border: none; transition: background .15s, opacity .15s; }
.rs-btn-primary { background: var(--rs-accent); color: #fff; }
.rs-btn-primary:hover { background: var(--rs-accent-h); }
.rs-btn-line { background: transparent; color: var(--rs-accent); border: 1.5px solid var(--rs-accent); }
.rs-btn-line:hover { background: var(--rs-accent); color: #fff; }
.rs-btn-amazon { background: #f90; color: #111; font-weight: 700; border-radius: 6px; }
.rs-btn-amazon:hover { background: #e68a00; }

/* ── Loading ── */
.rs-loading { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 0; }
.rs-spinner { width: 36px; height: 36px; border: 3px solid var(--rs-border); border-top-color: var(--rs-accent); border-radius: 50%; animation: rs-spin .7s linear infinite; }
@keyframes rs-spin { to { transform: rotate(360deg); } }
.rs-loading[hidden] { display: none; }

/* ── Recent pages ── */
.rs-recent-wrap { padding: 40px 0; border-top: 1px solid var(--rs-border); background: var(--rs-bg); }
.rs-recent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.rs-recent-card { background: var(--rs-card); border: 1px solid var(--rs-border); border-radius: var(--rs-radius); padding: 16px; }
.rs-recent-card h3 { font-size: .95rem; margin: 0 0 6px; }
.rs-recent-card a { color: var(--rs-accent); text-decoration: none; }
.rs-recent-card a:hover { text-decoration: underline; }
.rs-recent-card time { font-size: .82rem; color: var(--rs-muted); }

/* ── Responsive ── */
@media (max-width: 640px) {
    .rs-calc-hero { padding: 36px 0 28px; }
    .rs-calc-hero .rs-h1 { font-size: 1.6rem; }
    .rs-calc-card { padding: 20px 16px; }
}
