/* NACWO Phase 1.77 — National Directory / Public Showcase, scoped and responsive. */
:root{--d177-ink:#072738;--d177-deep:#041b29;--d177-teal:#43d9bb;--d177-sky:#79cddf;--d177-muted:#5a7080;--d177-line:#dbe7ea;--d177-paper:#f2f7f6}
*,*::before,*::after{box-sizing:border-box}
body.phase177-page{margin:0!important;max-width:none!important;width:100%;overflow-x:clip;background:var(--d177-paper);color:var(--d177-ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;line-height:1.5}
body.phase177-page :is(h1,h2,h3,p,figure){margin-top:0}
body.phase177-page button,body.phase177-page input,body.phase177-page select,body.phase177-page textarea{font:inherit}
body.phase177-page :is(a,button,input,select,textarea):focus-visible{outline:3px solid #12a6c4;outline-offset:3px}
body.phase177-page a{text-decoration:none}
body.phase177-page a:hover{text-decoration:underline}
.d177-shell{width:min(1390px,calc(100% - clamp(32px,7vw,104px)));margin-inline:auto}
.d177-skip{position:absolute;z-index:200;top:-100px;left:16px;background:#fff;color:#051b2b;padding:12px 18px;border-radius:8px}
.d177-skip:focus{top:8px}
.d177-top{height:86px;padding:0 clamp(18px,4.5vw,75px);display:flex;justify-content:space-between;align-items:center;gap:22px;background:#061e2c;border-bottom:1px solid rgba(125,220,232,.17);color:#fff}
.d177-brand{display:inline-flex;align-items:center;gap:11px;color:#fff!important;font-size:19px;font-weight:900;letter-spacing:.01em;white-space:nowrap}
.d177-brand:hover,.d177-nav a:hover{text-decoration:none}
.d177-brand-logo{display:grid;place-items:center;width:51px;height:51px;border-radius:13px;background:#e6faf7}
.d177-brand-logo img{max-width:42px;max-height:42px;object-fit:contain}
.d177-brand small{display:block;margin-top:2px;color:#8bd7df;font-size:9px;font-weight:800;letter-spacing:.19em}
.d177-nav{display:flex;align-items:center;gap:clamp(12px,2vw,30px)}
.d177-nav>a{color:#d9eef2;font-size:12px;font-weight:750;white-space:nowrap}
.d177-nav>a[aria-current="page"]{color:#79eedc}
.d177-nav .d177-join{display:inline-flex;align-items:center;gap:16px;padding:13px 17px;border-radius:99px;background:#b0f1dc;color:#082a34;font-weight:850}
.d177-nav .d177-join:hover,.d177-primary:hover{text-decoration:none;background:#d6fff0}
.d177-hero{position:relative;background:#061e2b;color:white;isolation:isolate;min-height:600px;overflow:hidden}
.d177-hero-photo{position:absolute;z-index:-2;inset:0;background:url("../assets/platform/scenery176d/drakensberg-sunrise.webp") center 54%/cover no-repeat;opacity:.47}
.d177-hero-dim{position:absolute;z-index:-1;inset:0;background:linear-gradient(95deg,#041723 4%,rgba(4,24,36,.96) 38%,rgba(4,24,36,.56) 78%,rgba(4,24,36,.61))}
.d177-hero-layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(245px,.6fr);gap:clamp(50px,10vw,180px);padding-top:clamp(88px,10vw,143px);padding-bottom:clamp(85px,10vw,140px)}
.d177-overline,.d177-kicker{font-size:11px;font-weight:950;letter-spacing:.18em;text-transform:uppercase}
.d177-overline{color:#adfff0;display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.d177-pulse{width:8px;height:8px;border-radius:50%;background:#4cf1c5;box-shadow:0 0 0 5px rgba(73,221,184,.15)}
.d177-tag{border:1px solid rgba(156,236,229,.3);border-radius:50px;padding:4px 8px;letter-spacing:.08em;font-size:9px;color:#a6ced1}
.d177-hero h1{font-size:clamp(52px,6.45vw,106px);line-height:.99;letter-spacing:-.075em;font-weight:900;margin:22px 0 24px}
.d177-hero h1 em,.d177-section-heading em,.d177-proof em,.d177-close em{font-family:Georgia,"Times New Roman",serif;letter-spacing:-.055em;font-weight:400;color:#a0f4d8}
.d177-hero-lead{font-size:clamp(15px,1.3vw,19px);line-height:1.7;color:#d3e7e9;max-width:650px}
.d177-hero-actions{display:flex;align-items:center;flex-wrap:wrap;gap:24px;margin:30px 0}
.d177-primary{display:inline-flex;align-items:center;justify-content:center;gap:22px;min-height:52px;padding:14px 25px;border:0;border-radius:50px;background:#91ebd1;color:#073039!important;font-size:13px;font-weight:850;cursor:pointer}
.d177-hero-link{color:#e7ffff!important;font-size:14px;font-weight:800}
.d177-hero-trust{font-size:12px;color:#a5cad0}
.d177-hero-trust span{color:#8be9ce;margin-right:4px}
.d177-hero-aside{position:relative;display:flex;align-items:flex-end;justify-content:flex-end}
.d177-vertical-label{position:absolute;right:0;top:0;writing-mode:vertical-rl;color:rgba(220,253,249,.65);font-size:10px;letter-spacing:.2em}
.d177-hero-feature{width:100%;border-top:1px solid rgba(200,255,244,.42);padding:22px 36px 0 0}
.d177-hero-feature>span{font-size:11px;letter-spacing:.13em;color:#b2f9e7}
.d177-hero-feature h2{font-size:clamp(22px,2.5vw,38px);line-height:1.13;letter-spacing:-.04em;margin:17px 0}
.d177-hero-feature p{font-size:13px;line-height:1.7;color:#c6dee0}
.d177-discover{background:linear-gradient(180deg,#f8fbfa 0%,#edf4f3 100%);padding:clamp(78px,9vw,125px) 0}
.d177-section-heading{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.55fr);gap:40px;align-items:end;margin-bottom:43px}
.d177-kicker{color:#107580}
.d177-section-heading h2,.d177-proof h2{font-size:clamp(39px,5.3vw,73px);line-height:1.04;letter-spacing:-.065em;font-weight:890;margin:10px 0}
.d177-section-heading em,.d177-proof em{color:#096777}
.d177-section-heading>p{color:#5a7180;font-size:15px;line-height:1.8;max-width:390px}
.d177-search-panel{display:grid;grid-template-columns:1.65fr 1fr 1fr 1fr auto;gap:12px;align-items:end;padding:18px;background:white;border:1px solid #dbe7e8;border-radius:23px;box-shadow:0 22px 70px rgba(11,59,74,.08)}
.d177-search-panel label{display:grid;gap:8px;min-width:0}
.d177-search-panel label>span{font-size:9px;letter-spacing:.1em;color:#48697a;font-weight:950}
.d177-search-panel input,.d177-search-panel select{width:100%;height:52px;min-width:0;padding:0 12px;border:1px solid #d5e1e3;border-radius:12px;background:#f7faf9;color:#0c3545;font-size:13px}
.d177-search-buttons{display:flex;flex-direction:column;align-items:stretch;gap:4px}
.d177-search-buttons .d177-primary{height:52px;white-space:nowrap;min-height:0;padding-inline:19px;background:#0c4454;color:#fff!important}
.d177-search-buttons .d177-primary:hover{background:#116b78}
.d177-reset{border:0;background:transparent;color:#345866;padding:2px;font-size:11px;text-decoration:underline;cursor:pointer}
.d177-pulse-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) 1.6fr;align-items:center;gap:20px;margin:25px 0 52px;padding:21px 27px;border-radius:17px;background:#e6f1ef;border:1px solid #d2e5e2}
.d177-pulse-strip>div{border-right:1px solid #c8dcda}
.d177-pulse-strip span{display:block;font-size:10px;font-weight:850;letter-spacing:.09em;color:#456f79}
.d177-pulse-strip strong{display:block;font-size:31px;line-height:1.1;margin-top:7px;letter-spacing:-.04em}
.d177-pulse-strip>p{margin:0;font-size:12px;line-height:1.6;color:#546f79}
.d177-results-head{display:flex;justify-content:space-between;align-items:end;gap:15px;margin-bottom:23px}
.d177-results-head h3{font-size:clamp(29px,3.4vw,45px);letter-spacing:-.045em;margin:6px 0}
.d177-results-meta{color:#617783;font-size:13px;margin:0}
.d177-view-tabs{display:flex;gap:3px;padding:5px;border-radius:60px;border:1px solid #d8e6e5;background:#fff}
.d177-view-tabs button{background:none;border:0;padding:11px 16px;border-radius:40px;font-size:12px;color:#526a76;font-weight:800;cursor:pointer}
.d177-view-tabs button.is-active{background:#0c3646;color:#fff}
.d177-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:21px}
.d177-card{background:#fff;border:1px solid #dbe8e7;border-radius:23px;overflow:hidden;min-width:0;box-shadow:0 14px 45px rgba(7,45,59,.06);transition:transform .25s,box-shadow .25s}
.d177-card:hover{transform:translateY(-5px);box-shadow:0 23px 59px rgba(7,45,59,.14)}
.d177-card-visual{position:relative;aspect-ratio:1.8;overflow:hidden;background:linear-gradient(135deg,#174458 0%,#286e7b 45%,#78b8a5 100%);display:flex;align-items:center;justify-content:center}
.d177-card-visual:after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 80% 20%,#a4edc76b,transparent 43%),linear-gradient(0deg,#05263b8c,transparent 55%)}
.d177-card-visual img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.d177-placeholder-mark{font-size:clamp(60px,7vw,105px);line-height:1;font-weight:900;letter-spacing:-.12em;color:#ffffff45;position:relative;z-index:1}
.d177-card-photo-label{position:absolute;left:16px;bottom:14px;z-index:2;color:#e9fffc;font-size:10px;letter-spacing:.12em;font-weight:850;text-shadow:0 2px 10px #0008}
.d177-card-body{padding:23px 22px 24px}
.d177-card-top{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.d177-status{display:inline-flex;align-items:center;gap:6px;border-radius:50px;padding:6px 10px;font-size:10px;font-weight:900;letter-spacing:.04em;background:#e8f5f0;color:#145746}
.d177-status:not(.is-verified){background:#ecf2f5;color:#3b5b69}
.d177-status.is-verified:before{content:"✓";width:15px;height:15px;border-radius:50%;background:#17735f;color:white;text-align:center;line-height:15px}
.d177-card h4{font-size:clamp(20px,2vw,25px);letter-spacing:-.035em;line-height:1.22;margin:17px 0 6px}
.d177-card-town{font-size:12px;color:#547585;margin:0 0 13px}
.d177-card-summary{font-size:13px;color:#526c77;line-height:1.65;min-height:43px;margin:0 0 15px}
.d177-pill-list{display:flex;flex-wrap:wrap;gap:6px;min-height:29px}
.d177-pill-list span{background:#eef6f5;color:#235a63;border-radius:99px;font-size:11px;padding:6px 10px;font-weight:750}
.d177-card-footer{border-top:1px solid #e5eeee;margin-top:23px;padding-top:16px;display:flex;justify-content:space-between;align-items:center;gap:10px}
.d177-card-footer small{color:#64808a;font-size:10px;line-height:1.5}
.d177-card-footer a{white-space:nowrap;color:#095c69;font-weight:900;font-size:12px}
.d177-loading,.d177-empty{grid-column:1/-1;text-align:center;background:white;border:1px solid #dce9e8;padding:clamp(36px,6vw,90px) 22px;border-radius:22px}
.d177-empty h4{font-size:clamp(23px,3vw,35px);margin:0 0 12px}
.d177-empty p{color:#5b7380;max-width:520px;margin:0 auto 24px;line-height:1.7}
.d177-more-wrap{text-align:center;margin-top:30px}
.d177-more{border:1px solid #aac9c6;background:transparent;color:#114f5a;border-radius:50px;min-height:50px;padding:10px 28px;font-weight:850;cursor:pointer}
.d177-alert{background:#fff0e8;color:#793f28;border:1px solid #f0c7b4;border-radius:14px;padding:15px 20px;margin-bottom:20px}
[hidden]{display:none!important}
.d177-map-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,.75fr);gap:22px}
.d177-map-panel{position:relative;min-width:0;border-radius:25px;overflow:hidden;background:#082a3b;color:#e9ffff;padding:20px;box-shadow:0 18px 48px #0b354020}
.d177-map-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}
.d177-map-heading span{font-size:11px;font-weight:950;letter-spacing:.18em;color:#b6f6e5}
.d177-map-heading small,.d177-map-note{font-size:11px;color:#afd3db}
#d177CountryMap{display:block;width:100%;height:auto;max-height:600px}
.d177-map-note{line-height:1.6;margin:0 10px 9px}
.d177-map-land{fill:#174c62;stroke:#85c0ba;stroke-width:2.4}
.d177-map-outline{fill:none;stroke:#94e2c9;stroke-width:2}
.d177-map-marker{cursor:pointer}
.d177-map-marker circle{fill:#b0f7e0;stroke:#063345;stroke-width:3;transition:r .2s}
.d177-map-marker:focus circle,.d177-map-marker:hover circle{fill:#fdf4b1;r:21}
.d177-map-marker text{fill:#082937;font-size:15px;font-weight:950;text-anchor:middle;pointer-events:none}
.d177-map-marker .d177-pin-label{fill:#effcfb;font-size:11px;font-weight:800;letter-spacing:.05em;text-anchor:start}
.d177-precise-dot{fill:#ffdb88;stroke:#092e43;stroke-width:2}
.d177-map-regions{background:#fff;border:1px solid #dbe7e6;border-radius:25px;padding:27px;min-width:0}
.d177-map-regions h3{font-size:clamp(27px,3vw,39px);letter-spacing:-.05em;line-height:1.12;margin:10px 0 21px}
.d177-region-list{display:grid;gap:5px}
.d177-region-list button{border:0;border-bottom:1px solid #e7eeee;background:transparent;text-align:left;padding:11px 2px;display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;color:#194151;font-weight:750;font-size:12px}
.d177-region-list button:hover,.d177-region-list button:focus-visible{color:#057986;background:#f0faf8}
.d177-region-list strong{background:#eaf4f2;border-radius:12px;padding:4px 8px}
.d177-proof{padding:clamp(80px,10vw,145px) 0;background:#0b2838;color:#f2ffff}
.d177-proof-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:clamp(35px,7vw,120px)}
.d177-proof .d177-kicker{color:#9ae8d5}
.d177-proof h2 em{color:#a2efd6}
.d177-proof-content>p{color:#c4dce1;font-size:16px;line-height:1.8}
.d177-proof-steps{margin:30px 0;display:grid;gap:20px}
.d177-proof-steps>div{padding:17px 0;border-top:1px solid #4a7480;display:grid;grid-template-columns:45px 1fr;column-gap:14px}
.d177-proof-steps span{grid-row:span 2;color:#82e2cc;font-weight:900}
.d177-proof-steps strong{font-size:16px}
.d177-proof-steps p{grid-column:2;font-size:13px;color:#c3dade;line-height:1.7;margin:5px 0}
.d177-proof-content>a{color:#9df5d9;font-weight:850;font-size:13px}
.d177-close{padding:clamp(86px,10vw,150px) 0;background:#daf0e9}
.d177-close-inner{text-align:center;max-width:880px}
.d177-close h2{font-size:clamp(48px,6.2vw,84px);letter-spacing:-.065em;line-height:1.05;margin:15px 0 22px}
.d177-close em{color:#0b6672}
.d177-close-inner>p:not(.d177-kicker){font-size:17px;line-height:1.7;color:#3a5e69;max-width:650px;margin:0 auto 25px}
.d177-close-inner>div{display:flex;justify-content:center;align-items:center;gap:24px;flex-wrap:wrap}
.d177-close-inner>div>a:not(.d177-primary){font-size:13px;color:#145660;font-weight:800}
.d177-footer{background:#041b28;color:#c4d9dd;padding:45px 0}
.d177-footer .d177-shell{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px}
.d177-footer strong{color:#9be9d5;letter-spacing:.1em;font-size:19px}
.d177-footer p,.d177-footer small{font-size:11px;margin:0}
.d177-footer nav{display:flex;gap:15px}
.d177-footer a{color:#d6ebec;font-size:12px}
/* Operator public profile */
.d177-profile-hero{background:#061f2e;padding:75px 0 48px;color:#f8fffe}
.d177-back{display:inline-flex;gap:8px;align-items:center;color:#9bf2d8!important;font-size:13px;font-weight:850;margin-bottom:25px}
.d177-profile-cover{position:relative;aspect-ratio:2.7;border-radius:25px;overflow:hidden;background:linear-gradient(125deg,#174d61,#3d8d86,#b4d9bd)}
.d177-profile-cover img{width:100%;height:100%;object-fit:cover}
.d177-profile-heading{display:grid;grid-template-columns:1fr auto;align-items:center;gap:20px;padding:32px 0 0}
.d177-profile-heading h1{font-size:clamp(38px,6vw,76px);letter-spacing:-.06em;line-height:1.04;margin:8px 0 12px}
.d177-profile-heading p{color:#c0dce1;font-size:16px;line-height:1.65}
.d177-profile-actions{display:flex;flex-wrap:wrap;gap:9px}
.d177-profile-actions a,.d177-profile-actions button{font-size:13px;font-weight:800;border:1px solid #658a90;color:#eafffb;border-radius:50px;background:transparent;min-height:43px;padding:11px 17px;cursor:pointer}
.d177-profile-actions a:hover{color:#082b39;background:#a7f3d9}
.d177-profile-details{padding:65px 0 85px}
.d177-profile-layout{display:grid;grid-template-columns:1.45fr .75fr;gap:28px;align-items:start}
.d177-profile-section{background:white;border:1px solid #dbe9e8;border-radius:22px;padding:clamp(24px,4vw,40px);margin-bottom:20px}
.d177-profile-section h2{font-size:clamp(24px,3vw,36px);letter-spacing:-.045em;margin:6px 0 15px}
.d177-profile-section p{color:#4e6975;font-size:15px;line-height:1.8}
.d177-profile-meta{display:grid;gap:15px}
.d177-profile-meta>div{border-bottom:1px solid #e3edeb;padding-bottom:12px;display:grid;gap:3px}
.d177-profile-meta small{color:#637a83;font-size:10px;letter-spacing:.12em;font-weight:850}
.d177-profile-meta strong{font-size:14px;color:#0b3749}
.d177-profile-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.d177-profile-gallery img{width:100%;height:220px;object-fit:cover;border-radius:14px}
.d177-disclaimer{font-size:12px;color:#526e79;line-height:1.7}
.d177-quote{font-family:Georgia,serif;font-size:clamp(19px,2.6vw,28px)!important;color:#124957!important;line-height:1.5!important}
.d177-notice{background:#e8f5f0;border-left:4px solid #1d9c83;padding:13px 16px;border-radius:0 10px 10px 0}
.d177-local-link{color:#075e70!important;font-weight:800;text-decoration:underline!important}
.d177-profile-error{min-height:45vh;text-align:center;padding:90px 20px}
.d177-profile-error h1{font-size:clamp(34px,5vw,57px)}
/* Owner-only profile controls */
.d177-editor-intro{padding:65px 0 35px;background:#082939;color:#fff}
.d177-editor-intro h1{font-size:clamp(36px,5vw,62px);letter-spacing:-.06em}
.d177-editor-intro p{max-width:800px;color:#c7dfe2;font-size:15px;line-height:1.7}
.d177-editor{padding:43px 0 85px}
.d177-editor-grid{display:grid;grid-template-columns:1fr 300px;gap:30px}
.d177-fieldset{border:1px solid #d7e6e4;border-radius:20px;padding:24px;background:white;margin:0 0 21px}
.d177-fieldset legend{font-size:19px;font-weight:850;padding:0 8px;color:#0f4250}
.d177-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}
.d177-fields label{display:grid;gap:7px;font-size:12px;font-weight:800;color:#2a5361}
.d177-fields label.wide{grid-column:1/-1}
.d177-fields input,.d177-fields textarea{width:100%;min-height:46px;padding:12px;border:1px solid #cbdedc;border-radius:10px;color:#0c3340;background:#fff}
.d177-fields textarea{min-height:95px;resize:vertical}
.d177-fields input[type="checkbox"]{width:19px;min-height:19px;accent-color:#08705c}
.d177-fields .d177-check{display:flex;align-items:flex-start;gap:10px;font-size:13px;line-height:1.5;padding:5px 0}
.d177-editor-help{font-size:12px;line-height:1.6;color:#5c7680}
.d177-photo-slots{display:grid;gap:12px}
.d177-upload-row{display:grid;gap:7px}
.d177-upload-row img{width:100%;max-width:240px;max-height:145px;object-fit:cover;border-radius:10px}
.d177-editor-save{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.d177-editor-save button{cursor:pointer}
.d177-editor-save p{margin:0;color:#345864;font-size:13px}
.d177-editor-sidebar{position:sticky;top:25px;background:#0d3446;color:#e9fffc;border-radius:20px;padding:25px}
.d177-editor-sidebar h2{font-size:23px;letter-spacing:-.04em}
.d177-editor-sidebar p,.d177-editor-sidebar li{color:#bddfe0;font-size:12px;line-height:1.8}
.d177-editor-sidebar ul{padding-left:19px}
.d177-editor-sidebar a{color:#98f2d4;font-size:13px;font-weight:900}
/* Theme adjustments: daytime editorial style remains legible in midnight. */
html[data-theme="midnight"] body.phase177-page{--d177-paper:#071c2b;background:#071c2b;color:#eaf8fa}
html[data-theme="midnight"] body.phase177-page .d177-discover{background:#0a2231}
html[data-theme="midnight"] body.phase177-page .d177-section-heading h2,
html[data-theme="midnight"] body.phase177-page .d177-results-head h3{color:#eafafb}
html[data-theme="midnight"] body.phase177-page .d177-section-heading>p,
html[data-theme="midnight"] body.phase177-page .d177-results-meta{color:#bfd8e0}
html[data-theme="midnight"] body.phase177-page :is(.d177-card,.d177-search-panel,.d177-map-regions,.d177-profile-section,.d177-fieldset){background:#113143;color:#f0ffff;border-color:#2c5060}
html[data-theme="midnight"] body.phase177-page :is(.d177-card h4,.d177-map-regions h3,.d177-profile-section h2,.d177-profile-meta strong,.d177-fieldset legend){color:#f0ffff}
html[data-theme="midnight"] body.phase177-page :is(.d177-card-summary,.d177-card-town,.d177-map-regions button,.d177-profile-section p,.d177-editor-help,.d177-fields label){color:#c0dbe0}
html[data-theme="midnight"] body.phase177-page .d177-pulse-strip{background:#143747;border-color:#335b61}
html[data-theme="midnight"] body.phase177-page .d177-pulse-strip :is(span,p){color:#c1dde3}
html[data-theme="midnight"] body.phase177-page .d177-empty,
html[data-theme="midnight"] body.phase177-page .d177-loading{background:#113143;color:#f0ffff;border-color:#2b5360}
html[data-theme="midnight"] body.phase177-page .d177-search-panel :is(input,select),html[data-theme="midnight"] body.phase177-page .d177-fields :is(input,textarea){background:#edf7f5;color:#083646}
html[data-theme="midnight"] body.phase177-page .d177-map-regions button{border-color:#335866}
html[data-theme="midnight"] body.phase177-page .d177-proof{background:#020f1d}
@media(max-width:1150px){
 .d177-search-panel{grid-template-columns:repeat(3,minmax(0,1fr))}
 .d177-search-main{grid-column:1/-1}
 .d177-search-buttons{flex-direction:row;align-items:center}
 .d177-nav{gap:13px}
}
@media(max-width:850px){
 .d177-top{height:auto;min-height:74px;padding:14px 24px;flex-wrap:wrap}
 .d177-nav{width:100%;overflow-x:auto;padding:3px 0 7px}
 .d177-hero-layout{grid-template-columns:1fr}
 .d177-hero-aside{display:none}
 .d177-section-heading,.d177-proof-grid,.d177-profile-layout,.d177-editor-grid{grid-template-columns:1fr}
 .d177-pulse-strip{grid-template-columns:repeat(3,1fr)}
 .d177-pulse-strip>p{grid-column:1/-1}
 .d177-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
 .d177-map-layout{grid-template-columns:1fr}
 .d177-editor-sidebar{position:static}
}
@media(max-width:600px){
 .d177-shell{width:calc(100% - 30px)}
 .d177-top{padding:12px 15px}
 .d177-brand{font-size:16px}
 .d177-brand small{font-size:7px}
 .d177-nav a{font-size:11px}
 .d177-hero-layout{padding:74px 0 85px}
 .d177-hero h1{font-size:clamp(43px,11vw,67px)}
 .d177-overline{font-size:9px}
 .d177-hero-lead{font-size:15px}
 .d177-discover{padding:66px 0}
 .d177-search-panel{grid-template-columns:1fr;padding:13px}
 .d177-search-main{grid-column:auto}
 .d177-search-buttons{justify-content:space-between}
 .d177-pulse-strip{padding:16px;gap:9px}
 .d177-pulse-strip strong{font-size:23px}
 .d177-pulse-strip span{font-size:8px}
 .d177-results-head{align-items:start;flex-direction:column}
 .d177-cards{grid-template-columns:1fr}
 .d177-section-heading h2,.d177-proof h2{font-size:clamp(38px,9vw,55px)}
 .d177-proof-steps>div{grid-template-columns:35px 1fr}
 .d177-profile-heading{grid-template-columns:1fr}
 .d177-profile-cover{aspect-ratio:1.5}
 .d177-profile-gallery{grid-template-columns:1fr}
 .d177-profile-gallery img{height:200px}
 .d177-fields{grid-template-columns:1fr}
 .d177-fields label.wide{grid-column:auto}
 .d177-close h2{font-size:clamp(42px,10vw,61px)}
}
@media(prefers-reduced-motion:reduce){.d177-card,.d177-map-marker circle{transition:none!important}.d177-card:hover{transform:none}}


/* 1.77 accessibility: card provenance captions need at least WCAG AA contrast. */
body.phase177-page .d177-card-footer small{color:#345a66}
html[data-theme="midnight"] body.phase177-page .d177-card-footer small{color:#c0dbe0}


/* Buttons inside light profile and review cards must not inherit white hero ink. */
body.phase177-page :is(.d177-profile-section,.d177-card-body) .d177-profile-actions :is(a,button){
  background:#e6f5f0;color:#124c5a;border-color:#9bc9c2
}
body.phase177-page :is(.d177-profile-section,.d177-card-body) .d177-profile-actions :is(a,button):hover{
  background:#c2e9dc;color:#083a47
}
body.phase177-page .d177-editor-help{color:#3f606c}
