/* AI Personal Tutor Toolkit
   Consistent site frame + calmer documentation defaults

   Design rules:
   - Every page uses the same outer site width and the same nav frame.
   - The homepage may have a larger hero and visual cards, but it sits in the same frame.
   - Standard pages use a document layout inside that frame: readable text measure, left aligned.
   - Menu pages keep a two-column scan layout inside the same frame.
   - Tools/examples pages can use wider tables or examples without changing the outer frame.
*/

:root {
  --bg: #f8f6f1;
  --paper: #fffefa;
  --panel: #ffffff;
  --ink: #24292f;
  --muted: #59636e;
  --line: #e3ddd2;
  --line-strong: #d2c8b8;
  --accent: #245a73;
  --accent2: #9d563b;
  --soft: #eef5f7;
  --warn: #fff7e5;
  --shadow: 0 14px 34px rgba(31, 41, 51, 0.08);
  --radius: 16px;
  --site-width: 1120px;
  --measure: 700px;
  --page-gutter: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.68;
  background: var(--bg);
  color: var(--ink);
  text-align: left;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* One universal site frame. Header, homepage, menu pages, standard pages and footer all use this. */
.container,
.reading {
  width: min(var(--site-width), calc(100% - (var(--page-gutter) * 2)));
  max-width: var(--site-width);
  margin-left: auto;
  margin-right: auto;
}

a {
  color: var(--accent);
  font-weight: 620;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}
a:not(.button) { text-decoration: underline; }
a:hover,
a:focus { text-decoration-thickness: 0.12em; }
a:focus-visible,
.button:focus-visible {
  outline: 3px solid rgba(36, 90, 115, 0.32);
  outline-offset: 3px;
}

/* Site header and nav: identical frame on every page. */
header:not(.page-intro) {
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
}

.brand {
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font-weight: 760;
  letter-spacing: -0.015em;
  text-decoration: none;
  flex: 0 0 auto;
}
.brand small {
  color: var(--muted);
  font-weight: 520;
  letter-spacing: 0;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px 15px;
  margin: 0;
  padding: 0;
}
nav a {
  color: var(--ink);
  font-weight: 650;
  font-size: 0.94rem;
  text-decoration: none;
}

/* Default documentation layout. The page frame is wide and consistent; prose has a readable measure. */
main { padding: 0; }

.reading {
  padding: 24px 0 48px;
}

.reading > * {
  max-width: var(--measure);
}

/* Page titles and standfirsts need more room than sustained body prose. */
.reading > .page-intro {
  max-width: min(900px, 100%);
}
.page-intro > * {
  max-width: min(900px, 100%);
}

.reading section > * {
  max-width: var(--measure);
}

/* Allow genuinely wide content to use the full common site frame. */
.reading table,
.reading .table-wrap,
.reading .wide,
.reading .grid,
.reading .btn-row,
.reading .button-row,
.reading .actions,
.reading pre {
  max-width: 100%;
}

.page-intro {
  padding: 0 0 16px;
  margin: 0 0 22px;
  border: 0;
  position: static;
  background: transparent;
  backdrop-filter: none;
}
.page-intro h1 { margin-top: 0; }
.page-intro .lead { margin-bottom: 0; }

.reading section { margin: 0 0 24px; }
.reading section + section { margin-top: 24px; }

h1, h2, h3 { color: #1f252b; }

h1 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1.18;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.08rem, 1.35vw, 1.18rem);
  line-height: 1.32;
  margin: 28px 0 7px;
  letter-spacing: 0;
  font-weight: 650;
}

h3 {
  font-size: 1.01rem;
  line-height: 1.36;
  margin: 20px 0 5px;
  font-weight: 650;
}

p {
  margin: 0 0 0.9rem;
  max-width: var(--measure);
}
li { margin: 0.25rem 0; }
ul, ol {
  margin: 0.45rem 0 1rem;
  padding-left: 1.35rem;
}
.lead {
  font-size: 1.02rem;
  line-height: 1.62;
  color: var(--muted);
  max-width: 66ch;
}
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent2);
  font-weight: 720;
  font-size: 0.73rem;
  margin-bottom: 5px;
}
.tag,
.guide-label {
  display: inline-block;
  width: fit-content;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent2);
  font-weight: 720;
  font-size: 0.73rem;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.055em;
}

