/* netarus.com site styles. Colours, type and spacing come from tokens.css. */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0)/var(--leading) var(--font);
}
img, picture, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { line-height: var(--leading-tight); text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { color: var(--blue-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.on-dark :focus-visible { outline-color: var(--focus-on-dark); }
main:focus { outline: none; }
.vh {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 48rem) {
  .wrap {
    padding-left: max(2rem, env(safe-area-inset-left, 0px));
    padding-right: max(2rem, env(safe-area-inset-right, 0px));
  }
}
.prose { display: grid; gap: var(--space-2); max-width: var(--measure); }
.eyebrow {
  font-size: var(--step--1); font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 20;
  background: var(--paper); color: var(--blue); padding: 0.5rem 1rem; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

/* ---------- buttons ---------- */
.button {
  display: inline-flex; align-items: center; gap: 0.5em;
  min-height: 44px; padding: 0.625rem 1.25rem;
  border-radius: var(--radius); border: 2px solid var(--blue);
  background: var(--blue); color: var(--paper);
  font-weight: 700; text-decoration: none; line-height: 1.2;
}
.button:hover { background: var(--blue-hover); border-color: var(--blue-hover); color: var(--paper); }
.button--light { background: var(--paper); border-color: var(--paper); color: var(--blue-deep); }
.button--light:hover { background: var(--mist); border-color: var(--mist); color: var(--blue-deep); }
.arrow-link { font-weight: 700; text-decoration: none; }
.arrow-link::after { content: " \2192"; }
.arrow-link:hover { text-decoration: underline; }

/* ---------- top bar ---------- */
.topbar { background: var(--blue-deep); color: var(--on-dark); font-size: var(--step--1); }
.topbar .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.25rem 1.5rem; padding-block: 0.375rem;
}
.topbar a { color: var(--on-dark); text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar-contact { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.social { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.social a {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
}
.social a:hover { background: rgb(255 255 255 / 0.12); }
.social svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- header and menu ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-1) var(--space-3); padding-block: 0.75rem;
}
.brand img { width: 190px; height: auto; }
.menu-toggle {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px;
  padding: 0.5rem 0.875rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); color: var(--ink); font: 700 var(--step--1)/1 var(--font); cursor: pointer;
}
.menu-toggle svg { width: 20px; height: 20px; fill: currentColor; }
.site-nav { flex-basis: 100%; }
.js .site-nav { display: none; }
.js .site-nav.is-open { display: block; }
.nav-list, .nav-sub { list-style: none; margin: 0; padding: 0; }
.nav-list > li { border-top: 1px solid var(--line); }
.nav-list a {
  display: flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0.5rem 0;
  color: var(--ink); text-decoration: none; font-weight: 700;
}
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--blue); }
.nav-list svg { width: 18px; height: 18px; fill: currentColor; }
.nav-sub { padding: 0 0 0.5rem 1rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); }
.nav-sub a { font-weight: 400; min-height: 40px; padding-block: 0.375rem; }

@media (min-width: 60rem) {
  .menu-toggle { display: none; }
  .site-nav, .js .site-nav { display: block; flex-basis: auto; }
  .nav-list { display: flex; gap: 0.25rem; }
  .nav-list > li { border: 0; position: relative; }
  .nav-list > li > a { padding-inline: 0.875rem; border-radius: var(--radius); }
  .nav-list > li > a:hover { background: var(--mist); }
  .has-sub > a::after {
    content: ""; width: 0.45em; height: 0.45em; margin-left: 0.15em;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: translateY(-0.15em) rotate(45deg);
  }
  .nav-sub {
    position: absolute; right: 0; top: 100%; min-width: 15rem; padding: 0.5rem;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); grid-template-columns: 1fr;
    visibility: hidden; opacity: 0; transform: translateY(4px);
    transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  }
  .nav-sub--wide { grid-template-columns: 1fr 1fr; min-width: 28rem; }
  .nav-sub a { padding-inline: 0.75rem; border-radius: 4px; }
  .nav-sub a:hover { background: var(--mist); }
  .has-sub:hover > .nav-sub, .has-sub:focus-within > .nav-sub {
    visibility: visible; opacity: 1; transform: none;
  }
}

/* ---------- breadcrumb ---------- */
.breadcrumb { font-size: var(--step--1); color: var(--slate); background: var(--mist); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; list-style: none; margin: 0; padding: 0.75rem 0 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: var(--slate); }
.breadcrumb a { color: var(--slate); }

