/* Preserve MThings content and controls while matching SolThings. */
:root
{
  --bg: #fbfcf8;
  --surface: #fff;
  --surface-strong: #fff;
  --line: #dce3da;
  --text: #18382e;
  --muted: #58695f;
  --title: #18382e;
  --teal: #557b5d;
  --blue: #174c3c;
  --blue-deep: #174c3c;
  --shadow: none;
  color-scheme: light;
}
body
{
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  background: var(--bg);
  line-height: 1.85;
}
.page-glow
{
  display: none;
}
.wrap
{
  width: min(1280px, calc(100% - 96px));
}
.site-header
{
  background: rgba(251, 252, 248, .97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: none;
}
.nav-row
{
  min-height: 88px;
  gap: 20px;
  flex-wrap: wrap;
  padding-block: 12px;
}
.brand, .hero h1, .section h2, .metric-grid strong
{
  font-family: inherit;
}
.brand-mark
{
  width: 64px;
  height: 64px;
  flex-basis: 64px;
}
.brand-text
{
  font-size: 20px;
}
.hero
{
  background: linear-gradient(112deg, #f0f4e9 0%, #f5f7ef 58%, #e7efe6 100%);
  padding-block: 48px;
}
.hero-copy, .hero-card, .feature-card, .info-panel, .timeline-item, .cta-box
{
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: none;
  backdrop-filter: none;
  animation: none;
}
.hero-copy
{
  background: transparent;
  border: 0;
  padding: 12px 20px 12px 0;
}
.hero h1, .section h2
{
  line-height: 1.45;
  font-weight: 650;
  letter-spacing: -1px;
}
.hero h1
{
  font-size: clamp(32px, 3.8vw, 52px);
  max-width: none;
}
.section h2
{
  font-size: clamp(27px, 3vw, 38px);
}
.hero-text, .section-text
{
  font-size: 18px;
  line-height: 1.9;
}
.button, .hero-tab, .lang-switch, .search-panel, .search-row input, .search-row button, .hero-media, .hero-card, .protocol-grid article, .metric-grid article, .core-feature-card, .timeline-item
{
  border-radius: 5px;
  box-shadow: none;
}
.button-primary, .hero-tab.is-active, .search-row button, .lang-button.is-active, #download .button-primary
{
  background: var(--blue);
  color: white;
  box-shadow: none;
}
.button-primary:hover, #download .button-primary:hover
{
  background: #286149;
  box-shadow: none;
}
.button-secondary, #download .button-secondary
{
  color: var(--text);
  background: transparent;
  border: 1px solid #a1b5a5;
}
.button-secondary:hover, #download .button-secondary:hover
{
  background: #e4ecdf;
}
.alt-section, #download
{
  background: #f0f4eb;
}
#download .feature-card, .core-feature-card, .protocol-grid article, .metric-grid article, .search-panel, .usage-panel
{
  background: #fff;
  border-color: var(--line);
  border-radius: 6px;
  box-shadow: none;
}
#download .feature-card p
{
  font-size: 14px;
  line-height: 1.75;
}
.feature-card::after
{
  display: none;
}
a:focus-visible, button:focus-visible, input:focus-visible
{
  outline: 3px solid #b17827;
  outline-offset: 4px;
}
@media (max-width: 1100px)
{
  .nav-actions
  {
    flex-wrap: wrap;
  }
  .nav-links
  {
    gap: 16px;
    flex-wrap: wrap;
  }
  #download .card-grid
  {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px)
{
  .wrap
  {
    width: calc(100% - 36px);
  }
  .nav-links
  {
    display: flex;
  }
  .nav-actions
  {
    align-items: flex-start;
  }
  .hero-copy
  {
    padding: 0;
  }
  #download .card-grid
  {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce)
{
  *, *::before, *::after
  {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Use the same neutral surfaces for protocol and capability cards. */
.protocol-grid article:nth-child(n), .metric-grid article:nth-child(n), .core-feature-card:nth-child(n)
{
  background: #f5f7f0;
  border-color: #dce3da;
  box-shadow: none;
}
.metric-grid article:nth-child(n) strong, .protocol-grid article strong, .led-number
{
  color: #174c3c;
  text-shadow: none;
}
.hero-tabs
{
  background: #e8f0e9;
  border-color: #dce3da;
}
.hero-tab
{
  color: #58695f;
}
.hero-tab.is-active
{
  background: #174c3c;
  color: white;
}
@media (max-width: 720px)
{
  .nav-row
  {
    gap: 10px;
  }
  .nav-actions
  {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: 100%;
  }
  .nav-links
  {
    gap: 6px 14px;
    font-size: 14px;
  }
  .lang-switch
  {
    padding: 3px;
    gap: 3px;
  }
  .hero
  {
    padding-top: 28px;
  }
}

/* Collapse the complete navigation at the SolThings breakpoint. */
.menu-toggle
{
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  border-radius: 5px;
  padding: 6px 12px;
  min-height: 44px;
  font: inherit;
  cursor: pointer;
}
@media (max-width: 1050px)
{
  .nav-row
  {
    position: relative;
    flex-wrap: nowrap;
    min-height: 76px;
  }
  .brand
  {
    min-width: 0;
    gap: 10px;
  }
  .brand-copy
  {
    min-width: 0;
  }
  .brand-text
  {
    font-size: clamp(15px, 3.5vw, 20px);
  }
  /* Resize the rendered subtitle without revealing its hidden source text. */
  .brand-subtitle::before
  {
    font-size: 11px;
  }
  .brand-mark
  {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }
  .menu-toggle
  {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }
  .nav-actions
  {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: auto;
    max-height: calc(100dvh - 100px);
    overflow-y: auto;
    padding: 15px 20px 22px;
    background: var(--bg);
    border: 1px solid var(--line);
    box-shadow: 0 15px 20px #173f3312;
  }
  .nav-actions.is-open
  {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .nav-links
  {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    font-size: 16px;
  }
  .nav-links a
  {
    padding: 8px 0;
  }
  .lang-switch
  {
    align-self: flex-start;
  }
}

/* Override the older section-specific radius to match the shared panels. */
#solutions .product-panel
{
  border-radius: 6px;
}

/* Align both visible edges with the adjacent capability panel. */
@media (min-width: 1025px)
{
  .hero-copy
  {
    padding-top: 0;
    padding-bottom: 0;
  }
  .hero-copy .usage-panel
  {
    margin-top: auto;
  }
}

/* Give the inner protocol and metric cards more usable space. */
.site-shell .hero-card
{
  padding: 16px;
}
@media (max-width: 720px)
{
  .site-shell .hero-card
  {
    padding: 12px;
  }
}
