:root {
  --bg: #f6f8fa;
  --card: #fff;
  --accent: #0067c5;
  --muted: #6b7280;

  --spacing: 0.25rem;
}

* {
  box-sizing: border-box;
}

body {
  /* center the page content between the fixed header/footer */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;

  font-family: Inter, ui-sans-serif, system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: #111;
  margin: 0;
  padding: 24px;
  /* reserve space for the fixed classification bars */
  padding-top: calc(24px + 32px);
  padding-bottom: calc(24px + 32px);
}

main {
  display: grid;
}

.classification {
  display: block;
  unicode-bidi: isolate;
  text-align: center;

  color: #fff;
  font-size: 16px;
  left: 0;
  right: 0;
  flex-shrink: 0;
  background: #c62828;
  z-index: 20;
  font-weight: 400;
  padding: calc(var(--spacing) * 0);
  -webkit-font-smoothing: antialiased;
  height: calc(var(--spacing) * 8);

  position: fixed;

  font-weight: bold;
}

header.classification { top: 0 }
footer.classification { bottom: 0 }

.container {
  max-width: 760px;
  margin: 0 auto;
  background: var(--card);
  padding: calc(var(--spacing)*4);
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(2, 6, 23, 0.06);
}

h1 {
  margin: 0 0 14px;
  font-size: 20px;
}

button {
  background: var(--accent);
  color: #fff;
  border: 0;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.notes {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.notes code {
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Prevent horizontal overflow on narrow screens */
h1,
.notes {
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
  min-width: 0;
}

.feedback {
  margin-top: 12px;
}

.feedback button {
  width: 100%;
  background: #e5e7eb;
  color: #111;
  border: 1px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.feedback button svg {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
  flex-shrink: 0;
}

/* Desktop / wider screens: place container to the right and keep buttons matching container width */
@media (min-width: 48rem) {
    main {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .container {
    /* make sure container doesn't grow too wide but can be pushed to the right */
    width: min(760px, 94%);
    grid-column: 3/5;        /* or use negative indices: grid-column: -2 / -1; */
  }
}

/*
@media (min-width: 64rem) {
  main {
    max-width: 64rem;
  }
}

@media (min-width: 40rem) {
  main {
    max-width: 40rem;
  }
}
*/