/* ===== Magazine theme, in the style of the Papr news template =====
   Loaded after style.css when config 'theme' => 'papr'. */
:root {
  --font: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --font-head: 'Poppins', 'Roboto', sans-serif;
  --bg: #fff; --panel: #fff; --ink: #121213; --body: #494e51; --muted: #6b7074; --line: #e6e6e6;
  --brand: #ff2c54; --brand-hover: #e01f45; --brand-ink: #fff; --accent: #ff9500; --bad: #ff0003; --ok: #3eb75e;
  --tint: #fff0f3; --soft: #f9f9f9; --dark: #121213;
  --radius: 6px; --btn-radius: 4px;
  --shadow: none;
  --c-sale: #007aff; --c-free: #3cd289; --c-garage: #ff9500; --c-event: #5856d5; --c-wanted: #ff2c54;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #121213; --panel: #1a1a1a; --ink: #f0f0f0; --body: #c1c6c9; --muted: #9a9fa3; --line: #2b2b2b;
          --brand: #ff4d6e; --brand-hover: #ff2c54; --tint: #2a1519; --soft: #1a1a1a; }
}
body { font-size: 16px; line-height: 1.6; }
h1, h2, h3, h4, .brand { font-family: var(--font-head); font-weight: 600; letter-spacing: -0.01em; }
.wrap { max-width: 1240px; }

/* Top bar */
.topbar { background: var(--dark); color: #c1c6c9; font-size: .82rem; }
.topbar-in { display: flex; justify-content: space-between; gap: 12px; min-height: 38px; align-items: center; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; margin-left: 18px; }
.topbar a:hover { color: var(--brand); }
.topbar-links a:first-child { color: #fecc00; }

/* Header */
.top { position: sticky; top: 0; border-bottom: 1px solid var(--line); box-shadow: 0 2px 6px rgb(0 0 0 / .05); }
.top-in { min-height: 76px; gap: 20px; }
.brand { font-size: 1.45rem; font-weight: 700; gap: 10px; }
.logo { width: 38px; height: 38px; border-radius: 50%; background: var(--brand); font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; }
.catnav { display: flex; gap: 22px; flex: 1; justify-content: center; flex-wrap: wrap; }
.catnav a { color: var(--ink); text-decoration: none; font-family: var(--font-head); font-weight: 500; font-size: .95rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.catnav a:hover, .catnav a.on { color: var(--brand); border-bottom-color: var(--brand); }
.nav a { font-weight: 500; }
@media (max-width: 1000px) {
  .catnav { order: 3; flex-basis: 100%; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; gap: 18px; padding-bottom: 6px; }
  .catnav a { white-space: nowrap; }
}

/* Buttons and chips */
.btn { border-radius: var(--btn-radius); font-family: var(--font-head); font-weight: 500; letter-spacing: .01em; }
.btn:hover { background: var(--brand-hover); }
.chip { border-radius: var(--btn-radius); font-family: var(--font-head); font-weight: 500; }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn-ghost:hover { background: var(--soft); border-color: var(--ink); }

/* Category pills (like Papr's coloured category buttons) */
.pill { display: inline-block; padding: 3px 10px; border-radius: 3px; color: #fff; background: var(--brand);
  font-family: var(--font-head); font-size: .7rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; line-height: 1.6; }
.pill-sale { background: var(--c-sale); } .pill-free { background: var(--c-free); } .pill-garage { background: var(--c-garage); }
.pill-event { background: var(--c-event); } .pill-wanted { background: var(--c-wanted); }

/* Cards */
.card { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.card:hover { transform: none; box-shadow: none; }
.card:hover h3 { color: var(--brand); }
.card .thumb { border-radius: var(--radius); overflow: hidden; }
.card .thumb img { transition: transform .5s ease; }
.card:hover .thumb img { transform: scale(1.06); }
.card .thumb .pill { position: absolute; left: 12px; bottom: 12px; }
.card .cat { display: none; }
.card-body { padding: 12px 0 4px; }
.card h3 { font-size: 1.05rem; font-weight: 600; transition: color .2s; }
.nothumb { background: var(--soft); color: var(--muted); }
.price { color: var(--brand); }
.when { color: var(--c-event); }
.grid { gap: 28px 24px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); }

/* Section headings with Papr's underline bar */
.msec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 40px 0 20px; border-bottom: 1px solid var(--line); }
.msec-head a { color: var(--ink); font-family: var(--font-head); font-weight: 500; font-size: .9rem; text-decoration: none; }
.msec-head a:hover { color: var(--brand); }
.msec-title { font-size: 1.5rem; margin: 0; padding-bottom: 12px; position: relative; }
.msec-head .msec-title { margin-bottom: -1px; border-bottom: 3px solid var(--brand); }
.mside .msec-title { font-size: 1.2rem; margin-bottom: 8px; }

/* Hero: big feature + side list */
.mhero { display: grid; grid-template-columns: 1fr; gap: 28px; margin: 28px 0 8px; }
@media (min-width: 900px) { .mhero { grid-template-columns: 1.7fr 1fr; } }
.mfeature { position: relative; display: block; border-radius: var(--radius); overflow: hidden; min-height: 340px; background: var(--dark); color: #fff; text-decoration: none; }
.mfeature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.mfeature:hover img { transform: scale(1.04); }
.mfeature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / 0) 35%, rgb(0 0 0 / .85) 100%); }
.mfeature-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; z-index: 1; display: grid; gap: 10px; justify-items: start; }
.mfeature-text strong { font-family: var(--font-head); font-size: clamp(1.5rem, 3.2vw, 2.3rem); line-height: 1.25; font-weight: 600; }
.mfeature-text .meta { color: #d3d7da; margin: 0; }
.mside { display: grid; gap: 4px; align-content: start; }
.see-all { color: var(--brand); font-family: var(--font-head); font-weight: 500; font-size: .9rem; text-decoration: none; margin-top: 6px; display: inline-block; }

/* Rows: thumb + text */
.mrow { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--body); align-items: center; }
.mrow:last-of-type { border-bottom: 0; }
.mrow-img { width: 96px; height: 76px; border-radius: var(--radius); overflow: hidden; display: block; background: var(--soft); }
.mrow-img img { width: 100%; height: 100%; object-fit: cover; }
.mrow-img .nothumb { display: grid; place-items: center; height: 100%; font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; }
.mrow-body { display: grid; gap: 4px; justify-items: start; }
.mrow strong { color: var(--ink); font-family: var(--font-head); font-weight: 600; font-size: .98rem; line-height: 1.35; transition: color .2s; }
.mrow:hover strong { color: var(--brand); }
.mrow .meta { margin: 0; font-size: .82rem; }

