/* ============================================================
   Mirmił ADR — Design / SEO / UX refinement layer
   Applied after the original design-system stylesheet.
   It preserves the verified copy and adds responsive navigation,
   editorial imagery, long-form wayfinding and conversion support.
   ============================================================ */

:root {
  --content-measure: 820px;
  --page-outline-height: 58px;
  --shadow-float: 0 20px 54px rgba(17, 19, 21, .13);
  --shadow-soft: 0 10px 30px rgba(17, 19, 21, .08);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + var(--page-outline-height) + 20px);
}

body {
  overflow-x: clip;
  background:
    linear-gradient(180deg, rgba(255,255,255,.26), rgba(255,255,255,0) 560px),
    var(--warm-bg);
}

body.nav-open {
  overflow: hidden;
}

::selection {
  background: var(--orange-100);
  color: var(--ink);
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid rgba(0, 48, 135, .42);
  outline-offset: 3px;
}

main :where(h2, h3)[id] {
  scroll-margin-top: calc(var(--nav-height) + var(--page-outline-height) + 22px);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  transform: translateY(-180%);
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
  color: #fff;
}

/* Header and navigation */
.mainnav {
  box-shadow: 0 1px 0 rgba(17, 19, 21, .03);
}

.mainnav .container {
  position: relative;
  min-width: 0;
}

.mainnav .brand-link {
  min-width: 0;
}

.mainnav .brand-link img {
  width: min(248px, 34vw);
  height: auto;
}

.menu-toggle {
  min-width: 44px;
}

.menu-toggle .bars span {
  transform-origin: center;
  transition: transform .2s ease, opacity .2s ease;
}

.menu-toggle[aria-expanded="true"] .bars span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .bars span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .bars span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.primary-links > li {
  position: relative;
}

.primary-links > li > a,
.nav-dropdown > details > summary {
  display: inline-flex;
  align-items: center;
  min-height: var(--nav-height);
  color: var(--muted-text);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.nav-dropdown > details > summary {
  gap: 7px;
  list-style: none;
}

.nav-dropdown > details > summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown > details > summary::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .18s ease;
}

.nav-dropdown > details[open] > summary {
  color: var(--ink);
}

.nav-dropdown > details[open] > summary::after {
  margin-top: 3px;
  transform: rotate(225deg);
}

.nav-dropdown__menu {
  position: absolute;
  z-index: 80;
  top: calc(100% - 10px);
  left: -18px;
  width: 294px;
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--adr-orange);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-float);
}

.nav-dropdown__menu a {
  min-height: 42px;
  display: flex !important;
  align-items: center;
  padding: 9px 11px;
  border-radius: 7px;
  color: var(--ink) !important;
  font-size: 13.5px !important;
  font-weight: 650 !important;
  line-height: 1.35 !important;
}

.nav-dropdown__menu a:hover,
.nav-dropdown__menu a:focus-visible {
  background: var(--orange-soft);
}

.mainnav .nav-dropdown__menu a::after,
.mainnav .mobile-nav-group a::after {
  content: none !important;
  display: none !important;
}

.nav-dropdown__menu a[aria-current="page"],
.mobile-nav-group a[aria-current="page"] {
  background: var(--orange-soft);
  color: var(--ink) !important;
  box-shadow: inset 3px 0 0 var(--orange-dark);
}

.mobile-panel {
  box-shadow: var(--shadow-float);
}

.mobile-nav-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.mobile-nav-group__title {
  grid-column: 1 / -1;
  margin-bottom: 4px;
  color: var(--muted-text);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.mobile-nav-group a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 7px 8px;
  border-radius: 7px;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
}

.mobile-nav-group a:hover,
.mobile-nav-group a:focus-visible {
  background: var(--orange-soft);
}

.trust-freshness summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

