/*
 * Wayleave guides (static pages, src/utilities/guidesPlugin.ts), styled like the main website: dark navy sections,
 * white headings with orange accents, light blue body text (Mulish 300), uppercase menu, square orange buttons.
 * Values measured on the live site (header, /easetech/software sections, footer).
 */
:root {
  --navy: #0f2745; /* brand navy (print headings) */
  --navy-dark: #0b1c32; /* header and footer */
  --page: #0c223e; /* page background */
  --card: #1c3049; /* cards, banners of content, table header, menu panel */
  --orange: #ff6600;
  --text: #c4d7eb; /* body text on dark */
  --line: rgba(196, 215, 235, 0.16);
  --white: #fff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: "Mulish", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
}

a {
  color: var(--orange);
}

b,
strong {
  color: var(--white);
  font-weight: 700;
}

img {
  max-width: 100%;
  height: auto;
}

.g-container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Buttons: as on the site (Mulish 700 16px, uppercase, 4px radius, 45px tall). */
.g-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 0 24px;
  border: 1px solid var(--orange);
  border-radius: 4px;
  background: var(--orange);
  color: var(--white) !important;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.g-button-outline {
  border-color: rgba(255, 255, 255, 0.3);
  background: transparent;
}

.g-button-navy {
  border-color: var(--navy-dark);
  background: var(--navy-dark);
}

/* Header */
.g-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--navy-dark);
}

.g-header-inner {
  display: flex;
  gap: 24px;
  align-items: center;
  max-width: 1440px;
  min-height: 80px;
  margin: 0 auto;
  padding: 0 16px;
}

.g-logo img {
  display: block;
}

.g-nav {
  display: flex;
  flex: 1;
  gap: 28px;
  justify-content: center;
}

.g-nav a {
  white-space: nowrap;
}

@media (min-width: 1440px) {
  .g-nav {
    gap: 40px;
  }
}

.g-nav a,
.g-menu-links a {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.14px;
  text-decoration: none;
  text-transform: uppercase;
}

.g-nav a:hover,
.g-nav a.is-active,
.g-menu-links a.is-active {
  color: var(--orange);
}

.g-auth {
  display: flex;
  gap: 8px;
}

/* Mobile menu: <details>, so it works without JavaScript. */
.g-menu {
  display: none;
  position: relative;
  margin-left: auto;
}

.g-menu summary {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  cursor: pointer;
  list-style: none;
}

.g-menu summary::-webkit-details-marker {
  display: none;
}

.g-menu summary span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
}

.g-menu-panel {
  position: absolute;
  top: 52px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 260px;
  padding: 20px;
  border-radius: 4px;
  background: var(--card);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.g-menu-links {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 12px;
}

@media (max-width: 1180px) {
  .g-nav,
  .g-auth {
    display: none;
  }

  .g-menu {
    display: block;
  }
}

/* Hero: breadcrumbs, title, meta and contents. */
.g-hero {
  padding: 40px 0 24px;
  background: var(--page);
}

.g-breadcrumbs {
  color: var(--text);
  font-size: 14px;
}

.g-breadcrumbs a {
  color: var(--text);
}

.g-hero h1 {
  margin: 20px 0 12px;
  color: var(--white);
  font-size: clamp(32px, 5.5vw, 48px);
  font-weight: 700;
  line-height: 1.2;
}

.g-accent {
  color: var(--orange);
}

.g-meta {
  margin: 0 0 28px;
  font-size: 15px;
}

.g-toc {
  padding: 18px 24px;
  border-left: 4px solid var(--orange);
  border-radius: 4px;
  background: var(--card);
}

.g-toc p {
  margin: 0 0 6px;
  color: var(--white);
  font-weight: 700;
}

.g-toc ol {
  margin: 0;
  padding-left: 22px;
}

.g-toc a {
  color: var(--text);
  text-decoration: none;
}

.g-toc a:hover {
  color: var(--orange);
}

/* Content */
.g-article {
  padding: 16px 0 72px;
}

.g-article h2 {
  margin: 56px 0 14px;
  color: var(--white);
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700;
  line-height: 1.25;
}

.g-article h3 {
  margin: 28px 0 8px;
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.g-article p {
  margin: 0 0 16px;
}

/* Bullets: the site's orange hexagon with a tick. */
.g-article ul {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.g-article ul li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 34px;
}

.g-article ul li::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: 20px;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 22'%3E%3Cpath fill='%23ff6600' d='M10 0l9.5 5.5v11L10 22 .5 16.5v-11z'/%3E%3Cpath fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M6 11.3l2.8 2.8L14 8.8'/%3E%3C/svg%3E")
    no-repeat center / contain;
}

/* Numbered steps: orange hexagon with the number. */
.g-article ol {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.g-article ol li {
  position: relative;
  margin-bottom: 14px;
  padding-left: 44px;
  counter-increment: step;
}

.g-article ol li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 31px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 22'%3E%3Cpath fill='%23ff6600' d='M10 0l9.5 5.5v11L10 22 .5 16.5v-11z'/%3E%3C/svg%3E")
    no-repeat center / contain;
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
}

.g-article blockquote {
  margin: 24px 0;
  padding: 14px 20px;
  border-left: 4px solid var(--orange);
  border-radius: 4px;
  background: var(--card);
}

.g-table-wrap {
  overflow-x: auto;
  margin: 22px 0;
  border-radius: 4px;
}

.g-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.g-table caption {
  padding-bottom: 10px;
  font-size: 14px;
  text-align: left;
}

.g-table th,
.g-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.g-table th {
  background: var(--card);
  color: var(--white);
  font-weight: 700;
}

.g-table td:first-child {
  color: var(--white);
  font-weight: 600;
}

.g-draft-note {
  padding: 12px 16px;
  border: 1px dashed var(--orange);
  border-radius: 4px;
}

.g-related ul li::before {
  display: none;
}

.g-related ul li {
  padding-left: 0;
}

/*
 * Cards (#1c3049), like the site's feature cards: a title with an orange bar on its left, text below. Only where a
 * guide asks for them ({{cards}} before a list); everything else stays plain text.
 */
.g-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 16px;
  margin: 22px 0 28px;
}