/* Old visual block classes become plain by default. */
.panel,
.card,
.example-note {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  margin: 0 0 20px;
}
.card { display: block; }
.card h3,
.resource-item h3 { margin-top: 0; }
.card p,
.small,
.small-note,
.table-note { color: var(--muted); }
.grid,
.grid.two { display: block; }

/* Editorial callouts: visible, but not card-heavy. */
.notice,
.warning {
  background: var(--warn);
  border: 0;
  border-left: 4px solid #d7aa4e;
  border-radius: 0;
  box-shadow: none;
  padding: 0.75rem 0.95rem;
  margin: 1.1rem 0 1.35rem;
  max-width: var(--measure);
}
.notice p:last-child,
.warning p:last-child { margin-bottom: 0; }

/* Contents/subnav blocks. */
.toc,
.subnav,
.on-this-page {
  border-left: 3px solid var(--line-strong);
  padding: 0.25rem 0 0.25rem 0.9rem;
  margin: 1rem 0 1.45rem;
  background: transparent;
  max-width: var(--measure);
}
.toc ul,
.subnav ul,
.on-this-page ul {
  margin: 0.25rem 0 0;
  padding-left: 1.1rem;
}

blockquote,
.sample-output {
  margin: 1rem 0;
  padding: 0.75rem 0.95rem;
  background: rgba(255, 255, 255, 0.5);
  border: 0;
  border-left: 4px solid var(--accent);
  border-radius: 0;
  color: #374151;
  max-width: var(--measure);
}
.sample-output { border-left-color: var(--accent2); }

