/* Peotone Guardrails
   Palette nods: the "Welcome to Peotone" monument (limestone + red brick),
   the blue sails of the village mill, the shingled mill tower, prairie sky,
   farm-country wheat, and galvanized guardrail steel. */
:root {
  --navy: #22314d;
  --royal: #1f5fbf;
  --royal-2: #2f73d6;
  --sky: #eaf3fd;
  --brick: #a9462f;
  --brick-dark: #7e3323;
  --limestone: #ede6d6;
  --limestone-2: #ddd1b5;
  --mill: #5b4a3a;
  --gold: #e8b84a;
  --gold-dark: #c9972a;
  --steel: #8fa3b8;
  --steel-light: #dfe5ec;
  --new: #1f8a4c;
  --wrecked: #c8322b;
  --ink: #24272d;
  --muted: #5d6573;
  --paper: #f8f5ee;
  --card: #ffffff;
  --line: #e3e0d8;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(13, 37, 80, .06), 0 6px 20px rgba(13, 37, 80, .07);
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Source Sans 3', system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--paper); line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: var(--royal); }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0 0 .4em; letter-spacing: .01em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* Buttons */
.btn { font: 700 1rem/1 var(--display); letter-spacing: .04em; text-transform: uppercase; border: 0; border-radius: 10px; padding: .8em 1.2em; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: .4em; transition: transform .08s, background .2s; }
.btn:active { transform: translateY(1px); }
.btn-lg { font-size: 1.15rem; padding: .85em 1.4em; }
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 3px 0 var(--gold-dark); }
.btn-gold:hover { background: #f0c560; }
.btn-ghost { background: rgba(255,255,255,.7); color: var(--navy); border: 2px solid rgba(34,49,77,.3); }
.btn-ghost:hover { border-color: var(--navy); background: #fff; }
.wide { width: 100%; justify-content: center; }

/* Header */
.site-header { background: #fff; color: var(--ink); position: sticky; top: 0; z-index: 20; border-bottom: 3px solid var(--royal); box-shadow: 0 2px 10px rgba(34,49,77,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font: 700 1.55rem/1 var(--display); text-transform: uppercase; letter-spacing: .03em; color: var(--mill); }
.brand-name b { color: var(--royal); }
.brand-tag { font-size: .8rem; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 18px; }
.nav a { color: var(--navy); text-decoration: none; font: 600 1.05rem var(--display); text-transform: uppercase; letter-spacing: .05em; }
.nav a:hover { color: var(--royal); }
.nav .btn { padding: .6em 1em; }

/* Hero: prairie sky, the mill on the horizon, a welcome monument */
.hero {
  color: var(--ink);
  background: linear-gradient(180deg, #bcdaf6 0%, #dcecfb 45%, #f3f8fd 78%);
  position: relative; overflow: hidden;
}
.hero::before { /* prairie */
  content: ""; position: absolute; left: 0; right: 0; bottom: 26px; height: 70px;
  background:
    radial-gradient(60% 120% at 20% 100%, #8fb661 0 60%, transparent 61%),
    radial-gradient(70% 140% at 85% 100%, #7fa955 0 55%, transparent 56%),
    linear-gradient(180deg, #e2cf8f 0 18%, #a6c475 18% 100%);
}
.hero::after { /* guardrail beam */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26px;
  background:
    repeating-linear-gradient(90deg, transparent 0 118px, #5d6d80 118px 128px),
    linear-gradient(180deg, #e3e9ef 0 30%, #b4c2d0 30% 50%, #e3e9ef 50% 70%, #98a8b9 70%);
}
.sign-wrap { position: relative; align-self: end; justify-self: end; width: 100%; max-width: 380px; }
.sign-wrap .sign { position: relative; z-index: 1; }
/* The mill stands on the prairie, peeking out from behind the counter */
.hero-mill { position: absolute; left: -150px; bottom: -66px; width: 230px; height: auto; z-index: 0; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; padding-top: 40px; padding-bottom: 120px; }
.eyebrow { font: 700 .9rem var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--brick); margin: 0 0 .6em; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; text-transform: uppercase; color: var(--navy); }
.hero h1 em { font-style: normal; color: var(--royal); }
.lede { font-size: 1.2rem; color: #3d4452; max-width: 34em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

/* Welcome monument: limestone panel between brick pillars */
.monument { display: inline-flex; align-items: stretch; margin: 22px 0 26px; filter: drop-shadow(0 10px 14px rgba(60,45,30,.22)); }
.pillar {
  width: 38px; position: relative; flex: none;
  background:
    linear-gradient(0deg, #d9ccae 0 26%, #c9bb98 26% 27%, #e3d8bd 27% 30%, transparent 30%),
    repeating-linear-gradient(0deg, #ad4a32 0 9px, #e6dccb 9px 10.5px),
    #ad4a32;
}
.pillar::before { content: ""; position: absolute; left: -5px; right: -5px; top: -9px; height: 10px; background: #e3d9c2; border-radius: 2px; box-shadow: inset 0 -2px 0 #cbbd9c; }
.pillar::after { content: ""; position: absolute; left: 50%; top: -29px; width: 21px; height: 21px; margin-left: -10.5px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f6f1e5, #cdbf9f); }
.mon-panel {
  margin: 18px 0 0; padding: 14px 30px 10px; text-align: center; display: flex; flex-direction: column;
  background: linear-gradient(180deg, #f1ebdd, #e4d9c1); color: #2c2925;
  font-family: 'Cinzel', Georgia, serif; border-bottom: 7px solid #cdbf9f;
}
.panel-small { font-size: 1rem; font-weight: 700; letter-spacing: .22em; }
.panel-big { font-size: clamp(2rem, 4vw, 2.7rem); font-weight: 700; line-height: 1.05; letter-spacing: .04em; }
.panel-mid { font-size: 1.05rem; font-weight: 700; letter-spacing: .32em; color: var(--royal); }
.panel-est { font: italic 600 .8rem var(--body); align-self: flex-end; margin-top: 4px; color: #57514a; }

/* The "days since" sign */
.sign { background: #fff; border-radius: 18px; padding: 10px; box-shadow: 0 16px 34px rgba(34,49,77,.2); transform: rotate(1.5deg); max-width: 380px; justify-self: end; width: 100%; }
.sign-inner { border: 5px solid var(--navy); border-radius: 12px; text-align: center; padding: 18px 14px 16px; color: var(--navy); }
.sign-top, .sign-bottom { font: 800 1.35rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .04em; }
.sign-ramps { display: grid; grid-template-columns: 1fr 1fr; margin-top: 10px; }
/* Sign sponsor line along the bottom of the counter sign */
.sign-sponsor { margin-top: 12px; padding-top: 10px; border-top: 3px solid var(--navy); min-height: 1.4em; }
.sign-sponsor a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--navy); font: 600 .95rem/1.2 var(--display); text-transform: uppercase; letter-spacing: .05em; }
.sign-sponsor b { font-weight: 800; color: var(--royal); }
.sign-sponsor a.sign-sponsor-by:hover b { text-decoration: underline; }
.sign-logo { width: 30px; height: 30px; object-fit: contain; border-radius: 6px; background: #fff; border: 1px solid var(--line); }
.sign-sponsor-open { color: var(--muted) !important; font-size: .82rem !important; }
.sign-sponsor-open:hover { color: var(--royal) !important; }
.sign-col-head { font: 800 1.15rem/1 var(--display); text-transform: uppercase; letter-spacing: .04em; padding: 6px 4px 8px; border-bottom: 3px solid var(--navy); }
.sign-col-head:nth-child(2), .ramp[data-ramp^="sb"] { border-left: 3px solid var(--navy); }
.ramp { padding: 10px 8px; }
.ramp[data-ramp$="entrance"] { border-top: 1.5px dashed var(--steel); }
.ramp-label { font: 800 .85rem/1 var(--display); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.ramp-num { font: 800 3.8rem/1 var(--display); margin: .06em 0 .1em; font-variant-numeric: tabular-nums; color: var(--navy); }
.ramp.new .ramp-num { color: var(--new); }
.ramp.wrecked .ramp-num { color: var(--wrecked); }
.ramp-status { font: 700 .76rem/1.2 var(--display); text-transform: uppercase; letter-spacing: .05em; padding: .4em .5em; border-radius: 7px; background: var(--steel-light); }
.ramp.new .ramp-status { background: #e3f4ea; color: var(--new); }
.ramp.wrecked .ramp-status { background: #fbe4e2; color: var(--wrecked); }

/* Stats band */
.stats-band { background: #fff; border-bottom: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 22px 16px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-num { display: block; font: 800 2.8rem/1 var(--display); color: var(--navy); font-variant-numeric: tabular-nums; }
.stat-num.green { color: var(--new); }
.stat-num.red { color: var(--wrecked); }
.stat-label { font-size: .92rem; color: var(--muted); font-weight: 600; }

/* Ads */
.ad-banner { margin: 22px 0 6px; position: relative; }
/* Small "Advertise here" tag in the banner's corner, shown even when the banner is sold */
.ad-banner a.ad-cta { position: absolute; top: 8px; right: 12px; display: inline; min-height: 0; padding: 2px 8px; background: rgba(255,255,255,.85); border: 1px solid var(--line); border-radius: 99px; box-shadow: none; font: 700 .7rem var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--royal); }
.ad-banner a.ad-cta:hover { background: var(--gold); border-color: var(--gold-dark); color: var(--navy); }
.ad-banner a, .ad-banner .ad-house { display: flex; align-items: center; gap: 18px; min-height: 90px; border-radius: var(--radius); padding: 14px 20px; text-decoration: none; }
.ad-banner a { background: var(--card); border: 1px solid var(--line); color: var(--ink); box-shadow: var(--shadow); }
.ad-banner .ad-label, .ad-label { font: 700 .68rem var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ad-house { background: repeating-linear-gradient(-45deg, #fff8e6 0 14px, #fdf0cf 14px 28px); border: 2px dashed var(--gold-dark); color: var(--navy); justify-content: space-between; flex-wrap: wrap; }
.ad-house strong { font: 800 1.5rem var(--display); text-transform: uppercase; }
.ad-house .btn { padding: .6em 1em; }
.ad-logo { width: 64px; height: 64px; border-radius: 12px; display: grid; place-items: center; font: 800 1.4rem var(--display); color: #fff; flex: none; }
/* Uploaded logos keep their shape (no stretching) on a white tile */
img.ad-logo { object-fit: contain; background: #fff; border: 1px solid var(--line); padding: 4px; }
.ad-body strong { display: block; font: 700 1.35rem/1.1 var(--display); text-transform: uppercase; }
.ad-body span { color: var(--muted); }

/* Layout */
.main-col, .side-col { min-width: 0; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; padding-top: 18px; padding-bottom: 48px; align-items: start; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 24px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.panel h2 { font-size: 2rem; text-transform: uppercase; color: var(--navy); margin: 0; }

.legend { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: .9rem; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; margin-left: 6px; }
.dot.new { background: var(--new); }
.dot.wrecked { background: var(--wrecked); }

.timeline-chart { overflow-x: auto; }
.timeline-chart svg { display: block; min-width: 560px; width: 100%; height: auto; }

.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: .4em 1em; font: 700 .95rem var(--display); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); cursor: pointer; }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }

.tl-txt { font: 700 14px 'Barlow Condensed', sans-serif; fill: #5a6880; }
.tl-lane { font: 800 16px 'Barlow Condensed', sans-serif; fill: #0d2550; text-transform: uppercase; }

.filter-groups { display: flex; gap: 10px; flex-wrap: wrap; }

/* Feed: social-style posts */
.feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 18px; }
.post { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.post-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; gap: 8px; }
.post-date { font: 700 1rem var(--display); color: var(--muted); letter-spacing: .02em; }
.ramp-pill { font: 800 .85rem var(--display); text-transform: uppercase; letter-spacing: .06em; padding: .3em .7em; border-radius: 999px; background: var(--sky); color: var(--royal); }
.ramp-pill.sb { background: #f7ebe7; color: var(--brick-dark); }
.post-img { position: relative; display: block; border: 0; padding: 0; background: var(--steel-light); cursor: pointer; aspect-ratio: 4/3; width: 100%; }
.post-img img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 10px; left: 10px; font: 800 .85rem var(--display); letter-spacing: .1em; text-transform: uppercase; padding: .3em .7em; border-radius: 6px; color: #fff; }
.badge.new { background: var(--new); }
.badge.wrecked { background: var(--wrecked); }
.top-comment { margin: 0 12px 4px; font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.top-comment b { margin-right: 4px; }
.comments-link { margin: 0 12px 12px; padding: 0; border: 0; background: none; color: var(--muted); font: 600 .92rem var(--body); cursor: pointer; text-align: left; margin-top: auto; }
.comments-link:hover { color: var(--royal); }

/* Reactions */
.react-bar { display: flex; gap: 6px; padding: 10px 12px 8px; flex-wrap: wrap; }
.react { display: inline-flex; align-items: center; gap: 5px; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: .3em .75em; cursor: pointer; font: 600 .9rem var(--body); color: var(--ink); transition: background .15s, border-color .15s, transform .08s; }
.react:hover { border-color: var(--steel); }
.react:active { transform: scale(.94); }
.react span { font-size: 1.05rem; line-height: 1; }
.react b:empty { display: none; }
.react i { font-style: normal; color: var(--muted); }
.react.on { background: #fff4d6; border-color: var(--gold-dark); }
.react-bar.compact .react i { display: none; }

.empty { text-align: center; color: var(--muted); padding: 30px 0; }
.empty.small { padding: 16px 0; }

/* Sidebar */
.side-col { position: sticky; top: 90px; }
.side-title { font-size: 1.2rem; text-transform: uppercase; letter-spacing: .06em; color: var(--brick); margin-bottom: 12px; }
.side-ads { display: grid; gap: 10px; }
.side-ad { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); padding: 10px; border-radius: 10px; border: 1px solid var(--line); transition: border-color .15s; }
.side-ad:hover { border-color: var(--royal); }
.side-ad .ad-logo { width: 46px; height: 46px; font-size: 1.05rem; border-radius: 10px; }
.side-ad strong { display: block; font: 700 1.05rem/1.1 var(--display); text-transform: uppercase; }
.side-ad span { font-size: .85rem; color: var(--muted); }
.side-ad.open { border: 2px dashed var(--steel); justify-content: center; color: var(--muted); font: 700 .95rem var(--display); text-transform: uppercase; letter-spacing: .06em; min-height: 66px; }
.side-cta { display: block; margin-top: 12px; font: 700 1rem var(--display); text-transform: uppercase; letter-spacing: .05em; text-decoration: none; }
.how ol { padding-left: 1.2em; margin: 0 0 10px; }
.how li { margin-bottom: 6px; }
.tag { font: 800 .75rem var(--display); text-transform: uppercase; letter-spacing: .08em; padding: .15em .5em; border-radius: 4px; color: #fff; }
.tag.new { background: var(--new); }
.tag.wrecked { background: var(--wrecked); }
.fine { font-size: .82rem; color: var(--muted); }

/* Advertise */
.advertise { background: linear-gradient(180deg, var(--limestone), #e6dcc6); color: var(--ink); padding: 64px 0; border-top: 6px solid var(--brick); }
.advertise h2 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); text-transform: uppercase; color: var(--navy); }
.light { color: #4a4f59; }
.eyebrow.light { color: var(--brick); }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 30px 0 8px; }
.tier { background: #fff; border: 1px solid var(--limestone-2); border-radius: var(--radius); padding: 24px; position: relative; }
.tier.featured { background: #fff; color: var(--ink); border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold); }
.tier h3 { font-size: 1.6rem; text-transform: uppercase; color: var(--navy); }
.price { font: 800 2.6rem/1 var(--display); color: var(--brick); margin: 0 0 12px; }
.tier.featured .price { color: var(--royal); }
.price span { font-size: 1rem; color: inherit; opacity: .7; }
.tier ul { padding-left: 1.1em; margin: 0; }
.tier li { margin-bottom: 6px; }
.ribbon { position: absolute; top: -12px; right: 16px; background: var(--brick); color: #fff; font: 700 .8rem var(--display); letter-spacing: .1em; text-transform: uppercase; padding: .35em .8em; border-radius: 6px; }

/* Forms */
label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 12px; }
input, select, textarea { display: block; width: 100%; margin-top: 4px; font: inherit; padding: .65em .8em; border-radius: 9px; border: 1.5px solid #cfd6e0; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(43,102,196,.3); border-color: var(--royal-2); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.row > label { min-width: 0; }
.ad-form { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 24px; max-width: 680px; margin-top: 30px; }
.form-msg { min-height: 1.4em; margin: 10px 0 0; font-weight: 600; }
.form-msg.ok { color: var(--new); }
.form-msg.err { color: var(--wrecked); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }

/* Dialogs */
.dialog { border: 0; border-radius: 18px; padding: 0; width: min(560px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.dialog::backdrop, .lightbox::backdrop { background: rgba(8, 20, 45, .7); }
.post-form { padding: 22px; }
.dialog { overflow-x: hidden; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; }
.dialog-head h2 { font-size: 1.8rem; text-transform: uppercase; color: var(--navy); margin: 0; }
.x { background: none; border: 0; font-size: 2rem; line-height: 1; cursor: pointer; color: var(--muted); }
.drop { margin: 14px 0; border: 2px dashed var(--steel); border-radius: 12px; background: var(--sky); min-height: 160px; display: grid; place-items: center; text-align: center; cursor: pointer; overflow: hidden; position: relative; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.drop img { max-height: 260px; width: 100%; object-fit: cover; }
.drop-text { color: var(--royal); font: 700 1.2rem var(--display); text-transform: uppercase; }
.drop-text small { font: 400 .85rem var(--body); text-transform: none; color: var(--muted); }
.pick { border: 0; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pick legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.pick-opt { position: relative; border: 2px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; margin: 0; text-align: center; }
.pick-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pick-opt span { display: block; font: 800 1.35rem var(--display); text-transform: uppercase; }
.pick-opt small { color: var(--muted); font-weight: 400; }
.pick-opt.dir { padding: 10px; }
.pick-opt.dir span { color: var(--navy); font-size: 1.2rem; }
.pick-opt.dir:has(input:checked) { border-color: var(--royal); background: var(--sky); }
.pick-opt.new:has(input:checked) { border-color: var(--new); background: #e3f4ea; }
.pick-opt.new span { color: var(--new); }
.pick-opt.wrecked:has(input:checked) { border-color: var(--wrecked); background: #fbe4e2; }
.pick-opt.wrecked span { color: var(--wrecked); }
.pick-opt:has(input:focus-visible) { outline: 3px solid rgba(43,102,196,.4); }

/* Share step after posting */
.post-done { padding: 22px; }
.post-done .dialog-head h2 { font-size: 1.6rem; }
.done-img { width: 100%; max-height: 230px; object-fit: cover; border-radius: 12px; margin: 14px 0 10px; background: var(--steel-light); }
.done-lede { margin: 0 0 14px; color: #3d4452; }
.share-stack { display: grid; gap: 10px; }
.btn-fb { background: #1877f2; color: #fff; justify-content: center; box-shadow: 0 3px 0 #0f5bc4; }
.btn-fb:hover { background: #2b84f5; }
.share-hint { margin: 12px 0 0; }
.link-btn { border: 0; background: none; padding: 0; margin-top: 8px; font: 700 1rem var(--display); text-transform: uppercase; letter-spacing: .05em; color: var(--royal); cursor: pointer; }
.share-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 16px 10px; border-bottom: 1px solid var(--line); }
.share-chip { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: .32em .8em; font: 600 .88rem var(--body); color: var(--ink); cursor: pointer; }
.share-chip:hover { border-color: var(--steel); }
.share-chip.fb { background: #1877f2; border-color: #1877f2; color: #fff; }
.share-chip.fb:hover { background: #2b84f5; }
.share-note { font-size: .82rem; color: var(--new); font-weight: 600; }

/* Post view: photo + comment thread */
.view-dialog { width: min(1040px, calc(100vw - 32px)); }
.view { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); height: min(640px, calc(100vh - 64px)); }
.view-photo { background: #0b1830; display: grid; place-items: center; min-height: 0; }
.view-photo img { max-height: 100%; width: 100%; height: 100%; object-fit: contain; }
.view-side { display: flex; flex-direction: column; min-height: 0; }
.view-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 14px 14px 4px 16px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.view-head .tag { margin-left: 4px; }
.view-head .post-date { margin-top: 4px; }
.view-side .react-bar { border-bottom: 1px solid var(--line); padding: 10px 16px; }
.thread { flex: 1; overflow-y: auto; padding: 8px 16px; min-height: 120px; }
.comment { display: flex; gap: 10px; padding: 8px 0; }
.avatar { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font: 800 .85rem var(--display); }
.comment-body { min-width: 0; }
.comment-body b { font-size: .95rem; }
.comment-body time { color: var(--muted); font-size: .82rem; margin-left: 6px; }
.comment-body p { margin: 2px 0 0; overflow-wrap: anywhere; white-space: pre-line; }
.op { font: 700 .68rem var(--display); letter-spacing: .08em; text-transform: uppercase; background: var(--gold); color: var(--navy); padding: .15em .5em; border-radius: 4px; margin-left: 6px; }
.comment-form { border-top: 1px solid var(--line); padding: 10px 16px 6px; }
.comment-form input { margin: 0 0 8px; padding: .45em .7em; font-size: .9rem; }
.comment-row { display: flex; gap: 8px; align-items: flex-end; }
.comment-row textarea { margin: 0; resize: none; }
.comment-row .btn { padding: .7em 1em; }
.comment-form .form-msg { min-height: 0; margin: 4px 0 0; font-size: .9rem; }

/* Footer */
.site-footer { background: #3a3029; color: #d8ccb8; padding: 30px 0; font-size: .9rem; border-top: 4px solid var(--royal); }
.footer-inner { display: grid; gap: 6px; }
.brand.small { color: #fff; font: 700 1.2rem var(--display); text-transform: uppercase; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--gold); }
.site-footer a:hover { color: #fff; }

/* Responsive */
@media (max-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .side-col { position: static; }
  .tiers { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 20px; padding-bottom: 170px; }
  .sign-wrap { justify-self: center; }
  .hero-mill { width: 112px; left: auto; right: 8px; bottom: -116px; }
  .monument { margin-top: 26px; max-width: 100%; }
  .mon-panel { padding: 12px 18px 8px; }
  .pillar { width: 28px; }
  .sign { justify-self: center; transform: rotate(0); }
  .ramp-num { font-size: 3.4rem; }
  .view { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); height: calc(100vh - 32px); }
  .view-photo img { max-height: 38vh; }
  .view-dialog { max-height: calc(100vh - 16px); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .nav a { display: none; }
  .nav a.nav-adv { display: inline; font-size: .9rem; }
  .ad-banner a.ad-main { padding-top: 30px; }
  .nav { gap: 12px; }
  .nav .btn { white-space: nowrap; font-size: .9rem; }
  .brand-name { font-size: 1.2rem; }
  .brand img { width: 36px; height: 36px; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .panel { padding: 16px; }
  .brand-tag { display: none; }
  .row { grid-template-columns: 1fr; gap: 0; }
}

/* Report */
.report-chip { margin-left: auto; color: var(--muted); }
.report-link { background: none; border: 0; padding: 0 0 0 8px; font-size: .78rem; color: var(--muted); cursor: pointer; opacity: 0; transition: opacity .15s; }
.comment:hover .report-link, .report-link:focus-visible, .report-link:disabled { opacity: 1; }
@media (hover: none) { .report-link { opacity: .7; } }
.report-link:hover { color: var(--wrecked); text-decoration: underline; }
