@font-face {
  font-family: Ysabeau;
  src: url(ysabeau.woff2) format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap
}

:root {
  --ink: #352217;
  --muted: #6b5647;
  --paper: #eee5d8;
  --sand: #e3d4c1;
  --border: #c6b197;
  --gold: #997547;
  --white: #fff;
  --focus: #814e0e;
  --success: #3b604c;
  --error: #8f302b;
  --radius: 6px
}

* {
  box-sizing: border-box
}

html {
  color-scheme: light;
  scroll-padding-top: 1rem
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 500 1.0625rem/1.46 Ysabeau, Arial, sans-serif;
  font-variant-numeric: lining-nums tabular-nums
}

h1,
h2,
h3,
p {
  margin-top: 0
}

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.1;
  text-wrap: balance
}

h1 {
  font-size: clamp(2.2rem, 4.1vw, 3.9rem)
}

h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.45rem)
}

h3 {
  font-size: 1.3rem
}

a {
  color: inherit;
  text-underline-offset: .21em
}

a:hover {
  color: #784f29
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px
}

button,
summary {
  cursor: pointer
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .62rem 1.15rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: white;
  text-decoration: none;
  font-weight: 650;
  line-height: 1.25
}

button:hover,
.button:hover {
  color: white;
  background: #513526
}

button:disabled {
  opacity: .55;
  cursor: default
}

.button.secondary,
button.secondary {
  background: white;
  border-color: var(--border);
  color: var(--ink)
}

input:not([type=checkbox], [type=radio], [type=hidden]),
select,
textarea {
  min-width: 0;
  max-width: 100%;
  padding: .59rem .76rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 5px
}

input[type=checkbox],
input[type=radio] {
  accent-color: var(--ink)
}

label {
  display: inline-block
}

img {
  max-width: 100%;
  height: auto
}

figure {
  margin: 0
}

.wrap {
  width: min(92%, 86rem);
  margin-inline: auto
}

.panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1rem, 2.5vw, 2rem)
}

.muted,
small {
  color: var(--muted)
}

.field {
  display: grid;
  gap: .32rem
}

.sr-only,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap
}

.skip:focus {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  padding: .6rem;
  background: white
}

.site-header {
  border-bottom: 2px solid var(--gold);
  background: white
}

.header-row,
.header-actions,
.public-nav,
.portal-head {
  display: flex;
  align-items: center
}

.header-row {
  min-height: clamp(4.5rem, 7.4vw, 6.6rem);
  justify-content: space-between;
  gap: 2rem
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0
}

.brand img {
  width: clamp(6.2rem, 10.1vw, 9rem);
  display: block
}

.public-nav,
.header-actions,
.footer-info nav {
  gap: clamp(1rem, 4.8vw, 5rem)
}

.public-nav a,
.header-actions>a,
.footer-info nav a,
.portal-nav a,
.portal-basket {
  text-decoration: none
}

.public-nav a {
  font-weight: 650
}

.header-actions {
  gap: clamp(1rem, 4vw, 4rem)
}

.mobile-menu {
  display: none;
  position: relative
}

.mobile-menu summary {
  list-style: none
}

.mobile-menu summary::-webkit-details-marker {
  display: none
}

.site-footer {
  display: flex;
  align-items: flex-start;
  gap: clamp(2rem, 8vw, 9rem);
  border-top: 1px dashed var(--border);
  padding-block: 2.3rem;
  margin-top: 3rem
}

.footer-info {
  flex: 1
}

.footer-info nav {
  display: flex;
  flex-wrap: wrap
}

.footer-info small {
  display: block;
  margin-top: 1rem
}

.service-page {
  padding-block: clamp(3rem, 7vw, 9rem)
}

.notices p {
  background: white;
  border-left: 3px solid var(--gold);
  padding: .6rem 1rem;
  margin: 1rem 0
}

.errorlist {
  color: var(--error)
}

