/* "Was ist DENIC?" (site.de/denic, task 523): the coral tool hero (tool-pages.css th-*) with the ".de" seal, and the
   page's own sections in the drawn Site.de style (Reshad's pick: mockup round 2, hero A). */

.dnh {
  --th-bg: #ff7d81;
  --th-mark: #ffd672;
  --th-dot: var(--foreground);
}
.dnh .th-inner {
  padding-top: 22px;
}
.dnh .th-main {
  margin-top: 30px;
}
.dnp .th-field-icon,
.dnp .th-btn svg,
.dnp .th-checks svg {
  flex: none;
}
.dnh-rail {
  position: absolute;
  left: 0;
  bottom: 58px;
  z-index: 0;
  width: 36px;
  height: 75px;
  pointer-events: none;
}

/* Breadcrumb: the values of the transfer page's breadcrumb, navy on the light hero. */
.dn-crumb {
  padding-right: 110px;
  font: 400 14px/1.5 var(--font-nunito);
}
.dn-crumb ol,
.dn-crumb li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dn-crumb a {
  color: var(--foreground);
  text-decoration: none;
}
.dn-crumb a:hover {
  text-decoration: underline;
}
.dn-crumb [aria-current] {
  font-weight: 700;
}

/* Hero picture: one drawing (shapes + seal) and two chips on top. The ring text is 24px in a 520px drawing: from
   620px down it is 26px, so it stays 14px or more at 320px (drawing 280px wide). */
.dn-art {
  position: relative;
  width: 520px;
  max-width: 100%;
  aspect-ratio: 520 / 460;
  margin-left: auto;
  color: var(--foreground);
}
.dn-art-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.dna-ring-t {
  font: 700 24px var(--font-overpass);
  letter-spacing: 0.08em;
}
.dna-de {
  font: 800 124px var(--font-uni-neue);
  letter-spacing: -4px;
}
.dna-spin {
  transform-origin: 262px 232px;
  animation: dn-spin 60s linear infinite;
}
@keyframes dn-spin {
  to {
    transform: rotate(360deg);
  }
}
.dn-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 7px;
  border: 2px solid var(--foreground);
  border-radius: 99px;
  background: #fff;
  box-shadow: 4px 5px 0 var(--foreground);
  font: 800 16px/1.2 var(--font-nunito);
  white-space: nowrap;
}
.dn-chip i {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid var(--foreground);
  border-radius: 50%;
}
.dn-chip svg {
  width: 17px;
  height: 17px;
}
.dn-chip--since {
  top: -3%;
  left: -1%;
  transform: rotate(-5deg);
}
.dn-chip--domains {
  right: 0;
  bottom: -4%;
  transform: rotate(4deg);
}
.dn-nw {
  white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  .dna-spin {
    animation: none;
  }
}
@media (max-width: 1199px) {
  .dnh .th-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }
  .dnh .dn-art {
    margin: 0 auto;
  }
  .dnh-rail {
    display: none;
  }
}
@media (max-width: 619px) {
  .dn-crumb {
    padding-right: 70px;
  }
  .dn-crumb ol,
  .dn-crumb li {
    gap: 8px;
  }
  .dna-ring-t {
    font-size: 26px;
    letter-spacing: 0.04em;
  }
  .dn-chip {
    gap: 8px;
    padding: 5px 12px 5px 5px;
    font-size: 15px;
    box-shadow: 3px 4px 0 var(--foreground);
  }
  .dn-chip i {
    width: 28px;
    height: 28px;
  }
  .dn-chip svg {
    width: 15px;
    height: 15px;
  }
  .dn-chip--since {
    left: 0;
  }
}

/* Rating strip under the hero */
.dn-rating hr {
  display: none;
}

/* Colours */
.dn-c-yellow {
  background: #ffd672;
}
.dn-c-green {
  background: #92e990;
}
.dn-c-pink {
  background: #ffa6c2;
}
.dn-c-blue {
  background: #bcefff;
}
.dn-c-yellowl {
  background: #ffe8ae;
}
.dn-c-greenl {
  background: #c7f3c6;
}
.dn-c-lilacl {
  background: #dde4ff;
}
.dn-c-bluel {
  background: #d3f5ff;
}

