/* Page frame: colors, header, tabs, forms, and buttons. */

/* Colors are taken from the studio palette. No extra font file is loaded. */

:root {
  --navy: #0d2246;
  --teal: #006383;
  --green: #397269;
  --mist: #b2d1cf;
  --sand: #d9c8b2;
  --tan: #e2c69e;
  --apricot: #e19863;
  --orange: #d56136;
  --brown: #561506;
  --red: #d63725;
  --yellow: #e1b453;
  --page: #e5e5e5;
  --paper: #f7f6f4;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Adwaita Sans", "Segoe UI", sans-serif;
  color: var(--navy);
  background: var(--page);
  line-height: 1.4;
}

.top {
  background: var(--navy);
  color: #fff;
  padding: 1.4rem 0 0;
}

.top-inner {
  width: min(1400px, calc(100% - 1.5rem));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 1rem;
}

.top h1 {
  display: inline-block;
  order: 1;
  margin: 0;
  padding-bottom: 0.45rem;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  border-bottom: 3px solid #017e89;
}

.top h1 span { color: var(--sand); }

.top-inner > p {
  order: 3;
  flex: 1 0 100%;
  margin: 0.55rem 0 0;
  color: var(--mist);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.account {
  order: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
  margin: 0 0 0 auto;
}

.account p {
  margin: 0;
  color: var(--tan);
  font-size: 0.95rem;
  font-weight: 500;
}

.account button {
  color: var(--sand);
  background: transparent;
  border: 1px solid var(--sand);
}

.site-foot {
  width: min(1400px, calc(100% - 1.5rem));
  margin: 1.6rem auto 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
  color: var(--brown);
  font-size: 0.8rem;
}

.site-foot p { margin: 0; }

.site-foot a { color: var(--teal); }

.account button:hover {
  color: var(--apricot);
  background: transparent;
  border-color: var(--apricot);
}

main {
  flex: 1 0 auto;
  width: min(1400px, calc(100% - 1.5rem));
  margin: 1.2rem auto 2rem;
}

.tabs {
  order: 4;
  flex: 1 0 100%;
  display: flex;
  align-items: end;
  gap: 0.15rem;
  margin: 0.8rem 0 0;
  border-bottom: 1px solid var(--sand);
}

.tabs button {
  color: var(--tan);
  background: transparent;
  border: 0;
  border-radius: 14px 14px 0 0;
  min-height: 3rem;
  padding: 0.8rem 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.tabs button:hover {
  color: var(--apricot);
  background: transparent;
}

.tabs button:focus {
  outline: none;
}

.tabs button[aria-selected="true"],
.tabs button[aria-selected="true"]:hover {
  color: var(--brown);
  background: #f8f1e6;
  margin-bottom: -1px;
}

.panel {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: end;
  max-width: 760px;
  background: var(--paper);
  border: 1px solid var(--sand);
  border-radius: 16px;
  padding: 1rem;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 650;
  flex: 1 1 10rem;
}

input, select {
  font: inherit;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--mist);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  min-height: 2.8rem;
  width: 100%;
}

input[readonly] { background: var(--paper); }

.password-field {
  position: relative;
  display: block;
}

.password-field input { padding-right: 4.8rem; }

.password-field button {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  min-height: 2.1rem;
  padding: 0 0.7rem;
  color: var(--teal);
  background: transparent;
  border-radius: 8px;
}

.password-field button:hover {
  color: var(--navy);
  background: var(--sand);
}

input[type="checkbox"] {
  width: 1.15rem;
  min-height: 1.15rem;
  padding: 0;
}

input:focus, select:focus {
  outline: 3px solid var(--teal);
  border-color: var(--teal);
}

select {
  appearance: none;
  cursor: pointer;
  padding-right: 2.5rem;
  background-image: url("/static/select-chevron.svg");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 0.75rem;
}

select:invalid { color: #3d5274; }

label.wide { flex: 1 1 100%; }

button {
  font: inherit;
  font-weight: 650;
  color: #fff;
  background: var(--teal);
  border: 0;
  border-radius: 10px;
  min-height: 2.8rem;
  padding: 0.65rem 1.2rem;
  cursor: pointer;
}

button:hover { background: #017e89; }
button:focus { outline: 3px solid var(--navy); }
button:disabled { opacity: 0.6; cursor: wait; }

.message {
  margin: 0.9rem 0 0;
  max-width: 760px;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--red);
  color: var(--red);
}

.message.ok {
  border-color: var(--green);
  color: var(--green);
}
