/* Public corporate interiors share the homepage's local typefaces and colour palette. */
main.page,
body > main.page ~ .footer,
body.sdn-regional-directory {
  --interior-latin: "SDN Home DM Sans", Arial, sans-serif;
  --font-arabic: "SDN Home Cairo", Arial, sans-serif;
  --interior-type: var(--interior-latin);
  --font-body: var(--interior-type);
  --font-display: var(--interior-type);
  --font-sans: var(--interior-type);
  --font-mono: var(--interior-type);
  --ink: #092c3d;
  --ink-2: #153a47;
  --navy-900: #062737;
  --navy-800: #092c3d;
  --navy-700: #164b57;
  --cyan-600: #076b70;
  --cyan-500: #087d82;
  --cyan-400: #75e5db;
  --cyan-300: #a4eddf;
  --cyan-100: #dff2ef;
  --cyan-50: #f0f7f5;
  --slate-700: #38515d;
  --slate-500: #4e6470;
  --slate-300: #bbcdd0;
  --slate-200: #d4e0e1;
  --slate-100: #eef4f3;
  --paper: #f5f8f7;
  --border: #d4e0e1;
  --r-sm: 4px;
  --r-md: 5px;
  --r-lg: 5px;
  --r-xl: 7px;
  --shadow-md: 0 9px 23px #082b4011;
  --shadow-glow: 0 0 0 3px #087d822b;
  --interior-measure: min(1440px, 89.15%);
  --title-spacing: -.055em;
  --card-spacing: -.033em;
  --hero-line: 1.04;
  --heading-line: 1.13;
  --card-line: 1.26;
  --label-spacing: .105em;
  --reading-direction: 90deg;
  color: var(--ink);
  font-family: var(--interior-type);
  font-feature-settings: normal;
}

html[dir="rtl"] :is(main.page, body.sdn-regional-directory, body > main.page ~ .footer) {
  --interior-type: var(--font-arabic);
  --title-spacing: 0;
  --card-spacing: 0;
  --label-spacing: 0;
  --hero-line: 1.24;
  --heading-line: 1.38;
  --card-line: 1.48;
  --reading-direction: 270deg;
}

