:root {
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-text: #0f172a;
  --color-muted: #475569;
  --color-border: #e2e8f0;
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-primary-soft: #eff6ff;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --radius: 12px;
  --max-width: 1080px;
  --font: "Segoe UI", "Hiragino Sans", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.header-brand-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.nav-parent {
  flex-shrink: 0;
  color: var(--color-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.nav-parent:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text);
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 2.25rem;
  height: 2.25rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  font-size: 0.9375rem;
}

.site-nav a {
  color: var(--color-muted);
  text-decoration: none;
  padding: 0.25rem 0;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--color-primary);
}

.site-nav .nav-lang {
  margin-left: 0.5rem;
  padding-left: 0.75rem;
  border-left: 1px solid var(--color-border);
}

.help-toc {
  margin: 0 0 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.help-toc ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

@media (min-width: 640px) {
  .help-toc ul {
    columns: 2;
    column-gap: 2rem;
  }
}

.help-page pre {
  margin: 0.75rem 0 1.25rem;
  padding: 1rem 1.125rem;
  overflow-x: auto;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 10px;
  font-size: 0.875rem;
  line-height: 1.55;
}

.help-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0 1.5rem;
  font-size: 0.9375rem;
}

.help-page th,
.help-page td {
  border: 1px solid var(--color-border);
  padding: 0.625rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.help-page th {
  background: var(--color-surface);
}

/* --- Help: GUI screen cards (screenshots via CSS ::before) --- */

.help-page #gui {
  margin-top: 2.5rem;
  padding-top: 0.25rem;
  font-size: 1.375rem;
}

.help-page #gui + p {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--color-primary-soft);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--color-text);
}

.help-page .container > div.help-screen {
  display: grid;
  grid-template-columns: minmax(0, 34%) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  margin: 0 0 1.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease;
}

.help-page .container > div.help-screen:hover {
  box-shadow: var(--shadow-md);
}

.help-page .container > div.help-screen::before {
  content: "";
  grid-column: 1;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-bg) center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.help-page .container > div.help-screen:nth-of-type(1)::before {
  background-image: url(../assets/screenshots/01-home.png);
}

.help-page .container > div.help-screen:nth-of-type(2)::before {
  background-image: url(../assets/screenshots/02-compare.png);
}

.help-page .container > div.help-screen:nth-of-type(3)::before {
  background-image: url(../assets/screenshots/03-text.png);
}

.help-page .container > div.help-screen:nth-of-type(4)::before {
  background-image: url(../assets/screenshots/04-metadata.png);
}

.help-page .container > div.help-screen:nth-of-type(5)::before {
  background-image: url(../assets/screenshots/05-image.png);
}

.help-page .container > div.help-screen:nth-of-type(6)::before {
  background-image: url(../assets/screenshots/08-hash.png);
}

.help-page .container > div.help-screen:nth-of-type(7)::before {
  background-image: url(../assets/screenshots/09-images.png);
}

.help-page .container > div.help-screen:nth-of-type(8)::before {
  background-image: url(../assets/screenshots/10-info.png);
}

.help-page .container > div.help-screen:nth-of-type(9)::before {
  background-image: url(../assets/screenshots/06-usage.png);
}

.help-page .container > div.help-screen > .help-screen-body {
  grid-column: 2;
  min-width: 0;
}

.help-page .container > div.help-screen h3 {
  margin: 0 0 0.35rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.help-page .container > div.help-screen p {
  margin: 0.4rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.help-page .container > div.help-screen ul {
  margin: 0.4rem 0 0;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.help-page .container > div.help-screen p:last-child,
.help-page .container > div.help-screen ul:last-child {
  margin-bottom: 0;
}

.help-page .container > div.help-screen p:nth-of-type(1) > strong:first-child,
.help-page .container > div.help-screen p:nth-of-type(2) > strong:first-child {
  display: inline-block;
  min-width: 4.75rem;
  margin-right: 0.35rem;
  padding: 0.1rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-primary-dark);
  background: var(--color-primary-soft);
  border-radius: 4px;
  vertical-align: baseline;
}

/* CLI / FAQ — keep reference-style layout */
.help-page #cli-setup {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--color-border);
}

.help-page #faq {
  margin-top: 2.5rem;
  padding-top: 0.5rem;
}