/* Hero system */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 12%, rgba(255,102,0,.10), transparent 28%),
    linear-gradient(135deg, #fbfbf8 0%, var(--warm-bg) 58%, #f0f1ee 100%);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 330px;
  height: 330px;
  right: -190px;
  top: -170px;
  border: 1px solid rgba(255, 102, 0, .20);
  transform: rotate(45deg);
}

.hero .container {
  grid-template-columns: minmax(0, 1.16fr) minmax(340px, .84fr);
  gap: clamp(34px, 5vw, 68px);
  padding-top: clamp(34px, 5vw, 66px);
  padding-bottom: clamp(44px, 6vw, 78px);
}

.hero .container > * {
  min-width: 0;
}

.hero h1 {
  max-width: 18ch;
  font-size: clamp(40px, 4.8vw, 66px);
  line-height: 1.02;
  letter-spacing: -.038em;
  text-wrap: pretty;
}

.hero .lead {
  max-width: 66ch;
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.7;
  text-wrap: pretty;
}

.hero-ctas .btn {
  min-height: 52px;
  white-space: normal;
  text-align: center;
}

.hero-proof-card {
  position: relative;
  overflow: visible;
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  clip-path: none;
  background: var(--surface);
}

.hero-proof-card .hero-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--graphite);
}

.hero-proof-card .hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 56%, rgba(17,19,21,.56) 100%);
  pointer-events: none;
}

.hero-proof-card .hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform .5s cubic-bezier(.2,0,.2,1);
}

.hero-proof-card:hover .hero-media img {
  transform: scale(1.018);
}

.hero-proof-card.is-portrait .hero-media {
  aspect-ratio: 4 / 3;
  background: #fff;
}

.hero-proof-card.is-portrait .hero-media img {
  object-position: 50% 28%;
}

.hero-proof-card .hero-media__label {
  position: absolute;
  z-index: 2;
  left: 16px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 32px);
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-sm);
  background: rgba(17,19,21,.78);
  backdrop-filter: blur(10px);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.hero-proof-card .aside-card__head {
  padding: 13px 18px;
  font-size: 13px;
}

.hero-proof-card ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
  padding: 10px 18px 8px;
}

.hero-proof-card li {
  padding: 9px 0;
  font-size: 12.75px;
  line-height: 1.42;
}

.hero-proof-card .aside-card__cta {
  padding: 8px 18px 18px;
}

.hero-proof-card .aside-card__cta .btn {
  min-height: 46px;
}

.credibility {
  position: relative;
  z-index: 3;
}

.credibility .container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.credibility span.item {
  min-height: 72px;
  padding: 16px 22px;
  border-right: 1px solid var(--graphite-600);
  font-size: 13px;
  line-height: 1.45;
}

.credibility span.item:first-child {
  padding-left: 0;
}

.credibility span.item:last-child {
  border-right: 0;
}

/* Homepage route selector: immediate task orientation before legal depth. */
.route-selector {
  padding: clamp(42px, 6vw, 74px) 0;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.route-selector__head {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(280px, .55fr);
  gap: 12px 48px;
  align-items: end;
  margin-bottom: 28px;
}

.route-selector__head .eyebrow {
  grid-column: 1 / -1;
}

.route-selector__head h2 {
  max-width: 19ch;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.08;
}

.route-selector__head p {
  margin: 0;
  color: var(--muted-text);
  font-size: 16px;
  line-height: 1.65;
}

.route-selector__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.route-card {
  position: relative;
  min-height: 252px;
  display: flex;
  flex-direction: column;
  padding: 23px 21px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--warm-bg);
  color: var(--ink);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.route-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: var(--adr-orange);
}

.route-card:hover,
.route-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-soft);
  color: var(--ink);
}

.route-card--urgent {
  background: var(--graphite);
  color: #fff;
}

.route-card--urgent:hover,
.route-card--urgent:focus-visible {
  color: #fff;
}

.route-card__n {
  color: var(--orange-dark);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
}

.route-card--urgent .route-card__n {
  color: #ff9b59;
}

.route-card h3 {
  margin: 20px 0 0;
  font-size: 20px;
  line-height: 1.25;
}

