:root {
  --site-ink: #14213d;
  --site-muted: #5d6678;
  --site-blue: #0563c1;
  --site-blue-dark: #034b94;
  --site-aqua: #19aeb4;
  --site-aqua-soft: #e7f7f7;
  --site-sand: #f7f1e5;
  --site-card: #ffffff;
  --site-border: #dce3ec;
  --site-shadow: 0 10px 28px rgba(20, 33, 61, 0.06);
}

body {
  min-height: 100vh;
  color: var(--site-ink);
  background:
    radial-gradient(circle at 82% -8%, rgba(25, 174, 180, 0.12), transparent 28rem),
    linear-gradient(180deg, #fbfcfe 0%, #f4f7fa 100%);
}

.skip-link {
  position: fixed;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 1000;
  padding: 0.7rem 1rem;
  color: #fff;
  background: var(--site-ink);
  border-radius: 0.5rem;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  max-width: 1040px;
  margin: 0 auto 2.25rem;
  padding: 0.3rem 0 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(20, 33, 61, 0.1);
  border-radius: 0;
  box-shadow: none;
}

.site-brand {
  color: var(--site-ink);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  direction: ltr;
  display: inline-flex;
  flex-flow: row nowrap;
  align-items: center;
  gap: 0.55rem;
}

.site-logo {
  width: 2rem;
  height: 2rem;
  display: block;
  flex: 0 0 auto;
  order: -1;
  border-radius: 50%;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.site-nav a {
  color: var(--site-blue-dark);
  padding: 0.42rem 0.68rem;
  border-radius: 0.55rem;
  font-size: 0.94rem;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: #075d68;
  background: var(--site-aqua-soft);
}

h1 {
  margin-top: 0;
  color: var(--site-ink);
  font-size: clamp(2rem, 5vw, 2.65rem);
  letter-spacing: -0.025em;
}

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

.container {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(20, 33, 61, 0.09);
  border-radius: 1.15rem;
  box-shadow: 0 16px 42px rgba(20, 33, 61, 0.07);
}

textarea {
  border-color: #ccd8e5;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(20, 33, 61, 0.04);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

textarea:focus {
  border-color: var(--site-aqua);
  box-shadow: 0 0 0 3px rgba(25, 174, 180, 0.13);
}

.convert-btn {
  background: var(--site-blue-dark);
  box-shadow: 0 7px 18px rgba(3, 75, 148, 0.2);
}

.convert-btn:hover {
  background: #023c77;
}

.keyword-summary {
  max-width: 900px;
  margin: 0 auto 1rem;
  color: var(--site-muted);
  text-align: center;
  font-size: 0.98rem;
  line-height: 1.8;
}

.content-panel {
  max-width: 900px;
  margin: 2rem auto 0;
  padding: 1.5rem;
  color: #30394a;
  background: var(--site-card);
  border: 1px solid rgba(20, 33, 61, 0.08);
  border-radius: 1rem;
  box-shadow: var(--site-shadow);
  line-height: 1.9;
  text-align: right;
}

.content-panel h2,
.content-panel h3 {
  color: var(--site-blue-dark);
}

.content-panel p,
.content-panel li {
  font-size: 1.02rem;
}

.example-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  background: #fff;
}

.example-table th,
.example-table td {
  padding: 0.75rem;
  border: 1px solid var(--site-border);
  text-align: right;
  vertical-align: top;
}

.example-table th {
  color: var(--site-ink);
  background: #edf5fd;
}

.notice-box {
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  background: var(--site-sand);
  border-right: 4px solid #d28b19;
  border-radius: 0.65rem;
}

.article-meta {
  margin: -0.3rem 0 1.5rem;
  color: var(--site-muted);
  font-size: 0.92rem;
}

.related-links {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1.25rem;
  background: #edf5fd;
  border-radius: 0.9rem;
  text-align: right;
}

.related-links h2 {
  margin-top: 0;
  color: var(--site-blue-dark);
}

.related-links a {
  color: var(--site-blue-dark);
}

.site-footer {
  max-width: 1000px;
  margin: 2rem auto 0;
  padding: 1.5rem 1rem;
  color: var(--site-muted);
  text-align: center;
  border-top: 1px solid var(--site-border);
  line-height: 2;
}

.site-footer a {
  color: var(--site-blue-dark);
  margin: 0 0.35rem;
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 1.25rem;
    padding-top: 0;
  }

  .site-nav {
    justify-content: space-between;
    width: 100%;
    flex-wrap: nowrap;
    gap: 0.1rem;
  }

  .site-nav a {
    padding: 0.38rem 0.28rem;
    font-size: 0.86rem;
  }

  body {
    padding-right: 1rem !important;
    padding-left: 1rem !important;
  }

  .container {
    flex-direction: column !important;
    padding: 0.75rem;
  }

  .actions {
    flex-direction: row !important;
  }

  textarea {
    min-height: 210px;
    height: 210px !important;
  }

  .content-panel {
    padding: 1.1rem;
  }

  .example-table {
    display: block;
    overflow-x: auto;
  }
}