/* ---------- home: photo hero ---------- */
.hero { position: relative; isolation: isolate; background: var(--blue-night); color: var(--on-dark); overflow: hidden; }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { z-index: -2; }
.hero-media img { object-fit: cover; object-position: 72% 50%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(18 50 79 / 0.55), rgb(18 50 79 / 0.9));
}
.hero .wrap { padding-block: var(--space-5); }
.hero-text { display: grid; gap: var(--space-2); max-width: 36rem; }
.hero h1 { font-size: var(--step-4); font-weight: 900; letter-spacing: -0.01em; }
.hero .eyebrow { color: var(--on-dark-soft); }
.hero p:not(.eyebrow) { font-size: var(--step-1); font-weight: 300; }
.hero a { color: var(--on-dark); font-weight: 700; }
@media (min-width: 48rem) {
  .hero::before { background: linear-gradient(90deg, rgb(18 50 79 / 0.92) 0%, rgb(18 50 79 / 0.7) 45%, rgb(18 50 79 / 0.1) 80%); }
  .hero .wrap { padding-block: clamp(5rem, 3rem + 6vw, 8.5rem); }
}

/* ---------- home: brands ---------- */
.brands { padding-block: var(--space-5); }
.brand-grid { display: grid; gap: var(--space-3); }
@media (min-width: 48rem) { .brand-grid { grid-template-columns: 1fr 1fr; } }
.brand-card {
  display: grid; grid-template-rows: auto auto 1fr auto; gap: var(--space-2);
  padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0;
}
.brand-logo { display: flex; align-items: center; height: 96px; }
.brand-logo img { max-height: 96px; width: auto; }
@media (min-width: 48rem) {
  .brand-logo { height: 132px; }
  .brand-logo img { max-height: 132px; }
}
.brand-card h2 { font-size: var(--step-2); color: var(--blue-deep); }
.brand-card .prose { color: var(--ink); }

/* ---------- call to action band ---------- */
.cta { background: var(--blue-deep); color: var(--on-dark); }
.cta .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-3); padding-block: var(--space-4);
}
.cta h2 { font-size: var(--step-3); }
.cta p { color: var(--on-dark-soft); margin-top: 0.5rem; max-width: var(--measure); }

/* ---------- inner pages ---------- */
.page-header { background: var(--mist); }
.page-header .wrap { display: grid; gap: var(--space-2); padding-block: var(--space-4); }
.page-header h1 { font-size: var(--step-4); font-weight: 900; color: var(--blue-deep); }
.page-header .prose { font-size: var(--step-1); }
.section { padding-block: var(--space-4); }
.section h2 { font-size: var(--step-3); color: var(--blue-deep); }

.notice {
  display: grid; gap: 0.25rem; max-width: var(--measure);
  padding: var(--space-2) var(--space-3); border: 1px solid var(--warn-line); border-radius: var(--radius);
  background: var(--warn-bg); color: var(--warn-ink);
}
.notice-label { display: flex; align-items: center; gap: 0.5rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em; font-size: var(--step--1); }
.notice-label svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- careers: job list ---------- */
.jobs { display: grid; margin-top: var(--space-3); list-style: none; padding: 0; }
.job {
  display: grid; gap: var(--space-2); padding-block: var(--space-3);
  border-top: 1px solid var(--line); scroll-margin-top: 1rem;
}
.job:last-child { border-bottom: 1px solid var(--line); }
.job h3 { font-size: var(--step-2); color: var(--ink); }
.job-meta { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; color: var(--slate); font-size: var(--step--1); font-weight: 700; }
.job-meta span { display: inline-flex; align-items: center; gap: 0.375rem; }
.job-meta svg { width: 16px; height: 16px; fill: currentColor; }
.job p { max-width: var(--measure); }
@media (min-width: 48rem) {
  .job { grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-4); align-items: start; }
  .job-apply { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--blue-night); color: var(--on-dark-soft); font-size: var(--step--1); }
.site-footer a { color: var(--on-dark); }
.footer-grid { display: grid; gap: var(--space-3); padding-block: var(--space-4); }
@media (min-width: 40rem) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-grid h2 { color: var(--on-dark); font-size: var(--step-0); margin-bottom: 0.5rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.375rem; }
.footer-grid dl { margin: 0; display: grid; gap: 0.375rem; }
.footer-grid dt { display: inline; font-weight: 700; color: var(--on-dark); }
.footer-grid dd { display: inline; margin: 0; }
.footer-quote { font-style: italic; }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / 0.15); }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); padding-block: var(--space-3); }
.footer-bottom p { max-width: 48rem; }

