:root {
  --navy: #142e4b;
  --gold: #b79245;
  --light-gold: #f5eedf;
  --ink: #24374c;
  --muted: #687688;
  --line: #dce2e9;
  --bg: #fafbfd;
  --white: #fff;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    15px/1.6 Arial,
    Helvetica,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
summary {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.test-banner {
  text-align: center;
  background: var(--light-gold);
  color: #775b25;
  font-size: 11px;
  padding: 8px 15px;
  letter-spacing: 0.5px;
}
header {
  max-width: 1320px;
  margin: auto;
  padding: 22px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  font-size: 22px;
  letter-spacing: 3px;
  font-weight: bold;
  line-height: 1.1;
  gap: 10px;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 2px;
  margin-top: 7px;
}
.brand-logo {
  width:76px;
  height:76px;
  flex-shrink:0;
  object-fit:contain;
  border-radius:4px;
}
.anchor {
  font-size: 36px;
  color: var(--gold);
  letter-spacing: 0;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 12px;
}
nav a:hover,
.text-link:hover {
  color: var(--gold);
}
.primary,
.outline {
  border: 1px solid var(--navy);
  border-radius: 5px;
  padding: 13px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  font-size: 13px;
  font-weight: bold;
  line-height: 1.6;
}
.primary {
  background: var(--navy);
  color: white;
}
.primary:hover {
  background: #26496c;
}
.outline {
  background: transparent;
  color: var(--navy);
}
.outline:hover {
  background: #eaf0f6;
}
.full {
  width: 100%;
}
.hero {
  max-width: 1240px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
  padding: 65px 40px 60px;
}
.eyebrow {
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 2px;
  color: #94702c;
}
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}
h1 {
  font-size: 58px;
  line-height: 1.1;
  letter-spacing: -2.5px;
  font-weight: 500;
  margin: 24px 0;
}
h1 em {
  font-style: normal;
  color: var(--gold);
}
h2 {
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -1px;
  font-weight: 500;
  margin: 15px 0 20px;
}
h3 {
  font-weight: 500;
}
p {
  color: var(--muted);
  line-height: 1.8;
}
.hero p {
  max-width: 440px;
}
.actions {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  margin: 25px 0;
}
.text-link {
  font-size: 12px;
}
.checks {
  display: flex;
  gap: 20px;
  font-size: 11px;
  color: var(--muted);
}
.hero-art {
  position: relative;
  min-height: 490px;
  background: radial-gradient(ellipse, #e5eaf0 0, transparent 70%);
  display: grid;
  place-items: center;
}
.document-example {
  width: 320px;
  height: 430px;
  padding: 32px;
  background: white;
  border-top: 9px solid var(--navy);
  box-shadow: 0 20px 55px #142e4b22;
  transform: rotate(5deg);
  position: relative;
}
.hero-art::before {
  content: "";
  position: absolute;
  width: 310px;
  height: 420px;
  background: #dfd8c8;
  transform: rotate(-6deg);
}
.doc-kicker {
  font-size: 6px;
  letter-spacing: 2px;
  color: var(--gold);
}
.document-example h2 {
  font-size: 27px;
  line-height: 1.15;
  margin: 20px 0 8px;
  font-weight: bold;
}
.document-example p {
  font-size: 7px;
  line-height: 1.8;
}
.document-example h4 {
  font-size: 8px;
  letter-spacing: 1.5px;
  margin: 23px 0 8px;
}
.doc-rule {
  height: 2px;
  background: var(--gold);
  margin-top: 22px;
}
.fake-lines {
  height: 47px;
  background: repeating-linear-gradient(
    transparent 0,
    transparent 7px,
    #e4e8ed 7px,
    #e4e8ed 8px
  );
}
.fake-lines.short {
  height: 26px;
}
.doc-foot {
  font-size: 5px;
  letter-spacing: 1px;
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.art-note {
  position: absolute;
  bottom: 7px;
  left: 0;
  padding: 15px 24px;
  background: var(--navy);
  color: #f0dfb8;
  font-size: 13px;
  transform: rotate(-3deg);
}
.art-seal {
  position: absolute;
  right: 0;
  top: 0;
  border: 1px solid #b99c63;
  border-radius: 50%;
  width: 90px;
  height: 90px;
  display: grid;
  align-content: center;
  text-align: center;
  font-size: 8px;
  letter-spacing: 1px;
  color: #8a6b31;
  transform: rotate(14deg);
}
.process-strip {
  display: flex;
  justify-content: center;
  gap: 40px;
  border-block: 1px solid var(--line);
  padding: 22px 15px;
  font-size: 10px;
  letter-spacing: 1.5px;
}
.process-strip i {
  color: var(--gold);
  font-style: normal;
}
.home-categories {
  max-width: 1240px;
  padding: 65px 40px;
  margin: auto;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.category-grid > a {
  border-top: 2px solid var(--gold);
  padding: 26px;
  background: white;
  box-shadow: 0 5px 20px #142e4b05;
  transition: transform 0.2s;
}
.category-grid > a:hover {
  transform: translateY(-4px);
}
.category-grid b {
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--gold);
}
.category-grid h3 {
  font-size: 25px;
  line-height: 1.25;
  margin: 25px 0 12px;
}
.category-grid p {
  font-size: 12px;
}
.category-grid span {
  display: block;
  font-size: 12px;
  margin-top: 30px;
}
.how {
  background: var(--navy);
  color: white;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 55px max(40px, calc((100% - 1160px) / 2));
  gap: 70px;
}
.how p {
  color: #bdcad8;
  font-size: 13px;
}
.how .eyebrow {
  color: #d6bb80;
}
.how ol {
  padding-left: 25px;
  margin: 0;
}
.how li {
  padding: 13px 0 13px 10px;
  border-bottom: 1px solid #ffffff22;
}
.how li::marker {
  color: #d6bb80;
}
.how li p {
  margin: 5px 0;
}
.page:not(#home) {
  max-width: 1240px;
  margin: auto;
  padding: 40px;
  min-height: 65vh;
}
.page-heading {
  padding: 10px 0 20px;
}
.page-heading h1 {
  font-size: 42px;
}
.page-heading p {
  font-size: 13px;
}
.catalog-controls {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 10px 0 35px;
}
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tabs button {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 10px 16px;
  background: white;
  color: var(--muted);
  font-size: 12px;
}
.tabs .active {
  color: white;
  background: var(--navy);
  border-color: var(--navy);
}
label {
  display: block;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 16px;
}
label small {
  font-weight: normal;
  color: var(--muted);
}
input,
textarea,
select {
  display: block;
  width: 100%;
  padding: 11px 12px;
  background: white;
  border: 1px solid #cbd4df;
  border-radius: 5px;
  color: var(--ink);
  font-size: 13px;
  margin-top: 7px;
}
textarea {
  resize: vertical;
  min-height: 65px;
}
input[type="color"] {
  height: 44px;
  padding: 4px;
}
.search-label {
  margin: 0;
  font-size: 10px;
  width: 260px;
}
.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px 22px;
}
.product-card {
  min-width: 0;
}
.product-cover {
  height: 270px;
  background: #e7ecf2;
  border-radius: 7px;
  padding: 30px 28px 0;
  position: relative;
  overflow: hidden;
}
.product-cover.letter {
  background: #eee9e0;
}
.product-cover.download {
  background: var(--navy);
  color: #dbc18a;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.product-cover.download .book-icon {
  font-size: 40px;
}
.product-cover.download h3 {
  font-size: 25px;
  line-height: 1.3;
}
.tag {
  position: absolute;
  left: 12px;
  top: 10px;
  font-size: 8px;
  padding: 4px 8px;
  background: white;
  color: #7e652e;
  border-radius: 3px;
}
.tiny-paper {
  height: 280px;
  background: white;
  padding: 21px 17px;
  box-shadow: 0 3px 14px #142e4b14;
  border-top: 5px solid #284868;
}
.tiny-paper h3 {
  font-size: 15px;
  line-height: 1.2;
  font-weight: bold;
  margin-bottom: 9px;
}
.tiny-paper p {
  font-size: 5px;
  letter-spacing: 1px;
}
.tiny-paper h4 {
  font-size: 6px;
  letter-spacing: 1px;
  margin: 20px 0 5px;
}
.tiny-paper .fake-lines {
  height: 35px;
  background-size: auto;
}
.classic .tiny-paper {
  border-top: 0;
  font-family: Georgia, serif;
}
.classic .tiny-paper h3 {
  text-align: center;
}
.executive .tiny-paper {
  border-top: 14px solid #142e4b;
}
.ats .tiny-paper {
  border: 0;
}
.product-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
  margin-top: 15px;
}
.product-line h3 {
  font-size: 14px;
  font-weight: bold;
  margin: 0;
}
.product-line span {
  font-size: 13px;
  white-space: nowrap;
}
.product-card > p {
  font-size: 11px;
  min-height: 40px;
  margin: 7px 0 15px;
}
.product-card button {
  width: 100%;
}
.fine {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
.products + .fine {
  margin-top: 30px;
}
.empty {
  border: 1px dashed #bac6d3;
  border-radius: 7px;
  padding: 35px;
  text-align: center;
  grid-column: 1/-1;
}
.empty p {
  font-size: 13px;
}
.section-title {
  font-size: 23px;
  margin: 25px 0 20px;
}
.list-item {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px 22px;
  background: white;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 12px;
}
.list-item h3 {
  font-size: 15px;
  font-weight: bold;
  margin: 0 0 4px;
}
.list-item p {
  font-size: 11px;
  margin: 0;
}
.list-item .item-main {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.list-item .actions {
  margin: 0;
  gap: 10px;
}
.list-item button,
.list-item a.primary {
  font-size: 11px;
  padding: 8px 13px;
  gap: 10px;
}
.pill {
  display: inline-block;
  border: 1px solid #d8c28f;
  background: #f8f2e6;
  color: #7b612f;
  padding: 2px 7px;
  border-radius: 12px;
  font-size: 9px;
  margin: 0 6px;
}
.danger {
  color: #9b3535;
  background: transparent;
  border: 1px solid #d8bebe;
  border-radius: 4px;
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.admin-stats article {
  border: 1px solid var(--line);
  background: white;
  padding: 23px;
}
.admin-stats small {
  font-size: 11px;
  color: var(--muted);
}
.admin-stats b {
  display: block;
  font-size: 30px;
  font-weight: 500;
  margin-top: 8px;
}
.admin-panel {
  margin: 28px 0;
  border: 1px solid var(--line);
  padding: 22px;
  background: white;
  border-radius: 6px;
}
.admin-panel h2 {
  font-size: 23px;
}
.table-wrap {
  overflow: auto;
  max-height: 450px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  white-space: nowrap;
}
th,
td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 11px 14px 11px 0;
}
th {
  font-size: 10px;
  color: var(--muted);
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.content-form {
  max-width: 700px;
}
footer {
  max-width: 1320px;
  margin: auto;
  padding: 32px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
footer .brand {
  font-size: 16px;
  color: var(--navy);
}
footer .brand small {
  font-size: 6px;
}
footer .anchor {
  font-size: 27px;
}
footer > span:nth-child(2) {
  margin-right: auto;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  width: min(500px, 94vw);
  max-height: 94dvh;
  overscroll-behavior: contain;
}
dialog::backdrop {
  background: #10263fd0;
  backdrop-filter: blur(3px);
}
dialog.wide {
  width: min(1160px, 96vw);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 20px 25px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 5;
}
.dialog-head h2 {
  font-size: 23px;
  margin: 7px 0 0;
}
.dialog-head .eyebrow {
  font-size: 8px;
}
.icon {
  border: 0;
  background: transparent;
  color: var(--navy);
  padding: 0 6px;
  font-size: 28px;
}
dialog form,
.dialog-body {
  padding: 25px;
}
.error {
  color: #a02e2e;
  font-size: 12px;
}
.link-button {
  border: 0;
  background: transparent;
  color: var(--navy);
  font-size: 12px;
  margin: 20px auto 10px;
  display: block;
  text-decoration: underline;
}
.editor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.editor-grid form {
  padding: 25px;
}
.preview-panel {
  background: #e6ebf1;
  padding: 25px;
}
.preview-label {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  letter-spacing: 1px;
  margin: 0 0 15px;
}
.preview-document {
  background: white;
  min-height: 650px;
  padding: 40px 35px;
  position: relative;
  box-shadow: 0 6px 25px #142e4b15;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.preview-document::after {
  content: "ANCHOR · PREVIEW";
  position: absolute;
  left: 0;
  right: 0;
  top: 300px;
  text-align: center;
  transform: rotate(-35deg);
  font-size: 32px;
  font-weight: bold;
  color: #142e4b20;
  pointer-events: none;
}
.preview-document h2 {
  font-size: 27px;
  letter-spacing: -0.4px;
  margin: 0 0 8px;
  color: var(--document-accent, var(--navy));
}
.preview-document h4 {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 25px 0 9px;
  color: var(--document-accent, var(--navy));
}
.preview-document p {
  font-size: 11px;
  white-space: pre-wrap;
  color: #354454;
  line-height: 1.7;
  margin: 0 0 12px;
}
.preview-document.modern {
  border-top: 5px solid var(--document-accent, var(--navy));
}
.preview-document.classic {
  font-family: Georgia, serif;
}
.preview-document.classic h2 {
  text-align: center;
}
.preview-document.executive {
  border-top: 15px solid var(--document-accent, var(--navy));
}
.preview-document.ats h4 {
  border-bottom: 1px solid #a6b1be;
  padding-bottom: 6px;
}
.sticky-actions {
  position: sticky;
  bottom: 0;
  background: var(--bg);
  padding: 15px 0 4px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.sticky-actions button {
  font-size: 11px;
  padding: 10px 15px;
}
.editor-grid summary {
  font-size: 12px;
  cursor: pointer;
}
.total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-block: 1px solid var(--line);
  padding: 18px 0;
  margin-top: 20px;
}
.total b {
  font-size: 27px;
  font-weight: 500;
}
.notice {
  background: var(--light-gold);
  padding: 18px;
  border-radius: 5px;
  margin: 20px 0;
  font-size: 12px;
  color: #765b25;
}
.notice p {
  color: #765b25;
  font-size: 12px;
  margin: 5px 0 0;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}
.checkbox input {
  width: auto;
  margin: 0;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 92vw;
  width: max-content;
  background: var(--navy);
  color: white;
  border: 1px solid var(--gold);
  padding: 15px 23px;
  z-index: 50;
  font-size: 12px;
  border-radius: 5px;
  box-shadow: 0 4px 20px #0003;
}
.loading {
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 1000px) {
  header { flex-wrap:wrap; }
  nav { order:3; flex-basis:100%; }
  h1 {
    font-size: 47px;
  }
  .hero {
    gap: 25px;
    padding-inline: 30px;
  }
  .document-example {
    width: 280px;
    height: 420px;
    padding: 25px;
  }
  .art-seal {
    right: -10px;
  }
  .art-note {
    left: -10px;
    font-size: 11px;
  }
  .products {
    grid-template-columns: repeat(3, 1fr);
  }
  .category-grid {
    gap: 15px;
  }
  .category-grid > a {
    padding: 20px;
  }
  .category-grid h3 {
    font-size: 22px;
  }
}
@media (max-width: 700px) {
  header {
    padding: 17px 20px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .brand {
    font-size: 18px;
  }
  .brand small {
    font-size: 6px;
  }
  .brand-logo {
    width:60px;
    height:60px;
  }
  .anchor {
    font-size: 30px;
  }
  header > .outline {
    font-size: 11px;
    padding: 9px 13px;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  nav {
    order: 3;
    flex-basis: 100%;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-top: 12px;
    font-size: 11px;
    gap: 8px;
  }
  .test-banner {
    font-size: 9px;
    padding: 7px 14px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 35px 22px 30px;
    gap: 30px;
  }
  h1 {
    font-size: 43px;
    letter-spacing: -1.9px;
  }
  .hero p {
    font-size: 13px;
    max-width: 100%;
  }
  .eyebrow {
    font-size: 8px;
  }
  .checks {
    font-size: 10px;
    gap: 16px;
  }
  .hero-art {
    min-height: 450px;
    width: 100%;
    max-width: 380px;
    justify-self: center;
  }
  .document-example {
    width: 272px;
    height: 400px;
  }
  .document-example p {
    font-size: 7px;
  }
  .document-example h2 {
    font-size: 24px;
  }
  .document-example h4 {
    margin-top: 21px;
  }
  .art-seal {
    right: 0;
    width: 75px;
    height: 75px;
    font-size: 7px;
  }
  .art-note {
    left: 0;
    bottom: 0;
  }
  .process-strip {
    gap: 12px;
    font-size: 8px;
    letter-spacing: 0.7px;
    padding: 19px 10px;
  }
  .home-categories {
    padding: 40px 22px;
  }
  h2 {
    font-size: 29px;
  }
  .category-grid {
    grid-template-columns: 1fr;
    gap: 17px;
    margin-top: 25px;
  }
  .category-grid > a {
    padding: 24px;
  }
  .category-grid h3 {
    margin: 18px 0 12px;
    font-size: 25px;
  }
  .category-grid span {
    margin-top: 18px;
  }
  .how {
    padding: 38px 22px;
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .how ol {
    font-size: 14px;
  }
  .page:not(#home) {
    padding: 30px 20px;
  }
  .page-heading h1 {
    font-size: 35px;
  }
  .catalog-controls {
    display: block;
    margin-bottom: 25px;
  }
  .tabs {
    margin-bottom: 20px;
    gap: 6px;
  }
  .tabs button {
    font-size: 10px;
    padding: 9px 12px;
  }
  .search-label {
    width: 100%;
  }
  .products {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px 12px;
  }
  .product-cover {
    height: 215px;
    padding: 25px 13px 0;
  }
  .tiny-paper {
    padding: 18px 11px;
  }
  .tiny-paper h3 {
    font-size: 12px;
  }
  .tiny-paper h4 {
    font-size: 5px;
  }
  .tiny-paper p {
    font-size: 4px;
  }
  .product-line {
    display: block;
  }
  .product-line h3 {
    font-size: 12px;
    line-height: 1.4;
  }
  .product-line span {
    display: block;
    font-size: 11px;
    margin-top: 4px;
  }
  .product-card > p {
    font-size: 10px;
    min-height: 50px;
  }
  .product-card button {
    font-size: 10px;
    padding: 9px;
  }
  .product-cover.download {
    padding: 20px 15px;
  }
  .product-cover.download h3 {
    font-size: 20px;
  }
  .list-item {
    flex-wrap: wrap;
    padding: 16px;
    gap: 12px;
  }
  .list-item .item-main {
    flex-basis: 100%;
  }
  .list-item .actions {
    width: 100%;
  }
  .list-item .actions > * {
    flex: 1;
    text-align: center;
  }
  .admin-stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .admin-stats article {
    padding: 17px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .admin-stats b {
    font-size: 25px;
    margin: 0;
  }
  .admin-panel {
    padding: 16px;
  }
  .admin-panel h2 {
    font-size: 21px;
  }
  .admin-panel .actions {
    gap: 10px;
  }
  .admin-panel .actions button {
    font-size: 11px;
  }
  .editor-grid {
    grid-template-columns: 1fr;
  }
  .editor-grid form {
    padding: 20px;
  }
  .dialog-head {
    padding: 18px;
  }
  .dialog-head h2 {
    font-size: 20px;
  }
  dialog form,
  .dialog-body {
    padding: 20px;
  }
  .preview-panel {
    padding: 18px;
  }
  .preview-document {
    padding: 30px 24px;
    min-height: 570px;
  }
  .preview-document::after {
    font-size: 26px;
  }
  .preview-document h2 {
    font-size: 24px;
  }
  .two {
    grid-template-columns: 1fr;
    gap: 0;
  }
  footer {
    padding: 27px 22px;
    flex-wrap: wrap;
    gap: 18px;
  }
  footer > span:nth-child(2) {
    margin: 0;
    font-size: 10px;
  }
  footer > a:not(.brand) {
    margin-right: auto;
  }
  .empty {
    padding: 25px 20px;
  }
  .actions .primary,
  .actions .outline {
    font-size: 11px;
    padding: 12px 15px;
  }
  .sticky-actions {
    padding-top: 12px;
  }
  .total b {
    font-size: 24px;
  }
}
.field-box {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.section-controls {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
  margin-bottom: 7px;
}
.section-controls button {
  font-size: 10px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 3px;
  padding: 4px 8px;
  color: var(--muted);
}
.section-add {
  border-block: 1px solid var(--line);
  padding: 15px 0;
  margin: 15px 0;
  display: flex;
  align-items: end;
  gap: 10px;
}
.section-add label {
  margin: 0;
  flex: 1;
}
.section-add button {
  font-size: 10px;
  padding: 10px;
}
.preview-document.paged {
  background: transparent;
  box-shadow: none;
  border: 0;
  padding: 0;
  min-height: 0;
  overflow: visible;
}
.preview-document.paged::after {
  display: none;
}
.preview-document.paged img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 4px 15px #142e4b20;
  margin-bottom: 18px;
}
.preview-document.paged.zoomed img {
  width: 595.28px;
  max-width: none;
}
.preview-panel {
  overflow-x: auto;
}
.preview-label .link-button {
  margin: 0;
  font-size: 10px;
  padding: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 700px) {
  .section-controls button {
    padding: 7px 9px;
  }
  .section-add {
    flex-wrap: wrap;
  }
  .preview-panel {
    min-width: 0;
  }
  .list-item .actions {
    flex-wrap: wrap;
  }
}

#jumpPreview {
  margin: 8px 0 0;
  padding: 0;
  font-size: 11px;
  text-align: left;
}
.preview-panel {
  scroll-margin-top: 120px;
}
.template-cover-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #eef1f4;
}
#wordUploadPanel {
  border-block: 1px solid var(--line);
  padding: 20px 0;
  margin: 20px 0;
}
.mapping-paragraphs {
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.mapping-source {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.mapping-source span {
  flex: 1;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.mapping-source button {
  font-size: 10px;
  padding: 5px 10px;
}
.mapping-row {
  padding: 15px;
  background: #edf1f5;
  border: 1px solid var(--line);
  border-radius: 5px;
  margin: 15px 0;
}
.mapping-row small {
  font-size: 10px;
  color: var(--muted);
}
.mapping-row button {
  padding: 7px 12px;
  font-size: 11px;
}
.uploaded-preview iframe,
#adminWordPreview {
  width: 100%;
  height: 720px;
  border: 1px solid var(--line);
  background: #e6ebf1;
}
.uploaded-preview:after {
  display: none;
}
.uploaded-preview.zoomed iframe {
  width: 850px;
  max-width: none;
}
.danger.full {
  margin-top: 15px;
  padding: 12px;
}
.product-cover:has(.template-cover-image) {
  padding: 0;
}
@media (max-width: 700px) {
  .uploaded-preview iframe,
  #adminWordPreview {
    height: 650px;
  }
  .mapping-source {
    gap: 8px;
  }
}

/* The complete Word page is scaled in its sandboxed frame; zoom exposes horizontal scrolling. */
.uploaded-preview {
  overflow: hidden !important;
}
.uploaded-preview.zoomed {
  overflow: auto !important;
}
.uploaded-preview iframe,
#adminWordPreview {
  display: block;
  max-width: none;
  transform-origin: top left;
}
.preview-panel,
#wordUploadPanel {
  min-width: 0;
}

/* Launch preparation and customer security */
#launchPreparation details { border-top:1px solid var(--line); padding:18px 0; }
#launchPreparation summary { cursor:pointer; font-weight:600; margin-bottom:12px; }
#launchPreparation .list-item { gap:15px; flex-wrap:wrap; }
#launchPreparation .list-item > div { flex:1; min-width:180px; }
#launchPreparation form { max-width:760px; }
.draft-policy { border-left:3px solid #aa812e; padding:12px; background:#f5eedb; }
.policy-copy { line-height:1.75; max-width:900px; }
.policy-copy section { margin-bottom:24px; }
.policy-copy p { white-space:pre-wrap; overflow-wrap:anywhere; }
.account-security { border-top:1px solid var(--line); }
.account-security .actions { gap:10px; flex-wrap:wrap; }
#privateRecoveryKey { font-family:monospace; font-size:18px; overflow-wrap:anywhere; }
.data-review-form { border-top:1px solid var(--line); padding:18px 0; }
#catalogueReviewForm .checkbox { align-items:flex-start; }
.support-contacts { display:flex; flex-wrap:wrap; gap:12px 24px; flex-basis:100%; overflow-wrap:anywhere; }
.support-location { flex-basis:100%; }
.whatsapp-button { position:fixed; right:20px; bottom:20px; z-index:20; display:inline-flex; align-items:center; gap:9px; padding:12px 17px; border-radius:28px; background:#126b42; color:white; font-size:13px; font-weight:600; box-shadow:0 3px 14px #10263f33; text-decoration:none; }
.whatsapp-button[hidden] { display:none; }
.whatsapp-button:hover { background:#0b5332; }
.whatsapp-button:focus-visible { outline:3px solid var(--gold); outline-offset:3px; }
.whatsapp-button svg { width:23px; height:23px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
footer { padding-bottom:100px; }
.cv-import-tools { padding:16px; margin-bottom:22px; border:1px solid var(--line); background:#eef3f8; }
.cv-import-tools h3 { font-size:17px; margin-top:0; }
.cv-import-tools .actions { flex-wrap:wrap; gap:10px; }
.import-fields { display:grid; grid-template-columns:1fr 1fr; gap:18px; margin:20px 0; }
.import-field { min-width:0; border:1px solid var(--line); padding:14px; }
.import-field textarea { width:100%; }
.source-copy { white-space:pre-wrap; overflow-wrap:anywhere; }
#cvImportDialog form, #cvWordingDialog form { padding:0; }
#cvImportReview { scroll-margin-top:110px; }
#cvImportWarnings { padding:15px 15px 15px 32px; background:#f5eedb; }
.wording-suggestion { margin-bottom:22px; padding-bottom:18px; border-bottom:1px solid var(--line); }
.wording-compare { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.wording-compare section { min-width:0; background:white; border:1px solid var(--line); padding:16px; }
.about-layout,.contact-layout { display:grid; grid-template-columns:1fr 1fr; gap:64px; padding:35px 40px 80px; }
.about-layout h2 { font-size:36px; }
.about-services { display:grid; gap:18px; }
.about-services article { border:1px solid var(--line); padding:22px; background:white; }
.about-services h3 { margin-top:0; }
.contact-layout { align-items:start; padding-top:65px; }
.contact-intro { padding:45px 20px; }
.contact-intro h1 { font-size:64px; margin:18px 0; }
.contact-intro > p { max-width:440px; }
#companyContactDetails { margin:35px 0; overflow-wrap:anywhere; }
.contact-card { border-radius:18px; background:#eef1f5; padding:32px; min-width:0; }
.contact-card h2 { font-size:34px; margin-top:0; }
.contact-card form { padding:0; }
body.contact-page #whatsAppButton { display:none; }
.job-return-banner { display:flex; align-items:center; justify-content:space-between; gap:20px; margin:20px 40px; padding:20px; background:#f5eedb; border:1px solid var(--line); }
.job-return-banner p { margin:6px 0 0; max-width:620px; font-size:14px; }
.job-return-banner .actions { flex-wrap:wrap; }
.job-return-panel { margin:0 28px 20px; padding:16px; border:1px solid var(--line); background:#f8f6f0; }
.job-return-panel p { margin-bottom:0; }
.job-return-choices { display:flex; flex-direction:column; gap:12px; }
[data-job-return] { white-space:normal; text-align:center; cursor:pointer; }
@media(max-width:700px) { .job-return-banner { margin:16px 20px; flex-direction:column; align-items:stretch; } .job-return-panel { margin:0 16px 16px; } }
.contact-pair { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.contact-trap { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
#contactInbox details { border-top:1px solid var(--line); padding:16px 0; }
#contactInbox summary { cursor:pointer; overflow-wrap:anywhere; }
.contact-review-form { max-width:760px; }
@media(max-width:700px) { .about-layout,.contact-layout { grid-template-columns:1fr; gap:25px; padding:25px 20px 55px; } .contact-intro { padding:10px 0; } .contact-intro h1 { font-size:48px; } .contact-card { padding:22px; } .contact-card h2 { font-size:28px; } .contact-pair { grid-template-columns:1fr; gap:0; } }
@media(max-width:700px) { .import-fields,.wording-compare { grid-template-columns:1fr; } }
@media(max-width:700px) { .whatsapp-button { right:14px; bottom:14px; padding:11px 15px; } footer { padding-bottom:90px; } }
/* Vacancy-specific CV service */
.job-start-grid,.job-editor-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;align-items:start}
.job-card{background:#fff;border:1px solid var(--line,#d4dce5);border-radius:14px;padding:26px;margin-bottom:22px;min-width:0;overflow-wrap:anywhere}
.job-explainer{padding:28px 24px;max-width:540px}.job-explainer li{padding:10px 0}.job-explainer h2{font-size:32px;line-height:1.2}
.job-toolbar{display:flex;gap:12px;flex-wrap:wrap;margin:24px 0}.job-heading{display:flex;justify-content:space-between;gap:20px;align-items:center}
.job-preview img{display:block;width:100%;height:auto;box-shadow:0 3px 14px #142e4b22;margin:0 0 20px}.job-preview{min-width:0}
.job-match{border-left:3px solid #b78d45;padding:8px 14px;margin:18px 0;background:#f8f9fb}.job-match.mentioned{border-color:#33766a}.job-match h3{font-size:16px}.job-match b{font-size:13px}
.job-version{padding:16px 0;border-bottom:1px solid #d4dce5}.job-version>span{display:block;font-size:12px;color:#526783;margin:5px 0}.job-history{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:20px}
#job-cv label small{font-weight:400;line-height:1.6}#job-cv textarea{width:100%}#job-cv summary{cursor:pointer;font-weight:600}#job-cv .source-copy{white-space:pre-wrap}
@media(max-width:800px){.job-start-grid,.job-editor-grid{grid-template-columns:1fr;gap:12px}.job-card{padding:18px}.job-heading{display:block}.job-toolbar button{flex:1 1 45%}.job-explainer{padding:8px 0}.job-explainer h2{font-size:26px}}

/* Keep the native password input for browser autofill; the eye only toggles visibility. */
.password-label { margin-bottom: 7px; }
.password-field { position: relative; margin-bottom: 16px; }
.password-field input { margin-top: 0; padding-right: 56px; }
.password-toggle {
  position: absolute;
  right: 1px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  padding: 10px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--navy);
}
.password-toggle:hover { background: #eaf0f6; }
.password-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.password-eye-closed { display: none; }
.password-toggle[aria-pressed="true"] .password-eye-open { display: none; }
.password-toggle[aria-pressed="true"] .password-eye-closed { display: block; }

/* The document platform keeps each service's availability on its own page. */
.application-service{margin:3rem 0;padding:2rem;border:1px solid var(--line,#d7e0eb);border-radius:12px;background:#f0f4f8}
.application-service p{max-width:68ch}
.application-service a{display:inline-block;margin:.4rem .8rem .4rem 0}
#catalogNotice{margin-bottom:1.5rem}
#cv-generator .notice{margin-bottom:1.5rem}
#cv-generator .notice h2{margin-top:0}
.generator-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem;padding:1.5rem 1.5rem 1.5rem 2.5rem;background:#eef3f8;border-radius:10px}
@media(max-width:700px){.generator-steps{grid-template-columns:1fr}.application-service{padding:1.25rem}}
