/* Shared look for the standalone pages (tax correspondence, group policies, login). Mobile first. */
@font-face{font-family:Cairo;src:url('/assets/fonts/cairo-arabic.woff2') format('woff2');font-style:normal;font-weight:400 800;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+0870-0891,U+08A0-08FF,U+200C-200E,U+FB50-FDFF,U+FE70-FEFF}
@font-face{font-family:Cairo;src:url('/assets/fonts/cairo-latin.woff2') format('woff2');font-style:normal;font-weight:400 800;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

body.standalone{--ink:#25231f;--muted:#756f66;--line:#e8e3dc;--gold:#bc955a;--gold-deep:#8b642f;--dark:#1b1b1a;display:block;margin:0;min-height:100dvh;background:#f7f5f0;color:var(--ink);font:15px/1.7 Cairo,Tahoma,sans-serif}
body.standalone *{box-sizing:border-box}
[hidden]{display:none!important}
body.standalone :focus-visible{outline:3px solid var(--gold);outline-offset:2px}

/* App bar */
.page-appbar{position:sticky;top:0;z-index:30;display:flex;align-items:center;gap:10px;min-height:56px;padding:6px 10px;background:var(--dark);color:#f1eee8;box-shadow:0 2px 12px #0002}
.page-appbar a{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:44px;min-height:44px;padding:0 10px;border-radius:10px;color:#f1cf9a;text-decoration:none;font-weight:700}
.page-appbar a:hover{background:#ffffff14}
.page-appbar svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.page-appbar .appbar-back span{display:none}
.page-appbar strong{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px}
.page-appbar img{height:26px;width:auto}

/* Notice banners */
body.standalone .notice-warning,body.standalone>header:not(.page-appbar){margin:0;padding:10px 14px;background:#fff4cf;color:#5b4a1d;border-bottom:1px solid #ecd98f;text-align:start;font-size:14px;font-weight:600}

/* Content */
body.standalone main{max-width:1200px;margin:0 auto;padding:14px 12px 40px}
body.standalone h1{font-size:22px;line-height:1.4;margin:6px 0 8px}
body.standalone h2{font-size:18px;line-height:1.4;margin:0 0 8px}
body.standalone h3{font-size:16px;margin:16px 0 6px}
body.standalone p{margin:6px 0 10px}
body.standalone small,body.standalone .hint{font-size:13px;color:var(--muted)}
body.standalone main section{min-width:0;margin:12px 0;padding:14px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 1px 2px #0000000a;overflow-wrap:anywhere}

/* Forms: one control per row on phones, 44px targets, 16px text so iOS does not zoom. */
body.standalone main label{display:flex;flex-direction:column;gap:4px;width:100%;max-width:100%;margin:8px 0;font-weight:600}
body.standalone main label:has(>input[type=checkbox]),body.standalone main label.checks,body.standalone main .checks label{flex-direction:row;align-items:flex-start;gap:10px;font-weight:500}
body.standalone :is(input,select,textarea){width:100%;max-width:100%;min-height:44px;padding:8px 12px;border:1px solid #d6cfc3;border-radius:10px;background:#fff;color:inherit;font:inherit;font-size:16px}
body.standalone textarea{min-height:120px;resize:vertical}
body.standalone input:is([type=checkbox],[type=radio]){width:22px;min-height:22px;height:22px;flex:none;margin:3px 0 0;padding:0;accent-color:var(--gold-deep)}
body.standalone input[type=file]{padding:8px}
body.standalone button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin:4px 0 4px 6px;padding:8px 16px;border:1px solid var(--gold-deep);border-radius:10px;background:var(--gold-deep);color:#fff;font:inherit;font-weight:700;cursor:pointer}
body.standalone button:hover{background:#74531f}
body.standalone button:disabled{opacity:.5;cursor:not-allowed}
body.standalone summary{display:list-item;min-height:44px;padding-block:10px;cursor:pointer;font-weight:700}
body.standalone main a{color:var(--gold-deep)}
body.standalone form{display:block}

/* Tables scroll inside their card instead of widening the page. */
body.standalone main table{display:block;width:100%;max-width:100%;overflow-x:auto;border-collapse:collapse;font-size:14px}
body.standalone main :is(th,td){padding:8px 10px;text-align:right;vertical-align:top;border-bottom:1px solid #eee;white-space:nowrap}
body.standalone main th{background:#f8f5ef;font-weight:700}
body.standalone pre{white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit}
body.standalone ul,body.standalone ol{padding-inline-start:20px}

@media (min-width:768px){
  .page-appbar{padding:6px 20px}
  .page-appbar .appbar-back span{display:inline}
  body.standalone main{padding:20px 24px 48px}
  body.standalone h1{font-size:26px}
  body.standalone main section{padding:18px 20px}
  body.standalone main label:not(:has(>input[type=checkbox])):not(.checks){display:inline-flex;width:auto;min-width:220px;max-width:100%;margin:6px 0 6px 10px;vertical-align:bottom}
  body.standalone form{display:flex;flex-wrap:wrap;align-items:flex-end}
  body.standalone form .checks{flex-basis:100%}
  body.standalone main table{display:table}
  body.standalone main :is(th,td){white-space:normal}
  body.standalone .wide,body.standalone main section:has(>table){overflow-x:auto}
}
@media (min-width:1200px) and (pointer:fine){
  body.standalone :is(input,select){min-height:40px;font-size:15px}
  body.standalone button{min-height:40px}
}

/* Login */
body.standalone.auth{display:grid;place-items:center;padding:16px;background:radial-gradient(circle at 20% 15%,#ede6d5,#f8f7f3 45%,#efeee9)}
body.auth .auth-card{width:min(440px,100%);padding:28px 20px;margin:0}
body.auth .auth-card form{display:grid;gap:14px}
body.auth .auth-card label{display:grid;margin:0}
body.auth .auth-card button{width:100%;margin:0;min-height:48px}
@media (min-width:768px){body.auth .auth-card{padding:38px}}

@media print{.page-appbar{display:none!important}body.standalone main section{box-shadow:none;break-inside:avoid}}
