/* RG Technologies (rgtechnologies.ro): a company site in the manner of the late 2000s, across the
   whole window. A dark strip with the language box, the logo and the phone number, a glossy blue
   menu bar, a banner on the home page, boxes with title bars in a right-hand column, glossy
   buttons and a dark footer. No fonts to download, no frameworks, no scripts, no inline styles
   (the site's Content-Security-Policy allows none).

   Sizes are in rem and 1rem is 10px (html { font-size: 62.5% }), so 1.5rem is 15px. On wide
   windows the root grows a little and the whole page grows with it (see the end of the file). */

:root {
  --page: #fff;
  --ink: #333;
  --muted: #666;
  --head: #123b6d;
  --link: #1a5aa6;
  --visited: #5b3d86;
  --rule: #d5dde6;
  --box-rule: #b8c7d9;
  --box-head-1: #f8fafd;
  --box-head-2: #dce6f1;
  --blue-1: #3d7dc7;
  --blue-2: #1d5596;
  --blue-3: #133e71;
  --groove-dark: #0f355f;
  --groove-light: #4c87cc;
  --lime-1: #effdb1;
  --lime-2: #c6e84f;
  --lime-3: #a5ca27;
  --lime-rule: #7d9c17;
  --lime-ink: #1f2d00;
  --phone: #b3261e;
  --foot: #24303d;
  --foot-2: #19222c;
  --foot-ink: #c5cfd9;
  --ui: Tahoma, Verdana, "Segoe UI", Arial, sans-serif;
  --title: "Trebuchet MS", "Lucida Grande", "Segoe UI", Arial, sans-serif;

  /* The page fills the window. Its bands (strip, top, menu, banner, footer) reach both edges of
     the window; what is in them keeps a margin of --gutter, and on very wide screens stays
     within --wrap, in the middle. --edge is that margin: the side padding of every band. */
  --gutter: clamp(16px, 4vw, 80px);
  --wrap: 150rem;
  --edge: max(var(--gutter), calc((100% - var(--wrap)) / 2));
  /* The longest line of text that still reads well. Grids and pictures may be wider. */
  --measure: 92rem;
}

