/* Members (views/sw_members.templ), on swiss.css and sw-areas2.css. Paper's #79D1CC is lagoon, #DEF6F4 and #147A76
   its soft colour and text; #F3F1EC and #EEECE6 are Daybook's card. */

/* The first screen: 11 visits on lagoon (420px), the member's tabs and rows beside it. */
.swm-page__field {
  width: 420px;
}
.swm-page__main {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 36px 48px 40px;
}
.swm-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0 26px;
  border-bottom: 1px solid var(--db-edge-2);
  font-size: 15px;
  line-height: 20px;
  color: var(--db-fg-3);
}
.swm-tabs span {
  padding-bottom: 12px;
}
.swm-tabs .swm-tabs--on {
  margin-bottom: -1px;
  border-bottom: 2px solid var(--db-fg);
  color: var(--db-fg);
  font-weight: 600;
}
.swm-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-block: 18px;
  border-bottom: 1px solid var(--db-edge-2);
}
.swm-row:last-child {
  border-bottom: 0;
}
.swm-row__l {
  flex-shrink: 0;
  width: 110px;
  font-size: 15px;
  line-height: 20px;
  color: var(--db-fg-3);
}
.swm-row__m {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  font-size: 18px;
  line-height: 24px;
}
.swm-row__m .sx-mute,
.swm-row__e .sx-mute {
  font-size: 14px;
  line-height: 20px;
}
.swm-row__e {
  display: flex;
  justify-content: end;
  flex-shrink: 0;
  width: 120px;
}
@media (max-width: 860px) {
  .swm-page__field {
    width: auto;
  }
  .swm-page__main {
    padding: 24px;
  }
  .swm-row {
    flex-wrap: wrap;
    gap: 4px 16px;
  }
  .swm-row__l {
    width: 100%;
  }
  .swm-row__e {
    width: auto;
  }
}

/* 01: the account page: its address, the business on lagoon (360px), six cells with a button each. */
.swm-acct {
  overflow: clip;
  background: var(--db-raised);
  border: 1px solid var(--db-edge-2);
  border-radius: 14px;
}
.swm-acct__body {
  display: flex;
}
.swm-acct__side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  flex-shrink: 0;
  width: 360px;
  padding: 40px;
  background: var(--db-field);
  color: var(--db-field-ink);
}
.swm-acct__side > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.swm-acct__big {
  font-size: 48px;
  letter-spacing: -0.035em;
  line-height: 50px;
}
.swm-acct__say {
  font-size: 16px;
  line-height: 22px;
}
.swm-acct__grid {
  display: grid;
  flex: 1;
  grid-template-columns: repeat(3, 1fr);
  min-width: 0;
}
.swm-acct__grid li {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  min-width: 0;
  padding: 32px;
  border-left: 1px solid var(--db-edge-2);
}
.swm-acct__grid li:nth-child(3n + 1) {
  border-left: 0;
}
.swm-acct__grid li:nth-child(-n + 3) {
  border-bottom: 1px solid var(--db-edge-2);
}
.swm-acct__grid p {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  line-height: 20px;
}
.swm-acct__v {
  font-size: 21px;
  letter-spacing: -0.015em;
  line-height: 28px;
}
.swm-acct .sx-pill {
  padding-block: 8px;
}
.swm-acct .sx-pill--ink {
  padding-block: 9px;
}
@media (max-width: 1100px) {
  .swm-acct__body {
    flex-direction: column;
  }
  .swm-acct__side {
    width: auto;
  }
}
@media (max-width: 700px) {
  .swm-acct__grid {
    grid-template-columns: 1fr;
  }
  .swm-acct__grid li,
  .swm-acct__grid li:nth-child(-n + 3) {
    border-left: 0;
    border-bottom: 1px solid var(--db-edge-2);
  }
  .swm-acct__grid li:last-child {
    border-bottom: 0;
  }
}

/* 02: three segments, a ruled list each under an ink rule; a lagoon code at the foot of the last. */
.swm-segs {
  border-color: var(--db-edge-2);
}
.sx-strip.swm-segs > li {
  gap: 0;
  padding: 0;
  border-color: var(--db-edge-2);
}
.swm-seg__head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px 32px 24px;
  border-bottom: 1px solid var(--db-fg);
}
.swm-seg__t {
  font-size: clamp(26px, 1.2rem + 0.8vw, 32px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.125;
}
.swm-seg__by {
  justify-content: start;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
}
.sw-page .swm-people {
  padding: 0 32px 12px;
}
.swm-people li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-block: 18px;
  border-bottom: 1px solid var(--db-edge-2);
}
.swm-people li:last-child {
  border-bottom: 0;
}
.swm-people li > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  font-size: 14px;
  line-height: 20px;
}
.swm-people__plan {
  font-size: 17px;
  line-height: 22px;
}
.swm-av {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--db-field-soft);
  color: var(--db-field-text);
  font-size: 13px;
  font-weight: 600;
  line-height: 16px;
}
.sw-page .swm-code {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 32px 28px;
  padding: 12px 14px;
  background: var(--db-field);
  color: var(--db-field-ink);
  font-size: 14px;
  line-height: 20px;
}
.swm-code b {
  font-size: 15px;
  font-weight: 600;
}