.route-card p {
  margin: 10px 0 20px;
  color: var(--muted-text);
  font-size: 14px;
  line-height: 1.58;
}

.route-card--urgent p {
  color: var(--text-on-dark-muted);
}

.route-card__link {
  margin-top: auto;
  color: var(--orange-dark);
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 750;
}

.route-card--urgent .route-card__link {
  color: #ff9b59;
}

/* Long-form page outline */
.page-outline {
  position: relative;
  z-index: 42;
  top: auto;
  height: auto;
  min-height: var(--page-outline-height);
  border-bottom: 1px solid var(--border);
  background: rgba(247,247,244,.94);
  backdrop-filter: blur(14px) saturate(130%);
}

.page-outline .container {
  height: auto;
  min-height: var(--page-outline-height);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding-block: 9px;
  min-width: 0;
}

.page-outline__label {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .065em;
  text-transform: uppercase;
  color: var(--ink);
}

.page-outline__label .diamond {
  width: 7px;
  height: 7px;
  border-width: 1.5px;
}

.page-outline__links {
  min-width: 0;
  flex: 1 1 680px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  overflow: visible;
  scrollbar-width: none;
  mask-image: none;
}

.page-outline__links::-webkit-scrollbar {
  display: none;
}

.page-outline__links a {
  flex: 0 1 auto;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  color: var(--muted-text);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.page-outline__links a:hover,
.page-outline__links a[aria-current="true"] {
  border-color: var(--orange-100);
  background: var(--orange-soft);
  color: var(--orange-dark);
}

/* Long-form readability and rhythm */
.section {
  position: relative;
}

main > .section + .section {
  border-top: 1px solid rgba(199, 204, 209, .58);
}

.section > .container > p,
.section > .container > ul:not(.checklist):not(.plist),
.section > .container > ol {
  max-width: var(--content-measure);
}

.section > .container > p {
  color: #3b4147;
  line-height: 1.76;
}

.section-head {
  max-width: 790px;
  margin-bottom: clamp(28px, 4vw, 42px);
}

.section-head h2 {
  max-width: 25ch;
  font-size: clamp(30px, 3.15vw, 44px);
  line-height: 1.08;
  letter-spacing: -.032em;
  text-wrap: pretty;
}

.section-head .intro {
  max-width: 66ch;
  font-size: clamp(17px, 1.55vw, 19px);
  line-height: 1.68;
}

.section-head::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 22px;
  background: var(--adr-orange);
}

.card {
  box-shadow: 0 1px 0 rgba(17,19,21,.02);
}

.card:hover {
  box-shadow: var(--shadow-soft);
}

.card:not(a):hover {
  transform: none;
  box-shadow: 0 1px 0 rgba(17,19,21,.02);
}

.grid {
  gap: clamp(16px, 2vw, 24px);
}

.faq {
  max-width: 920px;
}

.faq details {
  box-shadow: 0 1px 0 rgba(17,19,21,.02);
}

.faq summary {
  min-height: 62px;
}

.faq summary:hover {
  background: var(--warm-bg);
}

.faq summary .q {
  text-wrap: pretty;
}

.related-link {
  min-height: 116px;
}

.related-link::after {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--orange-soft);
}

/* Contextual editorial visuals for long-form service and knowledge pages. */
.editorial-visual-section {
  padding: clamp(34px, 5vw, 66px) 0;
  border-top: 1px solid rgba(199, 204, 209, .58);
  border-bottom: 1px solid rgba(199, 204, 209, .58);
  background: #f1f2ef;
}

.editorial-visual-section--photo {
  background:
    linear-gradient(110deg, rgba(255,102,0,.035), transparent 42%),
    var(--warm-bg);
}