.help-page #faq h3 {
  margin-top: 1.5rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--color-primary);
  font-size: 1rem;
}

@media (max-width: 768px) {
  .help-page .container > div.help-screen {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1rem 1.125rem;
  }

  .help-page .container > div.help-screen::before {
    grid-column: 1;
    max-height: 11rem;
  }

  .help-page .container > div.help-screen > .help-screen-body {
    grid-column: 1;
  }
}

.hero {
  padding: 4.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-lead {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  color: var(--color-muted);
  max-width: 38rem;
}

.hero-note {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  max-width: 38rem;
}

.legal-note {
  margin: 1.5rem 0 0;
  padding: 0.875rem 1rem;
  max-width: 38rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.125rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
}

.button-primary {
  background: var(--color-primary);
  color: #fff;
}

.button-primary:hover {
  background: var(--color-primary-dark);
  text-decoration: none;
}

.button-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
}

.button-secondary:hover {
  text-decoration: none;
  border-color: #cbd5e1;
}

.hero-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
}

.hero-visual {
  margin: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  background: var(--color-surface);
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-points {
  margin: 0 0 1.5rem;
  max-width: 38rem;
}

.hero-points-title {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  font-weight: 700;
}

.usecase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.usecase-card {
  margin: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.usecase-figure {
  margin: 0;
}

.usecase-figure img {
  display: block;
  width: 100%;
  height: auto;
  background: #f3f4f6;
}

.usecase-card h3 {
  margin: 0;
  padding: 1rem 1rem 0.35rem;
  font-size: 1rem;
  line-height: 1.4;
}

.stories-hub-grid .usecase-card h2 {
  margin: 0;
  padding: 1rem 1rem 0.35rem;
  font-size: 1.05rem;
  line-height: 1.4;
}

.stories-hub-grid .usecase-card h2 a {
  color: inherit;
  text-decoration: none;
}

.stories-hub-grid .usecase-card h2 a:hover {
  text-decoration: underline;
}

.usecase-card p {
  margin: 0;
  padding: 0 1rem 1rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-muted);
}

.usecase-card p a {
  color: var(--color-text);
}

.hero-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.hero-card-lead {
  margin: 0 0 1rem;
  font-size: 0.875rem;
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-muted);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--color-primary);
}

.section {
  padding: 3rem 0;
}

.section-title {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0 0 2rem;
  color: var(--color-muted);
  max-width: 42rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
}

.card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9375rem;
}

.split-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.panel h3 {
  margin-top: 0;
}

.muted {
  color: var(--color-muted);
}

.section-tight-top {
  padding-top: 1.5rem;
}

.screenshot-hero {
  margin: 0 0 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.screenshot-hero img,
.screenshot-card img {
  display: block;
  width: 100%;
  height: auto;
  background: #f3f4f6;
}

.screenshot-hero figcaption,
.screenshot-card figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--color-muted);
  border-top: 1px solid var(--color-border);
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.screenshot-card {
  margin: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.legal-page {
  padding: 3rem 0 4rem;
}

.legal-page h1 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
}

.legal-meta {
  margin: 0 0 2rem;
  color: var(--color-muted);
  font-size: 0.9375rem;
}

.legal-page h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
}

.legal-page h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.0625rem;
}

.legal-page p,
.legal-page ul {
  color: var(--color-text);
}

.legal-page ul {
  padding-left: 1.25rem;
}