/* Buttons */
.btn-row,
.button-row,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 680;
  border: 1px solid var(--accent);
  text-decoration: none;
  line-height: 1.25;
}
.button:hover { text-decoration: none; filter: brightness(0.97); }
.button.secondary { background: #fff; color: var(--accent); }
.button.ghost { background: transparent; color: var(--ink); border-color: var(--line); }

hr { border: 0; margin: 1.2rem 0; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
}
th,
td {
  text-align: left;
  padding: 9px 11px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th { background: #f0ede6; font-weight: 680; }
tr:last-child td { border-bottom: 0; }

code {
  background: #eee7dc;
  padding: 2px 5px;
  border-radius: 5px;
  font-size: 0.94em;
}
pre {
  background: #19202a;
  color: #f8fafc;
  padding: 15px;
  border-radius: 9px;
  overflow: auto;
}

/* Keep code inside copy/test blocks readable.
   The global inline-code rule gives <code> a pale background; without this
   reset, text inside dark <pre><code> blocks can become hard to read. */
pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
}

/* Source-material copy boxes: readable, scrollable and user-resizable.
   These boxes may contain long source packs, so they should not expand to the
   full document height by default. */
.source-copy-box {
  margin-top: 14px;
  height: 260px;
  min-height: 150px;
  max-height: 70vh;
  overflow: auto;
  resize: vertical;
  white-space: pre;
  box-sizing: border-box;
}
.source-copy-box code {
  display: block;
  background: transparent !important;
  color: inherit !important;
  padding: 0 !important;
  border-radius: 0 !important;
  font-size: inherit !important;
  line-height: inherit;
  white-space: pre;
}

.footer {
  padding: 34px 0 50px;
  color: var(--muted);
}
.footer-links { margin-top: 8px; }
.footer-links a { color: var(--accent); }

.list-clean { padding-left: 1.2rem; }
.steps li { margin-bottom: 0.65rem; }
.checklist { columns: 2; column-gap: 2rem; }
.panel table a { white-space: nowrap; }
.card ul { margin-top: 0; }
.example-label {
  font-weight: 700;
  color: var(--accent);
  margin-top: 12px;
}
.muted { color: var(--muted); font-weight: 600; }
.resource-item { padding-top: 10px; margin-top: 10px; }

/* Compact hero for internal pages that still use the old hero pattern. Same container width as everything else. */
.hero { padding: 24px 0 12px; }
.hero-grid { display: block; }
.hero .container { text-align: left; }

/* Menu pages: two-column scan pattern inside the same universal site frame. */
body.menu .hero { padding: 24px 0 12px; }
body.menu main > .container { margin-bottom: 44px; }
body.menu .grid,
body.menu .grid.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
body.menu .panel { margin: 0; }
body.menu .card,
body.menu .guide-card {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(227, 221, 210, 0.95);
  border-radius: 11px;
  box-shadow: none;
  padding: 14px 16px;
  margin: 0;
}
body.menu .card h2,
body.menu .card h3,
body.menu .guide-card h2,
body.menu .guide-card h3 {
  font-size: 1.02rem;
  line-height: 1.3;
  margin: 0 0 5px;
  letter-spacing: -0.004em;
  font-weight: 660;
}
body.menu .card p,
body.menu .guide-card p {
  font-size: 0.96rem;
  line-height: 1.55;
  margin-bottom: 10px;
  color: var(--muted);
}
body.menu .button {
  padding: 6px 9px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 650;
  background: transparent;
  color: var(--accent);
  border-color: var(--line);
}
body.menu .button:hover { background: rgba(255, 255, 255, 0.55); }

/* Reference pages such as Tools and Examples: same outer frame, wide tables/examples when useful. */
body.reference .reading table,
body.reference .reading .notice {
  max-width: 100%;
}
body.reference .reading .notice p,
body.reference .reading .notice h2 {
  max-width: var(--measure);
}

/* Homepage exception: larger visual front door inside the same universal site frame. */
body.home .hero { padding: 56px 0 30px; }
body.home .hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: stretch;
}
body.home h1 {
  font-size: clamp(2.1rem, 5vw, 4.5rem);
  line-height: 1.08;
  margin: 0 0 16px;
  letter-spacing: -0.018em;
  font-weight: 720;
}
body.home h2 {
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  margin: 0 0 12px;
  letter-spacing: -0.005em;
  line-height: 1.2;
  font-weight: 680;
}
body.home .lead { font-size: 1.16rem; max-width: 780px; }
body.home .panel,
body.home .card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
body.home .panel { padding: 24px; margin: 20px 0; }
body.home .card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}
body.home .card h3 { margin-top: 0; }
body.home .card p { color: var(--muted); }
body.home .card .actions { margin-top: auto; }
body.home .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
body.home .grid.two { grid-template-columns: repeat(2, 1fr); }
body.home .tag {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent);
  font-weight: 740;
  font-size: 0.82rem;
  margin-bottom: 12px;
  text-transform: none;
  letter-spacing: 0;
}
body.home .notice {
  background: var(--warn);
  border: 1px solid #f0d99b;
  border-radius: var(--radius);
  padding: 24px;
}



/* Reference pages keep body prose readable, but tables and table sections can use the full site frame. */
body.reference .reading > section {
  max-width: 100%;
}
body.reference .reading > section > table,
body.reference .reading > section > .table-wrap,
body.reference .reading > section > .wide {
  max-width: 100%;
}
body.reference .reading > section > p,
body.reference .reading > section > h2,
body.reference .reading > section > h3,
body.reference .reading > section > ul,
body.reference .reading > section > ol,
body.reference .reading > section > blockquote {
  max-width: var(--measure);
}

/* Mobile */
@media (max-width: 860px) {
  header:not(.page-intro) { position: static; }
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }
  nav ul { justify-content: flex-start; }
  body.home .hero-grid,
  body.home .grid,
  body.home .grid.two,
  body.menu .grid,
  body.menu .grid.two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root { --page-gutter: 14px; }
  body { font-size: 16px; line-height: 1.65; }
  .container,
  .reading {
    width: calc(100% - (var(--page-gutter) * 2));
  }
  .reading { padding-top: 22px; }
  .hero { padding: 20px 0 12px; }
  h1 { font-size: clamp(1.62rem, 8vw, 2.05rem); }
  h2 { font-size: 1.06rem; }
  .checklist { columns: 1; }
}

