/* TownPost profile-gated first visit / Silverton alpha landing */
:root{--tp-community-accent:#577a54;--tp-community-secondary:#2d628c;--tp-community-paper:#fffdf6;--tp-community-hero:url('/assets/heroes/silverton-silver-falls.svg')}
body.tp-auth-locked{background:linear-gradient(180deg,#eef4e8 0%,#fffdf6 48%,#f4ead7 100%)}
body.tp-auth-locked .main-nav,body.tp-auth-locked .sidebar,body.tp-auth-locked .footer-ads{display:none!important}
body.tp-auth-locked .app-shell{display:block;width:min(1080px,calc(100% - 28px));margin:18px auto 28px}
body.tp-auth-locked .app-main{width:100%}
body.tp-auth-locked .hero{position:relative;overflow:hidden;min-height:172px;display:grid;grid-template-columns:minmax(260px,42%) 1fr;align-items:center;background:linear-gradient(90deg,rgba(255,253,246,.10) 0%,rgba(255,253,246,.58) 39%,rgba(255,253,246,.98) 66%,rgba(255,253,246,1) 100%),linear-gradient(135deg,#dbe8d0,#fbf3df)}
body.tp-auth-locked .hero:before{content:"";position:absolute;inset:0 auto 0 0;width:min(500px,48%);background:var(--tp-community-hero) left center/cover no-repeat;opacity:.58;z-index:0;filter:saturate(.72) blur(.2px)}
body.tp-auth-locked .hero:after{content:"";position:absolute;inset:0 auto 0 0;width:min(620px,59%);background:linear-gradient(90deg,rgba(255,253,246,0) 0%,rgba(255,253,246,.20) 46%,rgba(255,253,246,.86) 78%,rgba(255,253,246,1) 100%);z-index:1;pointer-events:none}
body.tp-auth-locked .hero>div{position:relative;z-index:2;grid-column:2;max-width:620px}
body.tp-auth-locked .hero .eyebrow{font-size:9px;opacity:.48;letter-spacing:.22em}
body.tp-auth-locked .hero h1{font-size:clamp(46px,5vw,74px)}
.tp-auth-landing{display:grid;grid-template-columns:minmax(330px,1.1fr) minmax(360px,.82fr);gap:16px;align-items:stretch;margin:0 auto}
.tp-auth-landing-create{grid-template-columns:minmax(360px,.92fr) minmax(440px,1fr);max-width:1120px}
.tp-auth-landing .panel{background:rgba(255,253,246,.94)!important;border:1px solid rgba(217,226,210,.98)!important;box-shadow:0 12px 28px rgba(42,52,40,.09)!important;border-radius:22px!important}
.tp-auth-story{position:relative;overflow:hidden;min-height:390px;padding:28px!important;background:linear-gradient(135deg,rgba(255,253,246,.92),rgba(245,240,224,.94))!important}
.tp-auth-story:after{content:"";position:absolute;right:-80px;bottom:-80px;width:260px;height:260px;border-radius:999px;background:radial-gradient(circle,rgba(87,122,84,.18),transparent 66%);pointer-events:none}.tp-auth-story>*{position:relative;z-index:1}
.tp-auth-story-create{background:linear-gradient(135deg,rgba(255,253,246,.94),rgba(237,246,232,.92))!important}
.tp-auth-chip{display:inline-flex;border:1px solid rgba(87,122,84,.24);border-radius:999px;padding:7px 10px;color:var(--tp-community-accent);font-size:11px;font-weight:950;text-transform:uppercase;letter-spacing:.10em;background:#fffdf6cc}
.tp-auth-story h2{margin:18px 0 12px;color:#15324a;font:900 clamp(34px,4vw,58px)/.93 Georgia,'Times New Roman',serif;letter-spacing:-.04em}
.tp-auth-story p{max-width:610px;color:#364b60;font-size:16px;line-height:1.46}
.tp-auth-identity{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}.tp-auth-identity span{border-radius:999px;background:#e8f0df;border:1px solid #d6e2cc;color:#385c39;padding:7px 10px;font-size:12px;font-weight:900}
.tp-auth-why{margin-top:24px;border-top:1px solid rgba(217,226,210,.95);padding-top:16px}.tp-auth-why p{font-size:14px;color:#536377}.tp-auth-promise{border-top:1px solid rgba(217,226,210,.95);padding-top:15px;font-weight:800;color:#315c2f!important}
.tp-connect-grid{display:grid;gap:10px;margin:22px 0}.tp-connect-grid article{border:1px solid #dbe7d4;border-radius:16px;background:#fffef9cc;padding:13px}.tp-connect-grid b{display:block;color:#15324a;margin-bottom:4px}.tp-connect-grid p{margin:0;font-size:13px;color:#536377;line-height:1.38}
.tp-auth-card{padding:22px!important}.tp-auth-main-card{align-self:start}.tp-auth-card h2{margin:8px 0;color:#15324a;font:900 28px/1.02 Georgia,'Times New Roman',serif}.tp-auth-card p{line-height:1.42}
.tp-auth-card input{width:100%;box-sizing:border-box;border:1px solid #cfdbca;border-radius:13px;background:#fffef9;padding:12px 13px;margin:7px 0;color:#26364a;font:inherit}.tp-auth-card input:focus{outline:2px solid rgba(45,98,140,.22);border-color:#8dadbd}
.tp-auth-card .actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:10px}.tp-auth-card button{border:1px solid #cfdcca;border-radius:999px;background:#fffef9;padding:10px 14px;color:#244c6f;font-weight:950;cursor:pointer}.tp-auth-card button.primary{background:linear-gradient(135deg,var(--tp-community-accent),#315c2f);border-color:#315c2f;color:#fff}
.tp-auth-tabs{display:flex;gap:8px;margin-bottom:14px}.tp-auth-tabs button{flex:1}.tp-auth-tabs button.active{background:#172033;color:#fff;border-color:#172033}.tp-auth-back{margin-bottom:12px!important;color:#315c2f!important;background:#f5f8ee!important}
.tp-auth-create-page .portal-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 10px}.tp-auth-create-page .portal-fields input:nth-child(3),.tp-auth-create-page .portal-fields input:nth-child(6),.tp-auth-create-page .portal-fields input:nth-child(9){grid-column:1/-1}.tp-auth-create-page h2{font-size:clamp(30px,3.2vw,42px)}
.portal-human-check,.tp-create-note{border:1px solid #dfe8d8;background:#fffaf0;border-radius:16px;padding:12px;margin:10px 0}.portal-human-options{display:flex;gap:9px}.portal-human-options button{font-size:22px;min-width:54px;background:#fffdf6}.portal-human-options button.active{outline:3px solid rgba(87,122,84,.25);border-color:#577a54}.tp-create-note b{color:#15324a}.tp-create-note p{margin:4px 0 0;color:#536377}
@media(max-width:1050px){.tp-auth-landing,.tp-auth-landing-create{grid-template-columns:1fr}.tp-auth-story{min-height:0}}
@media(max-width:720px){body.tp-auth-locked .hero{grid-template-columns:1fr;min-height:190px}body.tp-auth-locked .hero:before{width:100%;height:118px;bottom:auto;opacity:.28}body.tp-auth-locked .hero:after{width:100%;height:150px;bottom:auto;background:linear-gradient(180deg,rgba(255,253,246,0) 0%,rgba(255,253,246,.96) 83%,rgba(255,253,246,1) 100%)}body.tp-auth-locked .hero>div{grid-column:1;padding-top:76px}.tp-auth-landing{grid-template-columns:1fr}.tp-auth-story{min-height:0;padding:22px!important}.tp-auth-card{padding:18px!important}.tp-auth-create-page .portal-fields{grid-template-columns:1fr}.tp-auth-create-page .portal-fields input{grid-column:1/-1!important}}

/* Global mobile repair: keep app chrome compact after login too. */
@media(max-width:720px){
  .topbar{width:calc(100% - 18px)!important;margin:0 auto 10px!important;padding:9px!important;border-radius:0 0 18px 18px!important;display:grid!important;grid-template-columns:1fr auto!important;gap:8px!important;align-items:center!important;overflow:hidden!important}
  .brand{grid-column:1;min-width:0}.brand .logo{width:40px;height:40px}.brand b{font-size:15px}.brand small{font-size:12px}.account-chip{grid-column:2;grid-row:1;justify-self:end;padding:8px 12px!important}
  .main-nav{grid-column:1/-1;display:flex!important;flex-wrap:nowrap!important;gap:6px!important;overflow-x:auto!important;padding:2px 1px 4px!important;scrollbar-width:none!important;scroll-padding-left:0!important;justify-content:flex-start!important}.main-nav::-webkit-scrollbar{display:none}.main-nav button{flex:0 0 auto!important;padding:8px 12px!important;font-size:14px!important;white-space:nowrap!important}.main-nav:before{content:"";flex:0 0 0!important}
  .hero{width:calc(100% - 18px)!important;margin:0 auto 12px!important;border-radius:20px!important;padding:16px!important}.hero h1{font-size:clamp(42px,14vw,58px)!important}.hero .eyebrow{font-size:9px!important;letter-spacing:.17em!important}.hero p{font-size:14px!important}
  .hero.tp-hero-with-weather{display:grid!important;grid-template-columns:1fr!important;min-height:0!important;padding:14px 14px 15px!important;gap:0!important}.hero.tp-hero-with-weather:before{width:100%!important;height:92px!important;opacity:.22!important;clip-path:none!important;background-position:left center!important}.hero.tp-hero-with-weather:after{width:100%!important;height:126px!important;background:linear-gradient(180deg,rgba(255,253,246,0) 0%,rgba(255,253,246,.94) 72%,rgba(255,253,246,1) 100%)!important}.hero.tp-hero-with-weather>div{padding-top:62px!important;grid-column:auto!important}.hero.tp-hero-with-weather h1{font-size:clamp(44px,14vw,60px)!important;line-height:.9!important}.hero.tp-hero-with-weather p{margin-top:4px!important;font-size:13px!important;color:#405166!important}.tp-hero-weather{margin-top:10px!important;border-top:1px solid rgba(217,226,210,.95)!important;padding:10px 0 0!important;display:grid!important;grid-template-columns:auto 1fr!important;gap:8px 12px!important;align-items:center!important}.tp-hero-weather>div{display:flex!important;align-items:end!important;gap:8px!important;grid-row:1/3}.tp-hero-weather strong{font-size:44px!important;line-height:.9!important}.tp-hero-weather strong:before{font-size:20px!important;margin-right:7px!important;vertical-align:6px!important}.tp-hero-weather p{font-size:14px!important;line-height:1.25!important;margin:0!important}.tp-hero-weather a{font-size:15px!important;margin:0!important;grid-column:2!important}
  body:not(.tp-auth-locked) .hero:not(.tp-hero-with-weather){min-height:0!important;background:linear-gradient(135deg,#172033,#25384d)!important;color:#fff!important;overflow:hidden!important}.hero:not(.tp-hero-with-weather):before,.hero:not(.tp-hero-with-weather):after{display:none!important}.hero:not(.tp-hero-with-weather)>div{padding:0!important}.hero:not(.tp-hero-with-weather) h1{font-size:clamp(38px,12vw,52px)!important;line-height:.98!important;color:#fff!important;opacity:1!important;margin:0!important}.hero:not(.tp-hero-with-weather) p{color:#eef4f8!important;opacity:.92!important;margin-top:7px!important}.hero:not(.tp-hero-with-weather) .eyebrow{color:#cbd8e3!important;opacity:.75!important}
  .app-shell{width:calc(100% - 18px)!important;margin:auto!important;grid-template-columns:1fr!important}.tp-today-stream{gap:10px!important}.tp-row-card{grid-template-columns:1fr!important;min-height:0!important}.tp-row-card .tp-card-image{height:118px!important;min-height:118px!important;margin:10px 10px 0!important;border-radius:16px!important}.tp-row-card .tp-card-content{padding:0 10px 0!important}.tp-row-card .tp-card-head{padding:12px 0 0!important}.tp-row-card h3{font-size:clamp(25px,8vw,34px)!important;padding:10px 0 0!important}.tp-row-card .tp-card-facts,.tp-row-card .tp-card-summary{padding-right:0!important}.tp-row-card .tp-card-details{margin-right:0!important}.tp-row-card .tp-card-actions{padding:10px 0 12px!important}.tp-card-date{font-size:10px!important}.tp-card-summary{font-size:14px!important}.tp-calendar-card,.tp-roads-card,.tp-community-strip{grid-template-columns:1fr!important}.tp-community-strip>div+div{border-left:0!important;border-top:1px solid rgba(199,149,59,.45);padding-left:0!important;padding-top:12px!important}
}
