.rm-icon { display: block; }
.rm-muted { color: #6b7280; font-weight: 400; font-size: .9em; }
.rm-updated { font-size: .875rem; color: #4b5563; margin: 0 0 1em; }
.rm-updated::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #16a34a; margin-right: 8px; vertical-align: 1px; }
.rm-lead { font-size: 1.12em; color: #374151; }

/* Quick facts */
.rm-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 10px; }
.rm-fact { background: var(--rm-soft, #fef3c7); border: 1px solid var(--rm-soft-border, #fde68a); border-radius: 10px; padding: 12px 14px; }
.rm-fact__label { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--rm-soft-text, #78350f); }
.rm-fact__value { display: block; font-size: 1.4rem; font-weight: 800; color: #111827; line-height: 1.25; }
.rm-fact__value--sm { font-size: .95rem; font-weight: 700; padding-top: 4px; }

/* Tables */
.rm-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 6px; border: 1px solid #e5e7eb; border-radius: 10px; }
.rm-table { width: 100%; border-collapse: collapse; margin: 0; font-size: .95rem; border: 0; }
.rm-table caption { text-align: left; font-weight: 700; padding: 10px 12px; }
.rm-table th, .rm-table td { padding: 10px 12px; border: 0; border-bottom: 1px solid #f3f4f6; text-align: left; vertical-align: top; }
.rm-table thead th { background: var(--rm-primary-dark, #7f1d1d); color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.rm-table tbody tr:nth-child(even) { background: #fafaf9; }
.rm-table tbody tr:target { background: var(--rm-soft, #fef3c7); }
.rm-table tbody th { font-weight: 600; }
.rm-table [data-sort] { cursor: pointer; user-select: none; }
.rm-table [data-sort]::after { content: " \2195"; opacity: .6; font-size: .9em; }
.rm-table [aria-sort="ascending"]::after { content: " \2191"; opacity: 1; }
.rm-table [aria-sort="descending"]::after { content: " \2193"; opacity: 1; }
.rm-cal { display: block; font-size: .78rem; color: #6b7280; font-weight: 400; }
.rm-table--matrix td { white-space: nowrap; }
.rm-table-note { font-size: .8rem; color: #6b7280; margin: 4px 0 1.5em; }
.rm-sizes { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: .9em; }
.rm-sizes span { white-space: nowrap; }
.rm-bar { display: inline-block; width: 60px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--rm-primary, #b91c1c) var(--w), #e5e7eb var(--w)); margin-right: 8px; vertical-align: 1px; }
.rm-badge { display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: #dcfce7; color: #166534; border-radius: 999px; padding: 1px 8px; vertical-align: 2px; }
.rm-badge--lto { background: #fee2e2; color: #991b1b; }

/* Search */
.rm-search { margin: 0 0 10px; }
.rm-search label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 4px; }
.rm-search input { width: 100%; max-width: 420px; padding: 10px 12px; border: 2px solid #d1d5db; border-radius: 8px; font-size: 1rem; }
.rm-search input:focus { border-color: var(--rm-primary, #b91c1c); outline: none; }

/* Table of contents */
.rm-toc { background: #f9fafb; border-left: 4px solid var(--rm-accent, #f59e0b); border-radius: 6px; padding: 12px 16px; margin: 1.2em 0; font-size: .95rem; }
.rm-toc ul { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* Lists */
.rm-list { margin-left: 1.2em; }
.rm-list--tips li::marker { color: var(--rm-primary, #b91c1c); }
.rm-allergens { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 8px; padding: 10px 14px; font-size: .92rem; }

/* FAQ */
.rm-faq__item { border-bottom: 1px solid #e5e7eb; padding: 4px 0 8px; }
.rm-faq__q { font-size: 1.05rem; margin: .8em 0 .3em; }
.rm-faq__a p { margin-bottom: .5em; }

/* Cards */
.rm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 0 0 1.5em; }
.rm-card { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; color: #111827; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.rm-card:hover, .rm-card:focus { border-color: var(--rm-accent, #f59e0b); box-shadow: 0 2px 8px rgba(0,0,0,.08); color: #111827; }
.rm-card__icon { color: var(--rm-primary, #b91c1c); }
.rm-card__title { font-size: 1rem; margin: 0; font-weight: 700; line-height: 1.3; }
.rm-card__meta { font-size: .85rem; color: #4b5563; }

/* Category grid */
.rm-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin: 0 0 1.5em; }
.rm-cat { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 10px; padding: 14px; border-radius: 12px; background: #fff; border: 1px solid #e5e7eb; color: #111827; text-decoration: none; }
.rm-cat:hover, .rm-cat:focus { border-color: var(--rm-primary, #b91c1c); color: #111827; }
.rm-cat__icon { grid-row: 1 / span 2; width: 40px; height: 40px; border-radius: 10px; background: var(--rm-soft, #fef3c7); color: var(--rm-primary, #b91c1c); display: flex; align-items: center; justify-content: center; }
.rm-cat__name { font-weight: 800; }
.rm-cat__blurb { font-size: .82rem; color: #4b5563; line-height: 1.4; }

/* Buttons and callouts */
.rm-form { max-width: 560px; }
.rm-form label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 4px; }
.rm-form input[type=text], .rm-form input[type=email], .rm-form textarea { width: 100%; padding: 10px 12px; border: 2px solid #d1d5db; border-radius: 8px; font-size: 1rem; font-family: inherit; }
.rm-form input:focus, .rm-form textarea:focus { border-color: var(--rm-primary, #b91c1c); outline: none; }
.rm-form button.rm-button { border: 0; cursor: pointer; font-size: 1rem; }
.rm-form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rm-form-note { font-size: .85rem; color: #4b5563; }
.rm-form-notice { padding: 12px 14px; border-radius: 8px; font-weight: 600; }
.rm-form-notice--ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.rm-form-notice--error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.rm-button { display: inline-block; background: var(--rm-primary, #b91c1c); color: #fff; padding: 10px 18px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.rm-button:hover, .rm-button:focus { background: var(--rm-primary-dark, #7f1d1d); color: #fff; }
.rm-more { margin: 0 0 1.5em; }
.rm-callout { background: var(--rm-soft, #fef3c7); border: 1px solid var(--rm-soft-border, #fde68a); border-radius: 10px; padding: 14px 18px; margin: 1.2em 0; }
.rm-hero { background: linear-gradient(135deg, var(--rm-primary-dark, #7f1d1d), var(--rm-primary, #b91c1c)); color: #fff; border-radius: 14px; padding: 28px 24px; margin: 0 0 1.5em; }
.rm-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 .3em; line-height: 1.15; }
.rm-hero p { color: var(--rm-soft-border, #fde68a); font-size: 1.08rem; margin: 0 0 .6em; }
.rm-hero .rm-updated { color: #fff; margin: 0; }

/* Sitemap */
.rm-sitemap { columns: 2 260px; column-gap: 32px; }
.rm-sitemap section { break-inside: avoid; margin-bottom: 1em; }
.rm-sitemap h2 { font-size: 1.1rem; margin: 0 0 .3em; border: 0; }

/* Sidebar */
.rm-sidebar-box ul, .rm-sidebar-box ol { margin: 0; padding: 0; list-style: none; }
.rm-side-cats a { display: flex; align-items: center; gap: 10px; padding: 6px 0; color: #111827; text-decoration: none; font-weight: 600; font-size: .95rem; }
.rm-side-cats a:hover { color: var(--rm-primary, #b91c1c); }
.rm-side-cats .rm-icon { width: 20px; height: 20px; color: var(--rm-primary, #b91c1c); }
.rm-side-popular { counter-reset: pop; }
.rm-side-popular li { counter-increment: pop; display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid #f3f4f6; font-size: .95rem; }
.rm-side-popular li::before { content: counter(pop); font-weight: 800; color: var(--rm-primary, #b91c1c); min-width: 18px; }
.rm-side-popular a { flex: 1; }
.rm-side-popular span { color: #4b5563; font-weight: 700; }
.rm-sticky { position: sticky; top: 16px; }

/* Ads: space is reserved so units do not shift the layout */
.rm-ad { margin: 1.5em 0; text-align: center; min-height: 300px; }
.rm-ad__label { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: #9ca3af; margin-bottom: 4px; }
.rm-ad--sidebar { min-height: 620px; margin: 0; }
@media (min-width: 769px) {
	.rm-ad { min-height: 280px; }
}
@media (max-width: 768px) {
	.rm-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rm-fact__value { font-size: 1.2rem; }
	.rm-table th, .rm-table td { padding: 8px 10px; }
	.rm-ad--sidebar { display: none; }
	.rm-hero { padding: 22px 18px; }
}
