/* PropLeh shared.css — design tokens + header/nav/footer used on every page.
   Page-specific layout (hero, calculator UI, etc.) stays in that page's own file. */

:root{
  --bg:#FFFFFF; --surface:#FFFFFF; --surface-2:#F5F5F7; --border:#E3E3E6; --border-strong:#D6D6DA;
  --ink:#1D1D1F; --muted:#5C5C60; --muted-2:#86868B;
  --accent:#9A6B2E; --accent-strong:#1D1D1F; --accent-ink:#FFFFFF; --accent-soft:#F5F5F7;
  --hdb:#A65A3B; --hdb-bg:#F7ECE5; --hdb-line:#E9CBBB;
  --danger:#B3261E; --danger-bg:#C9483B; --focus:#9A6B2E;
  --warn:#B3261E; --warn-soft:#FBECEA; --wa:#1FA855;
  color-scheme: light;
}
*{box-sizing:border-box;}
body{background:var(--bg); color:var(--ink); font-family:'Inter',system-ui,sans-serif; font-variant-numeric:tabular-nums;}
a{color:inherit;text-decoration:none;}

/* header */
header{border-bottom:1px solid var(--border); background:var(--bg);}
.headrow{display:flex; align-items:center; justify-content:space-between; padding:16px 20px; max-width:1240px; margin:0 auto;}
.brand{font-family:'Inter',system-ui,sans-serif; font-weight:700; font-size:1.25rem; letter-spacing:-.01em; color:var(--ink);}
.brand span{color:var(--accent);}
.wa-btn{display:inline-flex; align-items:center; gap:7px; background:var(--wa); color:#fff; font-weight:700; font-size:.82rem; padding:9px 16px; border-radius:999px; white-space:nowrap; flex:none;}
.wa-btn svg{width:15px; height:15px; flex:none;}

.ph-nav{display:flex; align-items:center; gap:2px;}
.ph-navlink{font-size:.86rem; font-weight:600; color:var(--ink); padding:10px 12px; border-radius:8px; text-decoration:none;}
.ph-navlink:hover{background:var(--surface-2); color:var(--accent);}
.ph-navdrop{position:relative;}
.ph-navdrop .ph-navbtn{list-style:none; cursor:pointer; display:flex; align-items:center; gap:4px; font-family:inherit; font-size:.86rem; font-weight:600; color:var(--ink); padding:10px 12px; border-radius:8px; user-select:none; border:none; background:none; touch-action:manipulation;}
.ph-navdrop .ph-navbtn:hover{background:var(--surface-2); color:var(--accent);}
.ph-navdrop .ph-chevron{font-size:.55rem; transition:transform .15s;}
.ph-navdrop.open .ph-chevron{transform:rotate(180deg);}
.ph-dropmenu{display:none; position:absolute; top:100%; left:0; padding-top:6px; min-width:280px; z-index:30;}
.ph-dropmenu-inner{background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:6px; box-shadow:0 10px 28px rgba(0,0,0,.10);}
.ph-dropmenu a{display:block; padding:9px 12px; border-radius:8px; color:var(--ink); text-decoration:none;}
.ph-dropmenu a:hover{background:var(--surface-2); color:var(--accent);}
.ph-dropmenu .ph-t{display:block; font-size:.86rem; font-weight:600;}
.ph-dropmenu .ph-d{display:block; font-size:.75rem; font-weight:400; color:var(--muted); margin-top:1px;}
.ph-navdrop.open .ph-dropmenu{display:block;}
.ph-navdrop-guides .ph-dropmenu{min-width:340px;}
@media (hover:hover) and (pointer:fine){
  .ph-navdrop:hover .ph-dropmenu{display:block;}
  .ph-navdrop:hover .ph-chevron{transform:rotate(180deg);}
}
/* current page */
.ph-navlink[aria-current="page"], .ph-dropmenu a[aria-current="page"]{color:var(--accent);}
.ph-navlink[aria-current="page"]{background:var(--surface-2);}
.ph-dropmenu a[aria-current="page"] .ph-t{text-decoration:underline; text-underline-offset:3px;}
.ph-navdrop.has-current .ph-navbtn{color:var(--accent);}
.ph-menubtn{display:none; align-items:center; gap:8px; min-height:44px; padding:0 12px; border:1px solid var(--border-strong); border-radius:999px; background:var(--surface); color:var(--ink); font-family:inherit; font-size:.82rem; font-weight:700; cursor:pointer; touch-action:manipulation;}
.ph-menubtn:hover{background:var(--surface-2);}
.ph-menuicon{width:16px; height:2px; background:currentColor; border-radius:2px; position:relative; display:inline-block;}
.ph-menuicon::before,.ph-menuicon::after{content:''; position:absolute; left:0; width:16px; height:2px; background:currentColor; border-radius:2px;}
.ph-menuicon::before{top:-5px;} .ph-menuicon::after{top:5px;}
header{position:relative; z-index:40;}
.ph-nav{flex:1; justify-content:center;}

@media (max-width:860px){
  .headrow{gap:8px;}
  .brand{margin-right:auto;}
  .wa-btn{order:2;}
  .ph-menubtn{display:inline-flex; order:3;}
  .ph-nav{display:none; position:absolute; top:100%; left:0; right:0; flex-direction:column; align-items:stretch; gap:0; background:var(--bg); border-bottom:1px solid var(--border); box-shadow:0 14px 28px rgba(0,0,0,.10); padding:8px 12px 14px; max-height:calc(100vh - 72px); max-height:calc(100dvh - 72px); overflow-y:auto; overscroll-behavior:contain;}
  .ph-nav.open{display:flex;}
  .ph-navlink,.ph-navdrop .ph-navbtn{padding:13px 10px; font-size:.95rem; min-height:48px;}
  .ph-navdrop .ph-navbtn{width:100%; justify-content:space-between;}
  .ph-navdrop{border-top:1px solid var(--border);}
  .ph-navdrop .ph-chevron{font-size:.7rem;}
  .ph-dropmenu{position:static; padding:0 0 8px 8px; min-width:0;}
  .ph-dropmenu-inner{border:none; box-shadow:none; padding:0; background:transparent;}
  .ph-dropmenu a{padding:11px 10px; min-height:44px;}
  .ph-navdrop:not(.open):hover .ph-dropmenu{display:none;}
  .ph-navdrop:not(.open):hover .ph-chevron{transform:none;}
  .wa-btn{min-height:44px; min-width:44px; justify-content:center;}
}
@media (max-width:420px){
  header > div{padding:12px 12px !important; gap:6px !important;}
  .brand{font-size:1.1rem;}
  .wa-btn{padding:9px 11px; gap:0;}
  .wa-btn .wa-text{display:none;}
  .ph-menubtn{padding:0 11px;}
}

/* tool + calculator pages: one shared content frame, left edge aligned with the logo.
   build.py adds class "tool" to <body>, plus "tool-col" and --col on single-column pages to cap their width. */
body.tool .wrap{max-width:1200px; margin:0 auto; padding-left:0; padding-right:0;}
body.tool-col .wrap > *{max-width:var(--col);}
@media (max-width:1264px){ body.tool .wrap{padding-left:4px; padding-right:4px;} }
@media (max-width:420px){ body.tool .wrap{padding-left:0; padding-right:0;} }
body.tool .layout{align-items:start;}
body.tool .layout > .side{min-width:0;}

/* footer */
footer{padding:32px 20px 40px; font-size:.76rem; color:var(--muted-2); line-height:1.7;}
.footwrap{max-width:1240px; margin:0 auto;}
.footlinks{display:flex; gap:18px; flex-wrap:wrap; margin-bottom:14px; font-size:.8rem; font-weight:600; color:var(--muted);}
.footlinks a:hover{color:var(--accent);}
.foot-agent{margin:0 0 6px; color:var(--muted); overflow-wrap:anywhere;}
.foot-agent a{text-decoration:underline; text-underline-offset:2px;}
.foot-agent a:hover{color:var(--accent);}
.footnote{max-width:820px; border-top:1px solid var(--border); padding-top:16px;}
.footnote b{color:var(--ink); font-weight:600;}

/* a11y: visible keyboard focus (native outline is never suppressed site-wide; this just
   makes it consistent with the brand's focus color used on form fields) */
a:focus-visible, button:focus-visible{outline:2px solid var(--focus); outline-offset:2px;}
*{-webkit-tap-highlight-color:transparent;}

@media (prefers-reduced-motion: reduce){
  *{animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; scroll-behavior:auto !important;}
}
.ig-link{display:inline-flex;align-items:center;gap:6px;min-height:24px}
.ig-ico{width:20px;height:20px;border-radius:5px;flex:none}
/* tool pages: footer lines up with the page content edge */
body.tool footer{padding-left:0; padding-right:0;}
body.tool .footwrap{max-width:1200px;}
@media (max-width:1264px){ body.tool .footwrap{padding-left:4px; padding-right:4px;} }
@media (max-width:420px){ body.tool .footwrap{padding-left:0; padding-right:0;} }


/* prompt injected mid-way through each guide by build.py */
.guide-prompt{margin:28px 0; padding:18px 20px; border:1px solid var(--hdb-line); border-radius:14px; background:var(--hdb-bg);}
.guide-prompt p{margin:0 0 12px; color:var(--ink); font-size:.95rem; line-height:1.5;}
.guide-prompt-actions{display:flex; flex-wrap:wrap; gap:10px;}
.guide-prompt-actions a{display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:0 18px; border-radius:999px; font-size:.88rem; font-weight:700; text-decoration:none; touch-action:manipulation;}
.guide-prompt-actions .gp-tool{background:var(--ink); color:#fff;}
.guide-prompt-actions .gp-wa{background:#157A3C; color:#fff;}
.guide-prompt-actions .gp-tool:hover{background:#000;}
.guide-prompt-actions .gp-wa:hover{background:#0F6B38;}
.guide-prompt-actions a:focus-visible{outline:3px solid var(--focus); outline-offset:2px;}
