    :root {
      --reso-navy: #1a2f58;
      --reso-navy-dark: #0f1d38;
      --reso-navy-light: #2a4a7f;
      --reso-orange: #ff9900;
      --reso-orange-light: #fff3e0;
      --reso-green: #38a169;
      --reso-green-light: #e6f7ed;
      --reso-blue: #007e9e;
      --reso-blue-light: #e0f4f8;
      --reso-gray-50: #f7fafc;
      --reso-gray-100: #edf2f7;
      --reso-gray-200: #e2e8f0;
      --reso-gray-300: #cbd5e0;
      --reso-gray-500: #718096;
      --reso-gray-600: #4a5568;
      --reso-gray-700: #2d3748;
      --reso-gray-800: #1a202c;
      --reso-gray-900: #171923;
    }

    html.dark {
      --reso-gray-50: #1a202c;
      --reso-gray-100: #2d3748;
      --reso-gray-200: #4a5568;
      --reso-gray-300: #718096;
      --reso-gray-500: #a0aec0;
      --reso-gray-600: #cbd5e0;
      --reso-gray-700: #e2e8f0;
      --reso-gray-800: #edf2f7;
      --reso-gray-900: #f7fafc;
      --reso-green-light: rgba(56,161,105,0.15);
      --reso-orange-light: rgba(255,153,0,0.15);
      --reso-blue-light: rgba(0,126,158,0.15);
    }
    html.dark .dd-metadata-card,
    html.dark .dd-resource-card,
    html.dark .search-modal { background: var(--reso-gray-100); }
    html.dark .dd-resource-card { border-color: var(--reso-gray-200); }
    html.dark .dd-resource-card h3 { color: #edf2f7; }
    html.dark .dd-metadata-card h2 { color: #edf2f7; }
    html.dark .dd-metadata-card h3 { color: #a0aec0; }
    html.dark .dd-resource-count { color: var(--reso-gray-500); }
    html.dark .dd-sidebar { background: var(--reso-gray-50); border-color: var(--reso-gray-200); }
    html.dark .dd-sidebar-title { color: #edf2f7; }
    html.dark .dd-sidebar-header { border-color: var(--reso-gray-200); }
    html.dark .dd-version-select { background: var(--reso-gray-100); border-color: var(--reso-gray-200); color: var(--reso-gray-700); }
    html.dark .dd-sidebar-search input { background: var(--reso-gray-100); border-color: var(--reso-gray-200); color: var(--reso-gray-700); }
    html.dark .dd-definition-callout { background: var(--reso-gray-100); color: var(--reso-gray-600); border-left-color: var(--reso-blue); }
    html.dark .dd-page-legacy-value { color: var(--reso-gray-500); }
    html.dark .dd-page-legacy-value code { background: var(--reso-gray-200); color: var(--reso-gray-700); }
    html.dark .dd-copy-btn { color: var(--reso-gray-500); }
    html.dark .dd-copy-btn:hover { color: var(--reso-blue); background: var(--reso-gray-200); }
    html.dark .dd-fields-table,
    html.dark .dd-lookups-table { background: var(--reso-gray-100); border-color: var(--reso-gray-200); }
    html.dark .dd-fields-table th,
    html.dark .dd-lookups-table th { background: var(--reso-gray-50); color: var(--reso-gray-500); }
    html.dark .dd-fields-table td,
    html.dark .dd-lookups-table td { color: var(--reso-gray-600); }
    html.dark .dd-fields-table th, html.dark .dd-fields-table td,
    html.dark .dd-lookups-table th, html.dark .dd-lookups-table td { border-bottom-color: var(--reso-gray-200); }
    html.dark .dd-fields-table tbody tr:nth-child(even),
    html.dark .dd-lookups-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.03); }
    html.dark .dd-fields-table tbody tr:hover,
    html.dark .dd-lookups-table tbody tr:hover { background: var(--reso-gray-200); }
    html.dark .dd-field-link,
    html.dark .dd-lookups-table a,
    html.dark .dd-more-link { color: #63b3ed; }
    html.dark .dd-collapsible { background: var(--reso-gray-100); border-color: var(--reso-gray-200); }
    html.dark .dd-collapsible-toggle { background: var(--reso-gray-50); color: #edf2f7; }
    html.dark .dd-collapsible-toggle:hover { background: var(--reso-gray-200); }
    html.dark .dd-toggle-icon { color: var(--reso-gray-500); }
    html.dark .dd-usage-value { color: #edf2f7; }
    html.dark .dd-usage-label { color: var(--reso-gray-500); }
    html.dark .dd-group-heading { color: #edf2f7; border-bottom-color: var(--reso-gray-200); }

    * { margin: 0; padding: 0; box-sizing: border-box; }
    html { overflow-x: hidden; }

    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
      background: var(--reso-gray-50);
      color: var(--reso-gray-700);
      line-height: 1.6;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }

    /* Header */
    .site-header {
      background: var(--reso-navy);
      padding: 0 1.5rem;
      height: 64px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      position: sticky;
      top: 0;
      z-index: 50;
      box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }
    .site-header a { color: white; text-decoration: none; }
    .header-logo {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      font-size: 1.25rem;
      font-weight: 700;
      letter-spacing: -0.025em;
    }
    .header-logo img { height: 36px; width: auto; }
    .header-nav { display: flex; gap: 1.5rem; align-items: center; }
    .header-nav a {
      font-size: 0.875rem;
      font-weight: 500;
      opacity: 0.85;
      transition: opacity 0.15s;
    }
    .header-nav a:hover { opacity: 1; color: var(--reso-orange); }

    .menu-toggle {
      display: none;
      background: none;
      border: none;
      cursor: pointer;
      padding: 0.5rem;
      color: white;
    }
    .menu-toggle svg { width: 24px; height: 24px; fill: currentColor; }

    @media (max-width: 768px) {
      .site-header { flex-wrap: wrap; height: auto; min-height: 64px; max-width: 100vw; overflow: hidden; }
      .menu-toggle { display: block; order: 3; }
      .theme-toggle { margin-top: 0.5rem; justify-content: center; }
      .header-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding: 0.5rem 0 1rem;
        border-top: 1px solid rgba(255,255,255,0.15);
        order: 4;
      }
      .header-nav.open { display: flex; }
      .header-nav a {
        padding: 0.625rem 0;
        opacity: 1;
        border-bottom: 1px solid rgba(255,255,255,0.08);
      }
      .header-nav a:last-of-type { border-bottom: none; }
      .search-trigger { margin-top: 0.5rem; justify-content: center; }
      .search-trigger kbd { display: none; }
    }

    /* Search trigger */
    .search-trigger {
      background: rgba(255,255,255,0.15);
      border: 1px solid rgba(255,255,255,0.25);
      border-radius: 0.375rem;
      color: rgba(255,255,255,0.7);
      font-size: 0.8125rem;
      padding: 0.375rem 0.75rem;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      transition: background 0.15s;
    }
    .search-trigger:hover {
      background: rgba(255,255,255,0.25);
      color: white;
    }
    .search-trigger svg { width: 14px; height: 14px; fill: currentColor; }
    .search-trigger kbd {
      font-family: inherit;
      font-size: 0.6875rem;
      background: rgba(255,255,255,0.15);
      border-radius: 0.25rem;
      padding: 0.125rem 0.375rem;
    }

    /* Theme toggle */
    .theme-toggle {
      background: rgba(255,255,255,0.15);
      border: 1px solid rgba(255,255,255,0.25);
      color: rgba(255,255,255,0.7);
      cursor: pointer;
      padding: 0.375rem 0.5rem;
      border-radius: 0.375rem;
      transition: background 0.15s;
      display: flex;
      align-items: center;
    }
    .theme-toggle:hover { background: rgba(255,255,255,0.25); color: white; }
    .theme-toggle svg { width: 16px; height: 16px; fill: currentColor; }
    .theme-toggle .icon-moon { display: block; }
    .theme-toggle .icon-sun { display: none; }
    html.dark .theme-toggle .icon-moon { display: none; }
    html.dark .theme-toggle .icon-sun { display: block; }

    /* Search modal */
    .search-modal-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.5);
      z-index: 100;
      align-items: flex-start;
      justify-content: center;
      padding-top: 10vh;
    }
    .search-modal-overlay.active { display: flex; }
    body.search-open { overflow: hidden; }
    .search-modal {
      background: white;
      border-radius: 0.75rem;
      width: 90%;
      max-width: 640px;
      height: 70vh;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    }
    @media (max-width: 768px) {
      .search-modal-overlay { padding-top: 1rem; }
      .search-modal { width: calc(100% - 1.5rem); height: 85vh; border-radius: 0.5rem; }
    }

    /* Pagefind layout — input+pills fixed at top, drawer scrolls */
    #search, .pagefind-ui, .pagefind-ui .pagefind-ui__form {
      display: flex !important;
      flex-direction: column !important;
      flex: 1 !important;
      min-height: 0 !important;
    }
    .pagefind-ui .pagefind-ui__form {
      padding: 1rem 1rem 0 !important;
      position: relative !important;
    }
    /* Search icon — vertically center in input */
    .pagefind-ui .pagefind-ui__form::before {
      position: absolute !important;
      top: 1.875rem !important;
      left: 1.625rem !important;
      width: 18px !important;
      height: 18px !important;
    }
    .pagefind-ui .pagefind-ui__search-input {
      border: 1.5px solid var(--reso-gray-300) !important;
      border-radius: 0.5rem !important;
      padding: 0.625rem 3.5rem 0.625rem 2.5rem !important;
      font-size: 1rem !important;
      color: var(--reso-gray-800) !important;
      background: var(--reso-gray-50) !important;
      font-family: inherit !important;
      height: auto !important;
    }
    .pagefind-ui .pagefind-ui__search-input::placeholder { color: var(--reso-gray-500) !important; }
    .pagefind-ui .pagefind-ui__search-input:focus {
      border-color: var(--reso-blue) !important;
      box-shadow: 0 0 0 3px rgba(0,126,158,0.15) !important;
      outline: none !important;
    }
    /* Custom search input overlay */
    .dd-search-input {
      width: 100%;
      border: 1.5px solid var(--reso-gray-300);
      border-radius: 0.5rem;
      padding: 0.625rem 3.5rem 0.625rem 2.5rem;
      font-size: 1rem;
      color: var(--reso-gray-800);
      background: var(--reso-gray-50);
      font-family: inherit;
      box-sizing: border-box;
    }
    .dd-search-input::placeholder { color: var(--reso-gray-500); }
    .dd-search-input:focus {
      border-color: var(--reso-blue);
      box-shadow: 0 0 0 3px rgba(0,126,158,0.15);
      outline: none;
    }
    html.dark .dd-search-input { background: #2d3748; border-color: #4a5568; color: #e2e8f0; }
    html.dark .dd-search-input::placeholder { color: #718096; }
    /* Clear button — vertically center in input */
    .pagefind-ui .pagefind-ui__search-clear {
      position: absolute !important;
      top: 1rem !important;
      right: 1.5rem !important;
      color: var(--reso-gray-500) !important;
      font-size: 0.8125rem !important;
      font-weight: 500 !important;
      background: none !important;
      border: none !important;
      padding: 0.125rem 0.375rem !important;
      cursor: pointer !important;
    }
    .pagefind-ui .pagefind-ui__search-clear:hover { color: var(--reso-gray-800) !important; }

    /* Filter pills — injected before the drawer */
    .dd-search-meta {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0.5rem 0 0.75rem;
      border-bottom: 1px solid var(--reso-gray-200);
    }
    .dd-search-filters {
      display: flex;
      gap: 0.375rem;
      flex-wrap: wrap;
    }
    .dd-search-filter-pill {
      padding: 0.1875rem 0.625rem;
      border-radius: 0.25rem;
      border: 1px solid var(--reso-gray-200);
      background: transparent;
      color: var(--reso-gray-600);
      font-size: 0.6875rem;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.1s;
    }
    .dd-search-filter-pill:hover { border-color: var(--reso-blue); color: var(--reso-blue); }
    .dd-search-filter-pill.active { background: var(--reso-blue); border-color: var(--reso-blue); color: white; }
    .dd-search-count {
      font-size: 0.6875rem;
      color: var(--reso-gray-500);
      white-space: nowrap;
    }

    /* Hide Pagefind's Load more button (infinite scroll), message (we show our own count), filter panel */
    .pagefind-ui .pagefind-ui__button { height: 0 !important; overflow: hidden !important; opacity: 0 !important; padding: 0 !important; margin: 0 !important; border: none !important; }
    .pagefind-ui .pagefind-ui__message { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; }
    .pagefind-ui .pagefind-ui__filter-panel { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; }

    /* Drawer fills remaining space and scrolls */
    .pagefind-ui .pagefind-ui__drawer {
      padding: 0 1rem 1rem !important;
      overflow-y: auto !important;
      flex: 1 !important;
      min-height: 0 !important;
    }
    .pagefind-ui .pagefind-ui__result-link { color: var(--reso-blue) !important; font-weight: 600 !important; }
    .pagefind-ui .pagefind-ui__result-excerpt { font-size: 0.8125rem !important; color: var(--reso-gray-600) !important; line-height: 1.5 !important; }
    .pagefind-ui .pagefind-ui__result-tags { display: none !important; }
    .pagefind-ui .pagefind-ui__result { border-color: var(--reso-gray-200) !important; padding: 0.75rem 0 !important; }

    /* Welcome state */
    .dd-search-welcome {
      display: none;
      text-align: center;
      padding: 2rem 1rem 3rem;
      color: var(--reso-gray-500);
      font-size: 0.9375rem;
      flex: 1;
      align-items: center;
      justify-content: flex-start;
      flex-direction: column;
      padding-top: 2rem;
    }
    .dd-search-welcome.visible { display: flex; }
    .dd-search-welcome-icon { font-size: 2rem; margin-bottom: 0.75rem; opacity: 0.6; }
    .dd-search-welcome p { margin: 0 0 0.5rem; line-height: 1.5; }
    .dd-search-hint { font-size: 0.75rem; opacity: 0.7; }
    .dd-search-hint kbd {
      display: inline-block;
      padding: 0.125rem 0.375rem;
      font-size: 0.6875rem;
      font-family: inherit;
      background: var(--reso-gray-200);
      border: 1px solid var(--reso-gray-300);
      border-radius: 0.25rem;
    }
    html.dark .dd-search-welcome { color: #a0aec0; }
    html.dark .dd-search-hint kbd { background: #2d3748; border-color: #4a5568; color: #a0aec0; }

    /* No results message */
    .dd-search-empty {
      display: none;
      text-align: center;
      padding: 3rem 1rem;
      color: var(--reso-gray-500);
      font-size: 0.875rem;
    }
    .dd-search-empty.visible { display: block; }
    html.dark .dd-search-empty { color: #a0aec0; }

    /* Version badge in results */
    .dd-result-version {
      display: inline-block;
      font-size: 0.625rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      padding: 0.125rem 0.4375rem;
      border-radius: 0.1875rem;
      background: var(--reso-gray-100);
      color: var(--reso-gray-500);
      margin-left: 0.5rem;
      vertical-align: middle;
    }

    /* Dark mode search */
    html.dark .search-modal { background: #1e293b !important; }
    html.dark .pagefind-ui .pagefind-ui__form { background: #1e293b; }
    html.dark .pagefind-ui .pagefind-ui__search-input { background: #2d3748 !important; border-color: #4a5568 !important; color: #e2e8f0 !important; }
    html.dark .pagefind-ui .pagefind-ui__search-input::placeholder { color: #718096 !important; }
    html.dark .pagefind-ui .pagefind-ui__search-clear { color: #a0aec0 !important; }
    html.dark .pagefind-ui .pagefind-ui__search-clear:hover { color: #e2e8f0 !important; }
    html.dark .dd-search-meta { border-color: #4a5568; }
    html.dark .pagefind-ui .pagefind-ui__result-link { color: #63b3ed !important; }
    html.dark .pagefind-ui .pagefind-ui__result-excerpt { color: #a0aec0 !important; }
    html.dark .pagefind-ui .pagefind-ui__result { border-color: #4a5568 !important; }
    html.dark .dd-search-filter-pill { background: transparent; border-color: #4a5568; color: #a0aec0; }
    html.dark .dd-search-filter-pill:hover { border-color: #63b3ed; color: #63b3ed; }
    html.dark .dd-search-filter-pill.active { background: var(--reso-blue); border-color: var(--reso-blue); color: white; }
    html.dark .dd-result-version { background: #2d3748; color: #a0aec0; }

    /* Footer */
    .site-footer {
      background: var(--reso-navy);
      color: rgba(255,255,255,0.6);
      text-align: center;
      padding: 1.5rem;
      font-size: 0.8125rem;
    }
    .site-footer a { color: rgba(255,255,255,0.8); text-decoration: none; }
    .site-footer a:hover { color: var(--reso-orange); }
    .dd-page-generated {
      border-top: 1px solid var(--reso-gray-200);
      margin-top: 2rem;
      padding-top: 0.75rem;
      font-size: 0.75rem;
      color: var(--reso-gray-400);
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      flex-wrap: wrap;
      gap: 0.5rem;
    }
    .dd-page-generated a {
      color: var(--reso-gray-500);
      text-decoration: none;
    }
    .dd-page-generated a:hover {
      color: var(--reso-blue);
      text-decoration: underline;
    }

    /* DD Layout */
    .dd-layout {
      display: flex;
      flex: 1;
    }

    /* Sidebar */
    .dd-sidebar {
      width: 280px;
      min-width: 280px;
      background: white;
      border-right: 1px solid var(--reso-gray-200);
      overflow-y: auto;
      position: sticky;
      top: 64px;
      height: calc(100vh - 64px);
      padding: 1rem 0;
      font-size: 0.8125rem;
    }
    .dd-sidebar-header {
      padding: 0 1rem 0.75rem;
      border-bottom: 1px solid var(--reso-gray-200);
      margin-bottom: 0.75rem;
    }
    .dd-sidebar-title {
      font-size: 0.875rem;
      font-weight: 700;
      color: var(--reso-navy);
      margin-bottom: 0.5rem;
    }
    .dd-version-select {
      width: 100%;
      padding: 0.375rem 0.5rem;
      border: 1px solid var(--reso-gray-300);
      border-radius: 0.375rem;
      font-size: 0.8125rem;
      color: var(--reso-gray-700);
      background: white;
      cursor: pointer;
    }
    .dd-version-select:focus {
      outline: none;
      border-color: var(--reso-blue);
      box-shadow: 0 0 0 2px rgba(0,126,158,0.15);
    }

    .dd-sidebar-search {
      position: relative;
      padding: 0 1rem;
      margin-bottom: 0.75rem;
      cursor: pointer;
    }
    .dd-sidebar-search input {
      width: 100%;
      padding: 0.375rem 0.5rem 0.375rem 2rem;
      border: 1px solid var(--reso-gray-300);
      border-radius: 0.375rem;
      font-size: 0.8125rem;
      color: var(--reso-gray-600);
      background: white;
      cursor: pointer;
    }
    .dd-sidebar-search input:hover { border-color: var(--reso-blue); }
    .dd-sidebar-search-icon {
      position: absolute;
      left: 1.5rem;
      top: 50%;
      transform: translateY(-50%);
      width: 14px;
      height: 14px;
      fill: none;
      stroke: var(--reso-gray-500);
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
      pointer-events: none;
    }
    .dd-sidebar-search kbd {
      position: absolute;
      right: 1.5rem;
      top: 50%;
      transform: translateY(-50%);
      font-size: 0.625rem;
      font-family: inherit;
      color: var(--reso-gray-500);
      background: var(--reso-gray-100);
      border: 1px solid var(--reso-gray-300);
      border-radius: 0.1875rem;
      padding: 0.0625rem 0.375rem;
      pointer-events: none;
    }

    .dd-nav-resources { list-style: none; padding: 0; margin: 0; }
    .dd-nav-resource { margin-bottom: 0.125rem; }
    .dd-nav-resource-link {
      display: block;
      padding: 0.375rem 1rem;
      color: var(--reso-gray-700);
      text-decoration: none;
      font-weight: 600;
      transition: background 0.1s;
    }
    .dd-nav-resource-link:hover,
    .dd-nav-resource-link.active {
      background: var(--reso-blue-light);
      color: var(--reso-blue);
    }

    .dd-nav-groups, .dd-nav-subgroups {
      list-style: none;
      padding: 0;
      margin: 0;
      display: none;
    }
    .dd-nav-resource.expanded > .dd-nav-groups { display: block; }
    .dd-nav-group.expanded > .dd-nav-subgroups { display: block; }

    .dd-nav-group-link {
      display: block;
      padding: 0.25rem 1rem 0.25rem 1.75rem;
      color: var(--reso-gray-600);
      text-decoration: none;
      font-size: 0.75rem;
      transition: background 0.1s;
    }
    .dd-nav-group-link:hover { background: var(--reso-gray-100); color: var(--reso-blue); }
    .dd-nav-group-link.active { color: var(--reso-blue); font-weight: 700; background: var(--reso-gray-100); }
    .dd-nav-group.has-children > .dd-nav-group-link::after {
      content: '\25B6';
      font-size: 0.75em;
      margin-left: 0.5rem;
      color: var(--reso-gray-500);
      transition: transform 0.15s;
      display: inline-block;
      vertical-align: middle;
    }
    .dd-nav-group.has-children.expanded > .dd-nav-group-link::after {
      transform: rotate(90deg);
      color: var(--reso-blue);
    }
    .dd-nav-subgroups .dd-nav-group-link { padding-left: 2.5rem; }
    .dd-nav-subgroups .dd-nav-subgroups .dd-nav-group-link { padding-left: 3.25rem; }

    /* Mobile sidebar */
    .dd-sidebar-toggle {
      display: none;
      position: fixed;
      bottom: 1rem;
      left: 1rem;
      z-index: 60;
      background: var(--reso-navy);
      color: white;
      border: none;
      border-radius: 50%;
      width: 48px;
      height: 48px;
      cursor: pointer;
      box-shadow: 0 4px 12px rgba(0,0,0,0.2);
      align-items: center;
      justify-content: center;
    }
    .dd-sidebar-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.3);
      z-index: 54;
    }

    @media (max-width: 768px) {
      .dd-sidebar {
        position: fixed;
        left: -280px;
        top: 64px;
        width: 280px;
        min-width: 0;
        z-index: 55;
        transition: left 0.2s ease;
        box-shadow: 4px 0 12px rgba(0,0,0,0.1);
      }
      .dd-sidebar.open { left: 0; }
      .dd-sidebar-toggle { display: flex; }
      .dd-sidebar-overlay.active { display: block; }
    }

    /* Content */
    .dd-content {
      flex: 1;
      min-width: 0;
      padding: 1.5rem 2rem;
      max-width: 1100px;
    }
    @media (max-width: 768px) {
      .dd-content { padding: 0 1rem 1rem; max-width: 100vw; }
      .dd-metadata-card { overflow-x: auto; }
      .dd-resource-grid { grid-template-columns: 1fr; }
    }

    /* Breadcrumb */
    .dd-breadcrumb { font-size: 0.8125rem; color: var(--reso-gray-500); margin-bottom: 1rem; }
    .dd-breadcrumb a { color: var(--reso-blue); text-decoration: none; }
    .dd-breadcrumb a:hover { text-decoration: underline; }
    .dd-breadcrumb-sep { margin: 0 0.375rem; color: var(--reso-gray-300); }

    /* Page header */
    .dd-page-header { margin-bottom: 0.75rem; }
    .dd-page-header h1 { font-size: 1.5rem; font-weight: 700; color: var(--reso-gray-800); display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
    .dd-page-subtitle { font-size: 0.875rem; color: var(--reso-gray-500); margin-top: 0.25rem; }
    .dd-page-legacy-value { font-size: 0.8125rem; color: var(--reso-gray-500); margin-top: 0.25rem; }
    .dd-page-legacy-value code { background: var(--reso-gray-100); padding: 0.125rem 0.375rem; border-radius: 0.25rem; font-size: 0.8125rem; }
    .dd-callout-label {
      display: block;
      font-size: 0.6875rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--reso-gray-500);
      margin-bottom: 0.25rem;
    }
    .dd-definition-callout {
      background: var(--reso-gray-50);
      border-left: 3px solid var(--reso-blue);
      padding: 0.75rem 1rem;
      margin-bottom: 1.5rem;
      font-size: 0.9375rem;
      line-height: 1.5;
      color: var(--reso-gray-700);
      border-radius: 0 0.375rem 0.375rem 0;
    }
    @media (max-width: 768px) {
      .dd-breadcrumb { margin-bottom: 0.5rem; }
      .dd-page-header { margin-bottom: 0.75rem; }
      .dd-page-header h1 { font-size: 1.25rem; }
      .dd-definition-callout {
        padding: 0.5rem 0.75rem; margin-bottom: 0.75rem; font-size: 0.875rem;
        position: relative;
      }
      .dd-callout-text {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
      }
      .dd-definition-callout.expanded .dd-callout-text {
        -webkit-line-clamp: unset;
        overflow: visible;
      }
    }
    .dd-copy-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: none;
      border: none;
      padding: 0.25rem;
      cursor: pointer;
      color: var(--reso-gray-400);
      border-radius: 0.25rem;
      transition: color 0.15s, background 0.15s;
      flex-shrink: 0;
    }
    .dd-copy-btn:hover { color: var(--reso-blue); background: var(--reso-gray-100); }
    .dd-copy-btn.copied { color: var(--reso-green); }
    .dd-callout-toggle { display: none; }
    @media (max-width: 768px) {
      .dd-definition-callout.needs-toggle .dd-callout-toggle {
        display: inline;
        background: none;
        border: none;
        color: var(--reso-blue);
        font-size: 0.8125rem;
        cursor: pointer;
        padding: 0;
        margin-left: 0.25rem;
      }
    }
    .dd-search-norm { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

    /* Resource grid */
    .dd-resource-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 1rem;
      margin-top: 0.375rem;
    }
    .dd-resource-card {
      background: white;
      border: 1px solid var(--reso-gray-200);
      border-radius: 0.5rem;
      padding: 1rem 1.25rem;
      text-decoration: none;
      color: inherit;
      transition: box-shadow 0.15s, border-color 0.15s;
    }
    .dd-resource-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); border-color: var(--reso-blue); }
    .dd-resource-card h3 { font-size: 0.9375rem; font-weight: 600; color: var(--reso-navy); }
    .dd-resource-desc { font-size: 0.75rem; color: var(--reso-gray-600); line-height: 1.4; margin-top: 0.25rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .dd-resource-count { font-size: 0.75rem; color: var(--reso-gray-500); margin-top: 0.375rem; }

    /* Fields table */
    .dd-fields-table-wrapper { padding-top: 0; }
    /* Hide the thead on xref tables — the sort pill labels replace it */
    .dd-group-heading {
      font-size: 1rem;
      font-weight: 600;
      color: var(--reso-navy);
      margin: 1.5rem 0 0.5rem;
      padding-bottom: 0.375rem;
      border-bottom: 2px solid var(--reso-gray-200);
      scroll-margin-top: calc(var(--sticky-thead-top, 180px) + 2.5rem);
    }
    .dd-group-heading:first-of-type { margin-top: 0; }
    .dd-group-label { font-weight: 400; color: var(--reso-gray-400); font-size: 0.875em; }
    .dd-group-depth-2 { font-size: 0.9375rem; border-bottom-width: 1px; }
    .dd-group-depth-3 { font-size: 0.875rem; border-bottom-width: 1px; }
    .dd-group-parent { color: var(--reso-gray-400); font-weight: 400; }
    .dd-group-sep { color: var(--reso-gray-500); font-weight: 500; font-size: 1.1em; }

    .dd-fields-table, .dd-lookups-table {
      width: 100%;
      border-collapse: separate;
      border-spacing: 0;
      font-size: 0.8125rem;
      background: white;
      border: 1px solid var(--reso-gray-200);
      border-radius: 0.375rem;
      overflow: hidden;
      margin-bottom: 1rem;
    }
    .dd-fields-table th, .dd-fields-table td,
    .dd-lookups-table th, .dd-lookups-table td {
      padding: 0.5rem 0.75rem;
      text-align: left;
      border-bottom: 1px solid var(--reso-gray-100);
    }
    .dd-fields-table th, .dd-lookups-table th {
      background: var(--reso-gray-50);
      font-weight: 600;
      color: var(--reso-gray-600);
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 0.03em;
    }
    /* Sticky column headers — always active */
    .dd-fields-table-wrapper .dd-fields-table {
      table-layout: fixed;
      overflow: visible;
      border-radius: 0;
      border: none;
    }
    /* Hide all table theads — sticky div header replaces them */
    .dd-fields-table-wrapper .dd-fields-table thead {
      display: none;
    }
    /* Sticky column header — uses a real table so column widths
       match the data table exactly (same layout engine). */
    .dd-sticky-col-headers {
      position: sticky;
      top: var(--sticky-thead-top, 180px);
      z-index: 12;
      background: var(--reso-gray-50);
      border-top: 1px solid var(--reso-gray-200);
      border-bottom: 1px solid var(--reso-gray-200);
      box-shadow: 0 1px 0 var(--reso-gray-200);
    }
    .dd-sticky-col-headers table {
      width: 100%;
      table-layout: fixed;
      border-collapse: separate;
      border-spacing: 0;
    }
    .dd-sticky-col-headers th {
      padding: 0.5rem 0.75rem;
      text-align: left;
    }
    .dd-sticky-col-headers th.dd-col-usage {
      text-align: center;
      font-weight: 600;
      color: var(--reso-gray-600);
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 0.03em;
    }
    html.dark .dd-sticky-col-headers {
      background: var(--reso-gray-50);
      color: var(--reso-gray-500);
      border-bottom-color: var(--reso-gray-200);
    }
    .dd-fields-table-wrapper .dd-fields-table {
      table-layout: fixed;
    }
    /* Mobile group indicator — sticky chip below column headers */
    .dd-mobile-group-indicator {
      display: none;
      position: sticky;
      top: calc(var(--sticky-thead-top, 180px) + 1.75rem);
      z-index: 4;
      background: var(--reso-navy);
      color: white;
      font-size: 0.6875rem;
      font-weight: 600;
      padding: 0.25rem 0.625rem;
      border-radius: 0 0 0.375rem 0.375rem;
      width: fit-content;
      margin: 0 auto -0.5rem;
      box-shadow: 0 2px 4px rgba(0,0,0,0.15);
      letter-spacing: 0.02em;
      pointer-events: none;
      transition: opacity 0.15s;
    }
    @media (max-width: 768px) {
      /* Hide Type/Usage columns on mobile for resource field tables.
         No overflow-x on ancestors — sticky thead requires it.
         Lookup and xref tables have their own scrolling wrapper. */
      /* Resource field tables: hide Type + Usage (cols 3-4) */
      .dd-fields-table:not(.dd-xref-table):not(.dd-lookup-table) th:nth-child(n+3),
      .dd-fields-table:not(.dd-xref-table):not(.dd-lookup-table) td:nth-child(n+3) { display: none; }
      .dd-fields-table:not(.dd-xref-table):not(.dd-lookup-table) colgroup col:nth-child(n+3) { width: 0 !important; }
      .dd-fields-table:not(.dd-xref-table):not(.dd-lookup-table) colgroup col:first-child { width: 30% !important; }
      /* Xref tables: hide Type + Usage (cols 4-5), keep Resource + Field + Definition */
      .dd-xref-table th:nth-child(n+4),
      .dd-xref-table td:nth-child(n+4) { display: none; }
      .dd-xref-table colgroup col:nth-child(n+4) { width: 0 !important; }
      .dd-field-def { max-width: none; }
      .dd-fields-table-wrapper { max-width: 100vw; }
      /* Lookup and xref tables scroll horizontally */
      .dd-lookups-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
      .dd-lookups-table { min-width: 500px; }
      /* On mobile: hide sticky div headers, show native theads instead */
      .dd-sticky-col-headers {
        display: none !important;
      }
      .dd-fields-table-wrapper .dd-fields-table thead,
      .dd-lookups-table thead {
        display: table-header-group;
      }
      .dd-fields-table-wrapper .dd-fields-table th,
      .dd-lookups-table th {
        position: sticky;
        top: var(--sticky-thead-top, 80px);
        z-index: 5;
        background: var(--reso-gray-50);
        box-shadow: 0 1px 0 var(--reso-gray-200);
      }
      /* Progressive collapse on version landing pages only.
         Resource pages are already lean — no collapse needed. */
      .dd-condensed-title { display: none; }
      .dd-resource-sticky.scrolled .dd-condensed-title { display: block; }
      .dd-resource-sticky.scrolled .dd-page-header,
      .dd-resource-sticky.scrolled .dd-definition-callout,
      .dd-resource-sticky.scrolled .dd-page-subtitle,
      .dd-resource-sticky.scrolled .dd-breadcrumb { display: none; }
      .dd-resource-sticky.scrolled .dd-toolbar { margin-top: 0; margin-bottom: 0; }
      /* Compact toolbar on mobile: hide sort label, icon-only group toggle */
      .dd-sort-controls .dd-sort-label { display: none; }
      .dd-group-toggle .dd-group-label-text { display: none; }
      .dd-group-toggle {
        padding: 0.25rem 0.375rem !important;
        font-size: 0 !important;
        line-height: 1;
      }
      /* When grouped: show list icon (click to flatten). When flat: show group icon (click to group) */
      .dd-group-toggle.active .dd-icon-list { display: inline-block; }
      .dd-group-toggle:not(.active) .dd-icon-group { display: inline-block; }
      /* Hide mobile group indicator — sticky column headers suffice */
      .dd-fields-table-wrapper.dd-grouped .dd-mobile-group-indicator {
        display: none;
      }
    }
    .dd-fields-table tbody tr:nth-child(even), .dd-lookups-table tbody tr:nth-child(even) {
      background: rgba(0, 0, 0, 0.04);
    }
    .dd-fields-table tbody tr:hover, .dd-lookups-table tbody tr:hover {
      background: var(--reso-blue-light);
    }

    .dd-field-link { color: var(--reso-blue); text-decoration: none; font-weight: 600; }
    .dd-field-link:hover { text-decoration: underline; }
    .dd-field-standard-name {
      font-size: 0.6875rem;
      color: var(--reso-gray-500);
      font-family: 'SFMono-Regular', Consolas, monospace;
    }
    @media (max-width: 768px) {
      .dd-field-standard-name {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
    }
    .dd-field-def { color: var(--reso-gray-600); max-width: 400px; word-wrap: break-word; overflow-wrap: break-word; }
    .dd-xref-resource { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .dd-more-link { color: var(--reso-blue); text-decoration: none; font-size: 0.75rem; }
    .dd-more-link:hover { text-decoration: underline; }

    .dd-type-badge {
      display: inline-block;
      padding: 0.125rem 0.5rem;
      border-radius: 9999px;
      font-size: 0.6875rem;
      font-weight: 600;
      background: var(--reso-gray-100);
      color: var(--reso-gray-600);
      white-space: nowrap;
    }

    /* Usage */
    .dd-usage {
      display: grid;
      grid-template-columns: auto 1fr;
      gap: 0.25rem 0.75rem;
      align-items: center;
    }
    .dd-usage-label { font-size: 0.75rem; font-weight: 600; color: var(--reso-gray-500); text-transform: uppercase; }
    .dd-usage-value { font-size: 1rem; font-weight: 700; color: var(--reso-gray-800); }
    .dd-usage-na .dd-usage-value { color: var(--reso-gray-400); }
    .dd-usage-note { grid-column: 1 / -1; font-size: 0.75rem; color: var(--reso-gray-400); font-style: italic; margin-top: 0.25rem; }
    .dd-usage-badge { font-size: 0.75rem; font-weight: 600; color: var(--reso-green); display: inline-block; text-align: center; }
    .dd-usage-badge-na { color: var(--reso-gray-400); }
    .dd-col-usage, .dd-fields-table .dd-col-usage, .dd-lookups-table .dd-col-usage { text-align: center; }

    .dd-usage-detail { font-size: 0.75rem; color: var(--reso-gray-400); grid-column: 1 / -1; }
    html.dark .dd-usage-detail { color: #718096; }

    /* Metadata card */
    .dd-metadata-card {
      background: white;
      border: 1px solid var(--reso-gray-200);
      border-radius: 0.5rem;
      padding: 1.25rem;
      margin-bottom: 1rem;
    }
    .dd-metadata-card h2 {
      font-size: 0.875rem;
      font-weight: 700;
      color: var(--reso-navy);
      margin-bottom: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 0.03em;
    }
    .dd-metadata-card h3 { font-size: 0.8125rem; font-weight: 600; color: var(--reso-gray-600); margin-bottom: 0.5rem; }

    .dd-metadata-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
    .dd-metadata-table th {
      text-align: left;
      padding: 0.375rem 0.75rem 0.375rem 0;
      color: var(--reso-gray-500);
      font-weight: 600;
      white-space: nowrap;
      vertical-align: top;
      width: 160px;
    }
    .dd-metadata-table th small { display: block; font-size: 0.625rem; font-weight: 400; color: var(--reso-gray-400); text-transform: none; letter-spacing: 0; margin-top: 0.0625rem; }
    .dd-metadata-table td { padding: 0.375rem 0; color: var(--reso-gray-700); vertical-align: top; }
    .dd-metadata-table td .dd-copy-btn { vertical-align: middle; margin-left: 0.25rem; }
    .dd-metadata-table tr { border-bottom: 1px solid var(--reso-gray-100); }

    .dd-meta-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0 2rem;
    }
    @media (max-width: 768px) {
      .dd-meta-grid { grid-template-columns: 1fr; }
    }
    .dd-meta-grid .dd-metadata-table { width: 100%; }

    .dd-no-enums p { font-size: 0.8125rem; color: var(--reso-gray-500); font-style: italic; }

    /* Collapsible panels */
    .dd-collapsible {
      background: white;
      border: 1px solid var(--reso-gray-200);
      border-radius: 0.5rem;
      margin-bottom: 1rem;
      overflow: hidden;
    }
    .dd-collapsible-toggle {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
      padding: 0.75rem 1.25rem;
      background: var(--reso-gray-50);
      border: none;
      cursor: pointer;
      font-size: 0.875rem;
      font-weight: 700;
      color: var(--reso-navy);
      text-transform: uppercase;
      letter-spacing: 0.03em;
    }
    .dd-collapsible-toggle:hover { background: var(--reso-gray-100); }
    .dd-toggle-icon { font-size: 1.25rem; font-weight: 400; color: var(--reso-gray-400); transition: transform 0.15s; }
    .dd-collapsible.open .dd-toggle-icon { transform: rotate(45deg); }
    .dd-collapsible-content { display: none; padding: 1rem 1.25rem; }
    .dd-collapsible.open .dd-collapsible-content { display: block; }

    /* Sticky resource header */
    .dd-resource-sticky {
      position: sticky;
      top: 64px;
      z-index: 10;
      background: var(--reso-gray-50);
      margin: -1.5rem -2rem 0;
      padding: 1.5rem 2rem 0.25rem;
      display: flow-root;
    }
    @media (max-width: 768px) {
      .dd-resource-sticky { margin: 0; padding: 0.25rem 0 0.625rem; }
      .dd-sort-controls { gap: 0.25rem; margin-bottom: 0; }
      .dd-group-toggle { margin-left: auto; padding: 0.25rem 0.5rem; font-size: 0.6875rem; }
    }
    html.dark .dd-resource-sticky { background: var(--reso-gray-50); }

    /* Sticky header for field/lookup detail pages */
    .dd-detail-sticky {
      position: sticky;
      top: 64px;
      z-index: 10;
      background: var(--reso-gray-50);
      margin: -1.5rem -2rem 0;
      padding: 1.5rem 2rem 0.5rem;
    }
    @media (max-width: 768px) {
      .dd-detail-sticky { margin: 0; padding: 0.25rem 0 0.5rem; }
    }
    html.dark .dd-detail-sticky { background: var(--reso-gray-50); }

    /* Toolbar: filter left, sort right, single row on desktop,
       stacked on mobile. Wrap filter + sort in <div class="dd-toolbar">. */
    .dd-toolbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem;
      margin-top: 0.5rem;
      margin-bottom: 0.5rem;
      flex-wrap: wrap;
    }
    @media (max-width: 768px) {
      .dd-toolbar { gap: 0.5rem; }
      .dd-table-filter input { max-width: none; }
    }
    .dd-table-filter {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      flex: 1;
      min-width: 0;
    }
    .dd-table-filter input {
      flex: 1;
      max-width: 320px;
      padding: 0.375rem 0.625rem;
      font-size: 0.8125rem;
      border: 1px solid var(--reso-gray-200);
      border-radius: 0.375rem;
      background: white;
      color: var(--reso-gray-800);
      outline: none;
    }
    .dd-table-filter input:focus { border-color: var(--reso-blue); box-shadow: 0 0 0 2px rgba(0,126,158,0.15); }
    .dd-table-filter input::placeholder { color: var(--reso-gray-400); }
    html.dark .dd-table-filter input { background: var(--reso-gray-100); color: var(--reso-gray-600); border-color: var(--reso-gray-300); }
    html.dark .dd-table-filter input::placeholder { color: var(--reso-gray-400); }
    .dd-table-filter-count { font-size: 0.75rem; color: var(--reso-gray-400); white-space: nowrap; }
    .dd-sort-controls {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      flex-wrap: wrap;
      flex-shrink: 0;
    }
    .dd-sort-controls .dd-sort-label {
      font-size: 0.8125rem;
      font-weight: 600;
      color: var(--reso-gray-500);
      text-transform: uppercase;
      letter-spacing: 0.03em;
    }
    .dd-sort-pill {
      display: inline-flex;
      align-items: center;
      padding: 0.3125rem 0.625rem;
      border: 1px solid var(--reso-gray-300);
      border-radius: 0.375rem;
      font-size: 0.75rem;
      font-weight: 600;
      color: var(--reso-gray-600);
      background: transparent;
      cursor: pointer;
      text-decoration: none;
      transition: border-color 0.15s, color 0.15s, background 0.15s;
      line-height: 1.2;
    }
    .dd-sort-pill:hover { border-color: var(--reso-blue); color: var(--reso-blue); }
    .dd-sort-pill.active { background: var(--reso-blue); border-color: var(--reso-blue); color: white; }
    .dd-sort-pill .dd-sort-arrow { margin-left: 0.25rem; font-size: 0.5rem; }
    .dd-group-toggle {
      margin-left: auto;
      display: inline-flex; align-items: center; gap: 0.25rem;
      padding: 0.3125rem 0.625rem; border: 1px solid var(--reso-gray-300);
      border-radius: 0.375rem; font-size: 0.75rem; font-weight: 600;
      color: var(--reso-gray-600); background: transparent; cursor: pointer;
      transition: border-color 0.15s, color 0.15s, background 0.15s;
      line-height: 1.2;
    }
    .dd-group-toggle .dd-group-icon { display: none; }
    /* When grouped (active): show list icon. When ungrouped: show group icon */
    .dd-group-toggle .dd-icon-list { display: none; }
    .dd-group-toggle .dd-icon-group { display: none; }
    .dd-group-toggle:hover { border-color: var(--reso-blue); color: var(--reso-blue); }
    .dd-group-toggle.active { background: var(--reso-blue); border-color: var(--reso-blue); color: white; }
    /* Mobile sort dropdown — hidden on desktop */
    .dd-sort-select, .dd-sort-dir-btn, .dd-sort-mobile-label { display: none; }
    @media (max-width: 1024px) {
      .dd-sort-pill { display: none; }
      .dd-sort-controls .dd-sort-label { display: none; }
      .dd-sort-mobile-label {
        display: inline-flex;
        align-items: center;
        font-size: 0.75rem;
        font-weight: 600;
        color: var(--reso-gray-500);
        text-transform: uppercase;
        letter-spacing: 0.03em;
      }
      .dd-sort-select {
        display: inline-block;
        font-size: 0.75rem;
        font-weight: 600;
        padding: 0.25rem 0.375rem;
        border: 1px solid var(--reso-gray-300);
        border-radius: 0.375rem;
        background: white;
        color: var(--reso-gray-700);
        cursor: pointer;
      }
      html.dark .dd-sort-select { background: var(--reso-gray-100); color: var(--reso-gray-700); border-color: var(--reso-gray-300); }
      .dd-sort-dir-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0.625rem;
        width: 1.5rem;
        height: 1.5rem;
        border: 1px solid var(--reso-gray-300);
        border-radius: 0.375rem;
        background: white;
        color: var(--reso-gray-600);
        cursor: pointer;
        padding: 0;
      }
      html.dark .dd-sort-dir-btn { background: var(--reso-gray-100); color: var(--reso-gray-700); border-color: var(--reso-gray-300); }
    }

    /* Badge */
    .badge {
      display: inline-flex;
      align-items: center;
      padding: 0.25rem 0.75rem;
      border-radius: 9999px;
      font-size: 0.75rem;
      font-weight: 600;
      white-space: nowrap;
    }
    .badge-orange { background: var(--reso-orange); color: white; }
    .badge-green { background: var(--reso-green); color: white; }

    /* Sidebar sections — collapsible accordion */
    .dd-sidebar-section { margin-bottom: 0; border-bottom: 1px solid var(--reso-gray-200); }
    .dd-sidebar-section-title {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0.625rem 1rem;
      font-size: 0.625rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: var(--reso-gray-500);
      cursor: pointer;
      user-select: none;
    }
    .dd-sidebar-section-title:hover { color: var(--reso-blue); }
    .dd-sidebar-section-title .dd-section-arrow {
      font-size: 0.5rem;
      transition: transform 0.2s;
    }
    .dd-sidebar-section:not(.expanded) .dd-section-arrow { transform: rotate(-90deg); }
    .dd-sidebar-section:not(.expanded) > .dd-nav-resources { display: none; }

    /* About pages */
    .dd-about-section { margin-bottom: 2rem; }
    .dd-about-section h2 {
      font-size: 1.125rem;
      font-weight: 700;
      color: var(--reso-gray-800);
      margin-bottom: 0.75rem;
      padding-bottom: 0.5rem;
      border-bottom: 2px solid var(--reso-gray-200);
    }
    .dd-about-section h3 {
      font-size: 0.9375rem;
      font-weight: 600;
      color: var(--reso-gray-700);
      margin: 1rem 0 0.5rem;
    }
    .dd-about-section p {
      font-size: 0.875rem;
      color: var(--reso-gray-700);
      line-height: 1.7;
      margin-bottom: 0.75rem;
    }
    .dd-about-section ul, .dd-about-section ol {
      font-size: 0.875rem;
      color: var(--reso-gray-700);
      line-height: 1.7;
      margin: 0 0 0.75rem 1.5rem;
    }
    .dd-about-section li { margin-bottom: 0.25rem; }

    .dd-def-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 0.75rem;
      margin-bottom: 1rem;
    }
    .dd-def-item {
      background: white;
      border: 1px solid var(--reso-gray-200);
      border-radius: 0.5rem;
      padding: 1rem 1.25rem;
    }
    html.dark .dd-def-item { background: var(--reso-gray-100); border-color: var(--reso-gray-200); }
    .dd-def-item dt {
      font-size: 0.8125rem;
      font-weight: 700;
      color: var(--reso-navy);
      margin-bottom: 0.25rem;
    }
    html.dark .dd-def-item dt { color: #90cdf4; }
    .dd-def-item dd {
      font-size: 0.8125rem;
      color: var(--reso-gray-600);
      line-height: 1.6;
      margin: 0;
    }
    .dd-def-item .dd-def-values {
      display: flex;
      flex-wrap: wrap;
      gap: 0.375rem;
      margin-top: 0.375rem;
    }
    .dd-def-item .dd-def-tag {
      display: inline-block;
      padding: 0.125rem 0.5rem;
      border-radius: 9999px;
      font-size: 0.6875rem;
      font-weight: 500;
      background: var(--reso-gray-100);
      color: var(--reso-gray-600);
    }
    html.dark .dd-def-item .dd-def-tag { background: var(--reso-gray-200); }

    .dd-about-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.8125rem;
      background: white;
      border: 1px solid var(--reso-gray-200);
      border-radius: 0.375rem;
      overflow: hidden;
      margin-bottom: 1rem;
    }
    html.dark .dd-about-table { background: var(--reso-gray-100); border-color: var(--reso-gray-200); }
    html.dark .dd-about-table th { background: var(--reso-gray-50); color: var(--reso-gray-500); }
    html.dark .dd-about-table td { color: var(--reso-gray-600); }
    html.dark .dd-about-table th, html.dark .dd-about-table td { border-bottom-color: var(--reso-gray-200); }
    html.dark .dd-about-table a { color: #63b3ed; }
    .dd-about-table th, .dd-about-table td {
      padding: 0.5rem 0.75rem;
      text-align: left;
      border-bottom: 1px solid var(--reso-gray-100);
    }
    .dd-about-table th {
      background: var(--reso-gray-50);
      font-weight: 600;
      color: var(--reso-gray-600);
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 0.03em;
    }
    .dd-about-table tbody tr:hover { background: var(--reso-blue-light); }
    .dd-about-table a { color: var(--reso-blue); text-decoration: none; font-weight: 600; }
    .dd-about-table a:hover { text-decoration: underline; }

    .dd-about-cards {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 1rem;
      margin-bottom: 1rem;
    }
    .dd-about-card {
      background: white;
      border: 1px solid var(--reso-gray-200);
      border-radius: 0.5rem;
      padding: 1rem 1.25rem;
      text-decoration: none;
      color: inherit;
      transition: box-shadow 0.15s, border-color 0.15s;
    }
    .dd-about-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); border-color: var(--reso-blue); }
    html.dark .dd-about-card { background: var(--reso-gray-100); border-color: var(--reso-gray-200); }
    .dd-about-card h3 { font-size: 0.9375rem; font-weight: 600; color: var(--reso-navy); margin: 0 0 0.25rem; }
    html.dark .dd-about-card h3 { color: #edf2f7; }
    .dd-about-card p { font-size: 0.75rem; color: var(--reso-gray-600); line-height: 1.4; margin: 0; }

    .dd-callout {
      background: var(--reso-blue-light);
      border-left: 4px solid var(--reso-blue);
      border-radius: 0 0.375rem 0.375rem 0;
      padding: 0.75rem 1rem;
      margin-bottom: 1rem;
      font-size: 0.8125rem;
      color: var(--reso-gray-700);
    }
    .dd-callout strong { color: var(--reso-gray-800); }

    /* Heading anchor links — appear on hover, click to copy permalink */
    .dd-heading-anchor {
      opacity: 0;
      margin-left: 0.375rem;
      color: var(--reso-gray-300);
      text-decoration: none;
      font-weight: 400;
      transition: opacity 0.15s;
      cursor: pointer;
      font-size: 0.75em;
      vertical-align: middle;
    }
    h1:hover .dd-heading-anchor,
    h2:hover .dd-heading-anchor,
    h3:hover .dd-heading-anchor,
    h4:hover .dd-heading-anchor { opacity: 1; }
    .dd-heading-anchor:hover { color: var(--reso-blue); }
    html.dark .dd-heading-anchor { color: var(--reso-gray-600); }
    html.dark .dd-heading-anchor:hover { color: var(--reso-blue); }

    /* Code block copy button */
    .dd-code-wrapper { position: relative; }
    .dd-code-copy {
      position: absolute;
      top: 0.375rem;
      right: 0.375rem;
      background: rgba(255,255,255,0.1);
      border: 1px solid rgba(255,255,255,0.2);
      border-radius: 0.25rem;
      color: var(--reso-gray-400);
      cursor: pointer;
      padding: 0.25rem 0.5rem;
      font-size: 0.6875rem;
      font-family: inherit;
      transition: background 0.15s, color 0.15s;
      opacity: 0;
      z-index: 1;
    }
    .dd-code-wrapper:hover .dd-code-copy { opacity: 1; }
    .dd-code-copy:hover { background: var(--reso-blue); color: white; border-color: var(--reso-blue); }
    .dd-code-copy.copied { background: var(--reso-green); color: white; border-color: var(--reso-green); }