/* ---------- page text (inner pages, posts) ---------- */
.content { max-width: 48rem; overflow-wrap: anywhere; }   /* long web addresses wrap on phones */
.card-body, .search-results { overflow-wrap: anywhere; }
.page-header h1 { overflow-wrap: break-word; min-width: 0; }            /* e.g. "ThoughtLeadership.biz" at 390 px */
.content::after { content: ""; display: table; clear: both; }
.content > * + * { margin-top: var(--space-2); }
.content h2, .content h3, .content h4 { color: var(--blue-deep); margin-top: var(--space-4); scroll-margin-top: 1rem; }
.content h2 { font-size: var(--step-3); }
.content h3 { font-size: var(--step-2); }
.content h4 { font-size: var(--step-1); }
.content :is(h2, h3, h4) + * { margin-top: var(--space-1); }
.content ul, .content ol { margin-bottom: 0; padding-left: 1.5rem; }
.content li + li, .content li > ul, .content li > ol { margin-top: 0.375rem; }
.content blockquote { margin-inline: 0; padding: var(--space-1) var(--space-3); border-left: 4px solid var(--blue); background: var(--mist); }
.content blockquote > * + * { margin-top: var(--space-1); }
.content--ticks ul { list-style: none; padding-left: 0; }
.content--ticks li { position: relative; padding-left: 2.25rem; font-size: var(--step-1); }
.content--ticks li::before {   /* the old site's tick bullet (its image was lost), rebuilt in CSS */
  content: ""; position: absolute; left: 0; top: 0.2em; width: 1.4rem; height: 1.4rem; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 72% no-repeat;
}
.page-header .meta { color: var(--slate); font-weight: 700; }
.meta { color: var(--slate); font-size: var(--step--1); }
.meta a { color: inherit; }
.back { padding-bottom: var(--space-4); }
.arrow-link--back::after { content: none; }
.arrow-link--back::before { content: "\2190  "; }
.button-row { margin-block: var(--space-2); }
.content .button { max-width: 100%; }

/* figures: [[image …]] */
.figure { margin: 0; max-width: min(100%, var(--fig-w, 100%)); }
.figure img { border-radius: 4px; }
.figure figcaption { margin-top: 0.375rem; color: var(--slate); font-size: var(--step--1); }
.figure--center { margin-inline: auto; }
@media (min-width: 40rem) {
  .content .figure--right { float: right; clear: right; width: min(45%, var(--fig-w)); margin: 0.25rem 0 var(--space-2) var(--space-3); }
  .content .figure--left { float: left; clear: left; width: min(45%, var(--fig-w)); margin: 0.25rem var(--space-3) var(--space-2) 0; }}
.post-hero { padding-top: var(--space-3); }
.post-hero .figure { max-width: min(100%, 60rem); }
a.lightbox { display: block; cursor: zoom-in; }

/* accordions (<details>) */
.accordion { border: 1px solid var(--line); border-radius: var(--radius); }
.accordion + .accordion { margin-top: 0.5rem; }
.accordion summary { cursor: pointer; padding: 0.75rem 1rem; font-weight: 700; color: var(--blue-deep); min-height: 44px; }
.accordion[open] summary { border-bottom: 1px solid var(--line); }
.accordion > p { padding: 0.75rem 1rem; }

/* tables */
.table-wrap { overflow-x: auto; }
.table-wrap table { border-collapse: collapse; width: 100%; font-size: var(--step--1); }
.table-wrap td, .table-wrap th { border: 1px solid var(--line); padding: 0.5rem 0.75rem; vertical-align: top; text-align: left; }

