:root {
  --red: #ff0036;
  --red-dark: #d1002c;
  --yellow: #ffb400;
  --text: #333;
  --heading: #000;
  --muted: #666;
  --line: #e6e6e6;
  --bg: #f4f4f4;
  --container: 1152px;
  --font: "Roboto", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: #fff; color: var(--text); font: 400 16px/1.6 var(--font); }
img { max-width: 100%; height: auto; }
a { color: var(--heading); text-decoration: none; }
a:hover, a:focus-visible { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
h1, h2, h3, h4, h5, h6 { color: var(--heading); font-weight: 700; line-height: 1.2; margin: 1.5em 0 .5em; }
h1 { font-size: 2.4rem; font-weight: 900; letter-spacing: -.01em; margin-top: 0; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1.3em; }
ul, ol { margin: 0 0 1.4em; padding-left: 1.4em; }
table { width: 100%; border-collapse: collapse; margin: 0 0 1.6em; font-size: 15px; }
th, td { border: 1px solid var(--line); padding: .55rem .75rem; text-align: left; vertical-align: top; }
.is-style-stripes tr:nth-child(odd) td { background: var(--bg); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

.container { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1rem; }
.brand img { display: block; width: 190px; height: auto; }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-burger { display: none; }
.top-nav .menu { display: flex; list-style: none; margin: 0; padding: 0; gap: 1.6rem; }
.top-nav li { margin: 0; }
.top-nav a { display: block; padding: 24px 0; color: var(--heading); font-size: 17px; font-weight: 700; text-transform: uppercase; letter-spacing: .01em; }
.top-nav a:hover, .top-nav a[aria-current] { color: var(--red); }

/* Homepage tiles (Bimber "latest stories") */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); background: #222; }
.tile { position: relative; display: block; aspect-ratio: 16 / 11; overflow: hidden; background: #2a2a2a; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tile:hover img { transform: scale(1.04); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.75) 100%); }
.tile-title { position: absolute; left: 1rem; right: 1rem; bottom: .9rem; z-index: 1; color: #fff; font-size: 21px; font-weight: 500; line-height: 1.15; }
.tile:hover .tile-title { color: #fff; text-decoration: underline; }

/* Layout */
.content-area { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 0 3.5rem; padding: 2.5rem 0 3.5rem; }
.main-col { min-width: 0; }

/* Featured ("Latest story") */
.featured { position: relative; margin-bottom: 3rem; }
.hot-flag { position: absolute; top: -8px; right: 0; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; background: var(--red); }
.hot-flag svg { width: 24px; height: 24px; fill: #fff; }
.featured-image { display: block; background: #fff; }
.featured-image img { display: block; width: 100%; max-height: 520px; object-fit: contain; }
.featured-title { font-size: clamp(1.8rem, 3.2vw, 2.45rem); font-weight: 900; margin: 1.2rem 0 .5rem; }
.featured-title a:hover { color: var(--red); }
.featured-excerpt { font-size: 18px; line-height: 1.65; }
.featured-excerpt a { color: var(--red); font-weight: 700; }

.section-title, .widget-title { font-size: 18px; font-weight: 700; text-transform: uppercase; margin: 0 0 1.2rem; letter-spacing: .01em; }
.section-title { display: flex; align-items: center; gap: .75rem; margin-top: 2.5rem; }
.section-title::after { content: ""; flex: 1; height: 4px; background: var(--heading); }

/* Cards */
.tile-grid { display: grid; gap: 1.75rem 1.5rem; }
.tile-grid-2 { grid-template-columns: repeat(2, 1fr); }
.tile-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-image { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg); }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card-image img { transform: scale(1.04); }
.card-body { padding-top: .7rem; }
.card-cat { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--red); margin-bottom: .2rem; }
.card-title { font-size: 20px; font-weight: 700; margin: 0; line-height: 1.25; }
.tile-grid-3 .card-title { font-size: 17px; }

/* Quiz promos */
.quiz-promos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.quiz-promo { display: flex; flex-direction: column; gap: .35rem; padding: 1.4rem; background: var(--yellow); color: #000; border-radius: 6px; box-shadow: inset 0 -6px 0 rgba(0,0,0,.12); transition: transform .2s; }
.quiz-promo:hover { transform: translateY(-3px); color: #000; }
.quiz-promo strong { font-size: 22px; font-weight: 900; line-height: 1.2; }
.flag { align-self: flex-start; display: inline-block; padding: .2rem .55rem; background: var(--red); color: #fff; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
a.flag:hover { color: #fff; background: var(--red-dark); }

/* Sidebar */
.widget + .widget { margin-top: 2.75rem; }
.search-form { display: flex; border: 1px solid #ddd; }
.search-form input { flex: 1; min-width: 0; padding: .6rem .75rem; border: 0; font: inherit; font-size: 14px; }
.search-form button { padding: 0 .9rem; border: 0; background: var(--red); color: #fff; font: inherit; font-size: 13px; font-weight: 900; text-transform: uppercase; cursor: pointer; }
.search-form button:hover { background: var(--red-dark); }
.about-me img { display: block; width: 110px; margin: 0 auto .8rem; }
.about-me p { font-size: 14px; margin: 0; }
.popular-list { list-style: none; margin: 0; padding: 0; counter-reset: pop; }
.popular-list li { counter-increment: pop; margin: 0 0 1.4rem; }
.popular-list a { position: relative; display: block; font-weight: 700; line-height: 1.3; }
.popular-list a::before { content: counter(pop); position: absolute; top: -6px; left: -6px; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; background: var(--red); color: #fff; font-size: 18px; font-weight: 900; }
.popular-list img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #fff; border: 1px solid var(--line); margin-bottom: .5rem; }
.popular-list a:not(:has(img)) { padding-left: 42px; min-height: 34px; }

/* Posts */
.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: .9rem; }
.breadcrumbs a { color: var(--muted); }
.entry-cats { margin: 0 0 .6rem; }
.entry > .entry-title { font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.1; margin-bottom: .8rem; }
.entry-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; font-size: 14px; color: var(--muted); margin: 0 0 1.2rem; }
.entry-meta strong { color: var(--heading); }
.avatar { width: 30px; height: 30px; object-fit: cover; object-position: top; border-radius: 50%; background: var(--yellow); margin-right: .25rem; }
.share { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; }
.share a { padding: .45rem 1rem; color: #fff; font-size: 13px; font-weight: 900; text-transform: uppercase; }
.share-fb { background: #1877f2; } .share-x { background: #000; } .share-pin { background: #e60023; }
.share a:hover { color: #fff; opacity: .9; }
.featured-image { margin-bottom: 1.8rem; }
.entry > .featured-image { display: block; width: 100%; }
.entry-content { font-size: 18px; line-height: 1.7; }
.entry-content > :first-child { margin-top: 0; }
.entry-content a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.entry-content a:hover { color: var(--red-dark); }
.entry-content .aligncenter { display: block; margin-inline: auto; text-align: center; }
.entry-content figure { margin: 0 0 1.6rem; }
.entry-content figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: .4rem; }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content .wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .5rem; }
.entry-content .wp-block-gallery figure { margin: 0; }
.entry-content .wp-block-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.entry-content .wp-block-embed__wrapper, .entry-content .video-embed { position: relative; aspect-ratio: 16 / 9; margin: 0 0 1.6rem; }
.entry-content .wp-block-embed__wrapper iframe, .entry-content .video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.entry-content::after { content: ""; display: table; clear: both; }
.entry-content .yt-facade { position: absolute; inset: 0; display: block; background: #000; cursor: pointer; }
.entry-content .yt-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .2s; }
.entry-content .yt-facade:hover img { opacity: 1; }
.entry-content .yt-play { position: absolute; top: 50%; left: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; background: var(--red); border-radius: 12px; transition: transform .15s; }
.entry-content .yt-play::after { content: ""; position: absolute; top: 50%; left: 50%; margin: -10px 0 0 -7px; border-style: solid; border-width: 10px 0 10px 18px; border-color: transparent transparent transparent #fff; }
.entry-content .yt-facade:hover .yt-play { transform: scale(1.08); }

/* Amazon product cards (Content Egg markup) */
.entry-content .cegg5-container { margin: 1.5rem 0 2rem; font-size: 15px; line-height: 1.4; }
.entry-content .cegg-card { position: relative; border: 1px solid var(--line); border-radius: 6px; background: #fff; margin-bottom: 1rem; transition: box-shadow .2s; }
.entry-content .cegg-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.entry-content .cegg-card .row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 170px; align-items: center; gap: 1rem; padding: .9rem; }
.entry-content .cegg-card .col-3, .entry-content .cegg-list-card-img-col { max-width: none !important; }
.entry-content .cegg-card .offset-3 { grid-column: auto; }
.entry-content .ratio { position: relative; aspect-ratio: 1; }
.entry-content .ratio img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.entry-content .card-title { font-size: 16px; font-weight: 700; color: var(--heading); }
.entry-content .cegg-price { font-size: 20px; font-weight: 900; color: var(--heading); }
.entry-content .cegg-card-button .btn, .entry-content .btn {
  display: block; text-align: center; padding: .6rem .8rem; background: var(--yellow); color: #000; font-size: 14px; font-weight: 900; text-transform: uppercase; text-decoration: none; border-radius: 4px;
}
.entry-content .cegg-card-button .btn:hover, .entry-content .btn:hover { background: #ffc633; color: #000; }
.entry-content .stretched-link::after { content: ""; position: absolute; inset: 0; }
.entry-content .cegg-merchant { font-size: 12px; color: var(--muted); text-align: center; margin-top: .3rem; }
.entry-content .cegg-item-card .row, .entry-content .cegg-data_item .row { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); }
.entry-content .cegg-price-disclaimer, .entry-content .text-body-secondary, .entry-content .small { font-size: 12px; color: var(--muted); }
.entry-content .text-success { color: #1a7f37; }
/* Amazon requires prices to be refreshed within 24h; static pages can't, so scraped prices stay hidden. */
.entry-content .cegg-card-price, .entry-content .cegg-price, .entry-content .cegg-price-disclaimer, .entry-content .cegg-card-cashback, .entry-content [class*="cegg-price-"], .entry-content .cegg-list-logo-title, .entry-content .cegg-last-updated { display: none !important; }
.entry-content .cegg-features-table { margin-top: .5rem; }
.entry-content .bi { display: none; }

/* Quiz */
.quiz { margin-top: 1rem; }
.quiz-progress { font-weight: 700; color: var(--red); text-transform: uppercase; font-size: 14px; }
.quiz-questions { list-style: none; padding: 0; margin: 0; }
.quiz-question-title { font-size: 26px; font-weight: 900; margin: 0 0 1rem; }
.quiz-question-image { display: block; width: 100%; max-height: 380px; object-fit: contain; background: var(--bg); margin-bottom: 1rem; }
.quiz-answers { display: grid; gap: .75rem; }
.quiz-answers.has-images { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.quiz-answer { display: flex; flex-direction: column; gap: .5rem; padding: .9rem 1rem; border: 2px solid var(--line); border-radius: 6px; background: #fff; font: inherit; font-size: 17px; font-weight: 700; text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.quiz-answer img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.quiz-answer:hover:not(:disabled) { border-color: var(--heading); }
.quiz-answer:disabled { cursor: default; }
.quiz-answer.is-correct { border-color: #1a9f4b; background: #e8f8ee; }
.quiz-answer.is-wrong { border-color: var(--red); background: #ffe8ed; }
.quiz-feedback { font-size: 20px; font-weight: 900; margin: 1rem 0; min-height: 1.2em; }
.quiz-result { padding: 2rem; background: var(--yellow); border-radius: 6px; text-align: center; }
.quiz-score { font-size: 28px; font-weight: 900; color: #000; }
.button { display: inline-block; padding: .75rem 1.5rem; border: 0; background: var(--red); color: #fff; font: inherit; font-size: 14px; font-weight: 900; text-transform: uppercase; cursor: pointer; }
.button:hover { background: var(--red-dark); color: #fff; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.post-nav a { display: block; font-size: 20px; font-weight: 700; line-height: 1.25; }
.post-nav a span { display: block; font-size: 12px; font-weight: 400; text-transform: uppercase; color: var(--muted); margin-bottom: .3rem; }
.post-nav .next { grid-column: 2; text-align: right; }
.related { margin-top: 1rem; }
.archive-title { font-size: 2.5rem; font-weight: 900; margin-bottom: 1.5rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1.75rem 0; }
.footer-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-nav a { color: var(--muted); }
.footer-nav a:hover { color: var(--red); }
.copyright { margin: 0; }

@media (max-width: 1024px) {
  .content-area { grid-template-columns: 1fr; }
  .sidebar { border-top: 1px solid var(--line); padding-top: 2rem; margin-top: 2rem; }
  .nav-burger { display: block; padding: 10px; cursor: pointer; }
  .burger-bars, .burger-bars::before, .burger-bars::after { display: block; width: 24px; height: 3px; background: var(--heading); position: relative; content: ""; }
  .burger-bars::before { position: absolute; top: -7px; }
  .burger-bars::after { position: absolute; top: 7px; }
  .top-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 8px 16px rgba(0,0,0,.08); padding: .5rem 1.25rem 1rem; }
  .nav-toggle:checked ~ .top-nav { display: block; }
  .top-nav .menu { flex-direction: column; gap: 0; }
  .top-nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 700px) {
  .tiles { grid-template-columns: 1fr; }
  .tiles .tile:not(:first-child) { display: none; }
  .tile-grid-2, .tile-grid-3, .quiz-promos { grid-template-columns: 1fr; }
  .brand img { width: 160px; }
  .entry-content { font-size: 17px; }
  .entry-content .cegg-card .row { grid-template-columns: 80px minmax(0, 1fr); }
  .entry-content .cegg-card .row > :last-child { grid-column: 1 / -1; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { grid-column: auto; text-align: left; }
}
