/* Home page photo + The Real Deal's Miami Real Estate Forum flyer (Nov 4-5, 2026), with trd.js. Same pattern as
   election.css: night over the photo. The photo and the dark search over it hang off html.wyn and STAY (Mart, Nov 5).
   The flyer (.trd-rule, .trd-badge, .trd-tag) is only drawn while html.trd is set, until Thu Nov 5, 11:59 PM ET. */

html.wyn{color-scheme:dark;--bg:#202124;--ink:#e8eaed;--mute:#9aa0a6;--line:#5f6368;--link:#8ab4f8;--green:#81c995;--chip:#303134;--warn:#f28b82}
html.wyn main{position:relative;z-index:1}

/* The photo behind the top of the page; TRD red rule on top while the flyer is up */
.trd-sky{position:absolute;z-index:0;top:0;left:0;width:100%;height:calc(22vh + 330px);overflow:hidden;pointer-events:none}
body.has-result .trd-sky{height:260px}
.trd-sky img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 46%}
.trd-shade{position:absolute;inset:0;background:linear-gradient(#202124b8,#2021249e 55%,var(--bg))}
.trd-rule{position:absolute;top:0;left:0;right:0;height:5px;background:#E7131C}

/* Search over the photo */
html.wyn .logo{text-shadow:0 2px 16px #000}
html.wyn .modes{background:#202124cc}
html.wyn input[type=search]{background:#202124d9;border-color:#ffffff4d}
html.wyn .hint,html.wyn .status:not([data-busy]){text-shadow:0 1px 5px #000}
html.wyn .btns button{background:#202124d9;border-color:#ffffff40}

/* TRD's wordmark over the forum logo, top right */
.trd-badge{position:absolute;z-index:2;top:26px;right:max(16px,4vw);width:120px;display:flex;flex-direction:column;gap:9px;pointer-events:none;filter:drop-shadow(0 4px 14px #000a)}
.trd-badge img{display:block;width:100%;height:auto}
.trd-word{filter:invert(1)}

/* Two tape labels under the search */
.trd-tag{margin:18px 0 0;display:flex;justify-content:center;flex-wrap:wrap;gap:8px}
.trd-tag span{font:700 18px/1 Arial,Helvetica,sans-serif;padding:9px 14px}
.trd-tag span:first-child{background:#E7131C;color:#fff}
.trd-tag span:last-child{background:#fff;color:#111}
body.has-result .trd-tag{display:none}

/* Between phone and wide screens the badge sits beside the centered search: smaller, and out of the way of results */
@media (max-width:1000px){.trd-badge{top:20px;width:94px;gap:7px}}
@media (max-width:1100px){body.has-result .trd-badge{display:none}}
@media (max-width:700px){
  .trd-badge{top:16px;width:74px;gap:6px}
  .trd-tag span{font-size:16px;padding:8px 12px}
}