/* Accessible heading refinement: keep strong hierarchy while reducing tight headline spacing. */
h1 {
  letter-spacing: -0.01em;
  font-weight: 700;
  line-height: 1.18;
}
h2 {
  letter-spacing: 0;
  font-weight: 650;
  line-height: 1.32;
}
body.home h1 {
  letter-spacing: -0.018em;
  font-weight: 720;
  line-height: 1.08;
}
body.home h2 {
  letter-spacing: -0.005em;
  font-weight: 680;
  line-height: 1.2;
}

/* Navigation refresh */
nav a.active,
nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.24em;
}

/* Collapsed table catalogue and task chooser. */
.accordion-list {
  display: grid;
  gap: 18px;
  max-width: 100%;
}
.tool-section {
  background: transparent;
  border: 0;
  border-radius: 16px;
  padding: 0;
  max-width: 100%;
}
.tool-section > summary {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  padding: 18px 20px;
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
  line-height: 1.25;
  font-weight: 740;
  color: var(--ink);
  list-style: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,250,253,0.96));
  border: 1px solid var(--line-strong, var(--line));
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}
.tool-section > summary::-webkit-details-marker { display: none; }
.tool-section > summary::before {
  content: "▸";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25em;
  height: 1.25em;
  flex: 0 0 auto;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  font-size: 0.78em;
  line-height: 1;
}
.tool-section[open] > summary::before { content: "▾"; }
.tool-section > summary:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.tool-section > summary:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.32);
  outline-offset: 3px;
}
.tool-section > summary span { flex: 1; }
.tool-section > summary small {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
  white-space: nowrap;
}
.tool-section[open] {
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid var(--line);
  padding-bottom: 14px;
}
.tool-section[open] > summary {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  box-shadow: none;
}
.tool-section > p,
.tool-section .section-note {
  margin: 14px 18px 10px;
  color: var(--muted);
  max-width: var(--measure);
}
.tool-table-wrap {
  margin: 0 18px 4px;
  overflow-x: auto;
}
table.tool-table {
  width: 100%;
  min-width: 760px;
  margin: 0;
  border-collapse: collapse;
  background: var(--panel);
  table-layout: auto;
}
table.tool-table th,
table.tool-table td {
  vertical-align: top;
}
table.tool-table th {
  font-size: 0.88rem;
  letter-spacing: 0.01em;
}
table.tool-table td {
  font-size: 0.95rem;
  line-height: 1.5;
}
table.tool-table .code-col {
  width: 5rem;
  white-space: nowrap;
}
table.tool-table .links-col {
  min-width: 12rem;
}
table.tools-catalog-table {
  min-width: 980px;
}
table.tools-catalog-table th:nth-child(2),
table.tools-catalog-table .code-col {
  width: 5rem;
}
table.tools-catalog-table th:nth-child(1),
table.tools-catalog-table .tool-col {
  width: 20%;
}
table.tools-catalog-table th:nth-child(3),
table.tools-catalog-table td:nth-child(3) {
  width: auto;
}
table.tools-catalog-table th:nth-child(4),
table.tools-catalog-table .links-col {
  width: 16.5rem;
  min-width: 16.5rem;
}
.tool-code {
  color: var(--accent2);
  font-weight: 760;
}
.compact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.compact-link,
a.compact-link {
  display: inline-block;
  padding: 2px 6px;
  border: 1px solid var(--line-strong, var(--line));
  border-radius: 999px;
  font-size: 0.78rem;
  line-height: 1.35;
  font-weight: 650;
  text-decoration: none;
  background: rgba(255,255,255,0.74);
  white-space: nowrap;
}
.compact-link.download-tool {
  color: var(--accent);
  background: transparent;
}
.download-card .button.small-button:not(.secondary) {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.button.small-button,
body.menu .button.small-button {
  padding: 4px 7px;
  border-radius: 7px;
  font-size: 0.82rem;
  line-height: 1.2;
  font-weight: 650;
}
.button.download-tool {
  background: transparent;
  color: var(--accent);
  border-color: var(--line-strong, var(--line));
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 100%;
}
.tool-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: none;
  max-width: 100%;
}
.tool-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  line-height: 1.35;
}
.tool-card p {
  font-size: 0.96rem;
  line-height: 1.55;
  margin-bottom: 0.65rem;
}
.tool-actions {
  gap: 7px;
  margin-top: 10px;
}