/* Search strip */
.msearch { display: flex; gap: 10px; margin: 28px 0 0; background: var(--soft); padding: 18px; border-radius: var(--radius); }
.msearch input { flex: 1; min-width: 0; background: var(--panel); }

/* Upcoming band */
.mband { background: var(--soft); margin: 40px calc(50% - 50vw) 0; padding: 8px calc(50vw - 50%) 36px; }
.mband .msec-head { margin-top: 28px; }
.mevents { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.mevent { display: grid; grid-template-columns: 64px 1fr; gap: 14px; background: var(--panel); padding: 16px; border-radius: var(--radius); text-decoration: none; color: var(--body); box-shadow: 0 2px 6px rgb(0 0 0 / .05); }
.mevent:hover strong { color: var(--brand); }
.mdate { display: grid; place-items: center; align-content: center; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 6px 0; font-family: var(--font-head); line-height: 1.1; text-transform: uppercase; font-size: .7rem; letter-spacing: .05em; }
.mdate b { font-size: 1.6rem; font-weight: 700; letter-spacing: 0; }
.mevent-body { display: grid; gap: 4px; justify-items: start; }
.mevent strong { color: var(--ink); font-family: var(--font-head); font-weight: 600; line-height: 1.3; }
.mevent .meta { margin: 0; font-size: .84rem; }

/* Main + sidebar */
.mcols { display: grid; grid-template-columns: 1fr; gap: 40px; margin-bottom: 48px; }
@media (min-width: 1000px) { .mcols { grid-template-columns: 1fr 320px; } }
.maside { display: grid; gap: 28px; align-content: start; padding-top: 40px; }
.widget { display: block; background: var(--soft); border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--body); }
.widget-title { display: block; font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: 1.1rem; margin-bottom: 12px; }
.wriver { background: var(--dark); color: #c1c6c9; border-left: 5px solid var(--c-free); }
.wriver .widget-title { color: #fff; }
.wriver-minor { border-left-color: var(--accent); }
.wriver-moderate, .wriver-major { border-left-color: var(--bad); }
.wriver-level { display: block; font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; color: #fff; line-height: 1.1; }
.wriver .meta { color: #c1c6c9; display: block; margin: 6px 0 10px; }
.wcats { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wcat { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; border-radius: var(--radius); color: #fff; text-decoration: none; font-family: var(--font-head); font-weight: 500; transition: transform .2s; }
.wcat:hover { transform: translateX(4px); }
.wcat b { background: rgb(255 255 255 / .25); border-radius: 99px; padding: 0 9px; font-size: .8rem; }
.wcat-sale { background: var(--c-sale); } .wcat-free { background: #22b573; } .wcat-garage { background: var(--c-garage); }
.wcat-event { background: var(--c-event); } .wcat-wanted { background: var(--c-wanted); }
.wjoin { background: var(--tint); border-top: 4px solid var(--brand); }
.wjoin p { margin: 0 0 14px; }

/* Plain list pages */
.hero { padding-top: 28px; }
.hero h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.panel { border-radius: var(--radius); box-shadow: 0 2px 6px rgb(0 0 0 / .05); }
.river { border-top-color: var(--c-free); }
.river-trend { background: var(--soft); color: var(--ink); }
.river-chart .line, .river-chart .dot { stroke: var(--c-sale); } .river-chart .dot { fill: var(--c-sale); } .river-chart .area { fill: var(--c-sale); }
.cat-free { color: #22b573; } .cat-garage { color: var(--c-garage); } .cat-event { color: var(--c-event); } .cat-wanted { color: var(--c-wanted); } .cat-sale { color: var(--c-sale); }
.badge { background: var(--brand); color: #fff; }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 3px var(--tint); }

/* Footer */
.pfoot { background: var(--dark); color: #a7acb0; margin-top: 40px; font-size: .92rem; }
.pfoot-in { display: grid; grid-template-columns: 1fr; gap: 28px; padding-block: 48px 28px; }
@media (min-width: 800px) { .pfoot-in { grid-template-columns: 2fr 1fr 1fr; } }
.pfoot h4 { color: #fff; font-size: 1rem; margin: 0 0 12px; }
.pfoot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pfoot a { color: #d3d7da; text-decoration: none; }
.pfoot a:hover { color: var(--brand); }
.pfoot-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; margin: 0 0 12px; }
.pfoot-base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid #2b2b2b; padding-block: 18px 28px; font-size: .84rem; }

/* Phones: two cards per row, tighter spacing */
@media (max-width: 600px) {
  .grid, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
  .card h3 { font-size: .92rem; }
  .card .thumb .pill { left: 8px; bottom: 8px; font-size: .6rem; padding: 2px 7px; }
  .card .meta { font-size: .78rem; }
  .mfeature { min-height: 260px; }
  .mfeature-text { padding: 18px; }
  .msec-title { font-size: 1.25rem; }
  .msec-head { margin-top: 28px; }
  .mrow { grid-template-columns: 80px 1fr; }
  .mrow-img { width: 80px; height: 64px; }
  .msearch { padding: 12px; }
  .topbar-links a:last-child { display: none; }
}
@media (max-width: 600px) {
  .top-in { min-height: 58px; gap: 8px 10px; flex-wrap: wrap; }
  .brand { font-size: 1.08rem; gap: 8px; }
  .logo { width: 30px; height: 30px; font-size: .95rem; }
  .nav { gap: 10px; font-size: .88rem; margin-left: auto; }
  .nav .btn-sm { padding: 6px 11px; }
  .catnav { font-size: .88rem; padding-bottom: 4px; }
  .catnav a { font-size: .88rem; }
}
