/*
 * Marktreif: the style sheet of marktreif.org (host theme). Linked INSTEAD of css/design.css (template/marktreif.phtml); no other domain loads it.
 * World: the wholesale crate and the stall price tag. Crate green field, label yellow rails, one red stamp price, white perforated tags,
 * 2px ink edges, square corners, no shadows. Documentation: DESIGN-MARKTREIF.md.
 * Rules: two small self-hosted font subsets (css/fonts, Libertine/Biolinum, OFL), every colour from the tokens, prices in tabular numerals,
 * no layout-shifting effects, no gradients, no side-stripe borders.
 */

@font-face { font-family: "Marktreif Serif"; src: url("fonts/marktreif-serif-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Marktreif Sans"; src: url("fonts/marktreif-sans-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Marktreif Sans"; src: url("fonts/marktreif-sans-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
	--crate: #14392a;          /* the green field: header, footer, hub heads (white on it 12.7:1) */
	--crate-2: #1f5239;        /* hover on the field */
	--ink: #10241a;            /* headings, edges (13.9:1 on the ground) */
	--text: #26342b;           /* running text (11.1:1 on the ground) */
	--muted: #4c5b51;          /* secondary text (6.1:1 on the ground, 7.2:1 on white) */
	--ground: #eceee4;         /* the page: pale sage */
	--tag: #ffffff;            /* the price tags */
	--tag-2: #f5f6ef;          /* quiet fill inside a tag */
	--label: #f5c518;          /* label yellow: rails, buttons, the wordmark tag (ink on it 10:1) */
	--label-soft: #fbe9a1;
	--label-ink: #10241a;
	--stamp: #b32d1c;          /* the red stamp: the one recorded price (6.4:1 on white) */
	--rule: #c5cab7;           /* hairline between rows */
	--good: #1f6b37;           /* a saving as text (6.5:1 on white) */
	--warn: #7a4e00;
	--bad: #a3281a;
	--serif: "Marktreif Serif", Georgia, "Times New Roman", serif;
	--sans: "Marktreif Sans", Candara, "Gill Sans", "Trebuchet MS", sans-serif;
	--edge: 2px solid var(--ink);
	--hole: radial-gradient(circle at 16px 50%, var(--crate) 0 5px, transparent 5.6px);
	--eyelet: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='6.5' fill='%23eceee4' stroke='%2310241a' stroke-width='2'/%3E%3C/svg%3E") no-repeat center / 18px 18px;
	--maxw: 1180px;
	--gutter: clamp(14px, 3.4vw, 32px);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 12px; }
body {
	margin: 0;
	background: var(--ground);
	color: var(--text);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.55;
	text-rendering: optimizeLegibility;
	font-feature-settings: "kern", "liga";
	-webkit-font-smoothing: antialiased;
}
body.mr { display: flex; flex-direction: column; min-height: 100vh; background-image: none !important; } /* no photo backdrop: the old landing script sets one inline after 5 seconds */
::selection { background: var(--label); color: var(--ink); }
img { max-width: 100%; }
.mr-sr, .trip-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mr-skip { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--label); color: var(--ink); font-weight: 700; border: var(--edge); }
.mr-skip:focus { top: 8px; }
h1, h2, h3, h4, h5, h6 { font-family: var(--serif); font-weight: 700; color: var(--ink); line-height: 1.12; letter-spacing: 0; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.9rem); margin: 22px 0 10px; }
h2 { font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.75rem); margin: 34px 0 12px; padding-bottom: 8px; border-bottom: 2px dashed var(--ink); }
h3 { font-size: 1.28rem; margin: 22px 0 8px; }
h4 { font-size: 1.1rem; margin: 10px 0 4px; }
p { margin: 0 0 14px; }
small, .small { font-size: 0.86rem; color: var(--muted); }
strong, b { font-weight: 700; }
hr { border: 0; border-top: 2px dashed var(--ink); margin: 24px 0; }
table, .price, .priceTag, .num, .masonryItem, .archive-table, .stats-table, .mr-price { font-variant-numeric: tabular-nums lining-nums; }
.stroke { color: var(--muted); text-decoration: line-through; }
.maxSize80 { max-height: 80px; max-width: 80px; }
.centerContent { text-align: center; }
.img_small { min-width: 55px; max-width: 100px; max-height: 250px; }
.firstCharUppercase { display: inline; }
.firstCharUppercase:first-letter { text-transform: uppercase; }
.rights { font-size: 0.75rem; font-weight: 400; }
.pointer { cursor: pointer; }
.go { cursor: pointer; }

a { color: var(--crate); text-decoration: underline; text-decoration-color: var(--label); text-decoration-thickness: 3px; text-underline-offset: 3px; }
a:hover, a:focus { color: var(--ink) !important; background: var(--label); text-decoration-color: var(--ink); }
.hoverlink { color: var(--crate) !important; margin-top: 0; text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
	outline: 3px solid var(--ink);
	outline-offset: 3px;
	background-color: var(--label);
}
.mr-foot a:focus-visible, .mr-head a:focus-visible, .mr-head button:focus-visible, .mr-head input:focus-visible, .mr-head summary:focus-visible { outline-color: var(--label); background-color: transparent; }

