/* Global variables */
:root {
  --font-primary: "Roboto", sans-serif;
  --font-heading: "Roboto Slab", serif;
  --font-fallback: Arial, Helvetica, sans-serif;

  --surface: #ffffff;
  --border-color: #d8d8d8;
  --accent: #ffcc00;

  --text-default: #022b42;
  --text-muted: rgba(2, 43, 66, 0.7);
  --text-light: rgba(255, 255, 255, 0.7);
  --text-placeholder: #3c3c3b;

  --button-bg: #056892;
  --button-bg-hover: #044d6b;
  --button-bg-active: rgba(5, 104, 146, 0.9);
  --button-bg-light: rgba(5, 104, 146, 0.05);
  --button-bg-muted: rgba(5, 104, 146, 0.3);

  --bg-subtle: rgba(2, 43, 66, 0.03);
  --hover-bg: rgba(64, 65, 66, 0.1);
  --highlight-bg: #eaf6ff;

  --error: #c0392b;
  --error-bg: rgba(192, 57, 43, 0.06);
}

/* Roboto 400 */
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/roboto-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/roboto-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Roboto 600 */
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./assets/fonts/roboto-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./assets/fonts/roboto-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Roboto Slab 700 */
@font-face {
  font-family: "Roboto Slab";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./assets/fonts/roboto-slab-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Roboto Slab";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./assets/fonts/roboto-slab-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

button,
input,
select,
textarea {
  font: inherit;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 155%;
  background-color: var(--surface);
  color: var(--text-default);
}

p {
  margin: 0 0 8px;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 4px 0 8px;
  padding-left: 24px;
}

li {
  margin-bottom: 2px;
}

blockquote {
  margin: 12px 0;
  padding: 10px 14px;
  border-left: 3px solid var(--button-bg);
  background-color: var(--button-bg-light);
  color: var(--text-muted);
}

blockquote p {
  margin: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}

th {
  background-color: var(--bg-subtle);
  font-weight: 700;
  text-align: left;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
}

td {
  padding: 8px 12px;
  border: 1px solid var(--border-color);
}

tr:nth-child(even) td {
  background-color: var(--bg-subtle);
}

code {
  font-family: monospace;
  font-size: 0.875rem;
  background-color: var(--bg-subtle);
  padding: 1px 4px;
  border-radius: 3px;
}

a {
  color: var(--button-bg);
}

a:hover {
  color: var(--button-bg-hover);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}


/* Font styles */
.title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw + 1rem, 4rem);
  font-style: normal;
  font-weight: 700;
  line-height: 115%;
}

h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
  font-style: normal;
  font-weight: 700;
  line-height: 115%;
}

h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw + 0.75rem, 2.5rem);
  font-style: normal;
  font-weight: 700;
  line-height: 120%;
}

h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2vw + 0.75rem, 2rem);
  font-style: normal;
  font-weight: 700;
  line-height: 120%;
}

h4,
.heading-4 {
  font-family: var(--font-primary);
  font-size: 1.125rem;
  font-style: normal;
  font-weight: 700;
  line-height: 120%;
}


:focus-visible {
  outline: 2px solid var(--button-bg);
  outline-offset: 2px;
}

/* Shared layout */
.top-panel {
  width: 100%;
  padding: 24px 0;
}

.top-panel-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-logo {
  height: 54px;
  width: auto;
}

.panel-link {
  font-weight: 600;
  text-decoration: none;
}

.margin-content {
  max-width: 1296px;
  margin: 0 auto;
  padding: 0 16px;
}

.footer {
  background-color: var(--text-default);
  color: var(--surface);
  text-align: left;
}

.footer-container {
  max-width: 1296px;
  margin: 0 auto;
  padding: 48px 16px;
  display: flex;
  gap: 64px;
}

.footer-section {
  flex: 1;
}

.footer-title {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--text-light);
}

.footer-logos {
  display: flex;
  gap: 24px;
  align-items: center;
}

.footer-logo {
  height: 40px;
  width: auto;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 0.875rem;
  line-height: 145%;
  color: var(--surface);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .top-panel {
    padding: 12px 16px;
  }

  .panel-logo {
    height: 48px;
  }

  .footer-container {
    flex-direction: column;
    gap: 32px;
  }
}
