/* Shared refinements for the multilingual site. */
:root { --aqua: #55e8dd; --panel-border: #354859; }
html { scroll-behavior: smooth; }
.site-header { background: #0d111a; border-bottom-color: #2a3341; }
.site-header nav a { padding: .45rem .12rem; border-bottom: 2px solid transparent; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: #8df4eb; border-bottom-color: #55e8dd; }
.button, .discovery-links a, .template-card, .plugin-card, .feature { transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease; }
.button:focus-visible, .site-header a:focus-visible, summary:focus-visible { outline: 3px solid #8df4eb; outline-offset: 4px; }
.button.primary { box-shadow: 0 .5rem 1.8rem #02bfb51f; }
.template-card:focus-within, .plugin-card:focus-within, .discovery-links a:focus-visible { border-color: var(--aqua); box-shadow: 0 0 0 2px #55e8dd35; }
.catalog-controls input:focus, .catalog-controls select:focus { border-color: var(--aqua); outline: 2px solid #55e8dd55; outline-offset: 1px; }
.docs { line-height: 1.7; }
.docs section { scroll-margin-top: 1.25rem; }
.docs .shot { margin-block: 1.4rem; }
.docs .shot img { width: 100%; height: auto; }
.docs .shot figcaption { line-height: 1.5; }
.guide-block .steps li { margin-bottom: .85rem; }
.guide-block .note { border-radius: 0 .55rem .55rem 0; padding: 1rem 1.15rem; }
@media (max-width: 850px) {
  .site-header .bar { row-gap: .2rem; }
  .site-header nav { gap: .55rem 1rem; }
}
@media (max-width: 600px) {
  .site-header nav { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding: .1rem 0 .3rem; scrollbar-width: thin; }
  .site-header nav a { flex: 0 0 auto; font-size: .83rem; }
  .site-footer .bar { flex-wrap: wrap; padding-block: 1rem; }
  .home h1 { overflow-wrap: anywhere; }
  .template-top { align-items: flex-start; }
  .template-top > div { min-width: 0; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .discovery-links a, .template-card, .plugin-card, .feature { transition: none; }
}
/* Screenshots from the isolated tutorial workspace */
.tutorial-gallery { display:grid; gap:2.5rem; margin:2rem 0 4rem; }
.tutorial-gallery-section { display:grid; gap:1rem; }
.tutorial-gallery-section h3 { margin:0; }
.tutorial-gallery-item { overflow:hidden; border:1px solid var(--panel-border); border-radius:.9rem; background:#111a24; box-shadow:0 1rem 2.5rem #03071070; }
.tutorial-gallery-item a { display:block; }
.tutorial-gallery-item img { display:block; width:100%; height:auto; }
.tutorial-gallery-item figcaption { background:#19232e; color:#c4d0df; padding:.7rem 1rem; font-size:.87rem; }
.language-switch { display:flex; flex-wrap:wrap; align-items:center; gap:.3rem .55rem; font-size:.78rem; color:#c5d4e2; }
.language-switch a { color:#d8e7f3; text-decoration:none; padding:.25rem; border-radius:.3rem; }
.language-switch a:hover, .language-switch a[aria-current="page"] { color:#70eee3; }
@media (max-width:850px) { .language-switch { margin-left:auto; } }
@media (max-width:600px) { .language-switch { width:100%; margin:0; padding:.15rem 0 .35rem; } }
.tutorial-gallery { width:min(1100px,calc(100% - 3rem)); grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:2rem; margin:3rem auto 5rem; }
.tutorial-gallery-section { min-width:0; }
.tutorial-gallery-section h2 { font-size:clamp(1.25rem,2vw,1.65rem); }
.tutorial-gallery-item img { aspect-ratio:auto; }
@media(max-width:700px){.tutorial-gallery{width:calc(100% - 2rem);grid-template-columns:1fr;gap:1.75rem}}
.tutorial-note { grid-column:1/-1; margin:0; padding:1rem 1.15rem; border-left:3px solid var(--aqua); background:#15232d; border-radius:0 .6rem .6rem 0; color:#d2e4e7; }