.lang-block {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 2rem 0;
  color: var(--color-muted);
  font-size: 0.875rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-links a {
  color: var(--color-muted);
}

@media (max-width: 800px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3rem;
  }

  .usecase-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Story / reading LP (docs/stories/) --- */

.story-page-body {
  background: #f3f4f6;
}

.story-page {
  padding: 2rem 0 3rem;
}

.story-article {
  max-width: none;
  padding: 1.75rem 1.5rem 2.25rem;
  background: var(--color-surface);
  border: 1px solid #d1d5db;
  box-shadow: none;
}

.story-hero-wide {
  display: grid;
  grid-template-columns: 1fr minmax(200px, 300px);
  gap: 1.5rem 2rem;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px dashed var(--color-border);
}

.story-hero-text {
  min-width: 0;
}

.story-figure {
  margin: 0;
  text-align: center;
}

.story-figure img {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  margin-inline: auto;
}

.story-figure-hero img {
  max-width: 300px;
}

.story-figcap {
  margin-top: 0.35rem;
  font-size: 0.6875rem;
  color: var(--color-muted);
  line-height: 1.4;
}

.story-part-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
  gap: 1.25rem 2rem;
  align-items: start;
}

.story-part-split-reverse {
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
}

.story-part-split-reverse .story-prose {
  order: 2;
}

.story-part-split-reverse .story-figure {
  order: 1;
}

.story-prose {
  min-width: 0;
  max-width: 52rem;
}

.story-prose h2 {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0;
}

.story-prose p {
  margin: 0 0 0.85rem;
  font-size: 0.96875rem;
  line-height: 1.7;
}

.story-part > h2 {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  line-height: 1.4;
  font-weight: 700;
}

.story-part > p {
  margin: 0 0 0.85rem;
  font-size: 0.96875rem;
  line-height: 1.7;
  max-width: 52rem;
}

.story-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  color: var(--color-muted);
}

.story-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.3;
  letter-spacing: 0;
  font-weight: 700;
}

.story-subtitle {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--color-text);
  font-weight: 600;
}

.story-toc {
  margin: 0 0 1.75rem;
  padding: 0.875rem 1rem;
  background: #f9fafb;
  border: 1px solid var(--color-border);
  font-size: 0.9375rem;
}

.story-toc-title {
  margin: 0 0 0.5rem;
  font-weight: 700;
  font-size: 0.875rem;
}

.story-toc ol {
  margin: 0;
  padding-left: 1.35rem;
}

.story-toc li {
  margin-bottom: 0.25rem;
}

.story-toc a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.story-part {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}

.story-part h2 {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0;
}

.story-part > h2 {
  max-width: 52rem;
}

.story-part-label {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-muted);
}

.story-part p {
  margin: 0 0 0.85rem;
  font-size: 0.96875rem;
  line-height: 1.7;
}

.story-prose .story-shout,
.story-part > .story-shout {
  margin: 1rem 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.55;
}

.story-note {
  margin: 0 0 0.85rem;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.story-rant {
  margin: 1rem 0 1.25rem;
  padding: 0.75rem 0.875rem;
  background: #f9fafb;
  border: 1px solid var(--color-border);
  font-size: 0.9375rem;
}

.story-rant-title {
  margin: 0 0 0.5rem;
  font-weight: 700;
  font-size: 0.875rem;
}

.story-rant dl {
  margin: 0;
}

.story-rant dt {
  margin-top: 0.65rem;
  font-weight: 700;
}

.story-rant dt:first-child {
  margin-top: 0;
}

.story-rant dd {
  margin: 0.25rem 0 0;
}

.story-rant ul {
  margin: 0;
  padding-left: 1.2rem;
}

.story-rant li {
  margin-bottom: 0.2rem;
}

.story-wants {
  margin: 0 0 0.85rem;
  padding-left: 1.35rem;
  font-size: 0.96875rem;
  line-height: 1.65;
}

.story-wants li {
  margin-bottom: 0.35rem;
}

.story-tagline {
  margin: 0 0 0.85rem;
  font-size: 0.96875rem;
}

.story-cta {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--color-border);
}

.story-cta-lead {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  color: var(--color-muted);
}

.story-cta-links {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
}

.story-cta-button {
  font-size: 0.9375rem;
  min-height: 2.5rem;
}

.story-faq h3 {
  margin: 1.25rem 0 0.35rem;
  font-size: 0.9375rem;
  font-weight: 700;
}

.story-faq h3:first-of-type {
  margin-top: 0.5rem;
}

.story-faq p {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  color: var(--color-muted);
}

.story-disclaimer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--color-border);
  font-size: 0.875rem;
  color: var(--color-muted);
}