/* square everywhere: Bootstrap 2 rounds buttons, wells, thumbnails and tooltips, this world has no radius */
body.mr *, body.mr *::before, body.mr *::after { border-radius: 0 !important; }

/* ---------- page frame ---------- */
.mr-page { display: flex; flex-direction: column; flex: 1 0 auto; width: 100%; }
.mr-main { flex: 1 0 auto; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 8px var(--gutter) 24px; }
.mr-article { display: block; }
/* the Bootstrap 2 float grid is left in the legacy markup: here it is a plain block flow, two-column pages become a grid */
.mr-main .row, .mr-main .row-fluid { display: block; margin: 0; width: auto; }
.mr-main .row::before, .mr-main .row::after, .mr-main .row-fluid::before, .mr-main .row-fluid::after { display: none; }
.mr-main [class*="span"], .mr-main [class*="offset"] { float: none; display: block; width: auto; min-width: 0; margin-left: 0 !important; }
.mr-main .row + .row { margin-top: 16px; }
.mr-main .row:has(> [class*="span"]:nth-child(2):not(:last-child)), .mr-main .row:has(> .span6 + .span6) { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr)); gap: 20px; align-items: start; }
.mr-main nav { max-height: none; }
.hidden-phone { display: initial; }
@media (max-width: 767px) { .hidden-phone { display: none !important; } .mr-main ul.breadcrumb.hidden-phone { display: flex !important; } }

