/* app/css/blocks.css — Directives and Components Styling
   Neo-brutalist redesign: 2px ink borders, --radius-sm, pastel fills, mono labels. */

:root,
[data-theme="dark"] {
  --tok-kw: var(--accent-rose);
  --tok-reg: var(--accent-sky);
  --tok-num: var(--accent-amber);
  --tok-str: var(--accent-emerald);
  --tok-com: var(--text-muted);
  --tok-dir: var(--accent-violet);
  --tok-lbl: var(--accent-coral);
  --tok-type: var(--accent-teal);
  --tok-fn: var(--accent-amber);
}

[data-theme="light"] {
  --tok-kw: var(--accent-rose);
  --tok-reg: var(--accent-sky);
  --tok-num: var(--accent-amber);
  --tok-str: var(--accent-emerald);
  --tok-com: var(--text-muted);
  --tok-dir: var(--accent-violet);
  --tok-lbl: var(--accent-coral);
  --tok-type: var(--accent-teal);
  --tok-fn: var(--accent-amber);
}

/* Syntax Token Colors (AA contrast) */
.t-kw { color: var(--tok-kw); font-weight: 600; }
.t-reg { color: var(--tok-reg); }
.t-num { color: var(--tok-num); }
.t-str { color: var(--tok-str); }
.t-com { color: var(--tok-com); font-style: italic; }
.t-dir { color: var(--tok-dir); font-weight: 600; }
.t-lbl { color: var(--tok-lbl); font-weight: 600; }
.t-type { color: var(--tok-type); }
.t-fn { color: var(--tok-fn); }

/* Code Blocks */
.code-block {
  background: var(--paper-2);
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm, 6px);
  box-shadow: var(--shadow-sm, 4px 4px 0 var(--ink));
  margin: 1.25rem 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border-subtle, rgba(128, 128, 128, 0.4)) transparent;
}

.code-block::-webkit-scrollbar,
.code-scroll::-webkit-scrollbar {
  height: 6px;
}

.code-block::-webkit-scrollbar-track,
.code-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.code-block::-webkit-scrollbar-thumb,
.code-scroll::-webkit-scrollbar-thumb {
  background: var(--border-subtle, rgba(128, 128, 128, 0.4));
  border-radius: 3px;
}

pre.code-block {
  padding: 0.75rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.5;
  white-space: pre;
}

.code-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.95rem;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
}

.code-title {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.code-lang {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.72rem;
}

.code-scroll {
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.code-pre {
  margin: 0;
  padding: 0.75rem 0;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.5;
}

.code-scroll code {
  counter-reset: line;
  /* Flex column: the "\n" text between block-level .code-line spans is whitespace-only,
     so it is not rendered (with display:block each "\n" became an extra blank line). */
  display: flex;
  flex-direction: column;
  min-width: max-content;
}

.code-line {
  display: block;
  padding: 0 0.5rem;
}

.code-line::before {
  counter-increment: line;
  content: counter(line);
  display: inline-block;
  width: 2.2em;
  margin-right: 1.2em;
  text-align: right;
  color: var(--text-muted);
  user-select: none;
  opacity: 0.65;
}

.code-line.is-hl {
  background: var(--subject-accent-soft);
  border-left: 3px solid var(--subject-accent);
  padding-left: calc(0.5rem - 3px);
}

/* Blockquotes: margin 12px 0, padding 4px 0 4px 12px, border-left 3px solid var(--ink) */
blockquote.md-quote,
.md-quote {
  margin: 12px 0;
  padding: 4px 0 4px 12px;
  border-left: 3px solid var(--ink);
}

.md-quote p {
  margin: 4px 0;
}

.md-quote p:first-child {
  margin-top: 0;
}

.md-quote p:last-child {
  margin-bottom: 0;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  max-width: 100%;
  margin: 1rem 0;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--border-subtle, rgba(128, 128, 128, 0.4)) transparent;
  background-image:
    linear-gradient(to left, var(--paper), transparent),
    radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, 0.28), transparent);
  background-repeat: no-repeat;
  background-position: right center, right center;
  background-size: 36px 100%, 16px 100%;
  background-attachment: local, scroll;
}