/* 03: documents: three cells, the first on lagoon. */
.sx-strip.swm-docs {
  border-color: var(--db-edge-2);
}
.sx-strip.swm-docs > li {
  justify-content: space-between;
  gap: 40px;
  padding: 36px;
  border-color: var(--db-edge-2);
}
.sx-strip > .swm-docs__gate {
  background: var(--db-field);
  color: var(--db-field-ink);
}
.swm-say .sx-say__t {
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 28px;
}
.swm-say {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 15px;
  line-height: 21px;
}
.swm-docs__gate .swm-say {
  color: var(--db-field-ink);
}
.swm-ticket {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: var(--db-raised);
  border: 1.5px solid var(--db-fg);
  color: var(--db-fg);
  font-size: 14px;
  line-height: 20px;
}
.swm-ticket > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.swm-ticket__class {
  font-family: var(--font-db-serif), serif;
  font-size: 28px;
  line-height: 34px;
}
.swm-ticket__ask {
  padding-top: 12px;
  border-top: 1px solid var(--db-edge-2);
  font-size: 15px;
  line-height: 21px;
}
.swm-ticket .sx-pill {
  padding: 10px 18px;
  font-size: 15px;
  line-height: 20px;
}
.swm-waiver {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  background: var(--db-bg);
  border: 1px solid var(--db-edge-2);
}
.swm-waiver .sx-split {
  align-items: baseline;
}
.swm-waiver__brand {
  font-family: var(--font-db-serif), serif;
  font-size: 18px;
  line-height: 24px;
}
.swm-waiver__t {
  font-size: 20px;
  letter-spacing: -0.01em;
  line-height: 26px;
}
.swm-waiver__text {
  font-size: 13px;
  line-height: 19px;
}
.swm-sign {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 6px;
}
.swm-sign__line {
  display: flex;
  align-items: end;
  height: 51px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--db-fg);
  box-shadow: 0 5px 0 -4px var(--db-fg);
  margin-bottom: 4px;
}
.swm-rules {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-top: 4px;
  font-size: 14px;
  line-height: 20px;
}
.swm-rules > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.swm-seg3 {
  display: flex;
  border: 1px solid var(--db-fg);
}
.swm-seg3 span {
  flex: 1 1 0;
  min-width: 0;
  padding-block: 9px;
  text-align: center;
}
.swm-seg3 span + span {
  border-left: 1px solid var(--db-fg);
}
.swm-seg3 .swm-seg3--on {
  background: var(--db-inverse);
  color: var(--db-on-inverse);
  font-weight: 600;
}
.swm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.swm-chips .sx-tag {
  padding: 6px 10px;
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
}

/* 04: the tiles. */
.swm-tiles .sx-say__t {
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 32px;
}
.swm-tiles .sx-say {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.swm-family {
  display: flex;
  flex-direction: column;
  padding: 6px 18px;
  background: var(--db-field);
  color: var(--db-field-ink);
  font-size: 14px;
  line-height: 20px;
}
.swm-family p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-block: 10px;
  border-bottom: 1px solid color-mix(in srgb, var(--db-field-ink) 25%, transparent);
}
.swm-family p:last-child {
  border-bottom: 0;
}
.swm-family p > :first-child {
  font-size: 15px;
}
.swm-family b {
  font-weight: 600;
}
.swm-levels,
.swm-boxes,
.swm-report,
.swm-data {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}
.swm-levels {
  gap: 12px;
}
.swm-levels .sx-line {
  padding-bottom: 0;
  padding-top: 10px;
}
.swm-levels__bar {
  display: flex;
  gap: 6px;
}
.swm-levels__bar span {
  flex: 1 1 0;
  height: 10px;
  background: var(--db-field);
}
.swm-levels__bar .swm-levels--off {
  background: var(--db-card);
}
.swm-boxes p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--db-edge-2);
}
.swm-boxes .swm-boxes--on {
  background: var(--db-field-soft);
  border-color: transparent;
  color: var(--db-field-text);
}
.swm-boxes b {
  font-weight: 600;
}
.swm-mail {
  border: 1px solid var(--db-edge-2);
}
.swm-mail p {
  display: flex;
  gap: 10px;
  padding: 10px 14px;
}
.swm-mail p + p {
  border-top: 1px solid var(--db-edge-2);
}
.swm-mail p > :first-child {
  flex-shrink: 0;
  width: 58px;
}
.swm-report__bar {
  display: flex;
  height: 34px;
  font-size: 13px;
  font-weight: 600;
  line-height: 16px;
}
.swm-report__bar span {
  display: flex;
  align-items: center;
  padding-left: 10px;
  white-space: nowrap;
}
.swm-report__site {
  width: 71%;
  background: var(--db-field);
  color: var(--db-field-ink);
}
.swm-report__desk {
  flex: 1;
  background: var(--db-inverse);
  color: var(--db-on-inverse);
}
.swm-report .sx-line {
  padding-bottom: 0;
  padding-top: 10px;
}
.swm-data p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--db-edge-2);
  color: var(--db-fg-3);
  font-size: 15px;
  line-height: 20px;
}
.swm-data .swm-data--on {
  border-color: var(--db-fg);
  color: var(--db-fg);
  font-weight: 500;
}

/* 05: the small list in each coloured column. */
.swm-list {
  display: flex;
  flex-direction: column;
  background: var(--db-raised);
  border: 1.5px solid var(--db-fg);
  color: var(--db-fg);
  font-size: 14px;
  line-height: 20px;
}
.swm-list p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--db-edge-2);
}
.swm-list p:last-child {
  border-bottom: 0;
}
.swm-list p > span:last-child {
  color: var(--db-fg-3);
}
.swm-list .swm-list__head {
  padding-block: 10px;
  border-bottom-color: var(--db-fg);
}
.swm-list__head b {
  font-size: 15px;
  font-weight: 600;
}