main.page { background: var(--paper); }
main.page :is(input, textarea, select, button) { font-family: var(--interior-type); }
main.page .container, main.page .about-wrap {
  width: var(--interior-measure);
  max-width: none;
  padding-inline: 0;
}
main.page .section-pad { padding-block: clamp(44px, 4.8vw, 82px); }
main.page .section-head { margin-block-end: clamp(23px, 2.4vw, 36px); }
main.page .section-head .heading { max-width: 60ch; }
main.page :is(.eyebrow, .about-kicker, .cat-overline, .products-kicker, .media-kicker) {
  font-family: var(--interior-type);
  font-weight: 700;
  letter-spacing: var(--label-spacing);
  text-transform: uppercase;
}
main.page :is(.page-hero h1, .section-head h2, .client-category-head h2, .contact-info h2, .contact-form h2) {
  font-family: var(--interior-type);
  font-weight: 500;
  letter-spacing: var(--title-spacing);
  line-height: var(--heading-line);
}
main.page :is(.project-card h3, .news-card h3, .media-caption h3, .media-side-panel h3, .board-info .name, .team-info .name) {
  font-family: var(--interior-type);
  font-weight: 600;
  letter-spacing: var(--card-spacing);
  line-height: var(--card-line);
}
main.page :is(.project-card h3, .news-card h3, .team-info .name) {
  font-size: clamp(1.17rem, 1.5vw, 1.55rem);
}
html[dir="rtl"] main.page :is(h1, h2, h3, h4, .breadcrumb, .eyebrow, .meta, .chip, .tag, .date, .dept, .cnt, .count, .rank, .role, .kv dt, .form-field label, .contact-info dt, .about-kicker, .cat-overline, .services-stop-index, .services-card-index) {
  letter-spacing: 0;
}
main.page :is(.btn, .cat-actions .cat-cta, .about-hero-link) {
  border-radius: 4px;
  min-height: 44px;
  font-weight: 600;
  line-height: 1.4;
  white-space: normal;
}
main.page .btn-primary, #page-brands .cat-cta { background: var(--ink); color: white; }
main.page .btn-primary:hover, #page-brands .cat-cta:hover { background: var(--cyan-600); }
main.page :is(a, button, summary):focus-visible { outline: 3px solid #087d82; outline-offset: 3px; }
main.page :is(.page-hero, .about-hero, .cta-strip) :is(a, button):focus-visible { outline-color: #a4eddf; }

/* The photography is drawn from the existing projects, engineering and corporate collections. */
#page-projects { --hero-image: url("../assets/home-handover-20261126/jeddah.webp"); --hero-position: center 50%; }
#page-news { --hero-image: url("../assets/service-project-photos-20261126/jeddah-pump-test.webp"); --hero-position: center 48%; }
#page-team { --hero-image: url("../assets/about-history-20261126/field-team-at-water-installation.webp"); --hero-position: center 45%; }
#page-media { --hero-image: url("../assets/home-handover-20261126/pump.webp"); --hero-position: center 52%; }
#page-clients { --hero-image: url("../assets/home-handover-20261126/aerial-clarifiers.webp"); --hero-position: center 46%; }
main.page .page-hero { padding-block: clamp(35px, 4vw, 68px) clamp(41px, 4.8vw, 78px); }
main.page .page-hero-bg {
  background:
    linear-gradient(var(--reading-direction), #031c29f6 0%, #042430e8 27%, #052737a6 52%, #05273736 85%),
    linear-gradient(0deg, #031c2680, transparent 62%),
    var(--hero-image, none) var(--hero-position, center) / cover, var(--navy-900);
}
main.page .breadcrumb { color: #a4eddf; font: 600 .77rem/1.55 var(--interior-type); letter-spacing: var(--label-spacing); margin-bottom: 17px; }
main.page .page-hero h1 {
  max-width: 19ch;
  font-size: clamp(2.5rem, 4.9vw, 5.15rem);
  line-height: var(--hero-line);
  text-wrap: balance;
}
main.page .page-hero p { color: #eef6f5; margin: 17px 0 0; max-width: 57ch; }
main.page :is(.project-card, .news-card, .board-card, .team-card, .media-main-video, .media-side-panel, .media-photo, .contact-form, .contact-info) {
  border-radius: 5px;
}
main.page :is(.news-grid, .projects-full-grid, .board-grid, .team-grid) { gap: clamp(14px, 1.5vw, 24px); }
main.page :is(.news-card-body, .project-card-body) { padding: clamp(17px, 1.75vw, 28px); }
main.page :is(.filter-chip, .team-tabs, .team-tab) { border-radius: 4px; }
main.page :is(.filter-chip, .team-tab) { min-height: 40px; }
main.page .team-tabs { flex-wrap: wrap; max-width: 100%; }
main.page .team-photo.has-photo { background: linear-gradient(160deg, #f5f8f7, #dfedeb); }
main.page .cta-strip { border-radius: 5px; background: var(--navy-900); }
main.page .contact-form :is(input, select, textarea) { border-color: #a8babb; }

/* Catalogue, discovery guides and search share this content shell in both routing modes. */
#page-brands { background: white; color: var(--ink); }
#page-brands .cat-shell { padding-block: clamp(14px, 1.8vw, 30px) clamp(46px, 5.5vw, 82px); }
#page-brands [data-catalog-view][tabindex="-1"]:focus { outline: 0; }
#page-brands .cat-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px 16px;
  padding-block: 0 12px;
  border-block-end: 1px solid var(--border);
  font-size: .91rem;
  line-height: 1.45;
}
#page-brands .cat-nav > .discovery-nav {
  margin: 0;
  padding: 7px 0;
  min-height: 38px;
  color: var(--cyan-600);
  border: 0;
  font: inherit;
  font-weight: 600;
}
#page-brands .cat-nav > .discovery-nav:hover { text-decoration: underline; text-underline-offset: 3px; }
#page-brands .cat-switch { position: relative; min-width: 0; max-width: 100%; border-inline-start: 1px solid var(--border); padding-inline-start: 14px; }
#page-brands .cat-switch summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  padding: 6px 9px;
  border-radius: 4px;
  color: var(--ink);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
#page-brands .cat-switch summary::-webkit-details-marker { display: none; }
#page-brands .cat-switch summary::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
#page-brands .cat-switch[open] summary::after { transform: translateY(2px) rotate(225deg); }
#page-brands .cat-switch summary:hover, #page-brands .cat-switch[open] summary { background: var(--paper); }
#page-brands .cat-switch-menu {
  position: absolute;
  z-index: 12;
  inset-block-start: calc(100% + 5px);
  inset-inline-start: 12px;
  display: grid;
  width: max-content;
  min-width: min(11rem, 80vw);
  max-width: min(19rem, 84vw);
  padding: 5px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 5px;
  box-shadow: 0 8px 24px #092c3d1a;
}
#page-brands .cat-switch-menu a {
  display: block;
  padding: 9px 11px;
  border: 0;
  border-radius: 3px;
  color: var(--ink);
  font-size: .91rem;
}
#page-brands .cat-switch-menu a:hover, #page-brands .cat-switch-menu a[aria-current="page"] { background: #eef5f3; color: var(--cyan-600); }
#page-brands .cat-intro { padding-block: clamp(28px, 3.4vw, 53px) clamp(19px, 2.15vw, 35px); }
#page-brands h1 { font: 500 clamp(2.13rem, 4.15vw, 4.15rem)/var(--heading-line) var(--interior-type); letter-spacing: var(--title-spacing); }
#page-brands .cat-detail h1 { font-size: clamp(1.95rem, 3.05vw, 3.05rem); }
#page-brands :is(.product-chapter h2, .toyo-table h2, .discovery-page section > h2, .discovery-more > h2) {
  font: 500 clamp(1.55rem, 2.33vw, 2.45rem)/var(--heading-line) var(--interior-type);
  letter-spacing: var(--title-spacing);
}
#page-brands :is(.cat-pump-body h2, .cat-caption h2, .discovery-caption strong) {
  font: 600 clamp(1.1rem, 1.48vw, 1.48rem)/var(--card-line) var(--interior-type);
  letter-spacing: var(--card-spacing);
  color: var(--ink);
}
#page-brands .cat-overline, #page-brands .products-kicker {
  color: var(--cyan-600);
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: var(--label-spacing);
}
#page-brands :is(.cat-intro > div > p:not(.cat-overline), .cat-detail p:not(.cat-overline), .cat-note, .discovery-caption > span) { color: var(--slate-500); }
#page-brands :is(.cat-pump-grid, .cat-hydro-grid, .discovery-grid) { gap: clamp(13px, 1.45vw, 22px); }
#page-brands :is(.cat-pump-tile, .cat-hydro-tile, .discovery-card) {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: white;
}
#page-brands :is(.cat-pump-tile, .cat-hydro-tile, .discovery-card):hover { border-color: #9bbfc1; box-shadow: var(--shadow-md); }
#page-brands :is(.cat-photo, .discovery-photo, .cat-pump-image) { border: 0; border-block-end: 1px solid var(--border); }
#page-brands :is(.cat-photo, .discovery-photo) { background: var(--paper); }
#page-brands :is(.cat-pump-body, .cat-caption, .discovery-caption) { padding: clamp(13px, 1.35vw, 22px); border-block-end: 0; }
#page-brands .cat-arrow { color: var(--cyan-600); }
#page-brands :is(.cat-detail figure, .discovery-intro figure, .cat-feature) { overflow: hidden; border-radius: 5px; border-color: var(--border); }
#page-brands .cat-feature { background: var(--paper); }
#page-brands .cat-feature .cat-actions a { text-underline-offset: .23em; }
#page-brands :is(.cat-discover, .product-action, .cat-back, .toyo-inquiry, .toyo-citation, .toyo-sources a, .cat-actions a:not(.cat-cta), .discovery-links a, .discovery-sources a) { color: var(--cyan-600); }
#page-brands :is(.discovery-search input, .toyo-filter input) { min-height: 46px; border-radius: 4px; border-color: #92a9ac; font-weight: 400; }
#page-brands :is(.toyo-table, .cat-detail) thead { background: #eaf2f0; }
#page-brands .toyo-table tbody tr:nth-child(even) { background: var(--paper); }
#page-brands .cat-detail table { overflow-wrap: anywhere; }

/* Keep the About photography and the Services scroll stage and controls in their own layouts. */
#page-about h2, #page-about .about-event-copy h3, #page-about .about-values h3,
#page-about .about-hero h1, #services-tour .services-intro h1, #services-tour .services-card-title, #services-tour .services-stop h3 {
  font-family: var(--interior-type);
  font-weight: 500;
  letter-spacing: var(--title-spacing);
}
#page-about .about-hero h1 { line-height: var(--hero-line); }
#page-about :is(.about-event, .about-hero-link, .about-field-photo), #services-tour :is(.services-card, .services-stop) { border-radius: 5px; }
#page-about .about-event { background: var(--paper); border-color: var(--border); }
#page-about .about-present { background: var(--paper); }
#page-about .about-big-year { font-family: var(--interior-latin); font-variant-numeric: tabular-nums; }
#page-about .about-hero h1 em, #services-tour .services-intro h1 em {
  font-family: "SDN Home Instrument Serif", Georgia, serif;
  color: #a4eddf;
  font-weight: 400;
}
#page-about .about-hero h1 em { display: block; }
#services-tour .services-stop h3, #services-tour .services-card-title { line-height: var(--card-line); letter-spacing: var(--card-spacing); font-weight: 600; }
#services-tour .services-overview { background: radial-gradient(ellipse at 94% 0%, #12434b, transparent 62%), var(--navy-900); }
#services-tour .services-nav { background: var(--navy-900); }
#services-tour .services-card::after { background: linear-gradient(180deg, #03202c50, transparent 30%, #031a2470 60%, #031c29f5 100%); }
#services-tour .services-stop { background: #093748; }
#services-tour .services-stop.is-active { border-color: #32c6bc; }
html[dir="rtl"] :is(#page-about .about-hero, #services-tour .services-intro) h1 em { font-family: inherit; font-style: normal; font-weight: 500; }
html[dir="rtl"] #services-tour :is(.services-card-title, .services-stop h3) { line-height: 1.33; }

/* The regional map is a separate document, embedded in Contact and available directly. */
body.sdn-regional-directory { --muted: #4e6470; --teal: #087d82; --deep: #062737; --line: #d4e0e1; --body: #f5f8f7; }
body.sdn-regional-directory :is(input, select, button, #atlas text) { font-family: var(--interior-type); }
body.sdn-regional-directory :is(.card, .person, .region, .directory-page) { border-radius: 5px; }
body.sdn-regional-directory :is(h1, h2, h3) { font-family: var(--interior-type); line-height: var(--heading-line); letter-spacing: var(--card-spacing); }
html[dir="rtl"] body.sdn-regional-directory :is(.cue-overline, .eyebrow, .kicker, #atlas text) { letter-spacing: 0; }

body > main.page ~ .footer {
  padding: 0;
  background: white;
  border-block-start: 1px solid var(--border);
}
body > .footer .container { width: var(--interior-measure); max-width: none; padding-inline: 0; }
body > .footer .footer-grid { padding-block: 42px; gap: clamp(18px, 3vw, 42px); }
body > .footer .footer-brand-block { padding: 0; }
body > .footer .footer-brand-block .brand { margin-bottom: 3px; }
body > .footer .footer-logo { height: auto; width: 136px; max-height: 54px; filter: none; }
body > .footer .footer-brand-block p { margin: 6px 0 0; color: var(--slate-500); font-size: .93rem; }
body > .footer h4 { color: var(--ink); font-size: 1rem; font-weight: 600; margin: 0 0 8px; text-transform: none; letter-spacing: var(--card-spacing); }
body > .footer ul a { color: var(--slate-500); font-size: .93rem; }
body > .footer .footer-bottom { margin: 0; padding-block: 19px; gap: 7px 16px; flex-wrap: wrap; color: var(--slate-500); font-size: .82rem; border-color: var(--border); }
body > .footer a:hover { color: var(--cyan-600); text-decoration: underline; text-underline-offset: .17em; }
body > .footer a:focus-visible { outline: 2px solid var(--cyan-600); outline-offset: 3px; }

@media (max-width: 950px) {
  main.page, body > main.page ~ .footer { --interior-measure: 91%; }
}
@media (max-width: 760px) {
  main.page, body > main.page ~ .footer { --interior-measure: 89.5%; }
  #page-contact .container { padding-inline: 0; }
  main.page .page-hero-bg {
    background-image: linear-gradient(var(--reading-direction), #031c29ef, #042430d1 48%, #05273781), linear-gradient(0deg, #031c2659, transparent 65%), var(--hero-image, none);
  }
  main.page .contact-info { padding: clamp(18px, 4.4vw, 30px); }
}
@media (max-width: 480px) {
  #page-brands .cat-nav { column-gap: 8px; }
  #page-brands .cat-switch { padding-inline-start: 6px; }
  #page-brands .cat-switch-menu { inset-inline-start: auto; inset-inline-end: 0; }
  #page-brands .cat-caption { padding: 11px; }
  #page-brands .cat-intro:has(> .cat-logo) { display: grid; grid-template-columns: minmax(0, 1fr) 65px; align-items: center; gap: 5px 12px; }
  #page-brands .cat-intro:has(> .cat-logo) > div { display: contents; }
  #page-brands .cat-intro .cat-overline { grid-area: 1 / 1; margin: 0; }
  #page-brands .cat-intro .cat-logo { width: 65px; height: 36px; grid-area: 1 / 2; }
  #page-brands .cat-intro:has(> .cat-logo) h1, #page-brands .cat-intro:has(> .cat-logo) p:not(.cat-overline) { grid-column: 1 / -1; }
  #page-brands .cat-intro h1 { font-size: 2rem; }
  #page-brands :is(.toyo-filter input, .discovery-search input), #site-enquiry .form-field :is(input, select, textarea) { font-size: 1rem; }
  #services-tour .services-card-title { font-size: clamp(16px, 5.3vw, 23px); }
}
@media (prefers-reduced-motion: reduce) {
  main.page, main.page .team-panel { animation: none; }
}