.g-card {
  padding: 28px 30px;
  border-radius: 8px;
  background: var(--card);
}

.g-card p {
  margin: 0;
}

.g-card .g-card-title {
  margin-bottom: 14px;
}

.g-card-title {
  margin: 0 0 14px;
  padding-left: 18px;
  border-left: 3px solid var(--orange);
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

/* Orange banner: a rounded rectangle within the content width, as on the site. */
.g-cta-wrap {
  padding: 8px 0 72px;
}

.g-cta {
  padding: 44px 48px;
  border-radius: 8px;
  background: var(--orange);
  color: var(--white);
}

@media (max-width: 520px) {
  .g-cta {
    padding: 32px 24px;
  }

  .g-card {
    padding: 22px 20px;
  }
}

.g-cta h2 {
  margin: 0 0 10px;
  color: var(--white);
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700;
  line-height: 1.25;
}

.g-cta p {
  margin: 0 0 22px;
  font-weight: 600;
}

.g-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 0 !important;
}

.g-cta .g-button-outline {
  border-color: var(--white);
}

/* Footer, as on the site: logo and legal links, then Navigation / Our Services / Contact us. */
.g-footer {
  padding: 64px 0 72px;
  background: var(--navy-dark);
  font-size: 15px;
}

.g-footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
}

.g-footer h2 {
  margin: 0 0 22px;
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
}

.g-footer a {
  display: block;
  margin-bottom: 18px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.g-footer a:hover {
  color: var(--orange);
}

.g-footer .g-orange {
  color: var(--orange);
  font-weight: 300;
}

.g-label {
  margin: 0 0 10px;
  font-size: 14px;
}

.g-legal {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 40px 0 6px;
  font-size: 14px;
}

.g-legal a {
  display: inline;
  margin: 0;
}

.g-rights {
  margin: 0;
  font-size: 14px;
}

@media (max-width: 900px) {
  .g-footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .g-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  .g-footer-inner {
    grid-template-columns: 1fr;
  }
}

/* Paper: light, ink-friendly; the menu, buttons and footer are left out. */
@media print {
  body,
  .g-hero,
  .g-cta {
    background: #fff;
    color: #1e262a;
  }

  .g-header {
    position: static;
    border-bottom: 2px solid var(--orange);
  }

  .g-nav,
  .g-auth,
  .g-menu,
  .g-breadcrumbs,
  .g-cta-buttons,
  .g-footer {
    display: none;
  }

  .g-hero h1,
  .g-article h2,
  .g-article h3,
  .g-cta h2,
  .g-toc p,
  .g-table th,
  .g-table td:first-child,
  b,
  strong {
    color: var(--navy);
  }

  .g-toc,
  .g-table th,
  .g-article blockquote,
  .g-card {
    background: #f3f6fc;
  }

  .g-card-title {
    color: var(--navy);
  }

  .g-cta-wrap {
    padding: 0;
  }

  .g-toc a,
  .g-article a {
    color: inherit;
  }

  .g-article h2,
  .g-article h3 {
    break-after: avoid;
  }

  .g-table-wrap,
  .g-toc,
  .g-cta,
  .g-article blockquote {
    break-inside: avoid;
  }
}