[data-theme="dark"] .table-wrap,
html[data-theme="dark"] .table-wrap {
  background-image:
    linear-gradient(to left, var(--paper), transparent),
    radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, 0.75), transparent);
}

.table-wrap::-webkit-scrollbar {
  height: 6px;
}

.table-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.table-wrap::-webkit-scrollbar-thumb {
  background: var(--border-subtle, rgba(128, 128, 128, 0.4));
  border-radius: 3px;
}

.math-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.math-table caption {
  text-align: left;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.math-table th,
.math-table td {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-subtle);
  min-width: 7em;
  max-width: 16em;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}

.math-table th code,
.math-table td code,
.math-table a {
  overflow-wrap: anywhere;
  word-break: break-all;
}

.math-table th {
  background: var(--paper-2);
  font-weight: 700;
  color: var(--ink);
}

.math-table tbody tr:nth-child(even) {
  background: var(--bg-elevated);
}

/* Compare Table (Responsive Stack below 480px) */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.compare-table th,
.compare-table td {
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border-subtle);
  vertical-align: top;
}

.compare-table th {
  background: var(--bg-surface);
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
}

@media (max-width: 480px) {
  .compare-table,
  .compare-table thead,
  .compare-table tbody,
  .compare-table tr,
  .compare-table th,
  .compare-table td {
    display: block;
  }
  .compare-table thead {
    display: none;
  }
  .compare-table tr {
    margin-bottom: 0.85rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.5rem 0.75rem;
  }
  .compare-table td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.45rem 0;
    border: none;
    border-bottom: 1px solid var(--border-subtle);
  }
  .compare-table td:last-child {
    border-bottom: none;
  }
  .compare-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-align: left;
    flex-shrink: 0;
  }
}

/* Trace Block */
.trace-block {
  margin: 1rem 0;
  max-width: 100%;
  box-sizing: border-box;
}

.trace-title {
  font-weight: 600;
}

.trace-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--fill-sage);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-pill);
  padding: 0.15rem 0.5rem;
  margin-left: 0.5rem;
}