/* Sections */
.dn-sec {
  padding-top: 76px;
  padding-bottom: 8px;
}
.dn-sec--top0 {
  padding-top: 44px;
}
.dn-sec.dn-sec--last {
  padding-bottom: 80px;
}
.dn-eyebrow {
  margin: 0;
  color: var(--foreground-light);
  font: 700 14px/1.6 var(--font-overpass);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.dn-h2 {
  margin: 8px 0 0;
  font: 800 30px/1.15 var(--font-uni-neue);
}
.dn-center {
  text-align: center;
}
.dn-sub {
  max-width: 620px;
  margin: 12px auto 0;
  color: var(--foreground-light);
  font: 400 18px/1.6 var(--font-nunito);
}
.dn-lead {
  margin: 20px 0 0;
  font: 400 19px/1.65 var(--font-nunito);
}
.dn-p {
  margin: 14px 0 0;
  color: var(--foreground-light);
  font: 400 18px/1.65 var(--font-nunito);
}
@media (min-width: 768px) {
  .dn-h2 {
    font-size: 36px;
  }
}

/* What DENIC is: text + pastel fact tiles */
.dn-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: center;
}
.dn-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dn-facts li {
  padding: 22px 20px 20px;
  border-radius: 16px;
}
.dn-fico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid var(--foreground);
  border-radius: 15px 4px 15px 4px;
  background: #fff;
}
.dn-fico svg {
  width: 22px;
  height: 22px;
}
.dn-facts b {
  display: block;
  margin-top: 14px;
  font: 800 19px/1.25 var(--font-uni-neue);
}
.dn-facts small {
  display: block;
  margin-top: 4px;
  color: #43435a;
  font: 400 15px/1.45 var(--font-nunito);
}

/* Who does what: cards like the /tools cards (coloured top with a drawing) */
.dn-who {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px;
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
}
.dn-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 2px solid var(--foreground);
  border-radius: 20px;
  background: #fff;
  box-shadow: 6px 6px 0 #1e1e411f;
}
.dn-pic {
  position: relative;
  display: grid;
  place-items: center;
  height: 168px;
  border-bottom: 2px solid var(--foreground);
  border-radius: 18px 18px 0 0;
}
.dn-pic svg {
  width: 116px;
  height: 116px;
  overflow: visible;
  font-family: var(--font-uni-neue);
}
.dn-num {
  position: absolute;
  top: 14px;
  left: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid var(--foreground);
  border-radius: 50%;
  background: #fff;
  font: 800 18px/1 var(--font-uni-neue);
}
.dn-body {
  padding: 20px 22px 24px;
}
.dn-k {
  margin: 0;
  color: var(--foreground-light);
  font: 700 14px/1.4 var(--font-overpass);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.dn-body h3 {
  margin: 4px 0 8px;
  font: 800 26px/1.15 var(--font-uni-neue);
}
.dn-body p:last-child {
  margin: 0;
  color: var(--foreground-light);
  font: 400 16px/1.55 var(--font-nunito);
}
.dn-card:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 76px;
  right: -30px;
  width: 14px;
  height: 14px;
  border-top: 4px solid var(--foreground);
  border-right: 4px solid var(--foreground);
  transform: rotate(45deg);
}

/* The .de rules: light yellow band with waves and shapes, cards with a coloured top */
.dn-band {
  position: relative;
  margin: 132px 0 60px;
  background: #ffe8ae;
}
.dn-wave {
  position: absolute;
  left: 0;
  display: block;
  width: 100%;
  height: 60px;
}
.dn-wave--top {
  bottom: calc(100% - 1px);
}
.dn-wave--bot {
  top: calc(100% - 1px);
}
.dn-band-sh {
  position: absolute;
  display: block;
}
.dn-band-sh--l {
  top: 56px;
  left: 0;
  width: 84px;
  height: 84px;
  border-radius: 0 0 84px 0;
  background: #ffa6c2;
}
.dn-band-sh--r {
  right: 0;
  bottom: 70px;
  width: 56px;
  height: 112px;
  border-radius: 112px 0 0 112px;
  background: #c0ceff;
}
@media (max-width: 1279px) {
  .dn-band-sh {
    display: none;
  }
}
.dn-band-in {
  position: relative;
  padding-top: 30px;
  padding-bottom: 30px;
}
.dn-rules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 34px;
}
.dn-rule {
  padding: 24px 24px 26px;
  border: 1px solid #e3e1ef;
  border-top: 8px solid var(--dn-t);
  border-radius: 16px;
  background: #fff;
  box-shadow: 6px 6px 0 #1e1e4110;
}
.dn-tok {
  display: grid;
  place-items: center;
  width: max-content;
  min-width: 54px;
  height: 54px;
  padding: 0 12px;
  border-radius: 18px 5px 18px 5px;
  background: var(--dn-t);
  font: 800 22px/1 var(--font-uni-neue);
}
.dn-tok svg {
  width: 26px;
  height: 26px;
}
.dn-rule h3 {
  margin: 16px 0 6px;
  font: 800 21px/1.2 var(--font-uni-neue);
}
.dn-rule p {
  margin: 0;
  color: var(--foreground-light);
  font: 400 16px/1.55 var(--font-nunito);
}
.dn-t-green {
  --dn-t: #92e990;
}
.dn-t-orange {
  --dn-t: #ffa46a;
}
.dn-t-pink {
  --dn-t: #ffa6c2;
}
.dn-t-lilac {
  --dn-t: #cbadf8;
}
.dn-t-blue {
  --dn-t: #bcefff;
}
.dn-t-coral {
  --dn-t: #ff7d81;
}
.dn-src {
  margin: 22px 0 0;
  color: #43435a;
  font: 400 15px/1.5 var(--font-nunito);
}