.portal-head {
  background: white;
  border-bottom: 2px solid var(--gold);
  gap: clamp(.7rem, 3vw, 3rem);
  padding: 1rem clamp(1rem, 2.4vw, 2.2rem)
}

.portal-head .brand img {
  width: clamp(5.8rem, 8.4vw, 7.6rem)
}

.identity {
  display: grid;
  gap: .1rem;
  margin-right: auto
}

.identity small {
  font-size: .92rem
}

.contract-switch {
  display: flex;
  gap: .4rem
}

.contract-switch button,
.portal-meta button {
  background: transparent;
  color: var(--ink);
  border-color: var(--border)
}

.portal-shell {
  display: grid;
  grid-template-columns: clamp(10rem, 15.3vw, 14rem) minmax(0, 1fr);
  min-height: calc(100vh - 6rem)
}

.portal-aside {
  background: var(--sand);
  padding: 1.3rem .9rem;
  display: flex;
  flex-direction: column
}

.portal-nav {
  display: grid;
  gap: .3rem
}

.portal-nav a {
  padding: .74rem .95rem;
  border-radius: 6px
}

.portal-nav a[aria-current],
.portal-nav a:hover {
  background: white;
  color: var(--ink)
}

.portal-meta {
  margin-top: auto;
  padding: 1rem .8rem
}

.portal-meta small {
  display: block;
  margin-bottom: .6rem
}

.portal-body {
  padding: clamp(1.2rem, 2.75vw, 3rem);
  min-width: 0
}

.portal-body h1 {
  font-size: clamp(2rem, 3vw, 2.85rem)
}

.portal-body table {
  font-variant-numeric: lining-nums tabular-nums
}

@media(max-width:840px) {
  .public-nav {
    display: none
  }

  .mobile-menu {
    display: block
  }

  .header-row {
    gap: .8rem;
    padding-block: .5rem
  }

  .mobile-menu summary {
    padding: .55rem .2rem
  }

  .mobile-menu nav {
    position: absolute;
    z-index: 5;
    right: 0;
    top: 2.5rem;
    min-width: 13rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: 0 8px 22px #3522171b
  }

  .mobile-menu a {
    display: block;
    padding: .68rem 1rem;
    text-decoration: none
  }

  .portal-shell {
    display: block
  }

  .portal-aside {
    display: block;
    padding: .48rem
  }

  .portal-nav {
    display: flex;
    gap: .15rem;
    overflow-x: auto
  }

  .portal-nav a {
    padding: .42rem .72rem;
    white-space: nowrap
  }

  .portal-meta {
    display: none
  }

  .portal-head {
    flex-wrap: wrap;
    gap: .6rem 1rem
  }

  .contract-switch {
    order: 4;
    width: 100%;
    align-items: center
  }

  .contract-switch select,
  .contract-switch button {
    padding: .32rem .6rem
  }

  .portal-body {
    padding-inline: max(4%, .75rem)
  }

  .site-footer {
    flex-wrap: wrap;
    gap: 1rem 2rem
  }

  .footer-info nav {
    gap: .6rem 1.5rem
  }

  .footer-info {
    min-width: min(100%, 20rem)
  }
}

@media(max-width:460px) {
  .header-row {
    min-height: 4.4rem
  }

  .header-row .brand img {
    width: 5.6rem
  }

  .header-actions {
    gap: .75rem;
    font-size: 1rem
  }

  .portal-head .identity {
    font-size: .95rem
  }

  .portal-head .identity small {
    font-size: .82rem
  }
}

@media(max-width:840px) {
  .portal-aside {
    display: none
  }

  .portal-mobile-menu nav {
    min-width: 14rem
  }

  .portal-mobile-menu form {
    padding: .5rem 1rem;
    border-top: 1px solid var(--border)
  }

  .portal-mobile-menu button {
    background: transparent;
    color: var(--ink);
    border: 0;
    padding: .45rem 0
  }

  .portal-head .identity {
    flex: 1;
    min-width: 3.8rem
  }

  .portal-head .brand img {
    width: 4.9rem
  }
}
