/* FitzChecks Shared UI v0.1.0. Scoped to theme-rendered pages, not WP Admin. */
.fitz-ui-theme-page { --fitz-text:#151515;--fitz-muted:#727272;--fitz-line:#ddd;--fitz-dark:#202020;--fitz-control-blue:#145ec5;--fitz-control-blue-hover:#0f4ca2;--fitz-font-ui:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,"Noto Sans Thai",sans-serif; }
.fitz-ui-theme-page .fitz-shared-ui,.fitz-ui-theme-page .fitz-shared-ui *{box-sizing:border-box}
.fitz-ui-theme-page .fitz-shared-ui{font-family:var(--fitz-font-ui);font-size:16px}
.fitz-ui-theme-page .fitz-site-header{border-bottom:1px solid var(--fitz-line);background:#fff;position:relative;z-index:5}
.fitz-ui-theme-page .fitz-site-header-inner{max-width:1240px;margin:auto;padding:22px 22px 12px;display:grid;grid-template-columns:260px minmax(300px,620px) 1fr;gap:26px;align-items:center}
.fitz-ui-theme-page .fitz-brand{display:block;width:220px;text-decoration:none}
.fitz-ui-theme-page .fitz-brand img{display:block;width:100%;height:auto}
.fitz-ui-theme-page .fitz-logo-picture{display:block;line-height:0}
.fitz-ui-theme-page .fitz-search{display:flex;width:100%;margin:0}
.fitz-ui-theme-page .fitz-search input{min-width:0;width:0;flex:1;border:1px solid #d4d4d4;border-right:0;border-radius:6px 0 0 6px;padding:11px 13px;font:inherit;color:#151515;background:#fff}
.fitz-ui-theme-page .fitz-search button{border:1px solid var(--fitz-control-blue);background:var(--fitz-control-blue);color:#fff;border-radius:0 6px 6px 0;padding:0 18px;font:inherit;cursor:pointer}
.fitz-ui-theme-page .fitz-search button:hover{background:var(--fitz-control-blue-hover);border-color:var(--fitz-control-blue-hover)}
.fitz-ui-theme-page .fitz-header-actions{display:flex;justify-content:flex-end;align-items:center;gap:5px;font-size:.9rem;font-weight:700}
.fitz-ui-theme-page .fitz-header-actions a{padding:4px 6px;text-decoration:none;color:#202020;border-radius:4px}
.fitz-ui-theme-page .fitz-header-actions a.is-active{background:var(--fitz-control-blue);color:#fff}
.fitz-ui-theme-page .fitz-site-nav{max-width:1240px;margin:0 auto;padding:0 22px 12px;display:flex;gap:24px;font-size:.9rem;font-weight:500}
.fitz-ui-theme-page .fitz-site-nav a{color:#202020;text-decoration:none}
.fitz-ui-theme-page .fitz-site-nav a:hover{text-decoration:underline}
.fitz-ui-theme-page .fitz-nav-disabled{opacity:.58;cursor:default;color:#202020}
.fitz-ui-theme-page .fitz-site-footer{background:#232323;color:#fff;margin-top:36px}
.fitz-ui-theme-page .fitz-site-footer-inner{max-width:1240px;margin:0 auto;padding:26px 22px;display:flex;justify-content:space-between;align-items:center;gap:24px;font-size:.92rem}
.fitz-ui-theme-page .fitz-site-footer img{display:block;width:200px;height:auto}
.fitz-ui-theme-page .fitz-footer-privacy-link{color:#fff;text-decoration:underline;text-underline-offset:3px}
.fitz-ui-theme-page .fitz-footer-privacy-link:focus-visible,.fitz-ui-theme-page .fitz-site-header a:focus-visible{outline:3px solid #145ec5;outline-offset:3px}
.fitz-ui-theme-page .fitz-footer-privacy-separator{opacity:.7}
.fitz-ui-theme-page .screen-reader-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.fitz-ui-theme-page .fitz-policy-content{max-width:850px;margin:40px auto 64px;padding:0 22px;line-height:1.7}
.fitz-ui-theme-page .fitz-policy-content h1{font-size:clamp(1.7rem,3vw,2.2rem);margin-bottom:30px}
.fitz-ui-theme-page .fitz-policy-content h2[id^="privacy-"]{scroll-margin-top:20px}
.fitz-ui-theme-page .fitz-policy-content p{overflow-wrap:anywhere}
.fitz-ui-theme-page .fitz-404-main{max-width:850px;min-height:52vh;margin:55px auto;padding:30px 22px;line-height:1.7;text-align:center}
.fitz-ui-theme-page .fitz-404-main h1{font-size:clamp(2rem,6vw,4rem);margin-bottom:10px}
.fitz-ui-theme-page .fitz-404-main a{color:#145ec5;text-underline-offset:3px}
@media(max-width:980px){.fitz-ui-theme-page .fitz-site-header-inner{grid-template-columns:205px minmax(260px,1fr) auto;gap:16px}.fitz-ui-theme-page .fitz-brand{width:198px}}
@media(max-width:760px){.fitz-ui-theme-page .fitz-site-header-inner{grid-template-columns:1fr auto;gap:10px;padding:14px 14px 10px}.fitz-ui-theme-page .fitz-brand{width:185px}.fitz-ui-theme-page .fitz-search{grid-column:1/-1;grid-row:2}.fitz-ui-theme-page .fitz-header-actions{font-size:.8rem}.fitz-ui-theme-page .fitz-site-nav{padding:0 14px 10px;gap:18px;overflow-x:auto;white-space:nowrap;font-size:.82rem}.fitz-ui-theme-page .fitz-site-footer-inner{padding:24px 14px;flex-direction:column;align-items:flex-start}.fitz-ui-theme-page .fitz-site-footer img{width:180px}}
@media(max-width:430px){.fitz-ui-theme-page .fitz-brand{width:165px}.fitz-ui-theme-page .fitz-search input{font-size:.86rem}.fitz-ui-theme-page .fitz-search button{padding:0 13px;font-size:.86rem}.fitz-ui-theme-page .fitz-site-nav{font-size:.78rem}}


/* Privacy typography bridge (v0.1.3).
 * Reuse FitzChecks Typography's body token rather than Twenty Twenty-Five
 * font presets. Scope exclusively to the existing Privacy Template; no
 * changes to WP Admin, WooCommerce, 404 or plugin-rendered content. */
/* Match the established FitzChecks Typography contract.
 * FitzChecks Typography normally defines these on body.fitzchecks-shell;
 * native Gutenberg Privacy uses body.fitz-ui-theme-page instead. */
body.fitz-ui-theme-page .fitz-policy-content {
  --fitz-font-ui: "Fitz Heading", "Noto Sans Thai", Arial, sans-serif;
  --fitz-font-body: "Fitz Body", "Sarabun", Arial, sans-serif;
}
body.fitz-ui-theme-page .fitz-policy-content,
body.fitz-ui-theme-page .fitz-policy-content .wp-block-post-content {
  font-family:var(--fitz-font-body, "Fitz Body", "Sarabun", "Leelawadee UI", Tahoma, sans-serif);
  font-size:17px;
  line-height:1.7;
  font-weight:400;
  color:var(--fitz-text,#151515);
  letter-spacing:normal;
}
/* Heading: Fitz Heading -> Noto Sans Thai; body: Fitz Body -> Sarabun.
 * Matches the established FitzChecks Typography v0.1.2 token contract. */
body.fitz-ui-theme-page .fitz-policy-content :is(h1,h2,h3,h4,h5,h6),
body.fitz-ui-theme-page .fitz-policy-content .wp-block-post-content :is(h1,h2,h3,h4,h5,h6) {
  font-family:var(--fitz-font-ui, "Fitz Heading", "Noto Sans Thai", Arial, sans-serif);
  font-weight:700;
}
body.fitz-ui-theme-page .fitz-policy-content :is(p,li,blockquote),
body.fitz-ui-theme-page .fitz-policy-content .wp-block-post-content :is(p,li,blockquote) {
  font-family:inherit;
  line-height:inherit;
}
body.fitz-ui-theme-page .fitz-policy-content h1 {
  font-size:clamp(1.75rem,2.9vw,2.125rem);
  font-weight:700;
  line-height:1.25;
  margin-block:0 1.15em;
}
body.fitz-ui-theme-page .fitz-policy-content h2 {
  font-size:clamp(1.25rem,2vw,1.45rem);
  font-weight:700;
  line-height:1.35;
  margin-block:1.5em .55em;
}
body.fitz-ui-theme-page .fitz-policy-content p {
  font-size:1em;
  line-height:1.7;
  margin-block:0 .9em;
}
body.fitz-ui-theme-page .fitz-policy-content a {
  text-underline-offset:2px;
}
body.fitz-ui-theme-page .fitz-policy-content .fc-privacy-language-nav {
  font-size:.94em;
  line-height:1.5;
}
body.fitz-ui-theme-page .fitz-policy-content code {
  font-size:.9em;
  overflow-wrap:anywhere;
}
@media(max-width:760px) {
  body.fitz-ui-theme-page .fitz-policy-content,
  body.fitz-ui-theme-page .fitz-policy-content .wp-block-post-content {
    font-size:16px;
    line-height:1.7;
  }
  body.fitz-ui-theme-page .fitz-policy-content h2 {
    margin-block:1.3em .5em;
  }
}


/* 404 Gutenberg template: keep content editable while displaying only the
 * locale relevant to the requested URL. Both language groups remain editable
 * in the Site Editor (where the frontend 404 body class is absent). */
body.fitz-ui-theme-page.fitz-404-locale-th .fitz-404-copy-en,
body.fitz-ui-theme-page.fitz-404-locale-en .fitz-404-copy-th {
  display:none;
}
body.fitz-ui-theme-page .fitz-404-main {
  font-family:var(--fitz-font-body,"Fitz Body","Sarabun",Arial,sans-serif);
  color:var(--fitz-text,#151515);
  line-height:1.7;
  max-width:850px;
  min-height:52vh;
  margin:50px auto 64px;
  padding:30px 22px;
  text-align:center;
}
body.fitz-ui-theme-page .fitz-404-main :is(h1,h2,h3) {
  font-family:var(--fitz-font-ui,"Fitz Heading","Noto Sans Thai",Arial,sans-serif);
  font-weight:700;
  line-height:1.3;
}
body.fitz-ui-theme-page .fitz-404-main .fitz-404-code {
  font-size:clamp(3rem,8vw,5rem);
  margin:0 0 10px;
}
body.fitz-ui-theme-page .fitz-404-main .fitz-404-copy-th h2,
body.fitz-ui-theme-page .fitz-404-main .fitz-404-copy-en h2 {
  font-size:clamp(1.3rem,3vw,1.8rem);
  margin:0 0 16px;
}
body.fitz-ui-theme-page .fitz-404-main p {
  font-size:clamp(1rem,2vw,1.075rem);
  line-height:1.7;
  margin:0 auto 16px;
  max-width:600px;
}
body.fitz-ui-theme-page .fitz-404-main a {
  color:#145ec5;
  font-weight:700;
  text-underline-offset:3px;
}
@media(max-width:760px) {
  body.fitz-ui-theme-page .fitz-404-main {
    min-height:42vh;
    margin:20px auto 36px;
    padding:32px 18px;
  }
}