/* WHOIS and name servers: two pastel tiles with a hard shadow */
.dn-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.dn-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 30px 32px;
  border: 2px solid var(--foreground);
  border-radius: 24px;
  box-shadow: 7px 8px 0 var(--foreground);
}
.dn-tile-pic {
  position: absolute;
  top: 20px;
  right: 22px;
  width: 100px;
  height: 100px;
  overflow: visible;
}
.dn-tag {
  margin: 0;
  padding: 3px 12px;
  border: 2px solid var(--foreground);
  border-radius: 99px;
  background: #fff;
  font: 800 14px/1.4 var(--font-overpass);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.dn-tile h2 {
  margin: 4px 0 0;
  padding-right: 112px;
  font: 800 30px/1.15 var(--font-uni-neue);
}
.dn-tile > p:not(.dn-tag) {
  margin: 0;
  color: #2e2c4f;
  font: 400 17px/1.6 var(--font-nunito);
}
/* A long link text wraps on phones: the arrow stays right after its last word. */
.dn-more {
  display: block;
  margin-top: auto;
  padding-top: 8px;
  color: var(--foreground);
  font: 800 17px/1.3 var(--font-uni-neue);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.dn-more svg {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-left: 8px;
  vertical-align: -3px;
}
.dn-links svg {
  flex: none;
  width: 18px;
  height: 18px;
}

/* Buy box: navy, leaf corners, shapes */
.dn-buy {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  padding: 52px 48px;
  border-radius: 8px 36px;
  background: #22203f;
  color: #fff;
  overflow: hidden;
}
.dn-buy-sh {
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
}
.dn-buy-sh2 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 80px;
}
.dn-buy-copy,
.dn-links {
  position: relative;
}
.dn-buy-k {
  margin: 0;
  color: #ffda77;
  font: 700 14px/1.4 var(--font-overpass);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.dn-buy-h {
  margin: 8px 0 10px;
  color: #fff;
  font: 800 34px/1.15 var(--font-uni-neue);
}
.dn-buy-p {
  margin: 0 0 24px;
  color: #d3cddd;
  font: 400 18px/1.6 var(--font-nunito);
}
.dn-buy .th-form {
  max-width: 560px;
  border-color: #fff;
  color: var(--foreground);
  box-shadow: none;
}
.dn-buy .th-form:focus-within {
  outline-color: #fff;
}
.dn-buy .th-btn {
  background: #ffda77;
  color: var(--foreground);
}
.dn-buy .th-btn:hover {
  background: #ffe397;
}
.dn-links {
  display: grid;
  gap: 12px;
  margin: 0 26px 0 0;
  padding: 0;
  list-style: none;
}
.dn-links a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px 11px 11px;
  border-radius: 14px;
  background: #fff;
  color: var(--foreground);
  font: 800 17px/1.3 var(--font-nunito);
  text-decoration: none;
  box-shadow: 4px 5px 0 #0000004d;
}
.dn-links a > svg {
  margin-left: auto;
}
.dn-links a:hover {
  background: #fff8ed;
}
.dn-links i {
  display: grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px 4px 12px 4px;
}
.dn-links i svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 1023px) {
  .dn-rules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .dn-two,
  .dn-duo,
  .dn-buy {
    grid-template-columns: minmax(0, 1fr);
  }
  .dn-two {
    gap: 28px;
  }
  .dn-who {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    max-width: 520px;
    margin-inline: auto;
  }
  .dn-card:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -29px;
    left: calc(50% - 9px);
    transform: rotate(135deg);
  }
  .dn-buy {
    gap: 28px;
    padding: 34px 24px 36px;
  }
  .dn-buy-h {
    font-size: 28px;
  }
  .dn-links {
    margin: 0;
  }
}
@media (max-width: 619px) {
  .dn-sec {
    padding-top: 56px;
  }
  .dn-sec--top0 {
    padding-top: 36px;
  }
  .dn-sec.dn-sec--last {
    padding-bottom: 56px;
  }
  .dn-facts {
    gap: 12px;
  }
  .dn-facts li {
    padding: 16px 14px;
  }
  .dn-facts b {
    font-size: 17px;
  }
  .dn-rules {
    grid-template-columns: minmax(0, 1fr);
  }
  .dn-band {
    margin: 100px 0 48px;
  }
  .dn-wave {
    height: 36px;
  }
  .dn-tile {
    padding: 24px 20px;
    box-shadow: 5px 6px 0 var(--foreground);
  }
  .dn-tile-pic {
    top: 18px;
    right: 16px;
    width: 72px;
    height: 72px;
  }
  .dn-tile h2 {
    padding-right: 76px;
    font-size: 25px;
  }
  .dn-pic {
    height: 140px;
  }
  .dn-pic svg {
    width: 100px;
    height: 100px;
  }
}
