/* DG checker: restrained panels, clear section rhythm, no added dependencies. */
@media screen {
.site-header {
  position: relative;
}

.workfile-tools {
  margin: 0;
  padding: 0;
}

.workfile-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

#workfile-open {
  min-height: 44px;
}

.workfile-actions button {
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid var(--ink);
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  text-align: left;
  white-space: normal;
  cursor: pointer;
}

.workfile-actions button:hover:not(:disabled) {
  background: var(--yellow-soft);
}

.workfile-actions button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--yellow);
}

.workfile-note,
.workfile-message {
  margin: 10px 0 0;
  max-width: 900px;
  color: #514d45;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.workfile-message:empty {
  margin-top: 0;
}

#workfile-preview {
  max-width: none;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #9b9589;
  border-left: 4px solid var(--ink);
  border-radius: 6px;
  background: #fff;
}

#workfile-preview > p {
  margin: 0 0 10px;
}

@media (min-width: 1041px) {
  .header-inner {
    column-gap: 20px;
  }

  .main-nav {
    min-width: 0;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 4px;
    margin-left: 0;
  }

  .main-nav a {
    min-height: 44px;
    padding-top: 8px;
    padding-bottom: 8px;
    padding-right: 7px;
    padding-left: 7px;
  }

  .privacy-badge {
    min-width: 0;
    flex: 0 1 230px;
    white-space: normal;
  }
}

.hero {
  padding-top: 42px;
}

.hero h1 {
  max-width: 100%;
  font-size: clamp(28px, 3.3vw, 46px);
  line-height: 1.04;
}

.hero h1 span {
  color: var(--ink);
  -webkit-text-stroke: 0;
  font-size: 0.7em;
  letter-spacing: 0.045em;
}

.hero-support-row > p {
  max-width: 760px;
  font-size: 16px;
  line-height: 1.65;
}

.legal-stamp {
  box-shadow: 6px 6px 0 var(--yellow);
  transform: none;
}

.editor,
.helper-panel,
#results-content {
  border: 1px solid #a5a094;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgb(11 11 10 / 5%);
}

.editor:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--yellow), 0 6px 20px rgb(11 11 10 / 5%);
}

.editor-scope {
  padding: 14px 22px;
  background: #fffae6;
}

.editor textarea {
  padding: 26px;
  background: #fffefa;
  font-size: 18px;
  line-height: 1.65;
}

.editor textarea::placeholder {
  color: #716c62;
}

.editor-footer {
  padding: 16px 22px;
  background: #f8f6f0;
}

.editor-actions {
  gap: 14px;
}

.editor-actions .text-button,
.editor-resize-button {
  min-height: 40px;
}

.legal-principles {
  gap: 14px;
  margin-top: 20px;
}

.principle-card {
  padding: 20px 18px;
  border-color: var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.principle-card > span {
  border-width: 1px;
  border-radius: 6px;
  background: var(--yellow-soft);
}

.principle-card p {
  font-size: 13px;
  line-height: 1.55;
}

.helper-panel {
  margin-top: 32px;
  padding: 30px;
}

.helper-heading {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.helper-heading h2,
.result-heading h2 {
  font-size: clamp(25px, 2.7vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.question-grid {
  gap: 20px;
}

.field select {
  border-color: #9b9589;
  border-radius: 6px;
  background: #fffefa;
}

.field-hint {
  font-size: 12px;
}

.audience-explainer,
.advanced-context,
.annotated-panel {
  border-color: var(--line);
  border-radius: 8px;
}

.audience-explainer summary,
.advanced-context summary,
.annotated-panel summary {
  border-radius: 8px;
}

.audience-explainer summary small,
.advanced-context summary small,
.annotated-panel summary small {
  line-height: 1.5;
}

.check-card {
  min-width: 0;
  padding: 17px 15px;
  border-radius: 7px;
  background: #fff;
}

.check-card strong {
  line-height: 1.35;
}

.check-card small {
  margin-top: 5px;
  line-height: 1.5;
}

.check-card:focus-within {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

.empty-results {
  border-width: 1px;
  border-radius: 12px;
  background: #fffdf8;
}

.empty-results h2 {
  font-size: clamp(25px, 2.7vw, 34px);
  line-height: 1.15;
}

.result-totals {
  overflow: hidden;
  border-radius: 8px;
  background: #fbfaf6;
}

.result-totals strong {
  font-variant-numeric: tabular-nums;
}

.result-toolbar {
  margin-top: 26px;
  padding: 18px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f6f0;
}

.result-toolbar .filter-cluster,
.result-toolbar .report-actions {
  min-width: 0;
}

.result-toolbar .filter-button {
  min-height: 42px;
  border-radius: 6px;
}

.result-toolbar .category-filter {
  flex-wrap: wrap;
}

.result-toolbar .report-actions {
  justify-content: flex-end;
  gap: 8px;
}

.result-toolbar .report-actions button {
  min-height: 42px;
}

.issue-list {
  gap: 18px;
}

.case-card,
.issue-card {
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 9px;
  background: #fffdf9;
  box-shadow: 0 3px 10px rgb(11 11 10 / 3%);
}

.case-summary,
.issue-summary {
  padding: 22px;
}

.case-title,
.issue-title {
  font-size: 19px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.case-claim-text,
.issue-summary-text {
  line-height: 1.6;
}

.case-details {
  border-top: 1px solid var(--line);
}

.case-toggle-symbol,
.issue-toggle-symbol {
  flex-shrink: 0;
  border-width: 1px;
}

@media (max-width: 1040px) {
  .result-toolbar .report-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .hero {
    padding-top: 28px;
  }

  .hero-intro {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero h1 {
    font-size: clamp(22px, 6.6vw, 36px);
  }

  .editor-scope,
  .editor-footer {
    padding: 15px;
  }

  .editor textarea {
    padding: 18px 15px;
    font-size: 17px;
  }

  .helper-panel,
  #results-content {
    padding: 22px 15px;
  }

  .helper-heading {
    gap: 14px;
  }

  .question-grid {
    gap: 17px;
  }

  .checklist-fieldset {
    padding: 18px 12px 14px;
  }

  .result-toolbar {
    padding: 14px 12px;
    gap: 16px;
  }

  .result-toolbar .report-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .result-toolbar .category-filter select {
    min-width: 0;
    max-width: 100%;
  }

  .case-summary,
  .issue-summary {
    padding: 17px 13px;
    gap: 10px;
  }

  .case-title,
  .issue-title {
    font-size: 17px;
  }

  .issue-card-nested .issue-summary {
    padding: 15px 12px;
  }
}
}