.editorial-visual {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.editorial-visual--reverse {
  grid-template-columns: minmax(0, 1fr);
}

.editorial-visual--reverse .editorial-visual__media {
  order: initial;
}

.editorial-visual--reverse figcaption {
  order: initial;
}

.editorial-visual__media {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #e8e9e5;
}

.editorial-visual__media img {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  display: block;
  object-fit: contain;
  aspect-ratio: auto;
}

.editorial-visual figcaption {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  overflow: visible;
  padding: clamp(24px, 3.4vw, 42px);
}

.editorial-visual--photo figcaption {
  background: var(--graphite);
  color: #fff;
}

.editorial-visual__type {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  margin-bottom: 17px;
  color: var(--orange-dark);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.editorial-visual--photo .editorial-visual__type {
  color: #ff9b59;
}

.editorial-visual__type::before {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border: 2px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.editorial-visual figcaption strong {
  display: block;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
  color: inherit;
  font-family: var(--font-heading);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
  text-wrap: pretty;
}

.editorial-visual figcaption p {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
  margin: 13px 0 0;
  color: var(--muted-text);
  font-size: 14px;
  line-height: 1.62;
}

.editorial-visual--photo figcaption p {
  color: var(--text-on-dark-muted);
}

.editorial-visual--system {
  max-width: 920px;
  margin: 34px auto 0;
}

.article-meta-line {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.article-meta-line img {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 50%;
  object-fit: cover;
}

.article-meta-line__author,
.article-meta-line__details {
  display: block;
}

.article-meta-line__author {
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 750;
}

.article-meta-line__details {
  margin-top: 2px;
  color: var(--muted-text);
  font-size: 12.5px;
  line-height: 1.4;
}

.page--article .hero h1 {
  max-width: 20ch;
  font-size: clamp(38px, 4.1vw, 58px);
}

.page--article .section-head h2 {
  font-size: clamp(28px, 2.8vw, 38px);
}

/* Compact author and freshness proof at the end */
.trust-freshness {
  padding: 28px 0 32px;
  background: #f1f2ef !important;
  border-top: 1px solid var(--border);
}

.trust-freshness .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.trust-freshness h2 {
  font-size: 16px !important;
  line-height: 1.35;
  letter-spacing: -.01em;
}

.trust-freshness p,
.trust-freshness li,
.trust-freshness a {
  font-size: 12.5px !important;
  line-height: 1.55 !important;
}

.trust-freshness ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.trust-freshness .author-box {
  padding: 18px 20px;
  border-radius: var(--radius-md);
}

.trust-freshness .author-box img {
  width: 58px;
  height: 58px;
}

.trust-freshness .author-box .name {
  font-size: 15px;
}

/* Contact brief builder for a static site */
.contact-brief-section {
  padding: clamp(44px, 6vw, 76px) 0;
  background: var(--graphite);
  border-top: 4px solid var(--adr-orange);
}

.contact-brief-layout {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(34px, 6vw, 80px);
  align-items: start;
}

.contact-brief-copy h2 {
  max-width: 15ch;
  margin: 14px 0 0;
  color: #fff;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.08;
}

.contact-brief-copy p {
  max-width: 52ch;
  margin: 16px 0 0;
  color: var(--text-on-dark-muted);
  font-size: 16px;
  line-height: 1.7;
}

.contact-brief-direct {
  display: grid;
  gap: 7px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--graphite-600);
}

.contact-brief-direct a {
  width: fit-content;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 750;
  text-decoration: none;
}

.contact-brief-direct a:last-child {
  color: #ff9b59;
}

.contact-brief {
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-float);
}

.contact-brief__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.contact-brief .field {
  margin: 0;
}

.contact-brief .field--full {
  grid-column: 1 / -1;
}

.contact-brief label {
  font-size: 13px;
}

.contact-brief input,
.contact-brief select,
.contact-brief textarea {
  min-height: 48px;
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}

.contact-brief textarea {
  min-height: 132px;
  resize: vertical;
}

.contact-brief__consent {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted-text);
  font-size: 12.5px;
  line-height: 1.55;
}

.contact-brief__consent input {
  width: 20px;
  min-height: 20px;
  height: 20px;
  margin: 2px 0 0;
}

.contact-brief__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.contact-brief__actions .btn {
  min-height: 48px;
  padding-inline: 18px;
}

.contact-brief__note,
.contact-brief__status {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted-text);
}

