:root {
  --ink: #172033;
  --ink-soft: #394258;
  --midnight: #111827;
  --midnight-2: #1c2940;
  --paper: #fffdf8;
  --parchment: #f5efe4;
  --canvas: #e9e5df;
  --copper: #a85f3f;
  --copper-dark: #81452e;
  --gold: #caa46a;
  --line: #d8d0c4;
  --shadow: 0 18px 54px rgba(18, 25, 38, 0.14);
  --radius: 18px;
  --content-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body,
button,
input,
select,
textarea,
table {
  font-family: Arial, Helvetica, sans-serif;
}

body {
  min-width: 280px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(202, 164, 106, 0.13), transparent 28rem),
    var(--canvas);
  font-size: 16px;
  line-height: 1.68;
}

img,
iframe,
video {
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  color: #ffffff;
  background: var(--copper);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: #ffffff;
  background: var(--midnight);
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform 0.18s ease;
}

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

.site-shell {
  width: min(calc(100% - 32px), var(--content-width));
  margin: 24px auto;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.site-header {
  color: #ffffff;
  background: var(--midnight);
}

.header-inner {
  min-height: 104px;
  padding: 20px clamp(22px, 4vw, 52px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: #ffffff;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background: linear-gradient(145deg, #f4dfbc, #c89b62);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.rabbit-ear,
.rabbit-head {
  position: absolute;
  display: block;
  background: var(--midnight);
}

.rabbit-ear {
  top: 8px;
  width: 10px;
  height: 31px;
  border-radius: 65% 65% 40% 40%;
  transform-origin: 50% 100%;
}

.rabbit-ear-left {
  left: 19px;
  transform: rotate(-10deg);
}

.rabbit-ear-right {
  right: 19px;
  transform: rotate(10deg);
}

.rabbit-head {
  left: 16px;
  bottom: 7px;
  width: 26px;
  height: 25px;
  border-radius: 48% 48% 42% 42%;
}

.brand-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.brand-copy strong {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.18rem, 2.3vw, 1.65rem);
  line-height: 1.12;
  letter-spacing: 0.01em;
}

.brand-copy small {
  color: #d9cfbf;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-navigation {
  min-height: 52px;
  padding: 0 clamp(20px, 4vw, 52px);
  display: flex;
  align-items: stretch;
  gap: 4px;
  background: #172239;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.main-navigation a {
  min-height: 52px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ede8df;
  border-bottom: 3px solid transparent;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation a.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.055);
  border-bottom-color: var(--gold);
  outline: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: #ffffff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  width: 20px;
  height: 2px;
  display: block;
  background: currentColor;
  border-radius: 4px;
}

.nav-toggle-lines {
  position: relative;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  position: absolute;
  left: 0;
  content: '';
}

.nav-toggle-lines::before {
  top: -6px;
}

.nav-toggle-lines::after {
  top: 6px;
}

.breadcrumb {
  min-height: 42px;
  padding: 10px clamp(22px, 4vw, 52px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #746b62;
  background: #f5f0e8;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
}

.breadcrumb:empty {
  display: none;
}

.breadcrumb a {
  color: var(--copper-dark);
  font-weight: 700;
  text-decoration: none;
}

.breadcrumb a:hover,
.breadcrumb a:focus {
  text-decoration: underline;
}

.breadcrumb a + a::before {
  margin-right: 8px;
  color: #a49a8e;
  content: '/';
}

.hero {
  position: relative;
  min-height: 300px;
  padding: clamp(54px, 8vw, 92px) clamp(26px, 6vw, 76px);
  overflow: hidden;
  display: grid;
  align-items: center;
  color: #ffffff;
  background:
    radial-gradient(circle at 82% 20%, rgba(202, 164, 106, 0.33), transparent 23rem),
    linear-gradient(118deg, var(--midnight) 0%, var(--midnight-2) 100%);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: '';
  background-image: var(--page-wallpaper);
  background-position: center;
  background-size: cover;
  opacity: 0.12;
  filter: grayscale(0.2) contrast(1.06);
}

.hero::after {
  position: absolute;
  inset: 0;
  content: '';
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.98) 0%, rgba(17, 24, 39, 0.72) 58%, rgba(17, 24, 39, 0.24) 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 710px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #e7c28f;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

.hero-intro {
  max-width: 610px;
  margin: 22px 0 0;
  color: #e6dfd4;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.62;
}

.hero-decoration {
  position: absolute;
  z-index: 1;
  right: clamp(20px, 6vw, 78px);
  bottom: -72px;
  width: 250px;
  height: 250px;
  opacity: 0.24;
}

.hero-moon {
  position: absolute;
  inset: 0;
  display: block;
  border: 2px solid #f3d8ad;
  border-radius: 50%;
}

.hero-ear {
  position: absolute;
  top: -38px;
  width: 44px;
  height: 145px;
  display: block;
  background: #f3d8ad;
  border-radius: 70% 70% 38% 38%;
  transform-origin: 50% 100%;
}

.hero-ear-one {
  left: 76px;
  transform: rotate(-13deg);
}

.hero-ear-two {
  right: 76px;
  transform: rotate(13deg);
}

.page-layout {
  padding: clamp(28px, 5vw, 58px);
  display: grid;
  grid-template-columns: minmax(210px, 270px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(28px, 5vw, 58px);
  background: var(--parchment);
}

.sidebar {
  display: grid;
  gap: 22px;
}

.sidebar-panel {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(23, 32, 51, 0.07);
}

.sidebar-panel h2 {
  margin: 0;
  padding: 14px 18px;
  color: #ffffff;
  background: var(--midnight);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.sidebar-navigation,
.news-content {
  padding: 10px 18px 16px;
}

.sidebar-navigation a {
  position: relative;
  padding: 10px 4px 10px 18px;
  display: block;
  color: var(--ink-soft);
  border-bottom: 1px solid #ece4d9;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  text-transform: uppercase;
}

.sidebar-navigation a::before {
  position: absolute;
  top: 15px;
  left: 2px;
  width: 7px;
  height: 7px;
  content: '';
  border-right: 2px solid var(--copper);
  border-bottom: 2px solid var(--copper);
  transform: rotate(-45deg);
}

.sidebar-navigation a:hover,
.sidebar-navigation a:focus,
.sidebar-navigation a.active {
  color: var(--copper-dark);
}

.news-content,
.news-content p,
.news-content li {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.news-content a {
  color: var(--copper-dark);
  font-weight: 700;
}

.content-card {
  min-width: 0;
  padding: clamp(24px, 5vw, 54px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 36px rgba(23, 32, 51, 0.08);
}

.content-card:focus {
  outline: none;
}

.page-content {
  max-width: 780px;
}

.page-content > :first-child {
  margin-top: 0;
}

.page-content > :last-child {
  margin-bottom: 0;
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4 {
  color: var(--ink);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.18;
}

.page-content h1 {
  margin: 0 0 24px;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-weight: 500;
}

.page-content h2 {
  margin: 38px 0 13px;
  color: var(--copper-dark);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 500;
}

.page-content h3 {
  margin: 28px 0 10px;
  font-size: 1.3rem;
}

.page-content p {
  margin: 0 0 1.1em;
}

.page-content a {
  color: var(--copper-dark);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.page-content a:hover,
.page-content a:focus {
  color: var(--copper);
}

.page-content blockquote,
.page-content p.emphasize {
  margin: 26px 0;
  padding: 18px 22px;
  color: var(--ink-soft);
  background: #f7f1e7;
  border-left: 5px solid var(--copper);
  border-radius: 0 10px 10px 0;
}

.page-content hr,
.page-content .line {
  height: 1px;
  margin: 32px 0;
  background: var(--line);
  border: 0;
}

.page-content ul,
.page-content ol {
  margin: 0 0 1.25em;
  padding-left: 1.35em;
}

.page-content li {
  margin: 0.35em 0;
}

.page-content table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
  background: #ffffff;
}

.page-content th,
.page-content td,
table.formtab td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.page-content th,
.page-content td.headercell {
  color: #ffffff;
  background: var(--midnight);
  font-weight: 700;
}

.page-content td.cell {
  background: #f7f3ed;
}

.page-content .sidepicture {
  width: min(260px, 42%);
  margin: 4px 0 18px 24px;
  float: right;
  border-radius: 12px;
}

.page-content .clearer {
  clear: both;
}

.page-content .w2dptablinks {
  margin: 24px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--line);
}

.page-content .w2dptablinks a {
  margin: 0 0 -1px;
  padding: 9px 12px;
  display: inline-block;
  color: var(--ink-soft);
  background: #f4eee5;
  border: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
  font-weight: 700;
  text-decoration: none;
}

.page-content .w2dptablinks a.w2dptabsel,
.page-content .w2dptablinks a:hover {
  color: #ffffff;
  background: var(--copper-dark);
}

/* Horizon / Web to Date forms and plugin output */
form.formular,
table.formtab,
table.pluginwidth {
  width: 100%;
  max-width: 680px;
  margin: 18px 0;
}

form.formular .formcaption {
  width: 150px;
  padding: 9px 14px 9px 0;
  float: left;
  clear: left;
  color: var(--ink-soft);
  font-weight: 700;
}

form.formular .formnote {
  padding: 0 0 12px 150px;
  color: var(--copper-dark);
  font-size: 0.88rem;
}

input.box,
input.tx,
input.txh,
select.tx,
select.txh,
textarea.tx,
textarea.txh,
form.formular input[type='text'],
form.formular input[type='email'],
form.formular input[type='password'],
form.formular select,
form.formular textarea {
  width: min(100%, 420px);
  padding: 10px 12px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #bfb5a8;
  border-radius: 7px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

textarea.tx,
textarea.txh,
form.formular textarea {
  min-height: 150px;
  resize: vertical;
}

input.box:focus,
input.tx:focus,
input.txh:focus,
select.tx:focus,
select.txh:focus,
textarea.tx:focus,
textarea.txh:focus,
form.formular input:focus,
form.formular select:focus,
form.formular textarea:focus {
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(168, 95, 63, 0.14);
}

input[type='submit'],
input[type='button'],
button[type='submit'],
.buttoncaption a,
a.button {
  width: auto;
  min-height: 42px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--copper-dark);
  border: 0;
  border-radius: 7px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

input[type='submit']:hover,
input[type='button']:hover,
button[type='submit']:hover,
.buttoncaption a:hover,
a.button:hover {
  background: var(--copper);
}

p.s2d {
  margin: 0 0 12px;
  color: var(--copper-dark);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.5rem;
  font-weight: 700;
}

p.s2dsmall,
a.s2dsmall,
a.s2dinfo {
  font-size: 0.86rem;
}

p.h,
table.formtab td.h {
  color: #a32323;
  font-weight: 700;
}

.site-footer {
  color: #d8d0c5;
  background: #101723;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  padding: 28px clamp(22px, 4vw, 52px);
  text-align: center;
  font-size: 0.82rem;
}

.footer-inner a {
  color: #f2d7ad;
}

@media (max-width: 820px) {
  .site-shell {
    width: min(calc(100% - 20px), var(--content-width));
    margin: 10px auto;
    border-radius: 16px;
  }

  .header-inner {
    min-height: 88px;
    padding: 16px 20px;
  }

  .brand-copy small {
    display: none;
  }

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

  .main-navigation {
    display: none;
    padding: 8px 16px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  body.nav-open .main-navigation {
    display: flex;
  }

  .main-navigation a {
    min-height: 44px;
    justify-content: flex-start;
    border-bottom-width: 1px;
  }

  .hero {
    min-height: 265px;
  }

  .hero-decoration {
    right: -90px;
  }

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

  .sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 580px) {
  .brand-mark {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .rabbit-ear {
    top: 7px;
    height: 25px;
  }

  .rabbit-ear-left {
    left: 15px;
  }

  .rabbit-ear-right {
    right: 15px;
  }

  .rabbit-head {
    left: 13px;
    bottom: 6px;
    width: 22px;
    height: 21px;
  }

  .nav-toggle-label {
    display: none;
  }

  .hero {
    min-height: 235px;
    padding: 44px 24px;
  }

  .hero-intro {
    margin-top: 16px;
  }

  .page-layout {
    padding: 20px;
    gap: 22px;
  }

  .sidebar {
    grid-template-columns: 1fr;
  }

  .content-card {
    padding: 24px 20px;
    border-radius: 14px;
  }

  .page-content .sidepicture {
    width: 100%;
    margin: 4px 0 18px;
    float: none;
  }

  form.formular .formcaption {
    width: auto;
    padding: 8px 0 4px;
    float: none;
  }

  form.formular .formnote {
    padding-left: 0;
  }

  table.formtab,
  table.formtab tbody,
  table.formtab tr,
  table.formtab td {
    width: 100%;
    display: block;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