/* Home layout tune only: keep the existing text and warning structure, but avoid oversized boxes with empty right-hand space. */
body.home .panel:not(#downloads) {
  max-width: var(--measure);
}
body.home .panel.notice {
  max-width: var(--measure);
}
body.home #downloads {
  max-width: 100%;
}
.try-it-callout {
  border-left: 5px solid var(--accent);
}
.try-it-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.try-it-option {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}
.try-it-option h2,
.try-it-option h3 {
  margin-top: 0;
}
.external-note {
  color: var(--muted);
  font-size: 0.94rem;
}



/* Site design pass: full-width home panels and calmer generated page layouts. */
body.home .panel,
body.home .panel:not(#downloads),
body.home .panel.notice {
  max-width: 100%;
}
body.home #try-it-home {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
}
body.home #try-it-home h2 { margin-bottom: 0; }
body.home #try-it-home .btn-row { margin: 0; }
body.reference.tools-catalogue .reading > section.accordion-list,
body.reference.start-page .reading > section.accordion-list {
  max-width: 100%;
}
body.reference.tools-catalogue .page-intro,
body.reference.start-page .page-intro,
body.reference.download-page .page-intro,
body.reference.try-it-page .page-intro {
  max-width: 100%;
}
body.reference.tools-catalogue .page-intro > *,
body.reference.start-page .page-intro > *,
body.reference.download-page .page-intro > *,
body.reference.try-it-page .page-intro > * {
  max-width: min(900px, 100%);
}
body.reference.tools-catalogue .page-intro .small-note {
  max-width: 100%;
}

table.tools-catalog-table,
table.start-table {
  table-layout: fixed;
}
table.tools-catalog-table {
  min-width: 1120px;
}
table.tools-catalog-table .col-code { width: 5.25rem; }
table.tools-catalog-table .col-tool { width: 18rem; }
table.tools-catalog-table .col-links { width: 19rem; }
table.tools-catalog-table .col-use { width: auto; }
table.start-table {
  min-width: 980px;
}
table.start-table .col-recommended { width: 31%; }
table.start-table .col-links { width: 17rem; }
table.start-table .col-why { width: auto; }
table.tool-table td,
table.tool-table th {
  overflow-wrap: normal;
  word-break: normal;
}
table.tool-table td:nth-child(2),
table.tool-table td:nth-child(3) {
  overflow-wrap: anywhere;
}
.links-col .compact-links {
  min-width: max-content;
}

