:root {
  /* Base font size */
  --font-base: 1rem;        /* 16px */

  /* Multipliers */
  --font-xs: calc(var(--font-base) * 0.75);   /* 12px */
  --font-sm: calc(var(--font-base) * 0.875);  /* 14px */
  --font-md: calc(var(--font-base) * 1);      /* 16px */
  --font-lg: calc(var(--font-base) * 1.125);  /* 18px */
  --font-xl: calc(var(--font-base) * 1.25);   /* 20px */
  --font-2xl: calc(var(--font-base) * 1.5);   /* 24px */
  --font-3xl: calc(var(--font-base) * 1.875); /* 30px */
  --font-4xl: calc(var(--font-base) * 2.25);  /* 36px */

  /* WCAG-aligned line heights */
  --lh-tight: 1.25;   /* Large headings only */
  --lh-snug: 1.35;    /* Headings */
  --lh-normal: 1.5;   /* WCAG minimum */
  --lh-relaxed: 1.6;  /* Body text (recommended) */
  --lh-loose: 1.75;   /* Small text / dense UI */


  /* Base color (do not use directly in UI) */
  --color-black: 0 0 0;

  /* Text colors */
  --color-text-primary:   rgba(var(--color-black), 0.87);
  --color-text-secondary: rgba(var(--color-black), 0.6);
  --color-text-muted:     rgba(var(--color-black), 0.45);
  --color-text-disabled:  rgba(var(--color-black), 0.3);

  /* Borders & dividers */
  --color-border-default: rgba(var(--color-black), 0.15);
  --color-border-subtle:  rgba(var(--color-black), 0.08);

  /* Backgrounds & overlays */
  --color-bg-subtle:      rgba(var(--color-black), 0.04);
  --color-overlay:        rgba(var(--color-black), 0.6);

  --hyperlink: #0000FF;

  --color-card-outline:  rgb(var(--color-black));
}


body {
  font-size: var(--font-md);
  line-height: 1.6;
}

small,
.small {
  font-size: var(--font-xs);
}

h1 {
  font-size: var(--font-4xl);
  line-height: var(--lh-tight);
}

h2 {
  font-size: var(--font-3xl);
  line-height: var(--lh-snug);
}

h3 {
  font-size: var(--font-2xl);
  line-height: var(--lh-snug);
}

h4 {
  font-size: var(--font-xl);
  line-height: var(--lh-normal);
}

h5 {
  font-size: var(--font-lg);
  line-height: var(--lh-normal);
}

h6 {
  font-size: var(--font-md);
  line-height: var(--lh-normal);
}

p,
li {
  font-size: var(--font-md);
}

button,
.btn {
  font-size: var(--font-sm);
}

input,
select,
textarea,
label {
  font-size: var(--font-sm);
}




.visually-hidden-focusable {
  position: absolute;
  top: 0;
  left: 0;

  padding: 0.5rem 1rem;

  background: #ffffff;
  color: #000000;
  border: 2px solid #000000;

  /* 🔴 Actually hide it */
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  overflow: hidden;
  white-space: nowrap;

  z-index: 1000;
}

/* ✅ Reveal on focus */
.visually-hidden-focusable:focus,
.visually-hidden-focusable:focus-visible {
  clip: auto;
  clip-path: none;
  height: auto;
  width: auto;
  overflow: visible;

  position: absolute;
  top: 1rem;
  left: 1rem;
}


#page-layout{
  padding: 3rem 1.5rem;
  display: grid;
  gap: 3rem;
  
}

#page-layout-nogap{
  padding: 3rem 1.5rem;
  display: grid;
  gap: 0rem;
  
}


/* ==============================
   Icon buttons
================================ */

.icon-button {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--primary-color, #0d6efd);
  background: transparent;
  color: var(--primary-color, #0d6efd);
  font-size: 1.25rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
}

.icon-button:hover:not(:disabled) {
  background: var(--primary-color, #0d6efd);
  color: #fff;
}

.icon-button:active:not(:disabled) {
  transform: scale(0.95);
}

.icon-button:focus-visible {
  outline: 2px solid var(--primary-color, #0d6efd);
  outline-offset: 2px;
}

.icon-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.icon-button--small {
  width: 1.75rem;
  height: 1.75rem;
  font-size: 1rem;
}
