@import url("app-promotion.css");

* {
  box-sizing: border-box;
}

:root {
  --page-bg: #ffffff;
  --text: #171717;
  --heading: #171717;
  --site-muted: #555555;
  --muted: var(--site-muted);
  --site-line: #f0dfce;
  --line: var(--site-line);
  --blue: #f59a38;
  --blue-dark: #171717;
  --blue-soft: #fff5eb;
  --green: #f59a38;
  --brand-primary: var(--blue);
  --brand-primary-dark: var(--blue-dark);
  --brand-accent: var(--green);
  --button-primary-bg: var(--brand-accent);
  --button-primary-hover-bg: #e5841d;
  --button-primary-text: #171717;
  --orange: #f59a38;
  --case: #ffffff;
  --shadow: 0 14px 36px rgba(66, 42, 18, 0.08);
  --font: "Segoe UI", Arial, sans-serif;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--page-bg);
}

.app-frame {
  max-width: 1400px;
  margin: 0 auto;
  background: var(--case);
  box-shadow: var(--shadow);
  min-height: 100vh;
}

.site-header {
  background: var(--brand-primary-dark);
  color: white;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 90px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.site-logo-image {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: contain;
  background: white;
}

.brand-logo {
  display: block;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
}

.site-logo-copy strong {
  display: block;
  font-size: 24px;
}

.site-logo-copy span {
  display: block;
  color: #b9c7d9;
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.site-nav a {
  color: white;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  padding: 8px 12px;
}

.site-nav .login,
.site-nav .signup {
  border-radius: 8px;
  padding: 10px 16px;
  border: 1px solid white;
}

.site-nav .signup {
  background: var(--button-primary-bg);
  border-color: var(--button-primary-bg);
}

.site-footer {
  background: var(--blue-dark);
  color: white;
  padding: 34px 28px;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 24px;
}

.site-footer .footer-col h4 {
  font-size: 16px;
  color: white;
  margin-bottom: 12px;
}

.site-footer .footer-col p,
.site-footer .footer-col li,
.site-footer .footer-col a {
  color: #d6e0ee;
  font-size: 14px;
  text-decoration: none;
}

.site-footer .footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer .footer-col li {
  margin-bottom: 8px;
}

.site-footer .footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  margin-right: 8px;
}

.site-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.24);
  margin-top: 22px;
  padding-top: 16px;
  font-size: 12px;
  color: #cbd8ec;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tool-page-wrap,
.duplicate-page {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  overflow-x: clip;
}

.site-header {
  position: relative;
  z-index: 30;
  min-height: 76px;
  padding: 12px clamp(16px, 3vw, 36px);
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.site-logo {
  min-width: 0;
  color: #fff;
  text-decoration: none;
}

.site-logo-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 10px;
  font-size: 14px;
  letter-spacing: 0;
}

.site-logo-copy strong {
  font-size: 18px;
  line-height: 1.2;
}

.site-logo-copy span {
  display: block;
  margin-top: 3px;
  color: #cbd8ec;
  font-size: 11px;
}

.site-nav {
  min-width: 0;
  gap: 12px;
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav .site-nav-links a {
  padding: 10px 9px;
  border-radius: 6px;
  white-space: nowrap;
}

.site-nav .site-nav-links a:hover,
.site-tools-toggle:hover {
  background: rgba(255, 255, 255, .12);
}

.site-search input {
  width: clamp(150px, 16vw, 220px);
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 6px;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  font: inherit;
}

.site-search input::placeholder { color: #d6e0ee; }

.site-tools-toggle,
.site-sidebar-close {
  display: none;
}

.site-page-layout {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr) minmax(180px, 260px);
  align-items: start;
  gap: clamp(14px, 1.8vw, 24px);
  width: min(100%, 1760px);
  margin: 0 auto;
  padding: clamp(14px, 2vw, 26px);
}

.site-sidebar,
.site-center-column,
.site-right-ads,
.site-tool-host {
  min-width: 0;
}

.site-sidebar {
  position: sticky;
  top: 14px;
  max-height: max(220px, calc(100vh - 116px));
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f5f8fa;
  scrollbar-gutter: stable;
}

.sidebar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 12px;
  color: var(--heading);
  font-size: 15px;
}