/* video facade, maps and other embeds */
.video { max-width: 48rem; }
.video-link { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: #000; }
.video-link img, .video iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.video iframe { aspect-ratio: 16 / 9; height: auto; border-radius: var(--radius); display: block; }
.video-play {
  position: absolute; inset: 50% auto auto 50%; width: 72px; height: 50px; transform: translate(-50%, -50%);
  border-radius: 12px; background: rgb(18 50 79 / 0.85);
}
.video-play::after { content: ""; position: absolute; inset: 15px auto auto 29px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.video-link:hover .video-play, .video-link:focus-visible .video-play { background: #c4302b; }
.map iframe, .embed iframe { display: block; width: 100%; border: 0; border-radius: var(--radius); }
.map iframe { aspect-ratio: 4 / 3; max-height: 450px; }
.map-link { font-size: var(--step--1); }

/* contact page */
.contact-cards { display: grid; gap: var(--space-2); }
@media (min-width: 40rem) { .contact-cards { grid-template-columns: 1fr 1fr; } }
.contact-card { padding: var(--space-2) var(--space-3); border: 1px solid var(--line); border-radius: var(--radius); background: var(--mist); }
.contact-card p + p { margin-top: var(--space-1); }
.flowlu-form { max-width: 40rem; padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.flowlu-form-title { font-size: var(--step-2); font-weight: 700; color: var(--blue-deep); }
.flowlu-row { margin-top: var(--space-2); }
.flowlu-row--pair { display: grid; gap: var(--space-2); }
@media (min-width: 36rem) { .flowlu-row--pair { grid-template-columns: 1fr 1fr; } }
.flowlu-label { display: block; font-weight: 700; margin-bottom: 0.25rem; }
.flowlu-required { color: #a4161a; }
.flowlu-input { width: 100%; min-height: 44px; padding: 0.5rem 0.75rem; border: 1px solid #8a9aab; border-radius: 4px; font: inherit; color: var(--ink); background: var(--paper); }
textarea.flowlu-input { min-height: 8rem; resize: vertical; }
.flowlu-row-submit { text-align: right; }
.flowlu-submit { cursor: pointer; font: inherit; font-weight: 700; }

/* lists of posts and platforms */
.cards { display: grid; gap: var(--space-3); }
@media (min-width: 48rem) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.card { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); min-width: 0; }
.card-media { display: block; background: var(--mist); aspect-ratio: 16 / 9; }
.card-media picture, .card-media img { width: 100%; height: 100%; object-fit: contain; }   /* banners and logos: show all of it */
.card-body { display: grid; align-content: start; gap: var(--space-1); padding: var(--space-3); }
.card-title { font-size: var(--step-1); line-height: var(--leading-tight); }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--blue); text-decoration: underline; }
.pager ul { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: var(--space-4) 0 0; }
.pager a { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 0.75rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; font-weight: 700; }
.pager a[aria-current="page"] { background: var(--blue); border-color: var(--blue); color: var(--paper); }

/* HTML site map */
.sitemap { display: grid; gap: var(--space-4); }
@media (min-width: 48rem) { .sitemap { grid-template-columns: 1fr 1fr; } }
.sitemap-group h2 { font-size: var(--step-2); color: var(--blue-deep); margin-bottom: var(--space-1); }
.sitemap-group h3 { font-size: var(--step-0); margin: var(--space-2) 0 0.25rem; }
.sitemap-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
.sitemap-group .depth-1 { padding-left: 1rem; }
.sitemap-group .depth-2 { padding-left: 2rem; }

/* search */
.search-form label { display: block; font-weight: 700; margin-bottom: 0.375rem; }
.search-row { display: flex; gap: 0.5rem; max-width: 40rem; }
.search-row input { flex: 1; min-width: 0; min-height: 44px; padding: 0.5rem 0.75rem; border: 1px solid #8a9aab; border-radius: 4px; font: inherit; }
#search-status { margin-top: var(--space-2); }
.search-results { list-style: none; padding: 0; margin: var(--space-2) 0 0; display: grid; gap: var(--space-3); max-width: 48rem; }
.search-results a { font-size: var(--step-1); font-weight: 700; }
.search-results p { margin-top: 0.25rem; }
.search-results mark { background: #ffe58a; color: inherit; }

/* lightbox */
.lightbox-dialog { padding: 0; border: 0; background: transparent; max-width: min(96vw, 1600px); max-height: 94vh; overflow: visible; }
.lightbox-dialog::backdrop { background: rgb(10 20 30 / 0.85); }
.lightbox-dialog img { max-width: min(96vw, 1600px); max-height: 86vh; width: auto; margin-inline: auto; border-radius: 4px; }
.lightbox-dialog p { color: #fff; text-align: center; margin-top: 0.5rem; }
.lightbox-close { position: absolute; top: -0.5rem; right: -0.5rem; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
