/* Public homepage only. The application and other public pages retain their styles. */
@font-face {
  font-family: "Retskilden Inter";
  src: url("/assets/landing/inter-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

#authGate.rk-home {
  --rk-ink: #020c17;
  --rk-white: #f5f5f4;
  --rk-muted: #bfc6cf;
  --rk-blue: #459cff;
  --rk-line: #283440;
  display: block;
  align-items: normal;
  justify-items: normal;
  padding: 0;
  background: var(--rk-ink);
  color: var(--rk-white);
  font: 400 16px/1.55 "Retskilden Inter", "Segoe UI", sans-serif;
  scroll-behavior: smooth;
  scrollbar-color: #526171 var(--rk-ink);
  overflow-x: hidden;
  overflow-y: auto;
  isolation: isolate;
}
#authGate.rk-home.hidden, #authGate.rk-home[hidden] { display: none !important; }
#authGate.rk-home::before, #authGate.rk-home::after { content: none; }
.rk-home-shell { width: 100%; min-height: 100%; }
.rk-home-shell *, .rk-home-shell *::before, .rk-home-shell *::after { box-sizing: border-box; }
.rk-home-shell :is(h1,h2,h3,p) { margin: 0; }
.rk-home-shell :is(h1,h2,h3) { font-weight: 400; }
.rk-home-shell a { color: inherit; text-decoration: none; }
.rk-home-shell :is(a,button,summary):focus-visible {
  outline: 2px solid #75b6ff;
  outline-offset: 6px;
  border-radius: 2px;
}
.rk-home-shell a:hover { color: #8ac1ff; }
.rk-container { width: min(1280px, 90%); margin-inline: auto; }
.rk-skip { position: absolute; left: 24px; top: -120px; z-index: 9; padding: 12px 20px; background: #f5f5f4; color: #071321 !important; }
.rk-skip:focus { top: 16px; }
/* Paint the same backdrop inside the header's z-index stacking context so the
   screened logo blends with navy here, not with an isolated transparent layer. */
.rk-header { position: relative; z-index: 3; border-bottom: 1px solid #182430; background: var(--rk-ink); }
.rk-header-inner { width: min(1352px, 94%); min-height: clamp(94px,9.8vw,140px); display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.rk-brand { display: inline-flex; align-items: center; gap: 16px; flex-shrink: 0; }
.rk-brand img { width: clamp(60px,6.8vw,86px); height: auto; object-fit: contain; filter: none; }
#authGate.rk-home :is(.rk-header, .rk-footer) .rk-brand img {
  content: url("/assets/retskilden-mark.png?v=20260927-2");
  mix-blend-mode: screen;
  /* Preserve the original 750x585 mark's box despite new intrinsic dimensions. */
  aspect-ratio: 750 / 585;
}
.rk-brand span { font-size: clamp(25px,2.65vw,36px); line-height: 1.1; letter-spacing: -1.1px; }
.rk-nav { display: flex; align-items: center; gap: clamp(22px,3.2vw,46px); font-size: clamp(12px,1.3vw,15px); }
.rk-nav a { padding-block: 13px; white-space: nowrap; }
.rk-login-link { display: inline-flex; align-items: center; gap: 10px; margin-left: 16px; }
.rk-icon { display: inline-block; flex-shrink: 0; filter: brightness(0) invert(1); object-fit: contain; }
.rk-arrow { vertical-align: middle; transition: transform .18s ease; }
.rk-home-shell a:hover .rk-arrow { transform: translateX(3px); }
.rk-menu-toggle { display: none; }
.rk-introduction { position: relative; overflow: hidden; }
.rk-source-art { position: absolute; top: -25px; right: -12px; width: min(65%, 960px); height: auto; z-index: -1; pointer-events: none; mix-blend-mode: lighten; }
.rk-hero { min-height: clamp(510px,53vw,763px); display: flex; align-items: flex-start; padding-top: clamp(65px,6.9vw,100px); position: relative; }
.rk-hero-copy { width: 70%; }
.rk-eyebrow { color: var(--rk-blue); font-size: clamp(12px,1.25vw,15px); line-height: 1.4; text-transform: uppercase; letter-spacing: 1.7px; margin-bottom: clamp(20px,2.2vw,32px) !important; }
.rk-hero h1 { font-size: clamp(52px,6.1vw,88px); line-height: 1.12; letter-spacing: -.045em; max-width: 900px; }
.rk-hero-description { color: var(--rk-muted); font-size: clamp(18px,2.05vw,26px); line-height: 1.53; max-width: 580px; margin-top: clamp(22px,2.45vw,35px) !important; text-wrap: pretty; }
.rk-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 30px; margin-top: clamp(32px,4.1vw,58px); font-size: clamp(14px,1.55vw,18px); }
.rk-button { display: inline-flex; align-items: center; justify-content: center; gap: 21px; padding: 16px 23px; min-height: 52px; border-radius: 4px; background: #1e61df; color: white !important; transition: background .18s ease; }
.rk-button:hover { background: #3478ed; }
.rk-secondary { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; }
.rk-tools { position: relative; padding-top: 25px; padding-bottom: clamp(24px,2.5vw,36px); scroll-margin-top: 32px; }
.rk-section-intro h2 { font-size: clamp(32px,3.4vw,48px); line-height: 1.25; letter-spacing: -.04em; }
.rk-section-intro p { margin-top: 12px; color: var(--rk-muted); font-size: clamp(16px,1.8vw,22px); }
.rk-tool-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: clamp(27px,2.8vw,40px); }
.rk-tool { display: grid; grid-template-columns: 76px minmax(0,1fr); gap: 30px; padding: 0 32px 14px 4px; }
.rk-tool:nth-child(even) { border-left: 1px solid var(--rk-line); padding-left: clamp(35px,4.5vw,64px); }
.rk-tool:nth-child(n+3) { border-top: 1px solid var(--rk-line); padding-top: 36px; padding-bottom: 10px; }
.rk-tool-icon { margin-top: 3px; width: 44px; height: 44px; filter: invert(45%) sepia(93%) saturate(2395%) hue-rotate(191deg) brightness(106%) contrast(101%); }
.rk-tool-number { display: block; color: var(--rk-blue); font-size: 13px; margin-bottom: 10px; }
.rk-tool h3 { font-size: clamp(21px,2.25vw,29px); line-height: 1.3; letter-spacing: -.025em; }
.rk-tool h3 a { display: inline; }
.rk-tool p { font-size: clamp(15px,1.5vw,19px); color: var(--rk-muted); line-height: 1.5; max-width: 355px; margin-top: 9px; text-wrap: pretty; }
.rk-text-link { display: inline-flex; gap: 12px; align-items: center; color: var(--rk-blue) !important; font-size: clamp(15px,1.5vw,18px); margin-top: 16px; min-height: 30px; }
.rk-text-link .rk-icon { filter: invert(57%) sepia(48%) saturate(2514%) hue-rotate(190deg) brightness(104%) contrast(101%); }
.rk-text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.rk-resources { background: #f4f3f1; color: #071321; padding-block: clamp(44px,5vw,72px); }
.rk-resource-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(45px,7vw,100px); }
.rk-resource h2 { font-size: clamp(30px,3.1vw,42px); line-height: 1.24; letter-spacing: -.04em; }
.rk-resource p { color: #525c66; font-size: clamp(12px,1.25vw,16px); line-height: 1.65; margin-top: 14px; max-width: 380px; }
.rk-resource-intro { display: flex; flex-direction: column; align-items: flex-start; }
.rk-resource-intro > p { max-width: 380px; }
.rk-resource-link { color: #154f9f !important; display: inline-flex; align-items: center; gap: 18px; margin-top: auto; padding-top: 34px; min-height: 48px; font-size: clamp(14px,1.45vw,18px); }
.rk-resource-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.rk-round-icon { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border: 1px solid #154f9f; border-radius: 50%; flex-shrink: 0; }
.rk-round-icon .rk-icon { filter: invert(26%) sepia(92%) saturate(1025%) hue-rotate(190deg) brightness(86%) contrast(99%); }
.rk-dictionary { padding-left: clamp(45px,6vw,80px); border-left: 1px solid #ccd0d3; }
.rk-dictionary > p { max-width: 285px; }
.rk-word { margin-top: 30px; }
.rk-word h3 { font-family: Georgia, serif; color: #164d8e; font-size: clamp(24px,2.2vw,30px); }
.rk-word h3 a:hover { color: #164d8e; text-decoration: underline; text-underline-offset: 5px; }
.rk-word p { margin-top: 5px; font-size: clamp(12px,1.2vw,15px); }
.rk-resources .rk-text-link { color: #154f9f !important; margin-top: 20px; }
.rk-resources .rk-text-link .rk-icon { filter: invert(26%) sepia(92%) saturate(1025%) hue-rotate(190deg) brightness(86%) contrast(99%); }
.rk-contact { display: flex; align-items: center; justify-content: space-between; gap: 36px; padding-block: clamp(48px,6vw,80px); scroll-margin-top: 24px; }
.rk-contact-copy { max-width: 580px; }
.rk-contact .rk-eyebrow { margin-bottom: 18px !important; }
.rk-contact h2 { font-size: clamp(30px,3.1vw,42px); line-height: 1.24; letter-spacing: -.04em; }
.rk-contact-copy > p:last-child { margin-top: 18px; color: var(--rk-muted); font-size: 17px; max-width: 460px; text-wrap: pretty; }
.rk-contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-width: 0; }
.rk-contact-email { color: var(--rk-blue) !important; font-size: 15px; overflow-wrap: anywhere; min-height: 44px; display: inline-flex; align-items: center; }
.rk-contact-email:hover { text-decoration: underline; text-underline-offset: 4px; }
.rk-footer { padding-block: 32px 25px; }
.rk-footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 26px; }
.rk-footer .rk-brand img { width: 60px; }
.rk-footer .rk-brand span { font-size: 27px; }
.rk-footer nav { display: flex; flex-wrap: wrap; gap: 12px 20px; font-size: 12px; }
.rk-footer p { color: var(--rk-muted); font-size: 11px; }
.rk-explore { margin-top: 24px; border-top: 1px solid #172431; padding-top: 18px; color: #abb6c4; font-size: 12px; }
.rk-explore summary { cursor: pointer; width: fit-content; padding-block: 4px; }
.rk-explore nav { padding-top: 18px; font-size: 12px; }
#authGate.rk-home .auth-card { color: #182b3e; font-family: var(--font-ui); }
#authGate.rk-home .auth-card:target,
#authGate.rk-home.auth-panel-required .auth-card {
  top: 100px; right: max(24px, 5vw); max-height: calc(100dvh - 130px); overflow-y: auto;
  background: #fff; box-shadow: 0 18px 100px #0008; border: 1px solid #cbd5de; border-radius: 8px;
}
#authGate.rk-home .auth-card::before { content: none; }
#authGate.rk-home .auth-panel-close { position: absolute; top: 8px; right: 12px; padding: 8px; font-weight: 400; font-size: 13px; }
#authGate.rk-home .auth-card .brand { min-width: 0; gap: 14px; padding-top: 14px; margin-bottom: 8px; }
#authGate.rk-home .auth-card .brand-mark-logo { width: 70px; height: 58px; flex-basis: 70px; margin-left: 0; }
#authGate.rk-home .auth-card .brand-mark-logo img { filter: none; }
#authGate.rk-home .auth-card .brand-name { font: 400 25px/1.25 "Retskilden Inter", "Segoe UI", sans-serif; }
#authGate.rk-home .auth-card .brand-tagline { display: none; }
#authGate.rk-home .auth-card input { font-size: 16px; min-height: 46px; border-radius: 4px; }
#authGate.rk-home .auth-card .primary-button { background: #1e61df; color: white; border-radius: 4px; min-height: 48px; box-shadow: none; font-weight: 500; }
#authGate.rk-home .auth-card .primary-button::after { content: none; }
#authGate.rk-home .auth-card .primary-button:hover { background: #3478ed; }
#authGate.rk-home .auth-card :is(a,button,input):focus-visible { outline: 2px solid #1e61df; outline-offset: 3px; }
@media (max-width: 1100px) {
  .rk-hero-copy { width: 74%; }
  .rk-hero-description { max-width: 435px; }
  .rk-actions { gap: 23px; }
  .rk-tool { grid-template-columns: 76px minmax(0,1fr); gap: 22px; }
  .rk-tool:nth-child(even) { grid-template-columns: 68px minmax(0,1fr); padding-left: 40px; }
  .rk-footer-inner { flex-wrap: wrap; }
  .rk-footer p { font-size: 11px; }
}
@media (max-width: 760px) {
  .rk-contact { align-items: flex-start; flex-direction: column; gap: 28px; }
  .rk-header-inner { min-height: 86px; width: 90%; flex-wrap: wrap; gap: 0; }
  .rk-brand { gap: 11px; }
  .rk-brand img { width: 57px; }
  .rk-brand span { font-size: 25px; }
  .rk-menu-toggle:not([hidden]) { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 4px 8px 14px; border: 0; border-radius: 0; background: transparent; color: #f5f5f4; font: inherit; font-size: 14px; }
  .rk-nav { width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 18px; font-size: 16px; }
  .rk-nav a { min-height: 48px; border-top: 1px solid #283440; padding: 14px 0; }
  .rk-nav .rk-login-link { margin-left: 0; justify-content: space-between; }
  .rk-hero { min-height: 650px; padding-top: 50px; }
  .rk-hero-copy { width: 100%; }
  .rk-hero h1 { font-size: clamp(39px,7.9vw,59px); line-height: 1.13; }
  .rk-eyebrow { font-size: 11px; letter-spacing: 1.5px; margin-bottom: 23px !important; }
  .rk-hero-description { font-size: 17px; max-width: 455px; margin-top: 23px !important; }
  .rk-actions { margin-top: 29px; gap: 15px; align-items: flex-start; flex-direction: column; }
  .rk-button { font-size: 15px; padding: 15px 20px; }
  .rk-secondary { font-size: 14px; min-height: 44px; }
  .rk-source-art { top: 330px; right: -25px; width: 115%; max-width: none; opacity: .9; }
  .rk-tools { padding-top: 0; padding-bottom: 46px; }
  .rk-section-intro h2 { font-size: 33px; }
  .rk-section-intro p { font-size: 16px; }
  .rk-tool-grid { margin-top: 35px; grid-template-columns: 1fr; background: var(--rk-ink); }
  .rk-tool, .rk-tool:nth-child(even), .rk-tool:nth-child(n+3) { grid-template-columns: 50px minmax(0,1fr); gap: 21px; padding: 27px 0; border-left: 0; border-top: 1px solid var(--rk-line); }
  .rk-tool-icon { width: 35px; height: 35px; }
  .rk-tool h3 { font-size: 23px; }
  .rk-tool p { font-size: 16px; }
  .rk-text-link { min-height: 44px; font-size: 15px; margin-top: 11px; }
  .rk-tool-number { font-size: 12px; margin-bottom: 8px; }
  .rk-resources { padding-block: 45px; }
  .rk-resource-grid { grid-template-columns: 1fr; gap: 37px; }
  .rk-resource h2 { font-size: 33px; }
  .rk-resource p { font-size: 16px; }
  .rk-resource-link { font-size: 15px; margin-top: 10px; padding-top: 20px; }
  .rk-dictionary { border-left: 0; border-top: 1px solid #ccd0d3; padding: 35px 0 0; }
  .rk-dictionary > p { max-width: 300px; }
  .rk-word h3 { font-size: 27px; }
  .rk-word p { font-size: 14px; }
  .rk-footer { padding-block: 30px; }
  .rk-footer-inner { align-items: flex-start; flex-direction: column; gap: 27px; }
  .rk-footer nav { font-size: 14px; gap: 8px 24px; }
  .rk-footer nav a { min-height: 36px; display: inline-flex; align-items: center; }
  .rk-explore summary { min-height: 44px; display: list-item; align-content: center; }
  #authGate.rk-home .auth-card:target,
  #authGate.rk-home.auth-panel-required .auth-card {
    position: fixed; inset: 92px 5% auto; width: 90%; max-height: calc(100dvh - 110px); margin: 0;
  }
}
@media (max-width: 360px) {
  .rk-brand img { width: 47px; }
  .rk-brand span { font-size: 22px; }
  .rk-menu-toggle:not([hidden]) { font-size: 13px; }
  .rk-hero h1 { font-size: 36px; }
  .rk-hero-description { font-size: 16px; }
  .rk-hero { min-height: 720px; }
  .rk-source-art { top: 390px; }
  .rk-tool, .rk-tool:nth-child(even), .rk-tool:nth-child(n+3) { grid-template-columns: 37px minmax(0,1fr); gap: 16px; }
  .rk-tool h3 { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  #authGate.rk-home { scroll-behavior: auto; }
  .rk-home-shell * { transition: none !important; }
}