.service-group + .service-group { margin-top: 18px; }

.service-group h2 {
  margin: 0 0 7px;
  padding: 0 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.service-group ul {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-group li[hidden],
.service-group[hidden] { display: none; }

.service-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 38px;
  padding: 8px 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
  text-decoration: none;
}

a.service-link:hover { border-color: var(--line); background: #fff; }
.service-link.is-active { border-color: #a9d3ca; color: #075849; background: #eaf6f1; font-weight: 800; }
.service-link.is-unavailable { color: #818b96; cursor: default; }
.service-link.is-unavailable span:last-child { color: #929ca6; font-size: 10px; white-space: nowrap; }

.site-center-column { display: grid; gap: 16px; }

.top-ad-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.ad-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  min-width: 0;
  min-height: 100px;
  padding: 12px;
  overflow: hidden;
  border: 1px dashed #b7c7d2;
  border-radius: 6px;
  color: #566875;
  background: #f7fafb;
  text-align: center;
}

.ad-slot-title { font-size: 12px; font-weight: 800; }
.ad-slot-provider { color: #84929d; font-size: 10px; }
.ad-slot[hidden] { display: none !important; }
.ad-slot ins.adsbygoogle { display: block; width: 100%; min-height: 90px; }
.ad-slot iframe { display: block; max-width: 100%; border: 0; }
.top-ad-container .ad-slot[data-ad-placement="top-secondary"] { min-height: 90px; }
.top-ad-container .ad-slot[data-ad-placement="top-secondary"] iframe { width: min(728px, 100%); height: 90px; }
.site-after-tool-ads .ad-slot[data-ad-placement="after-info"] { min-height: 90px; aspect-ratio: auto; }
.site-after-tool-ads .ad-slot[data-ad-placement="after-info"] iframe { width: min(728px, 100%); height: 90px; }

.site-tool-host > main,
.site-tool-host > #json-diff-wrapper {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
}

.site-after-tool-ads { display: grid; gap: 16px; }

.ad-stack { display: flex; flex-direction: column; gap: 20px; }
.site-right-ads .ad-slot { min-height: 290px; aspect-ratio: 2 / 3; }
.site-right-ads .ad-slot[data-ad-placement="rail-middle"] { min-height: 600px; aspect-ratio: auto; }
.site-right-ads .ad-slot[data-ad-placement="rail-middle"] iframe { width: min(160px, 100%); height: 600px; }
.site-right-ads .ad-slot[data-ad-shape="square"] { min-height: 0; aspect-ratio: 1; }

.site-footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.home-tools-directory {
  margin-top: clamp(32px, 5vw, 64px);
  padding-top: clamp(24px, 4vw, 42px);
  border-top: 1px solid var(--line);
}

.home-tools-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.home-tools-heading h2 {
  margin: 0;
  color: var(--heading);
  font-size: clamp(24px, 3vw, 34px);
}

.home-tools-heading > p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.home-tools-kicker {
  margin: 0 0 6px;
  color: #08715f;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.home-tool-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 14px;
}

.home-tool-group {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-top: 3px solid #08715f;
  border-radius: 6px;
  background: #fff;
}

.home-tool-group h3 {
  margin: 0 0 10px;
  color: var(--heading);
  font-size: 15px;
}

.city-directory-note {
  margin: -4px 0 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.home-tool-group ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-tool-group ul.city-link-list {
  display: block;
  line-height: 2;
}

.city-link-list li {
  display: inline;
}

.city-link-list li + li::before {
  content: ".";
  margin: 0 7px;
  color: var(--muted);
}

.city-link-list a {
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.city-link-list a:hover {
  color: #075849;
  text-decoration: underline;
}

.home-tool-group li[hidden],
.home-tool-group[hidden] { display: none; }

.home-course-group {
  padding: 0;
  overflow: hidden;
}

.home-course-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.home-course-group-heading h3 {
  margin: 0;
  color: var(--heading);
  font-size: 15px;
  font-weight: 800;
}

.home-course-group-heading span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.home-course-group ol {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 10px 12px 12px;
  list-style: none;
}

.home-course-group ol.is-scrollable {
  max-height: 420px;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.home-course-group .home-tool-link::after {
  content: "→";
  margin-left: auto;
  color: #08715f;
}

.home-tool-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  padding: 8px 9px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
}

a.home-tool-link:hover { border-color: var(--line); color: #075849; background: #f2f8f6; }
.home-tool-link.is-unavailable { color: #818b96; cursor: default; font-weight: 400; }
.home-tool-link.is-unavailable span:last-child { font-size: 10px; white-space: nowrap; }

.homepage-ad-wrap { padding: 0 clamp(16px, 3vw, 36px) 24px; }
.homepage-ad-wrap .ad-slot { min-height: 100px; }

.company-page {
  width: min(100%, 1120px);
  min-width: 0;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 64px) clamp(18px, 4vw, 48px) clamp(40px, 7vw, 84px);
}

.company-page-header {
  max-width: 820px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.company-eyebrow {
  margin: 0 0 10px;
  color: #08715f;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.company-page-header h1 {
  margin: 0 0 14px;
  color: var(--heading);
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.12;
}

.company-page-header > p:last-child {
  max-width: 68ch;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.company-copy {
  max-width: 760px;
  padding-top: 14px;
  color: #354550;
  font-size: 15px;
  line-height: 1.8;
}

.company-copy h2 {
  margin: 28px 0 9px;
  color: var(--heading);
  font-size: 21px;
  line-height: 1.3;
}

.company-copy p { margin: 0 0 14px; }
.company-copy ul { display: grid; gap: 7px; padding-left: 22px; }
.company-copy a { color: #075849; font-weight: 700; }

.contact-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0 18px;
}

.contact-detail {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.contact-detail h2 { margin: 0 0 12px; color: var(--muted); font-size: 12px; text-transform: uppercase; }
.contact-detail a,
.contact-detail > p:first-of-type { display: inline-block; margin: 0; color: var(--heading); font-size: 16px; font-weight: 750; overflow-wrap: anywhere; }
.contact-detail p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.contact-detail .contact-note { margin: 12px 0 0; font-size: 11px; }
.contact-guidance { padding-top: 0; }

.app-detail-card {
  max-width: 760px;
  margin-top: 28px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}
.app-detail-heading { display: flex; align-items: center; gap: 18px; }
.app-detail-heading img { width: 76px; height: 76px; border-radius: 16px; object-fit: cover; }
.app-detail-heading h2 { margin: 0; color: var(--heading); font-size: 24px; }
.app-detail-heading p { margin: 4px 0 0; color: var(--muted); }
.app-detail-card > p { color: var(--text); line-height: 1.7; }
.app-detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.app-detail-actions .site-app-download { min-height: 44px; padding: 11px 16px; font-size: 13px !important; }
.app-detail-actions a:not(.site-app-download) { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 7px; color: var(--blue); font-weight: 700; }

.online-tool-page {
  min-width: 0;
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.online-tool-page-header {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.online-tool-category {
  margin: 0 0 8px;
  color: #08715f;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.online-tool-page-header h1 {
  margin: 0 0 12px;
  color: var(--heading);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.16;
}

.online-tool-page-header > p:last-child {
  max-width: 78ch;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.online-tool-interface {
  display: grid;
  gap: 14px;
  min-width: 0;
  margin: 22px 0 32px;
  padding: clamp(14px, 2vw, 22px);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fafb;
}

.online-tool-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}

.online-tool-controls > label,
.online-tool-dimensions > label {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
  color: var(--heading);
  font-size: 13px;
  font-weight: 700;
}

.online-tool-controls textarea,
.online-tool-controls input:not([type="checkbox"]):not([type="range"]):not([type="file"]),
.online-tool-controls select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #cbd6df;
  border-radius: 5px;
  color: var(--text);
  background: #fff;
  font: 14px/1.5 var(--font);
}

.online-tool-controls textarea {
  min-height: 260px;
  resize: vertical;
  font-family: Consolas, "SFMono-Regular", monospace;
  tab-size: 2;
}

.online-tool-controls input[type="file"] {
  max-width: 100%;
  min-height: 42px;
  padding: 8px;
  border: 1px solid #cbd6df;
  border-radius: 5px;
  background: #fff;
}

.online-tool-controls input:focus,
.online-tool-controls textarea:focus,
.online-tool-controls select:focus {
  outline: 2px solid #16816e;
  outline-offset: 1px;
}

.online-tool-dimensions,
.online-tool-checks {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
}

.online-tool-dimensions > label { flex: 1 1 120px; }
.online-tool-checks { grid-column: 1 / -1; align-items: center; }
.online-tool-checks label { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; color: var(--text); font-size: 13px; }

.online-tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.online-tool-actions button {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--button-primary-bg);
  border-radius: 5px;
  color: #fff;
  background: var(--button-primary-bg);
  font: 700 13px/1.2 var(--font);
  cursor: pointer;
}

.online-tool-actions button:hover { background: var(--button-primary-hover-bg); }
.online-tool-actions .online-tool-clear,
.online-tool-actions .online-tool-download { border-color: #bdcbd3; color: var(--text); background: #fff; }
.online-tool-actions .online-tool-clear:hover,
.online-tool-actions .online-tool-download:hover { background: #edf2f4; }

.online-tool-status {
  min-height: 20px;
  margin: 0;
  color: var(--brand-accent);
  font-size: 13px;
  font-weight: 700;
}

.online-tool-status.is-error { color: #a22d34; }

.online-tool-result {
  min-width: 0;
  min-height: 100px;
  max-height: 520px;
  margin: 0;
  padding: 14px;
  overflow: auto;
  border: 1px solid #d4dfe5;
  border-radius: 5px;
  color: #172f3a;
  background: #fff;
  font: 13px/1.55 Consolas, "SFMono-Regular", monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.online-tool-image-result { display: grid; justify-items: start; gap: 12px; min-width: 0; }
.online-tool-preview-image { display: block; max-width: min(100%, 420px); max-height: 420px; object-fit: contain; border: 1px solid var(--line); background: #fff; }
.online-tool-image-download { color: #075849; font-size: 13px; font-weight: 800; }

.passport-authority-note { grid-column: 1 / -1; margin: 0; color: #725516; font-size: 12px; line-height: 1.55; }
.passport-step-heading { grid-column: 1 / -1; margin: 8px 0 -5px; padding-bottom: 6px; border-bottom: 1px solid var(--line); color: var(--heading); font-size: 13px; font-weight: 800; }
.passport-step-note { grid-column: 1 / -1; margin: -4px 0 0; color: var(--muted); font-size: 11px; }
.passport-background-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; min-width: 0; grid-column: 1 / -1; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 5px; }
.passport-background-options legend { padding: 0 5px; color: var(--heading); font-size: 12px; font-weight: 800; }
.passport-background-options > label:first-of-type { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 12px; }
.passport-background-options small { grid-column: 1 / -1; color: var(--muted); font-size: 10px; line-height: 1.5; }
.passport-background-options [data-custom-color-wrap][hidden] { display: none; }
.passport-authority-note,.passport-step-note { grid-column: 1 / -1; }
.passport-sheet-controls { display: grid; gap: 10px; grid-column: 1 / -1; min-width: 0; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 5px; }
.passport-sheet-controls legend { padding: 0 5px; color: var(--heading); font-size: 12px; font-weight: 800; }
.passport-sheet-controls > p { margin: 0; color: var(--muted); font-size: 11px; }
.passport-sheet-controls:disabled { opacity: .55; }
.passport-export-group { display: grid; gap: 8px; grid-column: 1 / -1; padding: 11px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.passport-export-group h3 { margin: 0; color: var(--heading); font-size: 12px; }
.passport-preview-panel { width: 100%; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.passport-preview-panel h2 { margin: 0 0 10px; color: var(--heading); font-size: 13px; }
.passport-preview-panel canvas { display: block; max-width: 100%; max-height: 560px; margin: 0 auto; object-fit: contain; border: 1px solid #d9e0e4; background: #fff; }
.passport-preview-panel [data-passport-sheet-preview] { width: min(100%, 420px); height: auto; }
.passport-preview-panel [data-passport-source-preview] { width: auto; max-width: 100%; max-height: 65vh; height: auto; cursor: crosshair; touch-action: none; }
.passport-photo-output[hidden],.passport-sheet-output[hidden] { display: none; }

.online-tool-guide {
  max-width: 78ch;
  color: #354550;
  font-size: 15px;
  line-height: 1.8;
}

.online-tool-guide h2 {
  margin: 30px 0 10px;
  color: var(--heading);
  font-size: 21px;
  line-height: 1.3;
}

.online-tool-guide p { margin: 0 0 14px; }
.online-tool-guide ol { display: grid; gap: 8px; padding-left: 22px; }
.online-tool-faq { padding: 13px 0; border-top: 1px solid var(--line); }
.online-tool-faq summary { color: var(--heading); font-weight: 750; cursor: pointer; }
.online-tool-faq p { margin: 10px 0 0; }

.maker-page { width: min(100%, 1440px); margin: 0 auto; padding: clamp(16px, 2.5vw, 32px); }
.maker-page-header { max-width: 900px; margin: 0 auto 22px; }
.maker-page-header h1 { margin: 0 0 10px; color: var(--heading); font-size: clamp(26px, 3vw, 38px); }
.maker-page-header p { color: var(--muted); line-height: 1.7; }
.maker-workspace { display: grid; grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr); align-items: start; gap: 20px; }
.maker-controls { display: grid; gap: 12px; min-width: 0; }
.maker-fieldset { min-width: 0; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.maker-fieldset legend { padding: 0 6px; color: var(--heading); font-size: 13px; font-weight: 800; }
.maker-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.document-field { display: grid; align-content: start; gap: 5px; min-width: 0; color: var(--text); font-size: 12px; font-weight: 700; }
.document-field-wide { grid-column: 1 / -1; }
.document-field input,.document-field textarea,.document-field select { width: 100%; min-width: 0; min-height: 38px; padding: 8px 9px; border: 1px solid #cbd6df; border-radius: 4px; color: var(--text); background: #fff; font: 13px/1.45 var(--font); }
.document-field textarea { min-height: 68px; resize: vertical; }
.document-field input[type="file"] { padding: 6px; }
.maker-design-control { display: grid; gap: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--heading); font-size: 12px; font-weight: 750; }
.maker-design-control select { min-height: 38px; padding: 7px 9px; border: 1px solid #cbd6df; border-radius: 4px; background: #fff; color: var(--text); font: 13px var(--font); }
.maker-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.maker-actions button { min-height: 40px; padding: 8px 12px; border: 1px solid var(--button-primary-bg); border-radius: 5px; color: var(--button-primary-text); background: var(--button-primary-bg); font: 700 12px var(--font); cursor: pointer; }
.maker-actions [data-maker-clear] { color: var(--text); background: #fff; border-color: #bdcbd3; }
.maker-status { min-height: 20px; margin: 0; color: var(--muted); font-size: 12px; }
.maker-preview-wrap { min-width: 0; position: sticky; top: 12px; }
.maker-preview { min-width: 0; max-height: calc(100vh - 24px); padding: 12px; overflow: auto; border: 1px solid var(--line); border-radius: 6px; background: #e9eef0; }
.maker-preview[hidden] { display: none; }
.generated-document { width: 100%; max-width: 790px; min-height: 400px; margin: 0 auto; padding: clamp(20px, 4vw, 42px); color: #25343c; background: #fff; box-shadow: 0 2px 12px rgba(20,40,50,.12); font: 13px/1.55 Arial, sans-serif; }
.generated-document h1 { margin: 22px 0 15px; color: var(--doc-accent); font-size: 24px; }
.generated-document h2 { margin: 0; color: var(--doc-accent); font-size: 17px; }
.generated-document h3 { margin: 21px 0 8px; padding-bottom: 5px; border-bottom: 1px solid var(--doc-border); color: var(--doc-accent); font-size: 13px; text-transform: uppercase; }
.document-header,.document-resume-header { display: flex; align-items: center; gap: 16px; padding-bottom: 15px; border-bottom: 3px solid var(--doc-accent); }
.document-header > div { min-width: 0; }
.document-logo { max-width: 120px; max-height: 80px; object-fit: contain; }
.document-meta,.document-details { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 13px 0; }
.document-detail { min-width: 130px; margin: 5px 0; overflow-wrap: anywhere; }
.document-detail strong { display: block; margin-bottom: 2px; color: #65737c; font-size: 9px; text-transform: uppercase; }
.document-detail span { color: #263841; }
.document-pay-tables { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.document-pay-tables table { width: 100%; border-collapse: collapse; }
.document-pay-tables td,.document-pay-tables th { padding: 7px 6px; border-bottom: 1px solid var(--doc-border); text-align: left; }
.document-pay-tables td:last-child { text-align: right; white-space: nowrap; }
.document-pay-tables .document-total { background: var(--doc-soft); font-weight: 800; }
.document-pay-tables .document-total td { text-align: right; }
.document-net-pay { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 18px 0; padding: 14px; color: var(--doc-accent); background: var(--doc-soft); font-size: 16px; font-weight: 800; }
.document-signoff { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-top: 34px; }
.document-signature,.document-stamp { display: block; max-width: 150px; max-height: 75px; object-fit: contain; }
.document-signline { width: 180px; max-width: 100%; margin: 12px 0 8px; border-top: 1px solid #63717a; }
.document-letter-body { min-height: 180px; margin: 20px 0; line-height: 1.8; }
.document-letter-date { margin-top: 14px; text-align: right; }
.document-resume-header { align-items: flex-start; }
.document-resume-header h1 { margin-top: 0; }
.document-resume-photo { width: 88px; height: 100px; object-fit: cover; }
.document-contact-line { color: #63717a; font-size: 11px; overflow-wrap: anywhere; }
.resume-section { margin-top: 17px; }
.resume-section h2 { margin-bottom: 7px; padding-bottom: 4px; border-bottom: 1px solid var(--doc-border); font-size: 13px; text-transform: uppercase; }
.resume-section p { margin: 0; white-space: normal; }
.generated-document footer { margin-top: 24px; color: #78858c; font-size: 9px; }
.document-empty-note { color: #78858c; font-style: italic; }

@media (max-width: 1100px) {
  .site-page-layout { grid-template-columns: minmax(180px, 210px) minmax(0, 1fr); }
  .site-right-ads { display: none; }
}

@media (max-width: 760px), (max-height: 500px) and (orientation: landscape) and (max-width: 900px) {
  .site-header { min-height: 66px; align-items: center; gap: 8px; padding: 10px 14px; }
  .site-logo { gap: 8px; }
  .site-logo-mark { width: 36px; height: 36px; flex-basis: 36px; }
  .brand-logo { width: 36px; height: 36px; flex-basis: 36px; }
  .site-logo-copy strong { font-size: 15px; }
  .site-logo-copy span { display: none; }
  .site-nav { flex: 0 0 auto; gap: 7px; }
  .site-nav-links { display: none; }
  .site-search input { width: min(30vw, 150px); min-height: 40px; padding: 7px 9px; font-size: 12px; }
  .site-tools-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 6px;
    color: #fff;
    background: transparent;
    font: 700 12px/1.2 var(--font);
    white-space: nowrap;
  }
  .site-page-layout { display: block; padding: 12px; }
  .site-sidebar {
    display: none;
    position: fixed;
    z-index: 42;
    inset: 66px auto 0 0;
    width: min(88vw, 340px);
    max-height: none;
    padding: 14px;
    overflow: auto;
    border-radius: 0 8px 8px 0;
    background: #f5f8fa;
    box-shadow: 12px 0 34px rgba(0,0,0,.18);
  }
  .site-page-layout.is-menu-open .site-sidebar { display: block; }
  .site-sidebar-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 6px;
    color: var(--text);
    background: transparent;
    font-size: 24px;
  }
  .site-drawer-backdrop:not([hidden]) {
    display: block;
    position: fixed;
    z-index: 41;
    inset: 66px 0 0;
    width: 100%;
    border: 0;
    background: rgba(12, 25, 35, .42);
  }
  .top-ad-container { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ad-slot,
  .site-right-ads .ad-slot {
    min-height: 92px;
    max-height: 120px;
    aspect-ratio: auto;
  }
  .site-center-column { gap: 12px; }
  .site-after-tool-ads { gap: 12px; }
  .site-footer { padding: 26px 16px; }
  .site-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
  .home-tools-heading { align-items: start; flex-direction: column; gap: 8px; }
  .home-tool-groups { grid-template-columns: minmax(0, 1fr); }
  .homepage-ad-wrap { padding: 0 12px 16px; }
  .company-page { padding: 28px 16px 48px; }
  .contact-details { grid-template-columns: minmax(0, 1fr); }
  .online-tool-page { padding: 16px; }
  .online-tool-controls { grid-template-columns: minmax(0, 1fr); }
  .online-tool-controls textarea { min-height: 200px; }
  .online-tool-checks { grid-column: auto; }
  .maker-page { padding: 14px; }
  .maker-workspace { grid-template-columns: minmax(0, 1fr); }
  .maker-preview-wrap { position: static; }
  .maker-preview { max-height: none; padding: 7px; }
  .maker-field-grid { grid-template-columns: minmax(0, 1fr); }
  .document-field-wide { grid-column: auto; }
  .document-pay-tables { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 420px) {
  .site-logo-copy strong { font-size: 13px; }
  .site-search input { width: 88px; }
  .site-tools-toggle { padding: 8px; }
  .site-footer-grid { grid-template-columns: minmax(0, 1fr); }
}

.site-service-layer {
  background: var(--blue-soft);
  color: var(--blue-dark);
  border-bottom: 1px solid var(--line);
  padding: 16px 28px;
}

.site-service-layer .service-layer-title {
  font-weight: 900;
  font-size: 16px;
  color: var(--blue-dark);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.site-service-layer .service-layer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  align-items: stretch;
}

.site-service-layer .service-layer-card {
  background: white;
  color: var(--blue-dark);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 12px;
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  flex-direction: column;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.site-service-layer .service-layer-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--blue);
}

.site-service-layer .service-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue-dark);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
}

.site-service-layer img.service-card-icon {
  display: block;
  background: transparent;
  object-fit: cover;
}

.site-service-layer .service-card-text {
  font-size: 13px;
  font-weight: 800;
  color: var(--blue-dark);
  text-align: center;
}

.google-ad-strip {
  background: #fffaf0;
  color: var(--blue-dark);
  border: 1px dashed var(--orange);
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  font-size: 14px;
}

.google-ad-strip .google-ad-label {
  color: var(--blue);
}

.google-ad-strip .google-ad-size {
  color: var(--orange);
}

@media (max-width: 780px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
  }

  .site-footer-grid {
    grid-template-columns: 1fr;
  }

  .site-service-layer {
    align-items: flex-start;
    flex-direction: column;
  }
  .query-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  padding: 12px 16px;

  background: var(--blue-soft);
  border-bottom: 1px solid var(--line);
}

.query-header-h2-with-right-button h2 {
  margin: 0;

  flex: 1;

  color: var(--blue-dark);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
}

.query-header-h2-with-right-button button,
.query-header-h2-with-right-button .copy-btn,
.query-header-h2-with-right-button .primary {
  flex: 0 0 auto;

  width: auto;
  min-width: unset;

  white-space: nowrap;

  padding: 8px 14px;

  border: none;
  border-radius: 8px;

  background: var(--blue);
  color: white;

  font-weight: 700;
  cursor: pointer;
}
}

.site-page-layout > .ad-slot[data-ad-placement="top-primary"] {
  grid-column: 1 / -1;
  min-height: 100px;
  border-radius: 12px;
}

.site-standard-layout {
  align-items: start;
}

.site-standard-content > main {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
}

.site-related-resources {
  margin: clamp(24px, 4vw, 42px) 0 8px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(135deg, #f3f8f6, #fff);
}

.site-related-resources h2 {
  margin: 0 0 16px;
  color: var(--heading);
  font-size: clamp(20px, 2.4vw, 26px);
}

.site-related-resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 12px;
}

.site-related-resource {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.site-related-resource a {
  color: var(--blue-dark);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.site-related-resource a:hover {
  color: #08715f;
  text-decoration: underline;
}

.site-related-resource p {
  flex: 1;
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.site-related-resource > span {
  color: #08715f;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .site-page-layout > .ad-slot[data-ad-placement="top-primary"] {
    margin-bottom: 4px;
  }

  .site-standard-content > main {
    padding-inline: 0;
  }

  .site-related-resources {
    margin-inline: 0;
  }

  .site-header > .site-tools-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 6px;
    color: #fff;
    background: transparent;
    font: 700 12px/1.2 var(--font);
    white-space: nowrap;
  }
}