.try-it-options-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.try-it-page .try-it-option p:last-child { margin-bottom: 0; }
.download-page .download-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.download-page .download-card {
  border-top: 5px solid var(--accent);
}
.download-page .download-card:nth-child(3n+2) { border-top-color: var(--accent2); }
.download-page .download-card:nth-child(3n) { border-top-color: #8a5a13; }
.download-page .download-libraries {
  padding-top: 20px;
}
@media (max-width: 860px) {
  .tool-grid, .try-it-options, .try-it-options-three, .download-page .download-grid { grid-template-columns: 1fr; }
  table.tool-table { min-width: 780px; }
  table.tools-catalog-table { min-width: 1120px; }
  table.start-table { min-width: 980px; }
  .tool-section > summary { padding: 16px; }
}


/* Site-width generated catalogue pages and responsive tables.
   These pages should use the same outer frame as Examples, not the full browser width. */
body.reference.tools-catalogue .reading,
body.reference.start-page .reading,
body.reference.download-page .reading {
  width: min(var(--site-width), calc(100% - (var(--page-gutter) * 2)));
  max-width: var(--site-width);
}
body.reference.tools-catalogue .tool-section,
body.reference.start-page .tool-section,
body.reference.download-page .tool-section,
body.reference.tools-catalogue .accordion-list,
body.reference.start-page .accordion-list,
body.reference.download-page .accordion-list,
body.reference.download-page .download-libraries,
body.reference.download-page #individual-tools {
  max-width: 100%;
  width: 100%;
}
body.reference.tools-catalogue .tool-table-wrap,
body.reference.start-page .tool-table-wrap {
  overflow: visible;
  margin: 0 18px 4px;
  max-width: calc(100% - 36px);
}
body.reference.tools-catalogue table.tool-table,
body.reference.start-page table.tool-table {
  min-width: 0;
  width: 100%;
  table-layout: auto;
}
body.reference.tools-catalogue table.tools-catalog-table .col-code { width: 5.25rem; }
body.reference.tools-catalogue table.tools-catalog-table .col-tool { width: 22%; }
body.reference.tools-catalogue table.tools-catalog-table .col-links { width: 18rem; }
body.reference.tools-catalogue table.tools-catalog-table .col-use { width: auto; }
body.reference.start-page table.start-table .col-recommended { width: 28%; }
body.reference.start-page table.start-table .col-links { width: 14rem; }
body.reference.start-page table.start-table .col-why { width: auto; }
body.reference.tools-catalogue table.tool-table td,
body.reference.start-page table.tool-table td {
  overflow-wrap: normal;
  word-break: normal;
}
body.reference.tools-catalogue table.tool-table .use-col,
body.reference.start-page table.tool-table .why-col,
body.reference.start-page table.start-table td:nth-child(2) {
  overflow-wrap: anywhere;
}
body.reference.tools-catalogue .links-col .compact-links,
body.reference.start-page .links-col .compact-links {
  min-width: 0;
  white-space: normal;
}

@media (max-width: 900px) {
  body.reference.tools-catalogue .reading,
  body.reference.start-page .reading,
  body.reference.download-page .reading {
    width: calc(100% - 24px);
    max-width: var(--site-width);
  }
  body.reference.tools-catalogue .tool-table-wrap,
  body.reference.start-page .tool-table-wrap {
    margin: 0 12px 4px;
    max-width: calc(100% - 24px);
    overflow: visible;
  }
  body.reference.tools-catalogue table.tool-table,
  body.reference.start-page table.tool-table,
  body.reference.tools-catalogue table.tools-catalog-table,
  body.reference.start-page table.start-table {
    min-width: 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
  }
  body.reference.tools-catalogue table.tool-table thead,
  body.reference.start-page table.tool-table thead {
    display: none;
  }
  body.reference.tools-catalogue table.tool-table tbody,
  body.reference.start-page table.tool-table tbody,
  body.reference.tools-catalogue table.tool-table tr,
  body.reference.start-page table.tool-table tr,
  body.reference.tools-catalogue table.tool-table td,
  body.reference.start-page table.tool-table td {
    display: block;
    width: 100% !important;
  }
  body.reference.tools-catalogue table.tool-table tr,
  body.reference.start-page table.tool-table tr {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    margin: 0 0 12px;
    overflow: hidden;
  }
  body.reference.tools-catalogue table.tool-table td,
  body.reference.start-page table.tool-table td {
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 10px 12px;
    white-space: normal;
  }
  body.reference.tools-catalogue table.tool-table td:last-child,
  body.reference.start-page table.tool-table td:last-child {
    border-bottom: 0;
  }
  body.reference.tools-catalogue table.tool-table td::before,
  body.reference.start-page table.tool-table td::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.01em;
    margin-bottom: 2px;
  }
  body.reference.tools-catalogue .links-col .compact-links,
  body.reference.start-page .links-col .compact-links {
    align-items: flex-start;
  }
}

