/* Shared static content pages. Uses the same ENGRAI tokens as the landing page. */
.interior-page { display: flex; flex-direction: column; min-height: 100dvh; }
.interior-main { flex: 1; padding-block: 28px 88px; }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; color: var(--text-muted); font-size: 11px; }
.breadcrumbs a { min-height: 44px; display: inline-flex; align-items: center; }
.breadcrumbs a:hover { color: var(--primary-icon); }
.page-heading { padding-block: 38px 46px; border-bottom: 1px solid var(--line); margin-bottom: 44px; }
.page-heading h1 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.13; letter-spacing: -.04em; margin-block: 16px 20px; }
.page-heading .page-description { max-width: 650px; color: var(--text-muted); font-size: 17px; line-height: 1.7; }
.page-heading .page-meta { font-size: 12px; color: var(--text-muted); }
.header-nav [aria-current="page"], .landing-footer [aria-current="page"] { color: var(--primary-icon); }
.article-layout { display: grid; grid-template-columns: minmax(0,1fr); gap: 32px; }
.page-toc { padding: 0 18px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.page-toc summary { padding-block: 16px; cursor: pointer; font-weight: 750; font-size: 13px; }
.page-toc nav { padding-bottom: 16px; }
.page-toc nav > .eyebrow { display: none; }
.page-toc ol { list-style: none; padding: 0; margin: 0; }
.page-toc li + li { margin-top: 4px; }
.page-toc a { display: block; padding: 10px 12px; border-left: 1px solid var(--line); font-size: 12px; line-height: 1.5; color: var(--text-muted); }
.page-toc a:hover { color: var(--primary-icon); border-color: var(--accent); background: var(--accent-wash); }
.page-toc .related-links { padding-top: 16px; border-top: 1px solid var(--line); }
.article { min-width: 0; color: var(--text-muted); font-size: 15px; line-height: 1.85; }
.article > :first-child { margin-top: 0; }
.article p { margin-block: 0 20px; }
.article hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.article h2 { margin-block: 48px 18px; color: var(--foreground); font-size: 27px; line-height: 1.3; letter-spacing: -.025em; }
.article h3 { margin-block: 30px 14px; color: var(--foreground); font-size: 19px; line-height: 1.45; }
.article h4, .article h5, .article h6 { margin-block: 24px 12px; color: var(--foreground); font-size: 16px; }
.article ul, .article ol { padding-left: 24px; margin-block: 16px 24px; }
.article li { padding-left: 4px; margin-bottom: 10px; }
.article li p { margin-bottom: 8px; }
.article li::marker { color: var(--primary-icon); }
.article strong, .article b { color: var(--foreground); font-weight: 750; }
.article a, .faq-answer a, .contact-aside p a, .form-notice a { color: var(--primary-icon); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.article a:hover, .faq-answer a:hover { color: var(--foreground); }
.article blockquote { padding: 20px 24px; border: 1px solid var(--accent-line); border-left: 3px solid var(--accent); background: var(--accent-wash); border-radius: 0 var(--r-md) var(--r-md) 0; margin: 28px 0; }
.article blockquote p:last-child { margin-bottom: 0; }
.article code { background: var(--surface-2); padding: 2px 5px; border-radius: 4px; color: var(--foreground); overflow-wrap: anywhere; }
.article pre { margin-block: 20px 28px; padding: 22px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-md); overflow-x: auto; line-height: 1.8; font-size: 12px; }
.article pre code { padding: 0; background: transparent; border-radius: 0; font-size: inherit; color: var(--primary-icon); white-space: pre; overflow-wrap: normal; }
.table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; margin-block: 24px 32px; border: 1px solid var(--line); border-radius: var(--r-md); scrollbar-width: thin; }
.article table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 12px; line-height: 1.65; text-align: left; }
.article th, .article td { padding: 14px 16px; vertical-align: top; border-bottom: 1px solid var(--line); }
.article th { color: var(--primary-icon); background: var(--surface-2); font-weight: 800; }
.article tr:last-child td { border-bottom: 0; }
.article td { background: var(--surface); }
.article td p, .article th p { margin: 0; }
.article td strong { font-weight: 650; }
.article th strong { color: inherit; }
.article table code { padding: 0; background: transparent; }
.article-end { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 48px; display: flex; justify-content: space-between; gap: 20px; }
.article-end a { font-size: 12px; min-height: 44px; display: inline-flex; align-items: center; }
.faq-layout, .contact-layout { display: grid; grid-template-columns: minmax(0,1fr); gap: 32px; }
.help-card { border: 1px solid var(--line); border-radius: var(--r-md); padding: 28px; background: linear-gradient(145deg, var(--accent-wash), transparent 70%), var(--surface); }
.help-card h2 { margin-top: 16px; font-size: 30px; }
.help-card p:not(.eyebrow) { margin-top: 20px; color: var(--text-muted); font-size: 14px; line-height: 1.8; }
.help-card .text-link { margin-top: 16px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 4px; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--primary-icon); font-size: 24px; font-weight: 400; flex: none; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list summary h2 { font-size: 18px; line-height: 1.55; letter-spacing: -.015em; font-weight: 750; }
.faq-list summary:hover h2, .faq-list details[open] summary h2 { color: var(--primary-icon); }
.faq-answer { padding: 0 28px 28px 4px; color: var(--text-muted); font-size: 15px; line-height: 1.85; }
.faq-answer p + p { margin-top: 16px; }
.contact-email { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; margin-top: 16px; color: var(--primary-icon); font-size: 14px; font-weight: 750; overflow-wrap: anywhere; }
.help-card p.small-copy { font-size: 12px; }
.community-links {
    display: flex !important;
    flex-direction: row !important;
    gap: 16px !important;           
    align-items: center !important;
    margin-top: 20px !important;
}
.community-links a:hover, .community-links a:focus-visible { color: var(--primary-icon); }
/* 1. Core structural geometry bounds for the icon layer */
.community-icon {
    display: inline-block !important;
    width: 24px !important;
    height: 24px !important;
    background-color: var(--social-color, currentColor);
    -webkit-mask-image: var(--social-icon) !important;
    mask-image: var(--social-icon) !important;
    -webkit-mask-size: contain !important;
    mask-size: contain !important;
    -webkit-mask-repeat: no-repeat !important;
    mask-repeat: no-repeat !important;
    -webkit-mask-position: center !important;
    mask-position: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

.icon-discord { --social-icon: url('../assets/social-discord.svg'); --social-color: #5865f2; }
.icon-github { --social-icon: url('../assets/social-github.svg'); --social-color: #ffffff; }
.icon-huggingface { --social-icon: url('../assets/social-huggingface.svg'); --social-color: #ffd21e; }
.icon-linkedin { --social-icon: url('../assets/social-linkedin.svg'); --social-color: #0a66c2; }


.community-arrow { margin-left: auto; }
.contact-form { padding: 32px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.contact-form h2 { margin-bottom: 28px; font-size: 24px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { min-width: 0; margin-bottom: 24px; }
.form-field label { display: block; margin-bottom: 9px; font-size: 12px; font-weight: 750; color: var(--foreground); }
.form-field input, .form-field textarea { display: block; width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); color: var(--foreground); font-size: 16px; }
.form-field textarea { resize: vertical; min-height: 180px; }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--text-muted); opacity: 1; }
.form-field :is(input,textarea):focus-visible { outline-offset: 3px; }
.field-hint { margin-top: 9px; color: var(--text-muted); font-size: 11px; }
.botcheck { display: none; }
.form-notice { font-size: 11px; line-height: 1.8; color: var(--text-muted); margin-bottom: 24px; }
.status-panel { padding: 40px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.status-panel img { margin-bottom: 20px; }
.status-panel p { color: var(--text-muted); }
.status-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 28px; }
@media (max-width: 1000px) {
  .field-pair { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 720px) {
  .interior-main { padding-block: 16px 56px; }
  .page-heading { padding-block: 28px 30px; margin-bottom: 28px; }
  .page-heading h1 { font-size: 36px; line-height: 1.15; }
  .page-heading .page-description { font-size: 15px; }
  .article-layout, .faq-layout, .contact-layout { grid-template-columns: 1fr; gap: 28px; }
  .article { font-size: 14px; }
  .article h2 { font-size: 24px; margin-top: 38px; }
  .article h3 { font-size: 18px; }
  .article pre { padding: 16px; }
  .article blockquote { padding: 18px; }
  .faq-list summary h2 { font-size: 17px; }
  .faq-answer { font-size: 14px; padding-right: 8px; }
  .contact-form { padding: 24px 20px; }
  .status-panel { padding: 28px; }
}
@media print {
  .site-header, .landing-footer, .breadcrumbs, .page-toc, .article-end { display: none; }
  .interior-page { background: white; color: black; }
  .wrap { width: 100%; }
  .article-layout { display: block; }
  .page-heading, .article, .article h2, .article h3, .article strong { color: black; }
  .table-scroll { overflow: visible; }
  .article table { min-width: 0; }
  .article th, .article td { color: black; background: white; }
  .article a { color: black; }
  .article pre { white-space: pre-wrap; }
}