/* ---------- header: green band, yellow wordmark tag, search, yellow rail ---------- */
.mr-head { background: var(--crate); color: #fff; border-bottom: var(--edge); }
.mr-bar { display: flex; align-items: center; gap: 18px 26px; max-width: var(--maxw); margin: 0 auto; padding: 16px var(--gutter) 14px; }
.mr-brand {
	display: flex; flex-direction: column; flex: 0 0 auto;
	min-width: 190px; padding: 8px 18px 7px 40px;
	background: var(--hole), var(--label);
	color: var(--ink); text-decoration: none; border: var(--edge);
	line-height: 1;
}
.mr-brand:hover, .mr-brand:focus { background: var(--hole), #ffd84a; color: var(--ink) !important; }
.mr-brand-word { font-family: var(--serif); font-weight: 700; font-size: 2rem; letter-spacing: -0.005em; }
.mr-brand-claim { margin-top: 3px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.mr-search { display: flex; flex: 1 1 auto; min-width: 0; margin: 0; }
.mr-search input {
	flex: 1 1 auto; min-width: 0; height: 54px; margin: 0; padding: 0 16px;
	background: #fff; border: var(--edge); border-right: 0; border-radius: 0; box-shadow: none;
	color: var(--ink); font: 400 1.06rem/1.2 var(--sans);
}
.mr-search input::placeholder { color: var(--muted); opacity: 1; }
.mr-search input:focus { outline: 3px solid var(--label); outline-offset: -3px; background: #fff; box-shadow: none; }
.mr-search-go {
	flex: 0 0 auto; height: 54px; margin: 0; padding: 0 26px;
	background: var(--label); color: var(--ink); border: var(--edge); border-radius: 0;
	font: 700 1.06rem/1 var(--sans); cursor: pointer;
}
.mr-search-go:hover { background: #ffd84a; }
.mr-search-go:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.mr-account { position: relative; flex: 0 0 auto; color: #fff; }
.mr-account summary { cursor: pointer; padding: 8px 12px; border: 2px solid #fff; font-weight: 700; list-style: none; }
.mr-account summary::-webkit-details-marker { display: none; }
.mr-account ul { position: absolute; right: 0; z-index: 30; min-width: 220px; margin: 6px 0 0; padding: 6px; list-style: none; background: #fff; border: var(--edge); }
.mr-account ul a { display: block; padding: 8px 10px; color: var(--ink); }
.mr-rail { background: var(--label); border-bottom: var(--edge); }
.mr-rail ul { display: flex; flex-wrap: wrap; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); list-style: none; }
.mr-rail li { margin: 0; }
.mr-rail a { display: block; padding: 11px 20px 11px 0; margin-right: 20px; color: var(--ink); font-weight: 700; font-size: 1rem; text-decoration: none; position: relative; }
.mr-rail li + li a::before { content: ""; position: absolute; left: -20px; top: 12px; bottom: 12px; border-left: 2px dashed var(--ink); }
.mr-rail a:hover, .mr-rail a:focus { background: transparent; color: var(--ink) !important; text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--ink); text-underline-offset: 6px; }
@media (max-width: 800px) {
	.mr-bar { flex-wrap: wrap; padding-top: 12px; }
	.mr-brand { min-width: 0; }
	.mr-brand-word { font-size: 1.7rem; }
	.mr-search { flex: 1 1 100%; order: 3; }
	.mr-search input, .mr-search-go { height: 50px; }
	.mr-account { margin-left: auto; }
	.mr-rail ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
	.mr-rail ul::-webkit-scrollbar { display: none; }
	.mr-rail a { white-space: nowrap; padding: 12px 18px 12px 0; margin-right: 18px; }
	.mr-rail li + li a::before { left: -18px; top: 13px; bottom: 13px; }
}

/* ---------- footer: the green field again ---------- */
.mr-foot { background: var(--crate); color: #d9e3d0; border-top: var(--edge); margin-top: 40px; padding: 36px 0 30px; font-size: 0.95rem; }
.mr-foot a { color: #fff; text-decoration-color: var(--label); }
.mr-foot a:hover, .mr-foot a:focus { background: var(--label); color: var(--ink) !important; }
.mr-foot ul { list-style: none; margin: 0; padding: 0; }
.mr-foot li { margin: 0 0 8px; }
.mr-foot-grid, .mr-foot-sisters { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.mr-foot-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 28px 36px; }
.mr-foot h2 { margin: 0 0 12px; padding: 0 0 8px; border-bottom: 2px dashed #7d9686; color: var(--label); font-size: 1.15rem; }
.mr-foot-brand { display: inline-block; margin: 0 0 12px; padding: 5px 14px 4px 34px; background: var(--hole), var(--label); border: var(--edge); color: var(--ink); font: 700 1.5rem/1.1 var(--serif); }
.mr-foot-ad { color: #c7d6c4; font-size: 0.86rem; }
.mr-foot-sisters { width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--maxw) - 2 * var(--gutter)); margin-top: 28px; padding: 18px 0 0; border-top: 2px dashed #7d9686; }
.mr-foot-sisters p { margin: 0 0 8px; color: #c7d6c4; font-size: 0.86rem; }
.mr-foot-sisters ul { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.mr-foot-sisters li { margin: 0; }
.mr-foot-sisters a { font-size: 0.9rem; }
.mr-foot [class^="flag-"] { vertical-align: -2px; }
@media (max-width: 900px) { .mr-foot-grid { grid-template-columns: 1fr 1fr; } .mr-foot-stand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .mr-foot-grid { grid-template-columns: 1fr; } }

/* ---------- buttons and forms ---------- */
.btn, button, input[type="submit"] {
	display: inline-block; padding: 10px 20px; margin: 0;
	background: #fff none; color: var(--ink); border: var(--edge); border-radius: 0;
	font: 700 1rem/1.25 var(--sans); text-shadow: none; box-shadow: none; cursor: pointer; text-decoration: none;
}
.btn:hover, button:hover, input[type="submit"]:hover { background: var(--label) none; color: var(--ink); text-decoration: none; }
.btn-primary, .btn.btn-primary, button.btn-primary, .btn-success, .btn.btn-success { background: var(--label) none; color: var(--ink); border: var(--edge); }
.btn-primary:hover, .btn.btn-primary:hover, .btn-success:hover, .btn.btn-success:hover { background: var(--ink) none; color: var(--label); }
.btn-large { padding: 13px 26px; font-size: 1.1rem; }
.btn-mini, .btn-small { padding: 5px 12px; font-size: 0.9rem; }
.btn[disabled], button[disabled] { opacity: 0.5; cursor: default; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="number"], input[type="tel"], input[type="url"], select, textarea {
	height: auto; min-height: 46px; margin: 0; padding: 9px 12px;
	background: #fff; color: var(--ink); border: var(--edge); border-radius: 0;
	font: 400 1rem/1.4 var(--sans); box-shadow: none;
}
input:focus, select:focus, textarea:focus { background: #fff; outline: 3px solid var(--label); outline-offset: 0; box-shadow: none; }
label { font-weight: 700; color: var(--ink); }
.well { background: var(--tag); border: var(--edge); border-radius: 0; box-shadow: none; padding: 20px; min-height: 0; margin: 0 0 18px; }
form.well { max-width: 620px; }
.alert { padding: 14px 18px; background: var(--tag); border: var(--edge); border-radius: 0; text-shadow: none; color: var(--ink); }
.alert h4 { margin-top: 0; }
.alert-success { background: #e1efd9; }
.alert-error, .alert-danger { background: #f8ddd7; color: var(--bad); }
.alert-info { background: var(--label-soft); }
.label, .badge { padding: 2px 9px; background: var(--label); color: var(--ink); border-radius: 0; text-shadow: none; font-weight: 700; }
.label-success { background: #cfe5c4; color: #134a26; }
.label-info { background: var(--label); }
.form-horizontal .control-group { display: grid; grid-template-columns: minmax(110px, 180px) minmax(0, 1fr); gap: 4px 18px; align-items: center; margin: 0 0 14px; }
.form-horizontal .control-group::before, .form-horizontal .control-group::after { display: none; }
.form-horizontal .control-label { float: none; width: auto; padding: 0; margin: 0; text-align: right; }
.form-horizontal .controls { margin-left: 0; }
.form-horizontal .controls > div { float: none !important; }
.input-prepend .add-on, .input-append .add-on { display: none; }
.input-prepend input, .input-append input, .form-horizontal input[type="text"], .form-horizontal input[type="email"], .form-horizontal input[type="password"], .form-horizontal select, .form-horizontal textarea { width: 100%; max-width: 460px; }
textarea { width: 100%; max-width: 100%; }
@media (max-width: 600px) { .form-horizontal .control-group { grid-template-columns: 1fr; } .form-horizontal .control-label { text-align: left; } }
.ui-autocomplete { z-index: 60; max-width: 92vw; margin: 0; padding: 0; list-style: none; background: #fff; border: var(--edge); border-radius: 0; box-shadow: none; font-family: var(--sans); font-size: 1rem; }
.ui-autocomplete li { margin: 0; border-bottom: 1px dashed var(--rule); }
.ui-autocomplete li a { display: block; padding: 9px 14px; color: var(--ink); text-decoration: none; background: none; }
.ui-autocomplete li a:hover, .ui-autocomplete .ui-state-focus, .ui-autocomplete .ui-state-active, .ui-menu-item.ui-state-focus a { background: var(--label) !important; color: var(--ink) !important; border: 0; margin: 0; }
.ui-helper-hidden-accessible { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; } }

/* ---------- breadcrumbs and the retailer shelf ---------- */
nav.seo-crumbs, ul.breadcrumb { color: var(--muted); font-size: 0.92rem; }
nav.seo-crumbs { margin: 14px 0 2px; }
nav.seo-crumbs .divider, ul.breadcrumb .divider { color: var(--muted); padding: 0 4px; }
ul.breadcrumb {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
	list-style: none; margin: 14px 0 14px; padding: 12px 0;
	background: none; border: 0; border-top: var(--edge); border-bottom: 2px dashed var(--ink); border-radius: 0;
	max-height: none; overflow: visible; opacity: 1; box-shadow: none; width: auto;
}
ul.breadcrumb > li { display: inline-flex; align-items: center; float: none; padding: 0; line-height: 1.3; text-shadow: none; text-align: left; }
ul.breadcrumb > li > .divider { display: none; }
ul.breadcrumb > li > a { color: var(--ink); }
ul.breadcrumb > li:first-child a, ul.breadcrumb > li:nth-child(3) a { font-weight: 700; }
ul.breadcrumb > li > a:has(> [class^="logo-"]), ul.breadcrumb > li > a:has(> .btn) {
	display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 4px 12px;
	background: var(--tag); border: var(--edge); text-decoration: none;
}
ul.breadcrumb > li > a:has(> [class^="logo-"]):hover, ul.breadcrumb > li > a:has(> .btn):hover { background: var(--label); }
ul.breadcrumb a > .btn { border: 0; background: none; padding: 0 2px; color: var(--ink); font-weight: 700; }
ul.breadcrumb > li:last-child, ul.breadcrumb > .active { color: var(--muted); }
[class^="pricetag-"] { vertical-align: middle; }
.mr-shelf ul.breadcrumb.hidden-phone { display: flex !important; }
.mr-shelf ul.breadcrumb { border: 0; margin: 0; padding: 4px 0 14px; }
.mr-shelf ul.breadcrumb > li:nth-child(-n+4) { display: none; } /* the two list links are in the rail already */
@media (max-width: 600px) { .mr-shelf ul.breadcrumb { gap: 8px; } }

/* ---------- home: intro with counter tag, shelf, two columns ---------- */
.mr-intro { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px 44px; align-items: center; padding: 30px 0 16px; }
.mr-intro h1 { margin: 0 0 14px; font-size: clamp(2rem, 1.3rem + 2.8vw, 3.3rem); line-height: 1.04; }
.mr-lead { max-width: 60ch; margin: 0 0 12px; font-size: 1.12rem; }
.mr-intro-method { margin: 0; font-weight: 700; }
.mr-counter { position: relative; margin: 0; padding: 34px 24px 20px; background: var(--tag); border: var(--edge); }
.mr-counter::before, .offerintro::before, .mr-tag::after { content: ""; position: absolute; width: 18px; height: 18px; background: var(--eyelet); }
.mr-counter::before { top: 8px; left: 8px; }
.mr-counter p { margin: 0; }
.mr-counter-sentence { margin: 0; font: 700 1.2rem/1.35 var(--serif); color: var(--ink); }
.mr-counter-sentence strong { font-size: 1.5rem; }
.mr-counter-all { margin-top: 12px !important; padding-top: 10px; border-top: 2px dashed var(--ink); color: var(--muted); font-size: 0.95rem; }
.mr-shelf h2, .mr-home-cols h2:first-child { margin-top: 20px; }
.mr-home-cols { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 8px 44px; align-items: start; margin-top: 8px; }
.mr-home-main, .mr-home-side { min-width: 0; }
.mr-home-main > section:first-child h2.occ-h { margin-top: 0; }
.occ { max-width: 100%; }
.mr-signs h2 { margin-top: 34px; }
.mr-signs ul { list-style: none; margin: 0; padding: 0; }
.mr-signs li { margin: 0; border-bottom: 2px dashed var(--ink); }
.mr-signs a { position: relative; display: block; padding: 14px 34px 14px 0; text-decoration: none; color: var(--ink); }
.mr-signs a::after { content: ""; position: absolute; right: 6px; top: 50%; width: 11px; height: 11px; margin-top: -7px; border-top: 3px solid var(--ink); border-right: 3px solid var(--ink); transform: rotate(45deg); }
.mr-signs strong { display: block; font: 700 1.14rem/1.2 var(--serif); }
.mr-signs span { display: block; margin-top: 4px; color: var(--muted); font-size: 0.92rem; line-height: 1.4; }
.mr-signs a:hover, .mr-signs a:focus { background: var(--label); color: var(--ink) !important; }
.mr-signs a:hover span { color: var(--ink); }
@media (max-width: 960px) { .mr-intro { grid-template-columns: 1fr; padding-top: 20px; } .mr-counter { max-width: 340px; } .mr-home-cols { grid-template-columns: 1fr; } }

/* ---------- blocks: strips, boxes, intro texts. A box is a sheet with a 2px edge, a strip a perforated band ---------- */
.seo-intro, .archive-strip, .archive-block, .archive-basis, .product-context, .priceintel, .pricechart-box, .seo-related, #offerGroup,
.stats-box, .hub-box, .rhythm, .methodology, .sector-intro, .staples-intro, .ebay-later, .pricehistory-details {
	background: var(--tag); border: var(--edge); border-radius: 0; box-shadow: none;
}
.archive-strip, .archive-block, .archive-basis, .product-context, .priceintel, .pricechart-box, .seo-related { padding: 16px 20px 18px; margin: 18px 0; }
.archive-strip h2, .archive-block h2, .archive-basis h2, .product-context h2, .seo-related h2, .priceintel h2 { margin: 0 0 10px; font-size: 1.3rem; }
.archive-strip ul, .product-context ul, .seo-related ul { margin: 4px 0 6px; padding-left: 20px; }
.archive-strip li, .product-context li { margin: 0 0 6px; }
.archive-scroll { background: none !important; }
.archive-low { color: var(--good); font-size: 0.88rem; font-weight: 700; }
.archive-note, .archive-intro { color: var(--muted); }
.seo-h1, h1.seo-h1 { margin: 20px 0 8px; }
.seo-summary { color: var(--muted); font-size: 1.08rem; max-width: 68ch; }
.seo-intro { padding: 20px 24px; font-size: 1.04rem; line-height: 1.65; max-width: none; width: auto; margin: 0 0 14px; }
.home-tagline { color: var(--muted); font-weight: 700; margin: 30px 0 6px; }
#main article p:not(.seo-intro):not(.seo-summary):not(.mr-lead):not(.mr-counter p) { max-width: 72ch; }
.stats-hub .stats-method, .events-hub .events-method, .sector-facts, .staples-basis { background: var(--tag); border: var(--edge); padding: 12px 20px 16px; margin: 18px 0; max-width: 880px; }
.datasetid, .datasetid b { font-family: inherit; font-size: 0.8rem; font-weight: 400; color: var(--muted); }
.mr-foot .footerEntry li > span.pointer[title^="Controller="] { display: none; }

/* ---------- tables: a price ledger. Ruled rows, a green head, no frame radius ---------- */
table { width: 100%; border-collapse: collapse; background: var(--tag); }
.table, table.archive-table, table.stats-table, table.tablesorter { background: var(--tag); border: var(--edge); border-collapse: collapse; margin-bottom: 18px; }
.table th, .table td, .archive-table th, .archive-table td, table.tablesorter th, table.tablesorter td, .stats-table th, .stats-table td {
	padding: 10px 14px; border: 0; border-top: 1px solid var(--rule); vertical-align: top; text-align: left; background: transparent;
}
.table thead th, .archive-table thead th, table.tablesorter thead th, .stats-table thead th {
	background: var(--crate); color: #fff; font-weight: 700; font-size: 0.92rem; border-top: 0; vertical-align: bottom;
}
.table thead th a, .archive-table thead th a { color: #fff; }
.table tbody tr:hover td, .archive-table tbody tr:hover td, .stats-table tbody tr:hover td { background: var(--label-soft); }
.table .num, .archive-table .num, td.num, th.num { text-align: right; }
.table-striped tbody > tr:nth-child(odd) > td, .table-striped tbody > tr:nth-child(odd) > th { background: transparent; }
caption { padding: 0 0 8px; color: var(--muted); font-size: 0.9rem; text-align: left; caption-side: top; }
@media (max-width: 700px) { .table, table.archive-table, table.stats-table { display: block; overflow-x: auto; } }

/* ---------- offer tags (market, week, hot deals, lists, search): a ledger of price-tag rows, a real grid instead of the Isotope layout ---------- */
#masonryContainer { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 14px 22px; position: static !important; height: auto !important; margin: 16px 0 8px; }
#dynamicContentContainer { display: contents; }
#masonryContainer > :not(.masonryItem), #dynamicContentContainer > :not(.masonryItem) { grid-column: 1 / -1; }
.masonryItem.mr-tag {
	position: relative !important; left: auto !important; top: auto !important; transform: none !important; width: auto !important; margin: 0 !important; padding: 0 !important; overflow: hidden !important;
	display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; grid-template-areas: "pic body price" "pic body act" "credit credit credit"; align-items: start;
	background: var(--tag); border: var(--edge); min-height: 128px;
}
.mr-tag:hover { background: #fffdf2; }
.mr-tag-pic { grid-area: pic; align-self: stretch; display: flex; align-items: center; justify-content: center; width: 104px; margin: 0; padding: 8px; background: #fff; border-right: 2px dashed var(--ink); text-decoration: none !important; }
.mr-tag-pic:hover { background: #fff !important; }
.mr-tag a img.image_product, .mr-tag img.image_product, .mr-tag-pic img { display: block; width: auto; height: auto; max-width: 100%; max-height: 92px; min-height: 0; object-fit: contain; }
.mr-tag-body { grid-area: body; min-width: 0; padding: 12px 14px 8px; display: flex; flex-direction: column; }
.mr-tag-title { order: 1; } .mr-tag-shop { order: 2; } .mr-tag-unit { order: 3; } .mr-tag-desc { order: 4; } .mr-tag-when { order: 5; }
.mr-tag-body p { margin: 0; max-width: none !important; }
.mr-tag-shop { margin: 0 0 3px !important; font-size: 0.9rem; font-weight: 700; color: var(--muted); }
.mr-tag-title { margin: 0 0 4px; font: 700 1.1rem/1.22 var(--serif); }
.mr-tag-title a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink); text-decoration: none; }
.mr-tag-title a:hover { background: var(--label); color: var(--ink) !important; }
.mr-tag-unit { font-size: 0.92rem; color: var(--text); }
.mr-tag-desc { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.86rem; color: var(--muted); }
.mr-tag-when { margin-top: 3px !important; font-size: 0.82rem; color: var(--muted); }
.mr-tag-price { grid-area: price; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; padding: 30px 14px 0 8px; text-align: right; }
.mr-tag::after { top: 6px; right: 8px; }
.mr-tag-price .mr-price { font: 700 1.7rem/1 var(--serif); color: var(--stamp); white-space: nowrap; letter-spacing: -0.01em; }
.mr-tag-save { display: inline-block; padding: 1px 8px; background: var(--label); color: var(--ink); border: 2px solid var(--ink); font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
.mr-tag-act { grid-area: act; align-self: end; display: flex; gap: 2px; justify-content: flex-end; margin: 0; padding: 0 8px 6px; list-style: none; }
.mr-tag-act li { float: none; padding: 3px 7px; opacity: 0.7; }
.mr-tag-act li:hover { background: var(--label); opacity: 1; }
.mr-tag-credit { grid-area: credit; margin: 0 !important; padding: 5px 14px; background: var(--tag-2); border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.72rem; line-height: 1.3; }
.mr-tag--partner .mr-tag-shop { color: var(--ink); }
.scroll-top-wrapper { z-index: 20; }
@media (max-width: 520px) {
	.masonryItem.mr-tag { grid-template-columns: 84px minmax(0, 1fr); grid-template-areas: "pic body" "pic price" "pic act" "credit credit"; min-height: 0; }
	.mr-tag-pic { width: 84px; padding: 6px; }
	.mr-tag-price { flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 10px; padding: 0 12px 4px 14px; text-align: left; }
	.mr-tag::after { top: 6px; right: 6px; }
	.mr-tag-price .mr-price { font-size: 1.5rem; }
	.mr-tag-act { justify-content: flex-start; padding-left: 8px; }
}

/* ---------- carousels of the home page (css/offer-carousel.css keeps the geometry) ---------- */
.occ { background: none; border: 0; border-radius: 0; box-shadow: none; color: var(--text); padding: 0; }
.occ .occ-h, .occ[data-occ=travel] .occ-h, .occ-name { color: var(--ink); font-family: var(--serif); }
.occ .occ-head { border: 0; }
.occ .occ-more { color: var(--ink); border: var(--edge); background: var(--tag); border-radius: 0; font-weight: 700; text-decoration: none; }
.occ .occ-more:hover, .occ .occ-more:focus { background: var(--label); color: var(--ink) !important; border-color: var(--ink); }
.occ .occ-btn { color: var(--ink); background: var(--tag); border: var(--edge); border-radius: 0; }
.occ .occ-btn:hover { background: var(--label); color: var(--ink); border-color: var(--ink); }
.occ a.occ-card { color: var(--text); background: var(--tag); border: var(--edge); border-radius: 0; box-shadow: none; text-decoration: none; }
.occ a.occ-card:hover { background: #fffdf2; text-decoration: none; }
.occ a.occ-card:focus-visible, .occ .occ-more:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.occ-price { color: var(--stamp); font-family: var(--serif); font-weight: 700; }
.occ-badge { background: var(--label) !important; color: var(--ink) !important; border: 2px solid var(--ink); border-radius: 0 !important; font-weight: 700; }
.occ-bar { background: var(--rule); }
.occ-bar i { background: var(--crate); }

/* ---------- list pages: the endless-scroll notice, the pager, the result line ---------- */
.mr-tag p { max-width: none !important; }
#itemCount { padding-top: 0; }
#dynamicContentLoader, #dynamicContentEnd { margin: 14px 0; padding: 12px 16px; background: var(--tag); border: 2px dashed var(--ink); color: var(--ink); text-align: center; font-weight: 700; }
#dynamicContentEnd { color: var(--muted); font-weight: 400; background: none; }
p.pager { margin: 18px 0; font-weight: 700; }
p.pager a { display: inline-block; padding: 6px 14px; margin-right: 8px; background: var(--tag); border: var(--edge); text-decoration: none; }
p.pager a:hover { background: var(--label); }

/* ---------- product page: the price tag first, then a ledger of facts, the chart as a sheet ---------- */
#pinContainer { background: none; border: 0; padding: 0; }
#pinContainer h1.divTable, h1.divTable { margin: 18px 0 14px !important; padding: 0; border: 0; background: none; font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.5rem); }
.divTable { border-top: 1px dashed var(--ink); background: transparent !important; padding: 10px 0; }
.divTable > div:nth-child(odd) { font-weight: 700; color: var(--ink); }
.offerintro { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "text hero" "note hero"; gap: 2px 24px; align-items: center; margin: 0 0 18px; padding: 30px 24px 16px;
	background: var(--tag); border: var(--edge); }
.offerintro::before { top: 8px; left: 8px; }
.offerintro p { margin: 0 0 6px; max-width: none !important; }
.offerintro .offerintro-note { grid-area: note; color: var(--muted); font-size: 0.86rem; }
.offerintro > p:not(.offerintro-note) { grid-area: text; }
.offerhero { grid-area: hero; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; margin: 0; padding-left: 24px; border-left: 2px dashed var(--ink); text-align: right; }
.offerhero-price { font: 700 clamp(2.3rem, 1.7rem + 2.4vw, 3.4rem)/1 var(--serif); color: var(--stamp); white-space: nowrap; letter-spacing: -0.015em; font-variant-numeric: lining-nums tabular-nums; }
.offerhero-was { color: var(--muted); font-size: 1.1rem; }
.offerhero-save { background: var(--label); color: var(--ink); border: 2px solid var(--ink); font-weight: 700; font-size: 0.95rem; padding: 1px 10px; }
@media (max-width: 640px) {
	.offerintro { grid-template-columns: 1fr; grid-template-areas: "hero" "text" "note"; padding: 30px 16px 14px; }
	.offerhero { align-items: flex-start; padding: 0 0 10px; border-left: 0; border-bottom: 2px dashed var(--ink); text-align: left; margin-bottom: 10px; }
}
#pinContainer .divTable.row { display: grid; grid-template-columns: 170px 1fr; column-gap: 16px; margin: 0 !important; padding: 11px 0; }
#pinContainer .divTable.row::before, #pinContainer .divTable.row::after { display: none; }
#pinContainer .divTable.row > [class*="span"] { min-width: 0; margin: 0 !important; }
#pinContainer .divTable.row > div:first-child:not(.centerContent) { font-size: 0.9rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding-top: 3px; }
#pinContainer .divTable.row:has(> .centerContent) { grid-template-columns: 240px 1fr; column-gap: 24px; row-gap: 10px; align-items: start; padding: 18px 0 12px; }
#pinContainer .divTable.row:has(> .centerContent) > .centerContent:first-child { grid-row: 1 / span 3; text-align: center; }
#pinContainer .divTable.row:has(> .centerContent) > .centerContent:nth-child(2) { grid-column: 2; text-align: left; padding: 0 !important; }
#pinContainer .divTable.row:has(> .centerContent) > .centerContent:nth-child(3) { grid-column: 2; text-align: left; }
#pinContainer .divTable.row:has(> .centerContent) > :last-child { grid-column: 1 / -1; }
.imageProduct { background: #fff; border: var(--edge); padding: 8px; min-width: 100px; min-height: 100px; max-width: 240px; max-height: 280px; }
#pinContainer .imageProduct { display: block; margin: 0 auto 6px; max-width: 100%; }
#pinContainer img.logo { max-height: 44px; width: auto; max-width: 180px; image-rendering: auto; }
#pinContainer .imageOwner { display: inline-block; max-width: 100%; margin-top: 4px; color: var(--muted); font-size: 0.78rem; word-break: break-all; }
#pinContainer svg { max-width: 100%; height: auto; }
#pinContainer #socialBar { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 4px 0 0; padding: 0; list-style: none; }
#pinContainer #socialBar li { float: none; height: auto; margin: 0; }
#pinContainer #socialBar li .like, #pinContainer #socialBar li .dislike { border: 0; }
#pinContainer #socialBar .hoverlink { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; background: var(--tag); border: 2px solid var(--ink) !important; color: var(--ink) !important; font-size: 0.9rem; font-weight: 700; text-decoration: none; }
#pinContainer #socialBar .hoverlink:hover { background: var(--label); }
#pinContainer #socialBar small { color: var(--muted); }
#pinContainer .divTable.row > .span2:only-child { grid-column: 1 / -1; }
.pricealert .btn { margin: 8px 0; }
#pinContainer .priceintel, #pinContainer .product-context { margin: 18px 0; }
.pricechart-box { margin: 20px 0; }
.pricechart-box > b, #pinContainer > b { display: block; margin: 0 0 8px; font: 700 1.25rem/1.2 var(--serif); }
details.pricehistory-details, details.pricechart-data { padding: 10px 14px; margin: 14px 0; }
details summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.seo-related-list { list-style: none; padding: 0; margin: 0; }
.seo-related-list li { padding: 8px 0; border-top: 1px dashed var(--ink); }
.seo-related-list li:first-child { border-top: 0; }
.span6:has(> #advertise_) { background: var(--tag); border: var(--edge); padding: 6px 18px 14px; }
.span6:has(> #advertise_) .divTable { margin-left: 0 !important; }
.span6:has(> #advertise_) .divTable.row { display: grid; grid-template-columns: 84px 1fr; gap: 6px 14px; align-items: center; padding: 12px 0; margin: 0 !important; border-top: 1px dashed var(--ink); }
.span6:has(> #advertise_) .divTable.row::before, .span6:has(> #advertise_) .divTable.row::after { display: none; }
.span6:has(> #advertise_) .divTable.row > [class*="span"] { min-width: 0; margin: 0 !important; font-weight: 400; }
.span6:has(> #advertise_) .divTable.row:first-child { border-top: 0; }
.span6:has(> #advertise_) img.img_small { display: block; width: 84px; height: 84px; min-width: 0; object-fit: contain; background: #fff; border: 2px solid var(--ink); padding: 4px; }
.span6:has(> #advertise_) .divTable.row .span4 > div { font-weight: 700; color: var(--ink); margin-top: 2px; }
.span6:has(> #advertise_) .divTable.row .span4 .reload { color: var(--text); }
@media (max-width: 640px) { #pinContainer .divTable.row { grid-template-columns: minmax(0, 1fr); row-gap: 2px; } #pinContainer .divTable.row:has(> .centerContent) { grid-template-columns: minmax(0, 150px) minmax(0, 1fr); } }
.deal-o-meter { margin: 0; }

/* ---------- hubs and info pages: price check sheet, method, statistics, discover cards (legacy home block) ---------- */
.priceintel dl, .priceintel table { margin: 0 0 12px; }
.discover h2 { margin-top: 28px; }
.discover-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.discover-card { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 14px 16px; background: var(--tag); border: var(--edge); text-decoration: none; color: var(--ink); }
.discover-card strong { font: 700 1.1rem/1.2 var(--serif); }
.discover-card span { color: var(--muted); font-size: 0.92rem; }
.discover-card:hover { background: var(--label); }
.trip-lead { color: var(--muted); font-size: 1.05rem; max-width: 70ch; margin: 4px 0 16px; }
.well h1, .well h2 { margin-top: 0; }
iframe { max-width: 100%; }
pre, code { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; background: var(--tag-2); padding: 1px 4px; }
.methodology, .rhythm, .sector-intro, .staples-intro, .stats-box, .hub-box { padding: 22px 28px 26px; margin: 14px 0 22px; }
.methodology h1, .methodology h2:first-child { margin-top: 0; }
@media (max-width: 600px) { .methodology, .rhythm, .sector-intro, .staples-intro, .stats-box, .hub-box { padding: 16px 16px 20px; } }
.search-query, input.input-medium { min-width: 220px; }
.alert .close { float: right; margin: 0 0 0 12px; background: none; border: 0; padding: 0 4px; font: 700 1.3rem/1 var(--sans); color: var(--ink); opacity: 0.7; }
@media (max-width: 600px) {
	.span6:has(> #advertise_) { padding: 4px 10px 12px; }
	.priceintel, .pricechart-box, .product-context { padding-left: 12px; padding-right: 12px; }
	.priceintel table th, .priceintel table td { padding: 8px 8px; font-size: 0.95rem; }
	.priceintel table th { width: 42%; }
}
/* no box in a box: the price notes sit directly on the sheet of the right column */
.span6:has(> #advertise_) .priceintel { background: none; border: 0; margin: 0; padding: 12px 0 8px; }

/* legacy sprites and the gauge in the palette of this world: no red flame, no green tag, the gauge in crate green and label yellow */
ul.breadcrumb [class^="pricetag-"] { display: none; }
.deal-o-meter stop:first-child { stop-color: var(--crate); }
.deal-o-meter stop:last-child { stop-color: var(--label); }
.deal-o-meter__label, .deal-o-meter__label--mild, .deal-o-meter__label--warm, .deal-o-meter__label--hot, .deal-o-meter__value, .deal-o-meter__title { color: var(--crate) !important; }
.mr-main .span12 > small { display: block; max-width: 72ch; margin: 0 0 6px; font-size: 0.9rem; }