.contact-brief__status {
  min-height: 20px;
  color: var(--trust-blue);
  font-weight: 700;
}

/* Calculator: make the task primary, not an afterthought */
body.page--calculator .calculator-primary {
  padding-top: clamp(34px, 5vw, 64px);
  background:
    linear-gradient(180deg, var(--surface), var(--warm-bg));
  border-bottom: 1px solid var(--border);
}

body.page--calculator .calculator-primary .section-head {
  margin-bottom: 24px;
}

.calc-tool {
  box-shadow: var(--shadow-float);
}

.calc-body :where(input, select, button) {
  min-height: 48px;
}

#adr-calc-add,
#adr-calc-clear {
  min-height: 48px;
  padding: 0 18px;
}

#calc-table-wrap button.rm,
.adr-calc-remove {
  min-width: 44px !important;
  min-height: 44px !important;
}

/* Make data tables unmistakably horizontally scrollable on small screens. */
.art-table,
[style*="overflow-x:auto"] {
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

.art-table table,
table.art-table {
  min-width: 680px;
}

.table-scroll-hint {
  display: none;
}

/* Knowledge thumbnails, when present, use real editorial assets. */
.know-card .thumb,
.sector-card .photo {
  overflow: hidden;
}

.know-card .thumb img,
.sector-card .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.know-card:hover .thumb img,
.sector-card:hover .photo img {
  transform: scale(1.025);
}

/* Responsive */
@media (max-width: 1120px) {
  .mainnav .nav-cta > ul,
  .mainnav .nav-cta > .btn {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .mainnav .container {
    height: var(--nav-height);
  }

  .mobile-panel {
    position: absolute;
    top: 100%;
    left: var(--container-pad);
    right: var(--container-pad);
    max-height: calc(100vh - var(--nav-height) - 20px);
    overflow-y: auto;
    border: 1px solid var(--border);
    border-top: 3px solid var(--adr-orange);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }

  .mobile-panel.is-open {
    display: block;
  }

  .mobile-panel ul {
    display: flex !important;
  }

  .nav-dropdown__menu {
    display: none;
  }
}

@media (max-width: 960px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 20ch;
  }

  .hero-proof-card {
    max-width: 680px;
  }

  .hero-proof-card .hero-media {
    aspect-ratio: 16 / 9;
  }

  .credibility .container {
    grid-template-columns: 1fr 1fr;
  }

  .credibility span.item:nth-child(2) {
    border-right: 0;
  }

  .credibility span.item:nth-child(-n+2) {
    border-bottom: 1px solid var(--graphite-600);
  }

  .contact-brief-layout {
    grid-template-columns: 1fr;
  }

  .route-selector__grid {
    grid-template-columns: 1fr 1fr;
  }

  .editorial-visual,
  .editorial-visual--reverse {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  :root {
    --nav-height: 68px;
    --page-outline-height: 54px;
    --container-pad: 18px;
    --section-y: clamp(48px, 12vw, 72px);
  }

  .utilitybar .container {
    height: 36px;
    gap: 12px;
    justify-content: flex-end;
  }

  .utilitybar .container > div {
    gap: 12px !important;
  }

  .utilitybar .container > div > span {
    display: none !important;
  }

  .mainnav .brand-link img {
    width: min(198px, 58vw);
  }

  .menu-toggle {
    padding: 0 11px;
  }

  .mobile-panel {
    left: 10px;
    right: 10px;
    padding-inline: 16px;
  }

  .mobile-nav-group {
    grid-template-columns: 1fr;
  }

  .mobile-nav-group__title {
    grid-column: auto;
  }

  .hero .container {
    gap: 30px;
    padding-top: 26px;
    padding-bottom: 46px;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(35px, 10.5vw, 48px);
    line-height: 1.04;
  }

  .hero .lead {
    order: 5;
    font-size: 17px;
    line-height: 1.68;
  }

  .hero .container > div:first-child {
    display: flex;
    flex-direction: column;
  }

  .hero h1 {
    order: 3;
  }

  .hero-ctas {
    order: 4;
    display: grid;
    grid-template-columns: 1fr;
    margin: 22px 0 26px;
  }

  .hero-ctas .btn {
    width: 100%;
    min-height: 52px;
    padding: 10px 16px;
  }

  .hero-proof-card ul {
    grid-template-columns: 1fr;
  }

  .credibility .container {
    grid-template-columns: 1fr;
  }

  .credibility span.item,
  .credibility span.item:first-child {
    min-height: 0;
    padding: 13px 0;
    border-right: 0;
    border-bottom: 1px solid var(--graphite-600);
  }

  .credibility span.item:last-child {
    border-bottom: 0;
  }

  .page-outline .container {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-block: 10px;
  }

  .page-outline__label {
    font-size: 11px;
  }

  .page-outline__links a {
    min-height: 34px;
    padding: 0 11px;
    font-size: 12px;
  }

  .page-outline__links {
    width: 100%;
    flex-basis: auto;
  }

  .section-head h2 {
    max-width: none;
    font-size: clamp(28px, 8.2vw, 38px);
    line-height: 1.1;
  }

  .route-selector__head {
    grid-template-columns: 1fr;
  }

  .route-selector__head .eyebrow {
    grid-column: auto;
  }

  .route-selector__grid {
    grid-template-columns: 1fr;
  }

  .route-card {
    min-height: 0;
  }

  .editorial-visual-section {
    padding: 32px 0;
  }

  .editorial-visual,
  .editorial-visual--reverse {
    grid-template-columns: 1fr;
    border-radius: var(--radius-md);
  }

  .editorial-visual--reverse .editorial-visual__media,
  .editorial-visual--reverse figcaption {
    order: initial;
  }

  .editorial-visual__media img {
    min-height: 0;
  }

  .editorial-visual figcaption {
    padding: 24px 20px 26px;
  }

  .section > .container > p {
    font-size: 16.5px;
    line-height: 1.72;
  }

  .faq summary {
    padding: 17px 16px;
  }

  .faq summary .q {
    font-size: 16px;
  }

  .faq .a {
    padding: 0 16px 18px 42px;
    font-size: 15px;
  }

  .contact-brief__grid {
    grid-template-columns: 1fr;
  }

  .contact-brief .field--full {
    grid-column: auto;
  }

  .contact-brief__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .contact-brief__actions .btn {
    width: 100%;
  }

  .table-scroll-hint {
    display: block;
    margin: 0 0 8px;
    color: var(--muted-text);
    font-size: 12px;
  }

  .mobile-actions {
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--ink);
  }

  .mobile-actions a {
    min-height: 54px;
  }

  body.page--dziekujemy main ol {
    grid-template-columns: 1fr !important;
  }

  body.page--404 main .container {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 390px) {
  .mainnav .brand-link img {
    width: 176px;
  }

  .menu-toggle {
    width: 44px;
    padding: 0;
    justify-content: center;
    font-size: 0;
  }

  .hero h1 {
    font-size: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .utilitybar,
  .mainnav,
  .mobile-panel,
  .page-outline,
  .mobile-actions,
  .contact-cta,
  .footer,
  .route-selector {
    display: none !important;
  }

  html,
  body,
  main,
  .section,
  .hero {
    background: #fff !important;
    color: #000 !important;
  }

  .hero .container,
  .section .container {
    display: block !important;
    max-width: none !important;
    padding: 18px 0 !important;
  }

  .hero-proof-card {
    display: none !important;
  }

  .section,
  .card,
  .faq details,
  .trust-freshness,
  .editorial-visual {
    break-inside: avoid;
    box-shadow: none !important;
  }

  a {
    color: #000 !important;
    text-decoration: underline;
  }
}