html { font-size: 62.5%; background: var(--page); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font: 1.5rem/1.6 var(--ui);
}
a { color: var(--link); }
a:visited { color: var(--visited); }
a:hover { color: #c0392b; }
img { max-width: 100%; height: auto; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 50; background: #fff; padding: 6px 12px; }
.skip:focus { left: 12px; top: 10px; }

/* ---- The page: as wide as the window, the footer at the bottom of it ------------------------ */

.page { display: flex; flex-direction: column; min-height: 100vh; background: var(--page); }

/* ---- The strip at the very top: the language box -------------------------------------------- */

.topbar {
  display: flex; align-items: center; justify-content: flex-end; gap: 0.8rem;
  padding: 0.5rem var(--edge); color: var(--foot-ink); background: var(--foot);
  border-bottom: 1px solid #0f151b; font-size: 1.25rem; line-height: 1.4;
}
.lang { position: relative; }
.lang summary {
  display: flex; align-items: center; gap: 0.6rem; min-width: 11.5rem; box-sizing: border-box;
  padding: 0.3rem 0.9rem; cursor: pointer; list-style: none; user-select: none;
  color: var(--ink); border: 1px solid #8fa1b5; border-radius: 4px;
  background: linear-gradient(#fff, #f2f5f9 50%, #e2e9f1 51%, #f3f6fa);
  box-shadow: inset 0 1px 0 #fff; font-size: 1.3rem;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after {
  content: ""; margin-left: auto; border: 0.5rem solid transparent; border-bottom: 0;
  border-top-color: #4a5b6e;
}
.lang summary:hover { border-color: var(--lime-3); }
.lang[open] summary { border-radius: 4px 4px 0 0; }
.lang[open] summary::after { transform: rotate(180deg); }
.lang b { color: var(--head); }
.lang ul {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 40; margin: 0; padding: 0;
  list-style: none; background: #fff; border: 1px solid #8fa1b5; border-top: 0;
  border-radius: 0 0 4px 4px; box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
}
.lang li { margin: 0; }
.lang a { display: block; padding: 0.5rem 0.9rem; color: var(--ink); text-decoration: none; font-size: 1.3rem; }
.lang a:visited { color: var(--ink); }
.lang a[aria-current] { background: #eef4fb; }
.lang a:hover, .lang a:focus { color: #fff; background: var(--blue-2); }
.lang a:hover b, .lang a:focus b { color: #fff; }

/* ---- The top: logo, slogan, phone ----------------------------------------------------------- */

.header {
  display: flex; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; flex-wrap: wrap;
  padding: 1.6rem var(--edge); background: linear-gradient(#fff, #edf2f8);
  border-bottom: 1px solid #c4d1df;
}
.logo { display: flex; align-items: center; gap: 1.3rem; text-decoration: none; }
.logo:hover { color: inherit; }
.logo img { flex: none; width: 5.6rem; height: 5.6rem; border-radius: 1.1rem; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35); }
.logo-name {
  display: block; color: var(--head); text-shadow: 0 1px 0 #fff;
  font: bold 3.1rem/1.05 var(--title); letter-spacing: -0.5px;
}
.logo-slogan { display: block; margin-top: 0.4rem; color: var(--muted); font: italic 1.3rem/1.3 var(--ui); }
.header-contact { margin: 0; text-align: right; font-size: 1.3rem; line-height: 1.45; color: var(--muted); }
.hc-label { display: block; }
.hc-phone {
  display: block; color: var(--phone) !important; text-decoration: none;
  font: bold 2.5rem/1.15 var(--title); text-shadow: 0 1px 0 #fff;
}
.hc-phone:hover { text-decoration: underline; }
.hc-mail { display: block; }

/* ---- The menu bar: glossy blue, the open page in lime ------------------------------------- */

.menu {
  background: linear-gradient(var(--blue-1), var(--blue-2) 55%, var(--blue-3));
  border-top: 1px solid #6a9ddb; border-bottom: 3px solid var(--lime-3);
}
.menu ul { display: flex; flex-wrap: wrap; margin: 0; padding: 0 var(--edge); list-style: none; }
.menu li { margin: 0; border-right: 1px solid var(--groove-dark); box-shadow: 1px 0 0 var(--groove-light); }
.menu li:first-child { border-left: 1px solid var(--groove-dark); }
.menu a {
  display: block; padding: 1.2rem 2.1rem; color: #fff; text-decoration: none;
  font: bold 1.4rem/1.2 var(--ui); text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.45);
}
.menu a:visited { color: #fff; }
.menu a:hover { color: #fff; background: linear-gradient(#5d98de, #2a67ae 55%, #1f5899); }
.menu a[aria-current], .menu a[aria-current]:hover {
  color: var(--lime-ink); text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
  background: linear-gradient(var(--lime-1), var(--lime-2) 55%, var(--lime-3));
}

/* ---- The banner of the home page ---------------------------------------------------------- */

.banner {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 1.2rem 4rem;
  align-items: center; padding: 3.4rem var(--edge) 3.8rem; overflow: hidden; color: #e3edf9;
  background:
    radial-gradient(ellipse at 78% 28%, rgba(130, 185, 255, 0.38), transparent 62%),
    linear-gradient(160deg, #0d3463, #1a589f 58%, #2b74c3);
  border-bottom: 1px solid #0b2a4f;
}
.banner-text { max-width: 78rem; }
.banner-kicker {
  margin: 0; color: var(--lime-2);
  font: bold 1.2rem/1.4 var(--ui); letter-spacing: 1.6px; text-transform: uppercase;
}
.banner h1 {
  margin: 0.6rem 0 1.2rem; color: #fff; text-shadow: 0 2px 3px rgba(0, 0, 0, 0.35);
  font: bold clamp(3.3rem, 1.2vw + 2.1rem, 4.4rem)/1.18 var(--title);
}
.banner p { margin: 0 0 1.2rem; font-size: 1.55rem; }
.banner-buttons { display: flex; flex-wrap: wrap; gap: 1rem 1.2rem; margin-top: 2rem !important; }
/* Three pictures, fanned out. The box keeps its shape at any width, so the pictures (64% of its
   width, the third one 35% down) always end inside it. */
.banner-pics { position: relative; justify-self: center; width: 100%; max-width: 60rem; aspect-ratio: 30 / 19; }
.pic {
  position: absolute; width: 64%; height: auto;
  border: 4px solid #fff; box-shadow: 0 7px 16px rgba(0, 0, 0, 0.45);
}
.pic1 { left: 0; top: 8%; transform: rotate(-7deg); }
.pic2 { left: 21%; top: 0; transform: rotate(3deg); }
.pic3 { right: 0; top: 35%; transform: rotate(-2deg); }

/* ---- The body: the page and the right-hand column ----------------------------------------- */

.body {
  flex: 1 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) 28rem; gap: clamp(2.6rem, 2.6vw, 5rem);
  padding: 2.4rem var(--edge) 3.4rem; align-items: start;
}
.body.wide { grid-template-columns: minmax(0, 1fr); }
.content { min-width: 0; }
/* Text keeps to a readable line; the grids, the headings' rules, the tables and the framed notes
   use the full width. */
.content > p, .content > ul, .content > ol, .content > figure { max-width: var(--measure); }
.content > .note { max-width: none; }

.crumbs {
  margin: 0 0 1.6rem; padding: 0.6rem 1rem; font-size: 1.25rem; color: var(--muted);
  background: #f3f6fa; border: 1px solid var(--rule);
}
.content > .crumbs, .content > .steps { max-width: none; }
.crumbs .sep { margin: 0 0.6rem; color: #8d9cad; }

h1, h2, h3 { font-family: var(--title); color: var(--head); }
.content h1 {
  margin: 0 0 1.2rem; padding-bottom: 0.8rem; border-bottom: 2px solid var(--lime-3);
  font-size: 2.9rem; line-height: 1.22;
}
.content h2 {
  margin: 3rem 0 1rem; padding-bottom: 0.4rem; border-bottom: 1px dotted #9fb0c3;
  font-size: 2.1rem; line-height: 1.3;
}
.content h2.first { margin-top: 0; }
.content h3 { margin: 1.8rem 0 0.6rem; font-size: 1.7rem; }
.content h2 a, .content h3 a { color: var(--head); text-decoration: none; }
.content h2 a:hover, .content h3 a:hover { color: #c0392b; text-decoration: underline; }
p, ul, ol { margin: 0 0 1.2rem; }
li { margin-bottom: 0.5rem; }
.lead { font-size: 1.65rem; color: #444; }
.meta { margin: -0.4rem 0 1.8rem; font-size: 1.25rem; color: var(--muted); }
.small { font-size: 1.25rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 1rem 1.2rem; margin: 1.6rem 0 0.6rem; }

ul.arrows, ul.checks { list-style: none; padding: 0; }
ul.arrows li, ul.checks li { position: relative; padding-left: 1.9rem; }
ul.arrows li::before {
  content: "\00BB"; position: absolute; left: 0.3rem; top: 0; color: var(--blue-2); font-weight: bold;
}
ul.checks li::before { content: "\2714"; position: absolute; left: 0; top: 0; color: #5f8f0c; }

/* ---- Buttons: glossy, with the light on the top half --------------------------------------- */

.btn {
  display: inline-block; padding: 0.7rem 1.6rem; border-radius: 5px; cursor: pointer;
  font: bold 1.4rem/1.3 var(--ui); text-decoration: none;
}
.btn-big { padding: 1rem 2rem; font-size: 1.5rem; }
.btn-lime {
  color: var(--lime-ink) !important; border: 1px solid var(--lime-rule);
  background: linear-gradient(var(--lime-1), var(--lime-2) 50%, var(--lime-3) 51%, #c9eb55);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 1px 2px rgba(0, 0, 0, 0.28);
}
.btn-lime:hover { background: linear-gradient(#f6ffcc, #d2f063 50%, #b5da36 51%, #d6f46b); }
.btn-blue {
  color: #fff !important; border: 1px solid var(--blue-3);
  background: linear-gradient(#5f9ce1, #2b6ab2 50%, #1d5596 51%, #3074bf);
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 1px 2px rgba(0, 0, 0, 0.28);
}
.btn-blue:hover { background: linear-gradient(#73aaea, #3a79c0 50%, #2563a8 51%, #3b80cc); }
.btn-white {
  color: var(--head) !important; border: 1px solid #9caec2;
  background: linear-gradient(#fff, #f2f5f9 50%, #e2e9f1 51%, #f3f6fa);
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0, 0, 0, 0.28);
}
.btn-white:hover { background: linear-gradient(#fff, #f8fafc 50%, #ebf0f6 51%, #fafbfd); }

/* ---- Boxes with a title bar ---------------------------------------------------------------- */

.box {
  margin: 0 0 1.8rem; background: #fff; border: 1px solid var(--box-rule); border-radius: 6px;
  box-shadow: 0 1px 3px rgba(20, 50, 90, 0.13);
}
.box-title, .content .box-title {
  margin: 0; padding: 0.8rem 1.2rem; border-bottom: 1px solid var(--box-rule); border-radius: 6px 6px 0 0;
  background: linear-gradient(var(--box-head-1), var(--box-head-2));
  color: var(--head); text-shadow: 0 1px 0 #fff; font: bold 1.4rem/1.3 var(--ui);
}
.box-body { padding: 1.1rem 1.3rem 0.3rem; font-size: 1.4rem; }
.box-body p { margin: 0 0 1rem; }
.box-body ul { margin-bottom: 1rem; }
.big-phone { font: bold 2.3rem/1.2 var(--title); }
.big-phone a { color: var(--phone) !important; text-decoration: none; }
.big-phone a:hover { text-decoration: underline; }

/* Boxes side by side: three on the contact page, two by two for the parts of a SaaS business. */
.contact-cards, .boxes-2 { display: grid; gap: 1.4rem; margin: 1.6rem 0 0.6rem; }
.contact-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.boxes-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contact-cards .box, .boxes-2 .box { margin: 0; }
.boxes-2 .box { display: flex; flex-direction: column; }
.boxes-2 .box-body { display: flex; flex-direction: column; flex: 1; }
.boxes-2 .box-title { font-size: 1.6rem; }
.boxes-2 .get {
  margin: auto -1.3rem 0; padding: 0.8rem 1.3rem; border-top: 1px dotted var(--box-rule);
  border-radius: 0 0 6px 6px; background: #f6f9fc;
}
.num {
  display: inline-block; width: 2.4rem; height: 2.4rem; margin-right: 0.7rem; border-radius: 50%;
  text-align: center; color: var(--lime-ink); text-shadow: none; font: bold 1.4rem/2.4rem var(--title);
  background: radial-gradient(circle at 35% 30%, var(--lime-1), var(--lime-3) 75%);
  box-shadow: inset 0 -2px 3px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ---- Home: the services and the projects ---------------------------------------------------- */

.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; margin: 1.4rem 0 1rem; }
.service {
  display: grid; grid-template-columns: 5.4rem minmax(0, 1fr); gap: 1.3rem; padding: 1.3rem;
  border: 1px solid var(--rule); border-radius: 6px; background: linear-gradient(#fff, #f3f7fb);
}
.service h3 { margin: 0 0 0.4rem; font-size: 1.65rem; }
.service p { margin: 0 0 0.6rem; font-size: 1.4rem; line-height: 1.5; }
/* The first service, across both columns. */
.service-main {
  grid-column: 1 / -1; padding: 1.6rem; border-color: #b9cf6e; border-left: 5px solid var(--lime-3);
  background: linear-gradient(#fdfff2, #f1f8d6);
}
.service-main h3 { font-size: 1.9rem; }
.service-main p { font-size: 1.5rem; }
.icon {
  display: flex; align-items: center; justify-content: center;
  width: 5.4rem; height: 5.4rem; border-radius: 50%; color: #fff;
  background: radial-gradient(circle at 35% 30%, #6fa9ec, #1d5596 72%);
  box-shadow: inset 0 -3px 4px rgba(0, 0, 0, 0.25), 0 1px 3px rgba(0, 0, 0, 0.3);
}
.icon svg { width: 2.7rem; height: 2.7rem; }
.more { font-size: 1.3rem; font-weight: bold; }

.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; margin: 1.4rem 0 1rem; }
.project {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--box-rule); border-radius: 6px;
  box-shadow: 0 1px 3px rgba(20, 50, 90, 0.13);
}
.project > a img { display: block; width: 100%; border-bottom: 1px solid var(--box-rule); }
.project h3 { margin: 1rem 1.2rem 0.4rem; font-size: 1.65rem; }
.project p { margin: 0 1.2rem 0.8rem; font-size: 1.35rem; line-height: 1.5; }
.project .links {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.4rem 1rem;
  margin: auto 0 0; padding: 0.8rem 1.2rem 1rem; border-top: 1px dotted var(--rule);
  font-size: 1.3rem; font-weight: bold;
}
.ribbon {
  position: absolute; top: 1.3rem; right: -3.4rem; width: 13rem; padding: 0.3rem 0;
  transform: rotate(38deg); text-align: center; color: #fff;
  background: linear-gradient(#e5544b, #b3261e); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  font: bold 1.1rem/1.4 var(--ui); letter-spacing: 1px; text-transform: uppercase;
}
.status { font-size: 1.25rem; font-weight: bold; }
.status.on { color: #4d7a06; }
.status.off { color: #8a5a00; }

/* Numbered steps: four in a row, or three in a row when there are six. */
.steps {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem;
  margin: 1.4rem 0 0.6rem; padding: 0; list-style: none; counter-reset: step;
}
.steps.by-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps li {
  margin: 0; padding: 1.2rem 0.9rem; counter-increment: step; text-align: center;
  font-size: 1.35rem; line-height: 1.5; border: 1px solid var(--rule); border-radius: 6px; background: #f9fbfd;
}
.steps li::before {
  content: counter(step); display: block; width: 3.6rem; height: 3.6rem; margin: 0 auto 0.7rem;
  border-radius: 50%; color: var(--lime-ink); font: bold 1.8rem/3.6rem var(--title);
  background: radial-gradient(circle at 35% 30%, var(--lime-1), var(--lime-3) 75%);
  box-shadow: inset 0 -2px 3px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.3);
}
.steps strong { display: block; color: var(--head); margin-bottom: 0.2rem; }

/* ---- Two columns of text on wide windows (the services, the questions) ----------------------- */

.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 4.4rem; }
.split > * { min-width: 0; }
.split > .span > p, .split > .span > ul { max-width: var(--measure); }
.faq h3 { margin-top: 1.4rem; }
.faq p { font-size: 1.45rem; }

/* ---- The portfolio list -------------------------------------------------------------------- */

.entry {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 1.8rem 2.6rem;
  margin: 1.8rem 0 2.2rem; padding-bottom: 2rem; border-bottom: 1px dotted #9fb0c3;
}
.entry:last-child { border-bottom: 0; }
.entry-pic img {
  display: block; width: 100%; box-sizing: border-box; padding: 4px; background: #fff;
  border: 1px solid #9fb0c3; box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.22);
}
.entry h2 { margin-top: 0; }
.entry .actions { margin-top: 1rem; }

/* ---- Tables, pictures, notes --------------------------------------------------------------- */

table.data { border-collapse: collapse; width: 100%; margin: 0.8rem 0 1.6rem; font-size: 1.4rem; background: #fff; }
table.data th, table.data td {
  padding: 0.7rem 1rem; border: 1px solid var(--box-rule); text-align: left; vertical-align: top;
}
table.data th { width: 34%; color: var(--head); background: linear-gradient(var(--box-head-1), var(--box-head-2)); }
table.data thead th { width: auto; }
table.data tr:nth-child(even) td { background: #f6f9fc; }
table.compact { font-size: 1.35rem; margin-bottom: 0.8rem; }
table.compact th, table.compact td { padding: 0.5rem 0.8rem; }
table.narrow-head th { width: 26%; }

figure { margin: 1.4rem 0 1.8rem; }
figure img {
  display: block; box-sizing: border-box; padding: 4px; background: #fff;
  border: 1px solid #9fb0c3; box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.22);
}
figcaption { margin-top: 0.7rem; font-size: 1.3rem; font-style: italic; color: var(--muted); }

.note {
  margin: 1.6rem 0; padding: 1rem 1.4rem; font-size: 1.4rem;
  background: #fffbe6; border: 1px solid #e3d48c; border-left: 5px solid #e2b812;
}
.note.blue { background: #eef4fb; border-color: #b8c7d9; border-left-color: var(--blue-2); }
.note > :last-child { margin-bottom: 0; }
.label {
  display: block; margin-bottom: 0.3rem; color: var(--head);
  font: bold 1.2rem/1.4 var(--ui); letter-spacing: 0.6px; text-transform: uppercase;
}
.toc { padding: 0.9rem 1.4rem 0.2rem; background: #f6f9fc; border: 1px solid var(--rule); font-size: 1.4rem; }
.toc ul { margin-bottom: 0.8rem; }
.toc.cols ul { columns: 2; column-gap: 3rem; }
.toc.cols li { break-inside: avoid; }

/* ---- The footer ------------------------------------------------------------------------------ */

.footer { color: var(--foot-ink); background: var(--foot); border-top: 4px solid var(--lime-3); font-size: 1.3rem; line-height: 1.65; }
.footer a { color: #e8eff7; }
.footer a:visited { color: #d9e2ec; }
.footer a:hover { color: var(--lime-2); }
.footer-cols { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr 1.3fr; gap: 2rem 4rem; padding: 2rem var(--edge) 0.8rem; }
.footer p { margin: 0 0 0.8rem; }
.ftitle {
  margin: 0 0 0.7rem !important; padding-bottom: 0.4rem; border-bottom: 1px solid #3b4959;
  color: #fff; font: bold 1.35rem/1.4 var(--title); letter-spacing: 0.6px; text-transform: uppercase;
}
.footer ul { margin: 0 0 0.8rem; padding: 0; list-style: none; }
.footer li { margin: 0 0 0.2rem; }
.footer li::before { content: "\203A"; margin-right: 0.6rem; color: var(--lime-2); font-weight: bold; }
.footer-bottom { padding: 1.3rem var(--edge) 1.5rem; background: var(--foot-2); border-top: 1px solid #0f151b; }
.fsal img { display: block; }
.fnote { color: #93a1b0; font-size: 1.2rem; }

/* ---- Wider windows: everything a little larger, and text in two columns ----------------------- */

@media (min-width: 1280px) { html { font-size: 66%; } }
@media (min-width: 1400px) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split > .span { grid-column: 1 / -1; }
}
@media (min-width: 1600px) { html { font-size: 70%; } }
@media (min-width: 2200px) { html { font-size: 76%; } }

/* ---- Narrower windows ------------------------------------------------------------------------ */

@media (max-width: 880px) {
  .body { grid-template-columns: minmax(0, 1fr); }
  .banner { grid-template-columns: minmax(0, 1fr); }
  .banner-pics { justify-self: start; max-width: 47rem; }
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps, .steps.by-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .header { padding-top: 1.2rem; padding-bottom: 1.2rem; }
  .header-contact { text-align: left; }
  .logo-name { font-size: 2.5rem; }
  .logo img { width: 4.6rem; height: 4.6rem; }
  .menu ul { padding: 0; }
  .menu li { flex: 1 1 33%; text-align: center; border-bottom: 1px solid var(--groove-dark); }
  .menu li:first-child { border-left: 0; }
  .menu a { padding: 1.1rem 0.6rem; font-size: 1.35rem; }
  .banner { padding-top: 2.2rem; padding-bottom: 2.4rem; }
  .banner h1 { font-size: 2.6rem; }
  .banner-pics { display: none; }
  .body { padding-top: 1.6rem; padding-bottom: 2.4rem; }
  .services, .projects, .entry, .boxes-2 { grid-template-columns: minmax(0, 1fr); }
  .content h1 { font-size: 2.5rem; }
  .content h2 { font-size: 1.95rem; }
  table.data th, table.narrow-head th { width: 40%; }
  table.data thead th { width: auto; }
  table.data th, table.data td { padding: 0.6rem 0.7rem; overflow-wrap: anywhere; }
  .toc.cols ul { columns: 1; }
  .footer-cols { grid-template-columns: minmax(0, 1fr); padding-top: 1.6rem; padding-bottom: 0.4rem; gap: 0.6rem; }
  .footer-bottom { padding-top: 1.2rem; padding-bottom: 1.4rem; }
}
@media (max-width: 380px) {
  .steps, .steps.by-3 { grid-template-columns: minmax(0, 1fr); }
  .logo-name { font-size: 2.2rem; }
}

/* ---- On paper: only the page ---------------------------------------------------------------- */

@media print {
  html, body { background: #fff; }
  .topbar, .menu, .banner, .sidebar, .skip, .fsal { display: none !important; }
  .page { display: block; min-height: 0; }
  .body { display: block; padding: 0; }
  .footer { color: #000; background: #fff; border-top: 1px solid #999; }
  .footer a { color: #000; }
}
