
  /* ── Autonomous Robots Sub-page Custom Styles ── */
  .robot-family-page {
    --robot-blue: #2563EB;
    --robot-blue-soft: #60A5FA;
    --robot-cyan: #06B6D4;
    --robot-indigo: #4F46E5;
    --robot-gradient: linear-gradient(135deg, #2563EB 0%, #06B6D4 50%, #4F46E5 100%);
    --robot-gradient-soft: linear-gradient(135deg, rgba(37,99,235,0.08) 0%, rgba(6,182,212,0.06) 100%);
  }

  /* Hero */
  .robot-hero {
    position: relative;
    padding: 180px 0 100px;
    background: linear-gradient(135deg, #0A1628 0%, #0F2847 40%, #0A1B4D 100%);
    color: white;
    overflow: hidden;
    text-align: center;
  }
  .robot-hero::before {
    content: ""; position: absolute; inset: 0;
    background-image:
      radial-gradient(circle at 25% 35%, rgba(37,99,235,0.30), transparent 45%),
      radial-gradient(circle at 75% 65%, rgba(6,182,212,0.25), transparent 40%);
    pointer-events: none;
  }
  .robot-hero::after {
    content: ""; position: absolute; inset: 0;
    background-image:
      linear-gradient(rgba(37,99,235,0.06) 1px, transparent 1px),
      linear-gradient(90deg, rgba(37,99,235,0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    pointer-events: none;
  }
  .robot-hero .container { position: relative; z-index: 2; }
  .robot-hero .hero-img {
    position: absolute; inset: 0; z-index: 0;
    background-size: cover; background-position: center;
    opacity: 0.12;
  }
  .robot-hero .breadcrumb { margin-bottom: 18px; }
  .robot-hero .eyebrow { border-color: rgba(37,99,235,0.5); background: rgba(37,99,235,0.12); color: var(--robot-blue-soft); }
  .robot-hero .eyebrow .dot { background: var(--robot-blue-soft); box-shadow: 0 0 12px var(--robot-blue-soft); }
  .robot-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 700;
    margin: 0 0 14px;
  }
  .robot-hero h1 .accent {
    background: linear-gradient(90deg, #60A5FA, #22D3EE, #818CF8);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
  }
  .robot-hero .hero-subtitle {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(96,165,250,0.8);
    margin: 0 0 22px;
  }
  .robot-hero .hero-tagline {
    font-size: 18px;
    color: rgba(255,255,255,0.74);
    max-width: 780px;
    margin: 0 auto 36px;
    line-height: 1.7;
  }

  /* General Rules Banner */
  .general-rules {
    padding: 100px 0;
  }
  .general-rules-card {
    background: linear-gradient(135deg, #0F2847, #1E3A5F);
    border-radius: var(--radius-lg);
    padding: 56px 60px;
    color: white;
    position: relative;
    overflow: hidden;
  }
  .general-rules-card::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at 90% 20%, rgba(6,182,212,0.20), transparent 50%),
                radial-gradient(circle at 10% 80%, rgba(37,99,235,0.20), transparent 50%);
    pointer-events: none;
  }
  .general-rules-card > * { position: relative; z-index: 2; }
  .general-rules-card .section-tag { color: var(--robot-cyan); }
  .general-rules-card h2 {
    font-family: var(--font-display);
    font-size: clamp(26px, 3.4vw, 38px);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 24px;
  }
  .general-rules-card h2 em {
    font-style: normal;
    background: linear-gradient(90deg, #60A5FA, #22D3EE);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
  }
  .general-rules-card p {
    font-size: 16px;
    color: rgba(255,255,255,0.78);
    line-height: 1.75;
    margin: 0 0 16px;
    max-width: 900px;
  }
  .general-rules-card p:last-of-type { margin-bottom: 0; }
  .general-rules-card .rule-highlight {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(6,182,212,0.12);
    border: 1px solid rgba(6,182,212,0.25);
    border-radius: var(--radius);
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.5px;
    color: #22D3EE;
    margin-top: 24px;
  }

  /* Sub-Category Cards */
  .subcats-section { padding: 80px 0 100px; }
  .subcats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 50px;
  }
  .subcat-card {
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
  }
  .subcat-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: var(--robot-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  /* Informational cards do not imitate clickable navigation on hover. */

  .subcat-card .card-icon {
    width: 64px; height: 64px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    margin-bottom: 24px;
    flex-shrink: 0;
  }
  .subcat-card .card-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
    width: fit-content;
  }
  .subcat-card h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--navy-deep);
    margin: 0 0 16px;
    line-height: 1.25;
  }
  .subcat-card p {
    font-size: 15px;
    color: rgba(11,18,48,0.68);
    line-height: 1.7;
    margin: 0 0 10px;
  }
  .subcat-card p:last-of-type { margin-bottom: 0; }
  .subcat-card .spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
  }
  .subcat-card .spec {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-family: var(--font-mono);
    color: rgba(11,18,48,0.6);
    letter-spacing: 0.3px;
  }
  .subcat-card .spec svg {
    width: 16px; height: 16px;
    flex-shrink: 0;
    color: var(--robot-blue);
  }
  .subcat-card .rules-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 10px 20px;
    background: var(--robot-gradient-soft);
    border: 1px solid rgba(37,99,235,0.18);
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--robot-blue);
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
  }
  .subcat-card .rules-btn:hover {
    background: rgba(37,99,235,0.12);
    border-color: rgba(37,99,235,0.35);
    transform: translateY(-1px);
  }
  .subcat-card .rules-btn svg { flex-shrink: 0; }

  /* CTA Dark */
  .cta-dark {
    background: linear-gradient(135deg, #0A1628 0%, #0F2847 40%, #0A1B4D 100%);
    color: white;
    text-align: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
  }
  .cta-dark::before {
    content: ""; position: absolute; inset: 0;
    background-image:
      radial-gradient(circle at 30% 50%, rgba(37,99,235,0.20), transparent 50%),
      radial-gradient(circle at 70% 50%, rgba(6,182,212,0.15), transparent 50%);
    pointer-events: none;
  }
  .cta-dark .container { position: relative; z-index: 2; }
  .cta-dark h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.8vw, 46px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.015em;
    margin: 0 0 18px;
    color: white;
  }
  .cta-dark h2 em {
    font-style: normal;
    background: linear-gradient(90deg, #60A5FA, #22D3EE);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
  }
  .cta-dark p {
    font-size: 18px;
    color: rgba(255,255,255,0.72);
    max-width: 600px;
    margin: 0 auto 36px;
  }

  /* Responsive */
  @media (max-width: 980px) {
    .subcats-grid { grid-template-columns: 1fr; }
    .robot-hero { padding: 140px 0 70px; }
    .general-rules-card { padding: 40px 32px; }
  }
  @media (max-width: 600px) {
    .subcat-card { padding: 28px 24px; }
    .subcat-card .spec-grid { grid-template-columns: 1fr; }
  }

.robot-family-page .robot-hero .hero-img { background-image:url('../images/category-robotics-r005.png'); }
.robot-family-page .family-nav,.robot-family-page .category-nav { display:flex; flex-wrap:wrap; justify-content:center; gap:10px; margin-top:26px; }
.robot-family-page .family-nav a,.robot-family-page .category-nav a { display:inline-flex; align-items:center; gap:7px; padding:10px 14px; border:1px solid #dfe4ea; border-radius:10px; background:#fff; color:#24324a; font-size:13px; line-height:1.5; text-decoration:none; transition:background-color .18s,border-color .18s,color .18s,box-shadow .18s; }
.robot-family-page .family-nav a:hover,.robot-family-page .category-nav a:hover { background:#f1f6ff; color:#174ea6; border-color:#9ab9e8; }
.robot-family-page .family-nav a[aria-current=page],.robot-family-page .category-nav a[aria-current=true] { background:#17365d; color:#fff; border-color:#17365d; box-shadow:inset 0 -3px #22d3ee,0 4px 12px rgba(23,54,93,.18); }
.robot-family-page .family-nav a[aria-current=page]:hover,.robot-family-page .category-nav a[aria-current=true]:hover { background:#17365d; color:#fff; border-color:#17365d; box-shadow:inset 0 -3px #22d3ee,0 5px 15px rgba(23,54,93,.26); }
.robot-family-page .general-rules { padding:54px 0 0; }
.robot-family-page .general-rules-card { padding:34px 40px; }
.robot-family-page .subcats-section { padding:56px 0 80px; }
.robot-family-page .subcats-grid { margin-top:30px; align-items:stretch; }
.robot-family-page .subcat-card { scroll-margin-top:125px; overflow:visible; }
.robot-family-page .subcat-card::before { border-radius:var(--radius-lg) var(--radius-lg) 0 0; }
.robot-family-page .subcat-card.is-selected,.robot-family-page .subcat-card:target { background:#f4f8fd; border:1px solid #17365d; box-shadow:0 8px 24px rgba(23,54,93,.10); }
.robot-family-page .subcat-card.is-selected::before,.robot-family-page .subcat-card:target::before { opacity:1; background:#22d3ee; }
.robot-family-page .subcat-card:focus { outline:none; } /* Programmatic scroll target, not a tab stop. */
.robot-family-page .selected-label { display:none; margin-inline-start:4px; padding:5px 10px; border-radius:6px; background:#17365d; color:#fff; font-size:12px; font-weight:600; line-height:1.5; }
.robot-family-page .is-selected .selected-label,.robot-family-page .subcat-card:target .selected-label { display:inline; }
.robot-family-page .subcat-card h3 { overflow-wrap:anywhere; }
.robot-family-page .card-meta { display:flex; align-items:center; flex-wrap:wrap; margin-bottom:18px; gap:8px; }
.robot-family-page .card-meta .card-badge { margin:0; }
.robot-family-page .spec-grid { margin-bottom:22px; }
.robot-family-page .spec { display:block; font-family:var(--font-body,sans-serif); letter-spacing:0; min-width:0; }
.robot-family-page .spec dt { font-size:12px; color:#64748b; margin-bottom:4px; }
.robot-family-page .spec dd { margin:0; font-size:14px; font-weight:600; color:#183560; overflow-wrap:anywhere; }
.robot-family-page .rules-btn[aria-disabled=true] { cursor:default; opacity:.75; margin-top:auto; align-self:flex-start; flex-wrap:wrap; }
.robot-family-page .rules-btn[aria-disabled=true]:hover { transform:none; background:var(--robot-gradient-soft); }
.robot-family-page [dir=ltr] { unicode-bidi:isolate; }
.robot-family-page a:focus-visible { outline:3px solid #f59e0b; outline-offset:4px; }
@media(max-width:600px) {
 .robot-family-page .general-rules-card { padding:28px 22px; }
 .robot-family-page .family-nav a,.robot-family-page .category-nav a { font-size:12px; padding:8px 10px; }
}
@media(prefers-reduced-motion:reduce) { .robot-family-page * { scroll-behavior:auto!important; transition:none!important; } }

.robot-family-page .subcat-card.is-selected .card-badge,.robot-family-page .subcat-card:target .card-badge { background:#17365d; color:#fff; }

/* R014: content-led category cards; all styles scoped to Robotics pages. */
.robot-family-page .subcat-card::before { content:none; display:none; }
.robot-family-page .subcat-card { padding:28px; --category-color:#1d4ed8; --category-soft:#eff6ff; }
.robot-family-page .subcat-card[data-kind=sumo] { --category-color:#c2410c; --category-soft:#fff2e9; }
.robot-family-page .subcat-card[data-kind=line] { --category-color:#0369a1; --category-soft:#eaf7ff; }
.robot-family-page .subcat-card[data-kind=maze],.robot-family-page .subcat-card[data-kind=gesture] { --category-color:#6d28d9; --category-soft:#f3edff; }
.robot-family-page .subcat-card[data-kind=tennis],.robot-family-page .subcat-card[data-kind=football] { --category-color:#047857; --category-soft:#e8f8f0; }
.robot-family-page .subcat-card[data-kind=rescue] { --category-color:#be123c; --category-soft:#fff0f3; }
.robot-family-page .subcat-card[data-kind=rover] { --category-color:#4338ca; --category-soft:#eef0ff; }
.robot-family-page .subcat-card[data-kind=energy] { --category-color:#15803d; --category-soft:#ecfaef; }
.robot-family-page .subcat-card[data-kind=sort] { --category-color:#0e7490; --category-soft:#e9f9fc; }
.robot-family-page .card-heading { display:grid; grid-template-columns:56px minmax(0,1fr) auto; align-items:center; gap:14px; margin-bottom:20px; }
.robot-family-page .card-heading .card-icon { width:56px; height:56px; border-radius:15px; margin:0; background:var(--category-soft); color:var(--category-color); }
.robot-family-page .card-icon svg { width:38px; height:38px; }
.robot-family-page .card-heading h3 { margin:0; font-size:21px; line-height:1.3; }
.robot-family-page .card-heading .card-badge { padding:5px 8px; margin:0; background:var(--category-soft); color:var(--category-color); letter-spacing:.5px; border-radius:7px; }
.robot-family-page .subcat-card.is-selected .card-badge,.robot-family-page .subcat-card:target .card-badge { background:#17365d; color:#fff; }
.robot-family-page .card-summary { font-size:14px; line-height:1.75; color:#485b73; }
.robot-family-page .spec-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:22px 0 14px; }
.robot-family-page .spec { padding:12px 10px; background:#f7f9fc; border:1px solid #e7edf4; border-radius:10px; }
.robot-family-page .spec dt { display:flex; align-items:center; gap:6px; color:#53657e; font-size:11px; line-height:1.4; margin-bottom:8px; }
.robot-family-page .spec dt svg { width:19px; height:19px; color:var(--category-color); }
.robot-family-page .spec dd { font-size:13px; line-height:1.5; font-weight:650; color:#17365d; }
.robot-family-page .spec-grid[data-count="4"] { grid-template-columns:repeat(2,minmax(0,1fr)); }
.robot-family-page .subcat-card.is-selected .spec,.robot-family-page .subcat-card:target .spec { background:#fff; }
.robot-family-page .subcat-card .spec-note { font-size:11px; line-height:1.6; color:#65758b; margin:0 0 14px; }
.robot-family-page .card-footer { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:auto; padding-top:16px; border-top:1px solid #e4eaf2; }
.robot-family-page .selected-label { margin:0; font-size:11px; padding:4px 8px; }
.robot-family-page .card-footer .rules-btn {
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  min-height:44px; max-width:100%; box-sizing:border-box; margin:0;
  padding:11px 18px; border:1px solid #075dcc; border-radius:10px;
  background:#075dcc; color:#fff; font-size:13px; line-height:1.4;
  font-weight:700; text-align:center; text-decoration:none; opacity:1;
  box-shadow:0 3px 9px rgba(7,93,204,.18);
  transition:background .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.robot-family-page .card-footer a.rules-btn:hover {
  background:#064aa4; border-color:#064aa4; color:#fff;
  box-shadow:0 5px 13px rgba(7,93,204,.26); transform:none;
}
.robot-family-page .card-footer a.rules-btn:focus-visible {
  outline:3px solid #f59e0b; outline-offset:4px;
}
.robot-family-page .card-footer .rules-btn svg { width:18px; height:18px; flex:0 0 18px; }
@media(max-width:600px) {
  .robot-family-page .card-footer .rules-btn { width:100%; }
}
.robot-family-page .overview-copy { display:grid; grid-template-columns: .85fr 1.6fr; align-items:center; gap:36px; }
.robot-family-page .overview-copy h2 { margin:0; font-size:clamp(23px,2.3vw,32px); }
.robot-family-page .overview-copy p { margin:0; font-size:15px; line-height:1.8; }
.robot-family-page .general-rules-card .draft-note { margin:22px 0 0; padding-top:16px; border-top:1px solid #ffffff26; font-size:12px; color:#c9d9ed; }
@media(max-width:700px) {
 .robot-family-page .overview-copy { grid-template-columns:1fr; gap:16px; }
 .robot-family-page .subcat-card { padding:22px; }
 .robot-family-page .card-heading { grid-template-columns:44px minmax(0,1fr) auto; gap:10px; }
 .robot-family-page .card-heading .card-icon { width:44px; height:44px; border-radius:12px; }
 .robot-family-page .card-icon svg { width:32px; height:32px; }
 .robot-family-page .card-heading h3 { font-size:18px; }
 .robot-family-page .spec-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:360px) {
 .robot-family-page .subcat-card { padding:16px; }
 .robot-family-page .card-heading { gap:7px; grid-template-columns:36px minmax(0,1fr) auto; }
 .robot-family-page .card-heading .card-icon { width:36px; height:40px; }
 .robot-family-page .card-heading h3 { font-size:16px; }
 .robot-family-page .card-heading .card-badge { font-size:10px; padding:4px; }
}