.trace-table {
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

/* Reveal Controls & Stagger Animation */
.rv-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.rv-controls button,
.rv-controls .btn-primary,
.rv-controls .btn-secondary,
.rv-controls .icon-btn {
  min-height: 48px;
  box-sizing: border-box;
}

.rv-enter {
  animation: rvFadeIn var(--dur-normal) cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes rvFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rv-enter {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Mnemonic Callout */
.callout-mnemonic {
  background: var(--accent-amber-soft);
  border-left: 3px solid var(--accent-amber);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  max-width: 100%;
  box-sizing: border-box;
}

.callout-mnemonic .callout-title {
  font-weight: 700;
  color: var(--accent-amber);
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
}

.callout-mnemonic .callout-body {
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.5;
}

/* Regstate Grid */
.regstate {
  background: var(--paper-2);
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm, 6px);
  box-shadow: var(--shadow-sm, 4px 4px 0 var(--ink));
  padding: 0.75rem;
  margin: 1rem 0;
  max-width: 100%;
  box-sizing: border-box;
}

.rs-title {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.rs-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
}

.rs-group:last-child {
  margin-bottom: 0;
}

.rs-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.rs-cell.is-changed {
  background: var(--subject-accent-soft);
  border-color: var(--subject-accent-border);
}

.rs-name {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.rs-val {
  color: var(--text-primary);
  font-weight: 600;
}

/* Timing Diagram */
.timing-block {
  margin: 1rem 0;
  max-width: 100%;
  box-sizing: border-box;
}

.tm-svg {
  display: block;
  max-width: 100%;
  height: auto;
}

.tm-svg line,
.tm-svg path {
  stroke: currentColor;
}

.tm-svg text {
  fill: currentColor;
  font-family: var(--font-mono);
}

.tm-cycle text,
.tm-label,
.tm-muted {
  fill: var(--text-muted);
}

/* Pixel Grid */
.pixelgrid-block {
  margin: 1rem 0;
  max-width: 100%;
  box-sizing: border-box;
}

.pg-svg {
  display: block;
  max-width: 100%;
  height: auto;
}

rect.pg-cell {
  fill: transparent;
  stroke: var(--border-strong);
  stroke-width: 0.5;
}

rect.pg-on {
  fill: var(--subject-accent);
}

line.pg-ideal {
  stroke: var(--text-secondary);
  stroke-width: 1;
  stroke-dasharray: 2, 2;
}

text.pg-axis {
  fill: var(--text-muted);
  font-size: 9px;
  font-family: var(--font-mono);
  dominant-baseline: middle;
  text-anchor: middle;
}

/* Automaton */
.automaton-block {
  margin: 1rem 0;
  max-width: 100%;
  box-sizing: border-box;
}

.am-title {
  font-weight: 600;
}

.am-kind {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

.am-svg-wrap {
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  margin: 0.5rem 0;
}

.am-svg {
  display: block;
  max-width: 100%;
  height: auto;
}

.am-state circle {
  stroke: currentColor;
  fill: var(--bg-surface);
  stroke-width: 2;
}

.am-accept circle,
.am-state.am-accept circle {
  stroke: currentColor;
}
.am-state.am-accept circle + circle {
  stroke-width: 1.5;
}

.am-edge {
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.am-arrow {
  fill: currentColor;
  stroke: currentColor;
}

.am-start path,
.am-start-arrow,
path.am-start {
  stroke: var(--subject-accent);
  fill: var(--subject-accent);
}

.am-name {
  fill: currentColor;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  text-anchor: middle;
  dominant-baseline: central;
}

.am-label {
  fill: currentColor;
  font-size: 11px;
  font-family: var(--font-mono);
  text-anchor: middle;
  dominant-baseline: central;
}

.am-pill {
  fill: var(--bg-surface, var(--paper, #fff));
  stroke: none;
}

.am-label-bg {
  fill: var(--bg-canvas);
  rx: 3px;
  ry: 3px;
}

.am-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  margin: 0.75rem 0;
}

.am-table th,
.am-table td {
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 0.6rem;
  text-align: center;
}

.am-table th {
  background: var(--bg-surface);
  color: var(--text-secondary);
}

.am-checks {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.am-checks-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
}

.am-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-family: var(--font-mono);
}

.am-acc {
  background: var(--fill-sage);
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

/* A verified rejection is a pass, not an error: neutral, not red */
.am-rej {
  background: var(--paper-2);
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

.am-comp {
  background: var(--fill-sky);
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

/* Derivation Block */
.derivation-block {
  margin: 1rem 0;
  max-width: 100%;
  box-sizing: border-box;
}

.dv-title {
  font-weight: 600;
}

.dv-kind {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

.dv-grammar {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.6rem;
  margin: 0.5rem 0;
  overflow-x: auto;
}

.derivation {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
}

.derivation .rv-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border-subtle);
}

.derivation .rv-item:last-child {
  border-bottom: none;
}

.dv-arrow {
  color: var(--text-muted);
  width: 1.5em;
  flex-shrink: 0;
  text-align: center;
}

.dv-form {
  flex: 1;
  word-break: break-all;
}

.dv-nt {
  color: var(--subject-accent);
  font-weight: 600;
}

.dv-rule {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-left: auto;
  padding-left: 0.5rem;
  white-space: nowrap;
}

/* Parse Tree */
.parsetree-block {
  margin: 1rem 0;
  max-width: 100%;
  box-sizing: border-box;
}

.pt-svg {
  display: block;
  max-width: 100%;
  height: auto;
}

text.pt-node {
  fill: var(--subject-accent);
  font-weight: 600;
  font-size: 13px;
  font-family: var(--font-mono);
  dominant-baseline: central;
  text-anchor: middle;
}

text.pt-leaf {
  fill: var(--text-primary);
  font-size: 13px;
  font-family: var(--font-mono);
  dominant-baseline: central;
  text-anchor: middle;
}

line.pt-edge {
  stroke: var(--text-muted);
  stroke-width: 1.2;
}

/* Template */
.tpl {
  margin: 1.25rem 0;
  max-width: 100%;
  box-sizing: border-box;
}

.tpl-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.tpl-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}

.tpl-doc {
  background: var(--paper-2);
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm, 6px);
  box-shadow: var(--shadow-sm, 4px 4px 0 var(--ink));
  padding: 1.25rem;
  font-family: var(--font-serif);
  color: var(--ink);
  line-height: 1.65;
}

.tpl-part {
  margin-bottom: 1rem;
}

.tpl-part:last-child {
  margin-bottom: 0;
}

.tpl-label,
.tpl-note {
  display: none;
}

.tpl.is-structure .tpl-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--fill-butter);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-sm);
  padding: 0.15rem 0.4rem;
  margin-bottom: 0.35rem;
}

.tpl.is-structure .tpl-note {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  padding-left: 0.5rem;
  border-left: 2px solid var(--subject-accent-border);
}

.tpl-text {
  font-size: 0.95rem;
}

.tpl-text p {
  margin: 0 0 0.5rem 0;
}

.tpl-text p:last-child {
  margin-bottom: 0;
}

/* Deeply nested model documents in solution steps below 600px:
   Containers nested three or more levels deep lose side borders and horizontal padding. */
@media (max-width: 600px) {
  .step-item .tpl,
  .solution-box .tpl,
  .example-card .step-item .tpl,
  .exercise-card .step-item .tpl {
    margin: 0.75rem 0;
  }

  .step-item .tpl-doc,
  .solution-box .tpl-doc,
  .example-card .step-item .tpl-doc,
  .exercise-card .step-item .tpl-doc {
    border-top: none;
    border-right: none;
    border-bottom: none;
    border-left: 3px solid var(--subject-accent, var(--ink));
    border-radius: 0;
    box-shadow: none;
    padding-left: 8px;
    padding-right: 0;
    padding-top: 6px;
    padding-bottom: 6px;
    background: var(--paper-2);
  }

  .step-item .tpl-part,
  .solution-box .tpl-part,
  .example-card .step-item .tpl-part,
  .exercise-card .step-item .tpl-part {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Citation Card */
.citation-card {
  background: var(--paper-2);
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm, 6px);
  box-shadow: var(--shadow-sm, 4px 4px 0 var(--ink));
  padding: 1rem;
  margin: 1rem 0;
  max-width: 100%;
  box-sizing: border-box;
}

.cite-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.cite-style {
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-mono);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.cite-ref {
  padding-left: 2em;
  text-indent: -2em;
  line-height: 1.6;
  font-family: var(--font-serif);
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  word-break: break-word;
}

.cite-forms {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 0.75rem;
  font-size: 0.85rem;
  margin: 0;
}

.cite-forms dt {
  color: var(--text-muted);
  font-weight: 600;
}

.cite-forms dd {
  margin: 0;
  color: var(--text-secondary);
}

/* Grammar Card */
.grammar-card {
  background: var(--paper-2);
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm, 6px);
  box-shadow: var(--shadow-sm, 4px 4px 0 var(--ink));
  padding: 1rem;
  margin: 1rem 0;
  max-width: 100%;
  box-sizing: border-box;
}

.gr-head {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.gr-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.gr-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem;
}

.gr-wrong {
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.gr-wrong::before {
  content: "✗ ";
  color: var(--accent-coral);
  font-weight: 700;
}

.gr-fix {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-subtle);
}

.gr-right {
  margin: 0 0 0.25rem 0;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.gr-right::before {
  content: "✓ ";
  color: var(--accent-emerald);
  font-weight: 700;
}

.gr-rule {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-style: italic;
}

/* Interactive Demo Block */
.demo-block {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: 1rem;
  background: var(--bg-surface);
  margin: 1rem 0;
  max-width: 100%;
  box-sizing: border-box;
}

.demo-head {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.demo-error {
  color: var(--accent-coral);
  background: var(--accent-coral-soft);
  border: 1px solid var(--accent-coral-border);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
  font-size: 0.82rem;
  margin-top: 0.5rem;
}

/* Block Error Box */
.block-error {
  background: var(--accent-coral-soft);
  border: 1px solid var(--accent-coral-border);
  color: var(--accent-coral);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  margin: 1rem 0;
  font-size: 0.88rem;
  font-family: var(--font-mono);
  line-height: 1.4;
  max-width: 100%;
  box-sizing: border-box;
}

.block-error strong {
  color: var(--accent-coral);
}

/* Common SVG Scroll Wrapper */
.svg-scroll {
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}