.story-disclaimer p {
  margin: 0 0 0.5rem;
  line-height: 1.6;
}

.story-disclaimer p:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .story-hero-wide,
  .story-part-split,
  .story-part-split-reverse {
    grid-template-columns: 1fr;
  }

  .story-part-split-reverse .story-prose,
  .story-part-split-reverse .story-figure {
    order: unset;
  }

  .story-figure-hero {
    max-width: 280px;
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .story-page {
    padding-top: 1rem;
  }

  .story-article {
    margin-inline: -0.25rem;
    padding: 1.125rem 1rem 1.5rem;
  }

  .story-cta-button {
    width: 100%;
  }
}

/* --- Tips (docs/tips/) — short how-tos linked from stories --- */

.tips-page-body {
  background: #f3f4f6;
}

.tips-page {
  padding: 2rem 0 3rem;
}

.tips-article {
  max-width: none;
  padding: 1.75rem 1.5rem 2.25rem;
  background: var(--color-surface);
  border: 1px solid #d1d5db;
}

.tips-hero {
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px dashed var(--color-border);
}

.tips-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.375rem, 3.5vw, 1.75rem);
  line-height: 1.35;
}

.tips-lead {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  line-height: 1.65;
  max-width: 42rem;
}

.tips-related {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.6;
}

.tips-related a {
  color: var(--color-link);
}

.tips-section {
  margin-bottom: 2rem;
  max-width: 52rem;
}

.tips-section h2 {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.tips-section > p {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.65;
}

.tips-steps {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
  font-size: 0.9375rem;
  line-height: 1.65;
}

.tips-steps li {
  margin-bottom: 0.5rem;
}

.tips-steps li:last-child {
  margin-bottom: 0;
}

.tips-figure {
  margin: 1rem 0 0;
  text-align: center;
}

.tips-figure img {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  margin-inline: auto;
  border: 1px solid var(--color-border);
}

.tips-cli {
  margin: 0;
  padding: 0.85rem 1rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  background: #111827;
  color: #f3f4f6;
  border-radius: 4px;
  overflow-x: auto;
}

.tips-cmd-notes {
  margin: 0.75rem 0 0;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  line-height: 1.55;
  background: #f9fafb;
  border-left: 3px solid #d1d5db;
  list-style: none;
}

.tips-cmd-notes li {
  margin-bottom: 0.4rem;
}

.tips-cmd-notes li:last-child {
  margin-bottom: 0;
}

.tips-cmd-notes code {
  font-size: 0.8125rem;
}

.tips-compare-table {
  width: 100%;
  max-width: 52rem;
  margin: 0.75rem 0 1rem;
  border-collapse: collapse;
  font-size: 0.875rem;
  line-height: 1.5;
}

.tips-compare-table th,
.tips-compare-table td {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.tips-compare-table th {
  background: #f3f4f6;
  font-weight: 600;
}

.tips-compare-table code {
  font-size: 0.8125rem;
}

.tips-compare-bad {
  color: #b45309;
}

.tips-notes {
  margin-top: 2rem;
  padding: 1rem 1.15rem;
  font-size: 0.875rem;
  line-height: 1.6;
  background: #f9fafb;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  max-width: 52rem;
}

.tips-notes h2 {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  color: inherit;
}

.tips-notes p,
.tips-notes ul {
  margin: 0 0 0.5rem;
}

.tips-notes ul {
  padding-left: 1.25rem;
}

.tips-notes p:last-child,
.tips-notes ul:last-child {
  margin-bottom: 0;
}

.tips-hub-lead {
  max-width: 40rem;
}

.tips-hub-grid .usecase-card h2 {
  font-size: 1.0625rem;
}

.tips-hub-tag {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.story-tips-link {
  margin: 1.25rem 0 0;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  line-height: 1.55;
  background: #f9fafb;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  max-width: 52rem;
}

@media (max-width: 640px) {
  .tips-page {
    padding-top: 1rem;
  }

  .tips-article {
    margin-inline: -0.25rem;
    padding: 1.125rem 1rem 1.5rem;
  }
}
