/* Reset and Base Styles */

/* Atlassian Design tokens block inserted from user request to style the info-note
   These variables intentionally shadow earlier tokens where appropriate. */
:root {
  --ds-space-0: 0rem;
  --ds-space-025: 0.125rem;
  --ds-space-050: 0.25rem;
  --ds-space-075: 0.375rem;
  --ds-space-100: 0.5rem;
  --ds-space-150: 0.75rem;
  --ds-space-200: 1rem;
  --ds-space-250: 1.25rem;
  --ds-space-300: 1.5rem;
  --ds-space-400: 2rem;
  --ds-space-500: 2.5rem;
  --ds-space-600: 3rem;
  --ds-space-800: 4rem;
  --ds-space-1000: 5rem;
  --ds-space-negative-025: -0.125rem;
  --ds-space-negative-050: -0.25rem;
  --ds-space-negative-075: -0.375rem;
  --ds-space-negative-100: -0.5rem;
  --ds-space-negative-150: -0.75rem;
  --ds-space-negative-200: -1rem;
  --ds-space-negative-250: -1.25rem;
  --ds-space-negative-300: -1.5rem;
  --ds-space-negative-400: -2rem;
  color-scheme: light;
  --ds-text: #172b4d;
  --ds-text-accent-lime: #4c6b1f;
  --ds-text-accent-lime-bolder: #37471f;
  --ds-text-accent-red: #ae2e24;
  --ds-text-accent-red-bolder: #5d1f1a;
  --ds-text-accent-orange: #a54800;
  --ds-text-accent-orange-bolder: #702e00;
  --ds-text-accent-yellow: #7f5f01;
  --ds-text-accent-yellow-bolder: #533f04;
  --ds-text-accent-green: #216e4e;
  --ds-text-accent-green-bolder: #164b35;
  --ds-text-accent-teal: #206a83;
  --ds-text-accent-teal-bolder: #164555;
  --ds-text-accent-blue: #0055cc;
  --ds-text-accent-blue-bolder: #09326c;
  --ds-text-accent-purple: #5e4db2;
  --ds-text-accent-purple-bolder: #352c63;
  --ds-text-accent-magenta: #943d73;
  --ds-text-accent-magenta-bolder: #50253f;
  --ds-text-accent-gray: #44546f;
  --ds-text-accent-gray-bolder: #091e42;
  --ds-text-disabled: #091e424f;
  --ds-text-inverse: #ffffff;
  --ds-text-selected: #0c66e4;
  --ds-text-brand: #0c66e4;
  --ds-text-danger: #ae2e24;
  --ds-text-warning: #a54800;
  --ds-text-warning-inverse: #172b4d;
  --ds-text-success: #216e4e;
  --ds-text-discovery: #5e4db2;
  --ds-text-information: #0055cc;
  --ds-text-subtlest: #626f86;
  --ds-text-subtle: #44546f;
  --ds-link: #0c66e4;
  --ds-link-pressed: #0055cc;
  --ds-link-visited: #5e4db2;
  --ds-link-visited-pressed: #352c63;
  --ds-icon: #44546f;
  --ds-icon-accent-lime: #6a9a23;
  --ds-icon-accent-red: #c9372c;
  --ds-icon-accent-orange: #e56910;
  --ds-icon-accent-yellow: #b38600;
  --ds-icon-accent-green: #22a06b;
  --ds-icon-accent-teal: #2898bd;
  --ds-icon-accent-blue: #1d7afc;
  --ds-icon-accent-purple: #8270db;
  --ds-icon-accent-magenta: #cd519d;
  --ds-icon-accent-gray: #758195;
  --ds-icon-disabled: #091e424f;
  --ds-icon-inverse: #ffffff;
  --ds-icon-selected: #0c66e4;
  --ds-icon-brand: #0c66e4;
  --ds-icon-danger: #c9372c;
  --ds-icon-warning: #e56910;
  --ds-icon-warning-inverse: #172b4d;
  --ds-icon-success: #22a06b;
  --ds-icon-discovery: #8270db;
  --ds-icon-information: #1d7afc;
  --ds-icon-subtle: #626f86;
  --ds-border: #091e4224;
  --ds-border-accent-lime: #6a9a23;
  --ds-border-accent-red: #e2483d;
  --ds-border-accent-orange: #e56910;
  --ds-border-accent-yellow: #b38600;
  --ds-border-accent-green: #22a06b;
  --ds-border-accent-teal: #2898bd;
  --ds-border-accent-blue: #1d7afc;
  --ds-border-accent-purple: #8270db;
  --ds-border-accent-magenta: #cd519d;
  --ds-border-accent-gray: #758195;
  --ds-border-disabled: #091e420f;
  --ds-border-focused: #388bff;
  --ds-border-input: #8590a2;
  --ds-border-inverse: #ffffff;
  --ds-border-selected: #0c66e4;
  --ds-border-brand: #0c66e4;
  --ds-border-danger: #e2483d;
  --ds-border-warning: #e56910;
  --ds-border-success: #22a06b;
  --ds-border-discovery: #8270db;
  --ds-border-information: #1d7afc;
  --ds-border-bold: #758195;
  --ds-background-accent-lime-subtlest: #efffd6;
  --ds-background-accent-lime-subtlest-hovered: #d3f1a7;
  --ds-background-accent-lime-subtlest-pressed: #b3df72;
  --ds-background-accent-lime-subtler: #d3f1a7;
  --ds-background-accent-lime-subtler-hovered: #b3df72;
  --ds-background-accent-lime-subtler-pressed: #94c748;
  --ds-background-accent-lime-subtle: #94c748;
  --ds-background-accent-lime-subtle-hovered: #b3df72;
  --ds-background-accent-lime-subtle-pressed: #d3f1a7;
  --ds-background-accent-lime-bolder: #5b7f24;
  --ds-background-accent-lime-bolder-hovered: #4c6b1f;
  --ds-background-accent-lime-bolder-pressed: #37471f;
  --ds-background-accent-red-subtlest: #ffeceb;
  --ds-background-accent-red-subtlest-hovered: #ffd5d2;
  --ds-background-accent-red-subtlest-pressed: #fd9891;
  --ds-background-accent-red-subtler: #ffd5d2;
  --ds-background-accent-red-subtler-hovered: #fd9891;
  --ds-background-accent-red-subtler-pressed: #f87168;
  --ds-background-accent-red-subtle: #f87168;
  --ds-background-accent-red-subtle-hovered: #fd9891;
  --ds-background-accent-red-subtle-pressed: #ffd5d2;
  --ds-background-accent-red-bolder: #c9372c;
  --ds-background-accent-red-bolder-hovered: #ae2e24;
  --ds-background-accent-red-bolder-pressed: #5d1f1a;
  --ds-background-accent-orange-subtlest: #fff3eb;
  --ds-background-accent-orange-subtlest-hovered: #fedec8;
  --ds-background-accent-orange-subtlest-pressed: #fec195;
  --ds-background-accent-orange-subtler: #fedec8;
  --ds-background-accent-orange-subtler-hovered: #fec195;
  --ds-background-accent-orange-subtler-pressed: #fea362;
  --ds-background-accent-orange-subtle: #fea362;
  --ds-background-accent-orange-subtle-hovered: #fec195;
  --ds-background-accent-orange-subtle-pressed: #fedec8;
  --ds-background-accent-orange-bolder: #c25100;
  --ds-background-accent-orange-bolder-hovered: #a54800;
  --ds-background-accent-orange-bolder-pressed: #702e00;
  --ds-background-accent-yellow-subtlest: #fff7d6;
  --ds-background-accent-yellow-subtlest-hovered: #f8e6a0;
  --ds-background-accent-yellow-subtlest-pressed: #f5cd47;
  --ds-background-accent-yellow-subtler: #f8e6a0;
  --ds-background-accent-yellow-subtler-hovered: #f5cd47;
  --ds-background-accent-yellow-subtler-pressed: #e2b203;
  --ds-background-accent-yellow-subtle: #f5cd47;
  --ds-background-accent-yellow-subtle-hovered: #e2b203;
  --ds-background-accent-yellow-subtle-pressed: #cf9f02;
  --ds-background-accent-yellow-bolder: #946f00;
  --ds-background-accent-yellow-bolder-hovered: #7f5f01;
  --ds-background-accent-yellow-bolder-pressed: #533f04;
  --ds-background-accent-green-subtlest: #dcfff1;
  --ds-background-accent-green-subtlest-hovered: #baf3db;
  --ds-background-accent-green-subtlest-pressed: #7ee2b8;
  --ds-background-accent-green-subtler: #baf3db;
  --ds-background-accent-green-subtler-hovered: #7ee2b8;
  --ds-background-accent-green-subtler-pressed: #4bce97;
  --ds-background-accent-green-subtle: #4bce97;
  --ds-background-accent-green-subtle-hovered: #7ee2b8;
  --ds-background-accent-green-subtle-pressed: #baf3db;
  --ds-background-accent-green-bolder: #1f845a;
  --ds-background-accent-green-bolder-hovered: #216e4e;
  --ds-background-accent-green-bolder-pressed: #164b35;
  --ds-background-accent-teal-subtlest: #e7f9ff;
  --ds-background-accent-teal-subtlest-hovered: #c6edfb;
  --ds-background-accent-teal-subtlest-pressed: #9dd9ee;
  --ds-background-accent-teal-subtler: #c6edfb;
  --ds-background-accent-teal-subtler-hovered: #9dd9ee;
  --ds-background-accent-teal-subtler-pressed: #6cc3e0;
  --ds-background-accent-teal-subtle: #6cc3e0;
  --ds-background-accent-teal-subtle-hovered: #9dd9ee;
  --ds-background-accent-teal-subtle-pressed: #c6edfb;
  --ds-background-accent-teal-bolder: #227d9b;
  --ds-background-accent-teal-bolder-hovered: #206a83;
  --ds-background-accent-teal-bolder-pressed: #164555;
  --ds-background-accent-blue-subtlest: #e9f2ff;
  --ds-background-accent-blue-subtlest-hovered: #cce0ff;
  --ds-background-accent-blue-subtlest-pressed: #85b8ff;
  --ds-background-accent-blue-subtler: #cce0ff;
  --ds-background-accent-blue-subtler-hovered: #85b8ff;
  --ds-background-accent-blue-subtler-pressed: #579dff;
  --ds-background-accent-blue-subtle: #579dff;
  --ds-background-accent-blue-subtle-hovered: #85b8ff;
  --ds-background-accent-blue-subtle-pressed: #cce0ff;
  --ds-background-accent-blue-bolder: #0c66e4;
  --ds-background-accent-blue-bolder-hovered: #0055cc;
  --ds-background-accent-blue-bolder-pressed: #09326c;
  --ds-background-accent-purple-subtlest: #f3f0ff;
  --ds-background-accent-purple-subtlest-hovered: #dfd8fd;
  --ds-background-accent-purple-subtlest-pressed: #b8acf6;
  --ds-background-accent-purple-subtler: #dfd8fd;
  --ds-background-accent-purple-subtler-hovered: #b8acf6;
  --ds-background-accent-purple-subtler-pressed: #9f8fef;
  --ds-background-accent-purple-subtle: #9f8fef;
  --ds-background-accent-purple-subtle-hovered: #b8acf6;
  --ds-background-accent-purple-subtle-pressed: #dfd8fd;
  --ds-background-accent-purple-bolder: #6e5dc6;
  --ds-background-accent-purple-bolder-hovered: #5e4db2;
  --ds-background-accent-purple-bolder-pressed: #352c63;
  --ds-background-accent-magenta-subtlest: #ffecf8;
  --ds-background-accent-magenta-subtlest-hovered: #fdd0ec;
  --ds-background-accent-magenta-subtlest-pressed: #f797d2;
  --ds-background-accent-magenta-subtler: #fdd0ec;
  --ds-background-accent-magenta-subtler-hovered: #f797d2;
  --ds-background-accent-magenta-subtler-pressed: #e774bb;
  --ds-background-accent-magenta-subtle: #e774bb;
  --ds-background-accent-magenta-subtle-hovered: #f797d2;
  --ds-background-accent-magenta-subtle-pressed: #fdd0ec;
  --ds-background-accent-magenta-bolder: #ae4787;
  --ds-background-accent-magenta-bolder-hovered: #943d73;
  --ds-background-accent-magenta-bolder-pressed: #50253f;
  --ds-background-accent-gray-subtlest: #f1f2f4;
  --ds-background-accent-gray-subtlest-hovered: #dcdfe4;
  --ds-background-accent-gray-subtlest-pressed: #b3b9c4;
  --ds-background-accent-gray-subtler: #dcdfe4;
  --ds-background-accent-gray-subtler-hovered: #b3b9c4;
  --ds-background-accent-gray-subtler-pressed: #8590a2;
  --ds-background-accent-gray-subtle: #8590a2;
  --ds-background-accent-gray-subtle-hovered: #b3b9c4;
  --ds-background-accent-gray-subtle-pressed: #dcdfe4;
  --ds-background-accent-gray-bolder: #626f86;
  --ds-background-accent-gray-bolder-hovered: #44546f;
  --ds-background-accent-gray-bolder-pressed: #2c3e5d;
  --ds-background-disabled: #091e4208;
  --ds-background-input: #ffffff;
  --ds-background-input-hovered: #f7f8f9;
  --ds-background-input-pressed: #ffffff;
  --ds-background-inverse-subtle: #00000029;
  --ds-background-inverse-subtle-hovered: #0000003d;
  --ds-background-inverse-subtle-pressed: #00000052;
  --ds-background-neutral: #091e420f;
  --ds-background-neutral-hovered: #091e4224;
  --ds-background-neutral-pressed: #091e424f;
  --ds-background-neutral-subtle: #00000000;
  --ds-background-neutral-subtle-hovered: #091e420f;
  --ds-background-neutral-subtle-pressed: #091e4224;
  --ds-background-neutral-bold: #44546f;
  --ds-background-neutral-bold-hovered: #2c3e5d;
  --ds-background-neutral-bold-pressed: #172b4d;
  --ds-background-selected: #e9f2ff;
  --ds-background-selected-hovered: #cce0ff;
  --ds-background-selected-pressed: #85b8ff;
  --ds-background-selected-bold: #0c66e4;
  --ds-background-selected-bold-hovered: #0055cc;
  --ds-background-selected-bold-pressed: #09326c;
  --ds-background-brand-subtlest: #e9f2ff;
  --ds-background-brand-subtlest-hovered: #cce0ff;
  --ds-background-brand-subtlest-pressed: #85b8ff;
  --ds-background-brand-bold: #0c66e4;
  --ds-background-brand-bold-hovered: #0055cc;
  --ds-background-brand-bold-pressed: #09326c;
  --ds-background-brand-boldest: #1c2b41;
  --ds-background-brand-boldest-hovered: #09326c;
  --ds-background-brand-boldest-pressed: #0055cc;
  --ds-background-danger: #ffeceb;
  --ds-background-danger-hovered: #ffd5d2;
  --ds-background-danger-pressed: #fd9891;
  --ds-background-danger-bold: #c9372c;
  --ds-background-danger-bold-hovered: #ae2e24;
  --ds-background-danger-bold-pressed: #5d1f1a;
  --ds-background-warning: #fff7d6;
  --ds-background-warning-hovered: #f8e6a0;
  --ds-background-warning-pressed: #f5cd47;
  --ds-background-warning-bold: #f5cd47;
  --ds-background-warning-bold-hovered: #e2b203;
  --ds-background-warning-bold-pressed: #cf9f02;
  --ds-background-success: #dcfff1;
  --ds-background-success-hovered: #baf3db;
  --ds-background-success-pressed: #7ee2b8;
  --ds-background-success-bold: #1f845a;
  --ds-background-success-bold-hovered: #216e4e;
  --ds-background-success-bold-pressed: #164b35;
  --ds-background-discovery: #f3f0ff;
  --ds-background-discovery-hovered: #dfd8fd;
  --ds-background-discovery-pressed: #b8acf6;
  --ds-background-discovery-bold: #6e5dc6;
  --ds-background-discovery-bold-hovered: #5e4db2;
  --ds-background-discovery-bold-pressed: #352c63;
  --ds-background-information: #e9f2ff;
  --ds-background-information-hovered: #cce0ff;
  --ds-background-information-pressed: #85b8ff;
  --ds-background-information-bold: #0c66e4;
  --ds-background-information-bold-hovered: #0055cc;
  --ds-background-information-bold-pressed: #09326c;
  --ds-blanket: #091e427d;
  --ds-blanket-selected: #388bff14;
  --ds-blanket-danger: #ef5c4814;
  --ds-interaction-hovered: #00000029;
  --ds-interaction-pressed: #00000052;
  --ds-skeleton: #091e420f;
  --ds-skeleton-subtle: #091e4208;
  --ds-chart-categorical-1: #2898bd;
  --ds-chart-categorical-1-hovered: #227d9b;
  --ds-chart-categorical-2: #5e4db2;
  --ds-chart-categorical-2-hovered: #352c63;
  --ds-chart-categorical-3: #e56910;
  --ds-chart-categorical-3-hovered: #c25100;
  --ds-chart-categorical-4: #943d73;
  --ds-chart-categorical-4-hovered: #50253f;
  --ds-chart-categorical-5: #09326c;
  --ds-chart-categorical-5-hovered: #1c2b41;
  --ds-chart-categorical-6: #8f7ee7;
  --ds-chart-categorical-6-hovered: #8270db;
  --ds-chart-categorical-7: #50253f;
  --ds-chart-categorical-7-hovered: #3d2232;
  --ds-chart-categorical-8: #a54800;
  --ds-chart-categorical-8-hovered: #702e00;
  --ds-chart-lime-bold: #6a9a23;
  --ds-chart-lime-bold-hovered: #5b7f24;
  --ds-chart-lime-bolder: #5b7f24;
  --ds-chart-lime-bolder-hovered: #4c6b1f;
  --ds-chart-lime-boldest: #4c6b1f;
  --ds-chart-lime-boldest-hovered: #37471f;
  --ds-chart-neutral: #8590a2;
  --ds-chart-neutral-hovered: #758195;
  --ds-chart-red-bold: #f15b50;
  --ds-chart-red-bold-hovered: #e2483d;
  --ds-chart-red-bolder: #e2483d;
  --ds-chart-red-bolder-hovered: #c9372c;
  --ds-chart-red-boldest: #ae2e24;
  --ds-chart-red-boldest-hovered: #5d1f1a;
  --ds-chart-orange-bold: #e56910;
  --ds-chart-orange-bold-hovered: #c25100;
  --ds-chart-orange-bolder: #c25100;
  --ds-chart-orange-bolder-hovered: #a54800;
  --ds-chart-orange-boldest: #a54800;
  --ds-chart-orange-boldest-hovered: #702e00;
  --ds-chart-yellow-bold: #b38600;
  --ds-chart-yellow-bold-hovered: #946f00;
  --ds-chart-yellow-bolder: #946f00;
  --ds-chart-yellow-bolder-hovered: #7f5f01;
  --ds-chart-yellow-boldest: #7f5f01;
  --ds-chart-yellow-boldest-hovered: #533f04;
  --ds-chart-green-bold: #22a06b;
  --ds-chart-green-bold-hovered: #1f845a;
  --ds-chart-green-bolder: #1f845a;
  --ds-chart-green-bolder-hovered: #216e4e;
  --ds-chart-green-boldest: #216e4e;
  --ds-chart-green-boldest-hovered: #164b35;
  --ds-chart-teal-bold: #2898bd;
  --ds-chart-teal-bold-hovered: #227d9b;
  --ds-chart-teal-bolder: #227d9b;
  --ds-chart-teal-bolder-hovered: #206a83;
  --ds-chart-teal-boldest: #206a83;
  --ds-chart-teal-boldest-hovered: #164555;
  --ds-chart-blue-bold: #388bff;
  --ds-chart-blue-bold-hovered: #1d7afc;
  --ds-chart-blue-bolder: #1d7afc;
  --ds-chart-blue-bolder-hovered: #0c66e4;
  --ds-chart-blue-boldest: #0055cc;
  --ds-chart-blue-boldest-hovered: #09326c;
  --ds-chart-purple-bold: #8f7ee7;
  --ds-chart-purple-bold-hovered: #8270db;
  --ds-chart-purple-bolder: #8270db;
  --ds-chart-purple-bolder-hovered: #6e5dc6;
  --ds-chart-purple-boldest: #5e4db2;
  --ds-chart-purple-boldest-hovered: #352c63;
  --ds-chart-magenta-bold: #da62ac;
  --ds-chart-magenta-bold-hovered: #cd519d;
  --ds-chart-magenta-bolder: #cd519d;
  --ds-chart-magenta-bolder-hovered: #ae4787;
  --ds-chart-magenta-boldest: #943d73;
  --ds-chart-magenta-boldest-hovered: #50253f;
  --ds-chart-gray-bold: #8590a2;
  --ds-chart-gray-bold-hovered: #758195;
  --ds-chart-gray-bolder: #758195;
  --ds-chart-gray-bolder-hovered: #626f86;
  --ds-chart-gray-boldest: #44546f;
  --ds-chart-gray-boldest-hovered: #2c3e5d;
  --ds-chart-brand: #1d7afc;
  --ds-chart-brand-hovered: #0c66e4;
  --ds-chart-danger: #f15b50;
  --ds-chart-danger-hovered: #e2483d;
  --ds-surface: #ffffff;
  --ds-surface-hovered: #f1f2f4;
  --ds-surface-pressed: #dcdfe4;
  --ds-surface-overlay: #ffffff;
  --ds-surface-overlay-hovered: #f1f2f4;
  --ds-surface-overlay-pressed: #dcdfe4;
  --ds-surface-raised: #ffffff;
  --ds-shadow-overflow: 0px 0px 8px #091e4229, 0px 0px 1px #091e421f;
  --ds-shadow-overflow-perimeter: #091e421f;
  --ds-shadow-overflow-spread: #091e4229;
  --ds-shadow-overlay: 0px 8px 12px #091e4226, 0px 0px 1px #091e424f;
  --ds-shadow-raised: 0px 1px 1px #091e4240, 0px 0px 1px #091e424f;
  --ds-opacity-disabled: 0.4;
  --ds-opacity-loading: 0.2;
  --ds-UNSAFE-transparent: transparent;
  --ds-elevation-surface-current: #ffffff;
  font: var(
    --ds-font-body,
    normal 400 14px/1.42857142857143 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Roboto",
    "Oxygen",
    "Ubuntu",
    "Fira Sans",
    "Droid Sans",
    "Helvetica Neue",
    sans-serif
  );
  text-decoration-skip-ink: auto;
  font-style: normal;
  font-family: Inter, sans-serif;
  color: var(--ds-text-accent-gray-bolder);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  box-sizing: border-box;
  padding: 0;
  margin: var(--ds-space-150, 12px) 0 0 0;
  margin-top: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
    sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--bg-white);
  overflow-x: hidden;
}
:root {
  --text-light: #6b778c;
  --border-color: #dfe1e6;
  --bg-light: #f4f5f7;
  --bg-white: #ffffff;
  --info-bg: #deebff;
  --info-border: #4c9aff;
  --sidebar-width: 280px;
  --toc-width: 200px;
  --header-height: 64px;
  /* Atlassian Design System – Typography tokens (approximate) */
  --font-family-base: "Charlie Text", "Charlie Sans", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans",
    "Liberation Sans", sans-serif;
  --font-family-code: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  --font-size-body: 16px; /* Increased from 14px */
  --line-height-body: 1.6;
  --h1-size: 32px; /* Increased from 28px */
  --h1-line: 1.25;
  --h1-weight: 700;
  --h2-size: 28px; /* Increased from 24px */
  --h2-line: 1.3;
  --h2-weight: 700;
  --h3-size: 22px; /* Increased from 20px */
  --h3-line: 1.4;
  --h3-weight: 600;
  --h4-size: 20px; /* Increased from 18px */
  --h4-line: 1.4;
  --h4-weight: 600;

  /* Atlassian spacing scale (approximate) */
  --space-050: 2px;
  --space-100: 4px;
  --space-200: 8px;
  --space-300: 12px;
  --space-400: 16px;
  --space-500: 20px;
  --space-600: 24px;
  --space-800: 32px;

  /* Radii */
  --radius-100: 3px;
  --radius-200: 4px;
  --radius-300: 8px;

  /* Elevation */
  --elevation-100: 0 1px 1px rgba(9, 30, 66, 0.15);
  --elevation-200: 0 1px 3px rgba(9, 30, 66, 0.2);

  /* Links & focus */
  --link: #0052cc;
  --link-hover: #0747a6;
  --link-active: #172b4d;
  --focus-ring: #4c9aff;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
    sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--bg-white);
  overflow-x: hidden;
}
body {
  font-family: var(--font-family-base);
  color: var(--text-dark);
  line-height: var(--line-height-body);
  font-size: var(--font-size-body);
  background-color: var(--bg-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Global link styles (ADS-like) */
a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

a:active {
  color: var(--link-active);
}

/* Selection styling */
::selection {
  background-color: #0052cc;
  color: #ffffff;
}

::-moz-selection {
  background-color: #0052cc;
  color: #ffffff;
}

::-moz-selection {
  background-color: var(--primary-color);
  color: white;
}

/* Page load animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.article {
  animation: fadeIn 0.5s ease-out;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 24px;
  max-width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
}

.logo-icon {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-weight: 600;
}
.header-nav {
  display: flex;
  gap: 24px;
  flex: 1;
  justify-content: center;
}

.header-nav a {
  color: var(--text-dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.header-nav a:hover {
  color: var(--primary-color);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dropdown-btn {
  padding: var(--space-200) var(--space-400);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-200);
  background-color: var(--bg-white);
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.dropdown-btn:hover {
  background-color: var(--bg-light);
}

.dropdown-btn:focus-visible,
.search-btn:focus-visible,
.sidebar-toggle:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* Version Dropdown */
.version-dropdown {
  position: relative;
}

.version-btn {
  min-width: 140px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.version-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1001;
}

.version-dropdown:hover .version-menu,
.version-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 10px 16px;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.2s;
  border-bottom: 1px solid var(--border-color);
}

.dropdown-item:last-child {
  border-bottom: none;
  border-radius: 0 0 4px 4px;
}

.dropdown-item:first-child {
  border-radius: 4px 4px 0 0;
}

.dropdown-item:hover {
  background-color: var(--bg-light);
}

.dropdown-item.active {
  background-color: #e3f2fd;
  color: var(--primary-color);
  font-weight: 600;
}

.dropdown-item.active::after {
  content: " ✓";
  float: right;
}

.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  color: var(--text-medium);
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
}

.search-btn:hover {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

/* Search Modal */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
  backdrop-filter: blur(4px);
}

.search-modal.active {
  display: flex;
  animation: fadeIn 0.2s ease-out;
}

.search-modal-content {
  width: 90%;
  max-width: 600px;
  background: var(--bg-white);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  gap: 12px;
}

.search-icon {
  color: var(--text-medium);
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  color: var(--text-dark);
  background: transparent;
}

.search-input::placeholder {
  color: var(--text-light);
}

.search-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--bg-light);
  color: var(--text-medium);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.search-close:hover {
  background-color: var(--border-color);
  color: var(--text-dark);
}

.search-results {
  max-height: 60vh;
  overflow-y: auto;
  padding: 12px;
}

.search-hint {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-medium);
  font-size: 14px;
}

.search-result-item {
  padding: 12px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
  margin-bottom: 8px;
}

.search-result-item:hover {
  background-color: var(--bg-light);
  border-color: var(--border-color);
}

.search-result-item.selected {
  background-color: var(--info-bg);
  border-color: var(--info-border);
}

.search-result-title {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 14px;
  margin-bottom: 4px;
}

.search-result-section {
  font-size: 12px;
  color: var(--text-medium);
  margin-bottom: 4px;
}

.search-result-preview {
  font-size: 13px;
  color: var(--text-medium);
  line-height: 1.5;
}

.search-result-preview mark {
  background-color: #fff59d;
  color: var(--text-dark);
  padding: 2px 4px;
  border-radius: 2px;
  font-weight: 500;
}

.search-no-results {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-medium);
}

.search-no-results-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.3;
}

.search-no-results-text {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
}

.search-no-results-hint {
  font-size: 14px;
  color: var(--text-light);
}

/* Main Container */
.main-container {
  display: flex;
  margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
  position: relative;
}

/* Sidebar */
.sidebar {
  position: fixed;
  left: 0;
  top: var(--header-height);
  width: var(--sidebar-width);
  height: calc(100vh - var(--header-height));
  background-color: var(--bg-light);
  border-right: 1px solid var(--border-color);
  overflow-y: auto;
  padding: 24px 0;
  z-index: 100;
  transition: transform 0.3s ease;
}

/* Sidebar collapsed state */
body.sidebar-collapsed .sidebar {
  transform: translateX(-100%);
}

body.sidebar-collapsed .content {
  margin-left: 0;
}

body.sidebar-collapsed .toc {
  right: 20px;
}

.sidebar-nav {
  padding: 0 16px;
}

/* Sidebar product header (inspired by Twilio's 'Programmable Messaging' pill) */
.sidebar-product-card {
  margin: 0 0 16px 0;
  padding: 14px 12px;
  border-radius: 8px;
  background: #eceff3; /* light grey card, subtly different from sidebar */
  color: var(--text-dark);
  font-weight: 700;
  font-size: 15px;
  border: 1px solid var(--border-color);
  box-shadow: var(--elevation-100);
  cursor: pointer;
  user-select: none;
}

.sidebar-product-card:hover {
  background: #f1f3f6; /* keep hover subtle, no color shift to blue */
}

.sidebar-product-title {
  line-height: 1.35;
}

.nav-section {
  margin-bottom: 8px;
}

.nav-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: var(--space-200) var(--space-300);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  border-radius: var(--radius-200);
  transition: background-color 0.2s;
  user-select: none;
  word-wrap: break-word;
  line-height: 1.4;
}

.nav-section-title:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.nav-section-title:hover {
  background-color: rgba(9, 30, 66, 0.08);
}

.nav-section-title.active-section {
  background-color: rgba(0, 82, 204, 0.1);
  color: var(--primary-color);
}

.nav-section-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.2s;
  cursor: pointer;
  padding: 2px;
  border-radius: 2px;
}

.nav-section-icon:hover {
  background-color: rgba(9, 30, 66, 0.15);
}

.nav-section-text {
  flex: 1;
  cursor: pointer;
}

.nav-section.expanded .nav-section-icon {
  transform: rotate(90deg);
}

.nav-items {
  display: none;
  padding-left: 24px;
  margin-top: 4px;
}

.nav-section.expanded .nav-items {
  display: block;
}

.nav-item {
  display: block;
  padding: 8px 12px 8px 20px;
  font-size: 14px;
  color: var(--text-medium);
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s;
  margin-bottom: 4px;
  position: relative;
  cursor: pointer;
}

.nav-item:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.nav-item::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background-color: var(--primary-color);
  border-radius: 0 2px 2px 0;
  transition: height 0.2s;
}

.nav-item:hover::before {
  height: 60%;
}

.nav-item:hover {
  background-color: rgba(9, 30, 66, 0.04);
  color: var(--text-dark);
  padding-left: 24px;
}

.nav-item.active {
  background-color: rgba(0, 82, 204, 0.08);
  color: var(--primary-color);
  font-weight: 500;
  padding-left: 24px;
}

.nav-item.active::before {
  height: 60%;
  background-color: var(--primary-color);
}

/* Content */
.content {
  margin-left: var(--sidebar-width);
  margin-right: var(--toc-width);
  padding: 40px 60px;
  max-width: 1200px;
  width: 100%;
  flex: 1;
}

.content-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.sidebar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  width: 32px;
  height: 32px;
  top: 84px;
  left: 260px; /* Positioned at the edge of sidebar (240px width + 20px margin) */
  background-color: #ffffff;
  border: none;
  border-radius: 3px;
  box-shadow: rgba(9, 30, 66, 0.31) 0px 0px 1px 0px,
    rgba(9, 30, 66, 0.25) 0px 1px 1px 0px;
  color: var(--ds-icon, #44546f);
  cursor: pointer;
  padding: 0;
  z-index: 100;
  transition: left 0.3s ease, background-color 0.2s ease;
}

.sidebar-toggle:hover {
  background-color: #f1f2f4;
}

/* When sidebar is collapsed */
body.sidebar-collapsed .sidebar-toggle {
  left: 20px; /* Move to left when sidebar is hidden */
}

/* Rotate icon when sidebar is collapsed */
body.sidebar-collapsed .sidebar-toggle svg {
  transform: rotate(180deg);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-medium);
}

.breadcrumb-link {
  color: var(--text-medium);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

.breadcrumb-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.2s;
}

.breadcrumb-link:hover {
  color: var(--primary-color);
}

.breadcrumb-link:hover::after {
  width: 100%;
}

.breadcrumb-separator {
  color: var(--text-light);
}

/* Article */
.article-title {
  font-size: var(--h1-size);
  font-weight: var(--h1-weight);
  color: var(--text-dark);
  margin-bottom: var(--space-300);
  line-height: var(--h1-line);
}

.article-description {
  font-size: 16px;
  color: var(--text-medium);
  margin-bottom: var(--space-600);
  line-height: 1.6;
}

.article-content {
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
}

/* Gray background section after annotated image */
.gray-background-section {
  /* background-color: rgb(247, 248, 249); */
  margin-left: -40px;
  margin-right: -40px;
  padding: 80px 40px 80px 40px;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .gray-background-section {
    margin-left: -20px;
    margin-right: -20px;
    padding: 40px 20px 40px 20px;
    margin-top: 24px;
  }
}

/* Benefit Cards */
.benefit-card {
  background-color: #ffffff;
  border: 1px solid #dfe1e6;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
  display: flex;
  gap: 20px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.benefit-card:hover {
  box-shadow: 0 4px 8px rgba(9, 30, 66, 0.08), 0 0 1px rgba(9, 30, 66, 0.12);
  border-color: #b3d4ff;
}

.benefit-card-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background-color: #deebff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0052cc;
}

.benefit-card-content {
  flex: 1;
}

.benefit-card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.benefit-card-description {
  font-size: 14px;
  color: var(--text-medium);
  margin: 0 0 16px 0;
  line-height: 1.6;
}

.benefit-card-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefit-card-highlights li {
  font-size: 14px;
  color: var(--text-medium);
  line-height: 1.6;
  padding: 8px 12px;
  margin-bottom: 6px;
  background-color: #f4f5f7;
  border-radius: 4px;
  border-left: 3px solid #0052cc;
}

.benefit-card-highlights li strong {
  color: var(--text-dark);
  font-weight: 600;
}

@media (max-width: 768px) {
  .benefit-card {
    flex-direction: column;
    padding: 20px;
    gap: 16px;
  }

  .benefit-card-icon {
    width: 40px;
    height: 40px;
  }

  .benefit-card-title {
    font-size: 16px;
  }
}

/* Tabbed Section */
.tabbed-section {
  margin: 20px 0;
}

.tab-nav {
  background: #ffffff;
  border: 1px solid #dfe1e6;
  border-radius: 8px;
  overflow: hidden;
}

.tab-list {
  list-style-type: none;
  border-bottom: none;
  margin: 0;
  margin-top: 0;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  overflow-x: auto;
  background-color: #ffffff;
}

.tab-item {
  display: inline-block;
  position: relative;
}

.tab-button {
  appearance: none;
  background: transparent;
  border: 1.5px solid #8590a2;
  border-radius: 24px;
  color: #172b4d;
  cursor: pointer;
  font-family: Charlie Text, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.42857142857143;
  margin: 0;
  padding: 8px 20px;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  width: auto;
  position: relative;
}

.tab-button:hover {
  background-color: #f7f8f9;
  border-color: #172b4d;
  color: #172b4d;
}

.tab-button.active {
  background-color: #1c2b41;
  border-color: #1c2b41;
  color: #ffffff;
  font-weight: 600;
}

.tab-button.active::after {
  display: none;
}

.tab-label {
  display: block;
  font-family: Charlie Text, sans-serif;
}

.tab-content-wrapper {
  position: relative;
  background-color: #ffffff;
}

.tab-content {
  display: none;
  padding: 32px 24px;
  animation: fadeIn 0.3s ease-in;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-intro {
  font-size: 16px;
  color: var(--text-medium);
  margin-bottom: 20px;
  line-height: 1.6;
}

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

.tab-items-list.simple-bullets {
  list-style: disc;
  padding-left: 24px;
  margin-left: 0;
}

.tab-item-bullet {
  font-size: 16px;
  color: var(--text-medium);
  line-height: 1.8;
  margin-bottom: 14px;
  padding: 0;
}

.tab-item-bullet .tab-item-title {
  display: inline;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.tab-item-card {
  padding: 20px;
  margin-bottom: 16px;
  background-color: #f7f8f9;
  border-left: 3px solid #0052cc;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.tab-item-card:hover {
  background-color: #deebff;
  box-shadow: 0 2px 4px rgba(9, 30, 66, 0.08);
}

.tab-item-card .tab-item-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 8px 0;
  display: block;
}

.tab-item-description {
  font-size: 14px;
  color: var(--text-medium);
  line-height: 1.6;
  margin: 0 0 12px 0;
}

.tab-item-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

.tab-item-benefits li {
  font-size: 13px;
  color: var(--text-medium);
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}

.tab-item-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #0052cc;
  font-weight: bold;
}

@media (max-width: 768px) {
  .tab-button {
    padding: 12px 16px;
    font-size: 13px;
  }

  .tab-content {
    padding: 24px 16px;
  }

  .tab-item-card {
    padding: 16px;
  }
}

/* Hero (Twilio-like) */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.3fr; /* Give more space to image column */
  gap: 48px;
  align-items: center;
  padding: 12px 0 24px 0;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 40px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-medium);
  margin-bottom: 20px;
}

.hero-cta-group {
  display: grid;
  row-gap: 12px;
  max-width: 380px;
}

.hero-cta {
  text-align: left;
  padding: 12px 16px;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  box-shadow: var(--elevation-100);
}

.hero-cta:hover {
  background: var(--bg-light);
}

.hero-cta-arrow {
  color: var(--text-light);
  margin-left: 8px;
}

.hero-code-card {
  position: relative;
  background: #0d1b2a;
  color: #dbe2ef;
  border-radius: 10px;
  padding: 12px 12px 36px 12px;
  box-shadow: 0 12px 24px rgba(13, 27, 42, 0.25);
}

.hero-image-card {
  position: relative;
  overflow: visible; /* Allow image to extend beyond container */
  /* Frame removed for cleaner, larger display */
}

.hero-image-card img {
  width: 100%; /* Full width of container */
  max-width: none; /* Remove max-width constraint */
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Twilio-style numbered callout badges */
.hero-callout {
  position: absolute;
  cursor: default;
  z-index: 40;
}

.hero-callout-inner {
  position: relative;
  width: 2.25rem; /* Reduced from 3rem */
  height: 2.25rem; /* Reduced from 3rem */
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.9) 0%,
    rgba(37, 99, 235, 0.95) 100%
  );
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.35),
    0 0 0 3px rgba(59, 130, 246, 0.15), 0 0 0 6px rgba(59, 130, 246, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse-callout 2s ease-in-out infinite;
}

.hero-callout-number {
  color: white;
  font-size: 0.95rem; /* Reduced from 1.125rem */
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

@keyframes pulse-callout {
  0%,
  100% {
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35),
      0 0 0 4px rgba(59, 130, 246, 0.15), 0 0 0 8px rgba(59, 130, 246, 0.08);
  }
  50% {
    box-shadow: 0 4px 18px rgba(37, 99, 235, 0.45),
      0 0 0 6px rgba(59, 130, 246, 0.2), 0 0 0 12px rgba(59, 130, 246, 0.12);
  }
}

/* Callout tooltip */
.hero-callout-tooltip {
  position: absolute;
  top: 50%;
  right: calc(100% + 12px);
  transform: translateY(-50%);
  background: rgba(23, 43, 77, 0.95);
  color: white;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.5;
  white-space: normal;
  max-width: 280px;
  min-width: 200px;
  text-align: left;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 10000; /* High z-index to appear above TOC and other elements */
  pointer-events: none;
}

.hero-callout-tooltip::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: rgba(23, 43, 77, 0.95);
}

.hero-callout:hover .hero-callout-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(-4px);
}

.hero-code-header {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #8fb3ff;
  text-transform: uppercase;
  margin: 8px 8px 0 8px;
}

.hero-pre {
  margin: 8px;
  overflow: auto;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px;
  max-height: 360px;
}

.hero-examples {
  display: inline-block;
  margin: 8px 8px 0 8px;
  color: #a1c5ff;
}

.hero-bubble {
  position: absolute;
  right: 12px;
  bottom: -10px;
  background: #ffffff;
  color: var(--text-dark);
  border-radius: 8px;
  padding: 10px 14px;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.15);
}

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

/* Learning Objectives Banner */
.objectives-banner {
  background: linear-gradient(135deg, #fff4e0 0%, #ffeac2 100%);
  border-radius: var(--radius-200);
  padding: var(--space-500);
  margin: var(--space-500) 0;
  box-shadow: var(--elevation-100);
}

.objectives-banner-header {
  display: flex;
  align-items: center;
  gap: var(--space-300);
  margin-bottom: var(--space-400);
}

.objectives-banner-header h1 {
  font-size: 32px;
  font-weight: 700;
  color: #172b4d;
  margin: 0;
}

.objectives-banner-subtitle {
  font-size: 16px;
  color: #5e6c84;
  line-height: 1.6;
  margin-top: var(--space-200);
  margin-bottom: 0;
  padding-bottom: var(--space-400);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.objectives-banner-badges {
  display: flex;
  gap: var(--space-200);
}

.objectives-badge {
  display: inline-block;
  padding: 4px 12px;
  background: white;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #0052cc;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.objectives-banner h3 {
  font-size: 16px;
  font-weight: 600;
  color: #172b4d;
  margin-bottom: var(--space-300);
}

.objectives-banner ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.objectives-banner ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: var(--space-200);
  color: #172b4d;
  line-height: 1.6;
}

.objectives-banner ul li::before {
  content: "•";
  position: absolute;
  left: 8px;
  color: #0052cc;
  font-weight: bold;
}

/* Info Message Box (Atlassian style) */
.info-message-box {
  margin: 0;
  padding: 0;
  padding-bottom: 40px;
  padding-top: 20px;
  justify-content: center;
  width: 100%;
  display: flex;
}

.info-message-content {
  background-color: #ffffff;
  border: 1px solid #091e4224;
  border-radius: 3px;
  padding: 24px 32px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
  min-height: 80px;
}

.info-message-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1d7afc;
}

.info-message-icon svg {
  width: 24px;
  height: 24px;
}

.info-message-icon path {
  fill: #1d7afc;
}

.info-message-icon rect,
.info-message-icon circle {
  fill: #ffffff;
}

.info-message-text {
  flex: 1;
  font-family: Charlie Text, sans-serif;
}

.info-message-title {
  margin: 0 0 8px 0 !important;
  font-size: 15px;
  line-height: 1.5;
  color: #172b4d;
}

.info-message-text p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #172b4d;
}

/* Styled info-note used for site admin callouts (Atlassian tokens applied) */
.info-note {
  display: flex;
  gap: var(--ds-space-200, 1rem);
  align-items: flex-start;
  /* increase inner padding so content breathes */
  padding: calc(var(--ds-space-300, 1.5rem) + 12px) var(--ds-space-300, 1.5rem);
  background-color: var(--ds-background-information, #e9f2ff);
  border: 1px solid var(--ds-border-information, rgba(29, 122, 252, 0.15));
  border-radius: 8px;
  color: var(--ds-text, #172b4d);
  box-shadow: var(--ds-shadow-overlay, 0 8px 12px rgba(9, 30, 66, 0.16));
  max-width: none; /* allow content to use available container width */
  width: 100%;
  margin: var(--ds-space-300, 1.5rem) 0;
}

.info-note .info-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ds-icon-information, var(--ds-icon, #1d7afc));
  background: var(--ds-background-accent-blue-subtlest, rgba(233, 242, 255, 1));
  border-radius: 8px;
}

.info-note .info-icon svg {
  width: 24px;
  height: 24px;
  display: block;
  fill: var(--ds-icon-information, #1d7afc);
}

.info-note .info-text {
  flex: 1;
}

.info-note .info-text p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ds-text, #172b4d);
  font-weight: 600; /* make note text bolder for emphasis */
  width: 100%;
  white-space: normal;
  word-break: break-word;
}

@media (max-width: 900px) {
  .info-note {
    padding: 16px;
    gap: 12px;
    max-width: 100%;
  }

  .info-note .info-icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
  }

  .info-note .info-text p {
    font-size: 15px;
  }
}

/* Expand info-note into the left gutter on large screens so it appears broader */
@media (min-width: 1200px) {
  .info-note {
    /* Expand the box into the right-side TOC area so it appears broader */
    margin-right: calc(-1 * var(--toc-width));
    max-width: calc(100% + var(--toc-width));
    padding-right: calc(var(--ds-space-300, 1.5rem) + var(--toc-width));
    border-radius: 6px 0 0 6px; /* square right edge visually, rounded left */
  }
}

.info-message-text a {
  color: #0c66e4;
  text-decoration: none;
}

.info-message-text a:hover {
  color: #0055cc;
  text-decoration: underline;
}

/* Info Box */
.info-box {
  background-color: var(--info-bg);
  border-left: 4px solid var(--info-border);
  border-radius: var(--radius-200);
  padding: var(--space-300) var(--space-400);
  margin: var(--space-400) 0;
  display: flex;
  gap: 12px;
  box-shadow: var(--elevation-100);
  transition: box-shadow 0.2s, transform 0.2s;
}

.info-box:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.info-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--info-border);
}

.info-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.info-content p {
  font-size: 14px;
  color: var(--text-dark);
  margin: 0;
}

.info-content a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.info-content a:hover {
  text-decoration: underline;
}

/* Text Content */
.text-content {
  margin: 20px 0;
}

.text-content p {
  margin-bottom: 16px;
  line-height: 1.7;
}

.text-content strong {
  font-weight: 600;
}

/* Troubleshooting card/grid (single-column stacked rows like screenshot) */
.troubleshooting-card {
  width: 100%;
  max-width: 1040px;
  background: #ffffff;
  border: 1px solid #dfe1e6;
  border-radius: 8px;
  box-shadow: 0 1px 1px rgba(9, 30, 66, 0.08);
  overflow: hidden;
  margin: 32px auto;
}

.troubleshooting-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
}

.troubleshooting-item {
  border-bottom: 1px solid #ebecf0;
  padding: 24px 40px;
  transition: background-color 0.15s ease;
}

.troubleshooting-item:hover {
  background-color: #fafbfc;
}

.troubleshooting-item:last-child {
  border-bottom: none;
}

.troubleshooting-item button,
.troubleshooting-item .troubleshooting-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #f4f5f7;
  border: 1px solid #dfe1e6;
  border-radius: 4px;
  color: #172b4d;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
}

.troubleshooting-item button:hover,
.troubleshooting-item .troubleshooting-link:hover {
  background: #ebecf0;
  border-color: #c1c7d0;
  transform: translateY(-1px);
  box-shadow: 0 1px 2px rgba(9, 30, 66, 0.12);
}

.troubleshooting-item button:active,
.troubleshooting-item .troubleshooting-link:active {
  transform: translateY(0);
  box-shadow: none;
}

.troubleshooting-link {
  width: auto;
  text-align: left;
}

.troubleshooting-chevron {
  color: #6b778c;
  font-size: 16px;
  line-height: 1;
  margin-left: 4px;
  font-weight: 400;
}

@media (max-width: 880px) {
  .troubleshooting-card {
    border-radius: 6px;
    margin: 24px 16px;
  }
  .troubleshooting-item {
    padding: 18px 24px;
  }
  .troubleshooting-item button,
  .troubleshooting-item .troubleshooting-link {
    font-size: 13px;
    padding: 6px 12px;
  }
}

/* Accordion toggle and panel styles */
.troubleshooting-toggle {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 18px 28px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: var(--text-dark, #172b4d);
}

.troubleshooting-toggle:focus {
  outline: 3px solid var(--focus-ring, #4c9aff);
  outline-offset: 2px;
}

.troubleshooting-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease, padding 0.24s ease;
  padding: 0 28px;
}

.troubleshooting-panel.open {
  padding: 12px 28px 20px 28px;
  max-height: 1200px; /* large enough for content */
}

.troubleshooting-panel p,
.troubleshooting-panel ul {
  margin: 0;
  color: var(--text-medium, #39424a);
}

.troubleshooting-panel .content-list li {
  padding: 6px 0;
}

/* Content Headings */
.content-heading {
  font-weight: var(--h2-weight);
  color: var(--text-dark);
  margin-top: 32px;
  margin-bottom: 16px;
  line-height: 1.3;
  position: relative;
  scroll-margin-top: calc(var(--header-height) + 20px);
}

h2.content-heading {
  font-size: var(--h2-size);
  line-height: var(--h2-line);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

/* Utility to remove the divider under specific content headings
   Use by adding className: 'no-divider' to a heading entry in data.js
   e.g. { type: 'heading', level: 3, content: 'Title', className: 'no-divider' } */
.content-heading.no-divider,
h2.content-heading.no-divider,
h3.content-heading.no-divider {
  border-bottom: none !important;
  padding-bottom: 0 !important;
  margin-bottom: 8px !important;
}

/* Hide an intervening <hr> that some renderers insert after headings */
.content-heading.no-divider + hr {
  display: none !important;
}

/* Add extra vertical gap above specific headings when needed */
.content-heading.spaced-above,
h3.content-heading.spaced-above,
h2.content-heading.spaced-above {
  margin-top: 32px !important; /* desktop */
}

@media (max-width: 768px) {
  .content-heading.spaced-above,
  h3.content-heading.spaced-above,
  h2.content-heading.spaced-above {
    margin-top: 18px !important; /* smaller gap on mobile */
  }
}

/* Remove underline for headings that directly follow the objectives banner
   (used to hide the rule under the "Permission Control" heading) */
.objectives-banner + h2.content-heading,
.objectives-banner + .content-heading {
  border-bottom: none;
  padding-bottom: 0;
  /* Increase gap between the yellow objectives banner and the first heading
     to improve visual separation. Larger on desktop, moderate on small screens. */
  margin-top: 40px;
  margin-bottom: 20px;
}

@media (max-width: 520px) {
  .objectives-banner + h2.content-heading,
  .objectives-banner + .content-heading {
    margin-top: 20px; /* reduce gap on narrow screens */
  }
}

h3.content-heading {
  font-size: var(--h3-size);
  line-height: var(--h3-line);
}

h4.content-heading {
  font-size: var(--h4-size);
  line-height: var(--h4-line);
  font-weight: var(--h4-weight);
}

/* Content Lists */
.content-list {
  margin: var(--space-400) 0;
  padding-left: 24px;
}

.content-list li {
  margin-bottom: 16px;
  line-height: var(--line-height-body);
  color: var(--text-dark);
  position: relative;
  padding-left: 8px;
  transition: transform 0.2s;
}

.content-list li:hover {
  transform: translateX(4px);
}

.content-list li::marker {
  color: var(--primary-color);
  font-weight: bold;
}

/* Checkmark icon for "What You Can See" section lists only */
.content-list.checkmark-list {
  padding-left: 0;
  list-style: none;
}

.content-list.checkmark-list li {
  padding-left: 32px;
}

.content-list.checkmark-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--ds-icon-accent-green, #22a06b);
  font-weight: 700;
  font-size: 20px;
  line-height: 32px;
}

.content-list.checkmark-list li::marker {
  display: none;
}

/* Make bold text immediately under a heading darker and slightly stronger
   (applies to the Authorized Projects Management paragraph we inserted) */
.content-heading + .text-content strong,
.content-heading + .text-content p strong {
  color: var(--ds-text-accent-gray-bolder, #091e42);
  font-weight: 700;
}

/* Warning Box */
.warning-box {
  background-color: #fff4e5;
  border-left: 4px solid #ff991f;
  border-radius: var(--radius-200);
  padding: var(--space-300) var(--space-400);
  margin: var(--space-400) 0;
  display: flex;
  gap: 12px;
  box-shadow: var(--elevation-100);
  transition: box-shadow 0.2s, transform 0.2s;
}

.warning-box:hover {
  box-shadow: 0 2px 8px rgba(255, 153, 31, 0.15);
  transform: translateY(-1px);
}

.warning-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: #ff991f;
}

.warning-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.warning-content p {
  font-size: 14px;
  color: var(--text-dark);
  margin: 0;
}

.warning-content a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.warning-content a:hover {
  text-decoration: underline;
}

/* Image Content */
.content-image {
  margin: var(--space-800) 0;
  border-radius: var(--radius-300);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--elevation-200);
}

.content-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Layout helper: place multiple images side-by-side in a responsive row */
.image-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin: 1.25rem 0;
}
.image-row .content-image {
  flex: 1 1 48%;
  max-width: 48%;
}
.image-row .content-image img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
}

/* Override earlier narrow-specific rules when images are shown in the image-row */
.image-row img[src="jira-admin-3.png"],
.image-row img[src="jira-admin-1.png"] {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
}

@media (max-width: 900px) {
  .image-row {
    flex-direction: column;
  }
  .image-row .content-image {
    max-width: 100%;
    flex: 1 1 100%;
  }
}

/* When an image-row is intended to be a single full-width row */
.image-row.image-row-single {
  display: block; /* stacking block to ensure full width */
}
.image-row.image-row-single .content-image {
  max-width: 100%;
  flex: none;
  margin-left: auto;
  margin-right: auto;
}

/* Layout helper: content alongside image */
.content-with-image {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin: 1.25rem 0;
}
.content-with-image .content-image {
  flex: 0 0 45%;
  max-width: 45%;
}
.content-with-image > img {
  flex: 0 0 45%;
  max-width: 45%;
  height: auto;
  display: block;
}
.content-with-image .content-text {
  flex: 1 1 55%;
}
.content-with-image .content-text h3 {
  margin-top: 0;
}

@media (max-width: 900px) {
  .content-with-image {
    flex-direction: column;
  }
  .content-with-image .content-image,
  .content-with-image .content-text,
  .content-with-image > img,
  .content-with-image .image-with-expand {
    max-width: 100%;
    flex: 1 1 100%;
  }
}

/* Image with expand functionality */
.content-with-image .image-with-expand {
  flex: 0 0 55%;
  max-width: 55%;
  position: relative;
  display: inline-block;
}
.content-with-image .image-with-expand img {
  width: 100%;
  height: auto;
  display: block;
}

/* Expand icon for images */
.expand-icon {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(9, 30, 66, 0.2);
  border-radius: 4px;
  padding: 4px 6px;
  cursor: pointer;
  font-size: 14px;
  color: #0052cc;
  box-shadow: 0 2px 6px rgba(9, 30, 66, 0.15);
  transition: all 0.2s ease;
  z-index: 10;
}
.expand-icon:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(9, 30, 66, 0.25);
}

/* Image modal */
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  box-sizing: border-box;
}
.image-modal.active {
  display: flex;
}
.image-modal img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 20px;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover {
  background: rgba(255, 255, 255, 1);
}

/* Make jira-admin-3.png smaller and centered (specific override) */
.content-image img[src="jira-admin-3.png"] {
  max-width: 720px; /* cap the rendered width */
  width: 80%; /* scale relatively inside its container */
  margin: 18px auto 24px auto;
  display: block;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(9, 30, 66, 0.08);
}

/* Add a distinct blue border to the Add Project Access screenshot */
.content-image img[src="jira-admin-3.png"] {
  border: 1px solid #0353cc; /* requested blue (thinner) */
  box-sizing: border-box; /* include border in sizing */
}

/* Add shadow to jira-admin-3.png when it's a direct img element */
.content-with-image > img[src="jira-admin-3.png"] {
  border: 1px solid #0353cc;
  box-shadow: 0 8px 24px rgba(9, 30, 66, 0.15), 0 4px 12px rgba(9, 30, 66, 0.1);
  border-radius: 6px;
  box-sizing: border-box;
}

/* Add shadow to jira-admin-3.png when it's inside image-with-expand */
.content-with-image .image-with-expand img[src="jira-admin-3.png"] {
  border: 1px solid #0353cc;
  box-shadow: 0 8px 24px rgba(9, 30, 66, 0.15), 0 4px 12px rgba(9, 30, 66, 0.1);
  border-radius: 6px;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .content-image img[src="jira-admin-3.png"] {
    width: 100%;
    max-width: 100%;
    margin: 12px 0;
  }
}

/* Code blocks adopt ADS mono stack */
pre,
code,
pre code {
  font-family: var(--font-family-code);
  font-size: 13px;
}

/* Copy code button style */
.copy-code-btn {
  position: absolute;
  top: var(--space-200);
  right: var(--space-200);
  padding: var(--space-100) var(--space-200);
  border: 1px solid var(--border-color);
  background: var(--bg-white);
  color: var(--text-dark);
  border-radius: var(--radius-100);
  font-size: 12px;
  cursor: pointer;
}

.copy-code-btn:hover {
  background: var(--bg-light);
}

/* Table of Contents */
.toc {
  position: fixed;
  right: 0;
  top: var(--header-height);
  width: var(--toc-width);
  height: calc(100vh - var(--header-height));
  padding: 40px 24px;
  overflow-y: auto;
  background-color: var(--bg-white);
  z-index: 100;
}

.toc-header {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-medium);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.toc-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toc-link {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  font-size: 13px; /* smaller supporting text scale */
  color: var(--text-medium);
  text-decoration: none;
  transition: color 0.2s;
  border-left: 2px solid transparent;
  padding-left: 12px;
  margin-left: -12px;
  position: relative;
}

.toc-link::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 0;
  background-color: var(--primary-color);
  transition: height 0.2s;
}

.toc-link:hover {
  color: var(--primary-color);
}

.toc-link:hover::before {
  height: 100%;
}

.toc-link.active {
  color: var(--primary-color);
  border-left-color: var(--primary-color);
  font-weight: 500;
}

.toc-link.active::before {
  height: 100%;
}

.toc-link:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .main-container {
    display: flex;
  }

  .content {
    margin-right: 0;
  }

  .toc {
    display: none;
  }
}

@media (max-width: 768px) {
  .main-container {
    display: flex;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s;
  }

  .sidebar.open {
    transform: translateX(0);
    z-index: 200;
  }

  .content {
    margin-left: 0;
    padding: 24px 20px;
  }

  .header-nav {
    display: none;
  }
} /* Scrollbar Styling */
.sidebar::-webkit-scrollbar,
.toc::-webkit-scrollbar {
  width: 8px;
}

.sidebar::-webkit-scrollbar-track,
.toc::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb,
.toc::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover,
.toc::-webkit-scrollbar-thumb:hover {
  background: var(--text-light);
}

/* Print Styles */
@media print {
  .header,
  .sidebar,
  .toc,
  .sidebar-toggle,
  #backToTop,
  #scrollProgress {
    display: none !important;
  }

  .content {
    margin: 0;
    max-width: 100%;
    padding: 20px;
    font-family: var(--font-family-base);
    font-size: var(--font-size-body);
    line-height: var(--line-height-body);
  }

  /* Code blocks adopt ADS mono stack */
  pre,
  code,
  pre code {
    font-family: var(--font-family-code);
    font-size: 13px;
  }

  .info-box,
  .warning-box {
    page-break-inside: avoid;
    border: 1px solid var(--border-color);
  }

  .content-heading {
    page-break-after: avoid;
  }

  a {
    text-decoration: underline;
  }

  a[href]:after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: var(--text-medium);
  }
}

/* Mobile / Touch improvements (additional) */
@media (max-width: 900px) {
  /* Increase touch targets for nav items and buttons */
  .nav-item {
    padding: 12px 16px;
    font-size: 16px;
  }

  .nav-section-title {
    padding: 12px 16px;
    font-size: 16px;
  }

  .dropdown-btn,
  .tab-button {
    padding: 12px 14px;
    font-size: 15px;
  }

  .search-btn {
    width: 40px;
    height: 40px;
  }

  .copy-code-btn {
    top: 10px;
    right: 10px;
  }

  /* Make hero stack cleanly and text comfortably readable */
  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .hero-cta {
    padding: 12px;
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  /* Header tweaks for small devices */
  .header {
    height: 56px;
  }

  .header-content {
    padding: 0 12px;
    gap: 8px;
  }

  .logo-icon {
    height: 40px;
  }

  /* Make the sidebar-toggle behave like a visible hamburger on mobile */
  .sidebar-toggle {
    position: fixed;
    top: 12px;
    left: 12px;
    width: 44px;
    height: 44px;
    z-index: 1200;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 18px rgba(9, 30, 66, 0.12);
  }

  /* Ensure the floating toggle is easily tappable and visible */
  .sidebar-toggle svg {
    width: 18px;
    height: 18px;
  }

  /* Sidebar covers the screen and is easily scrollable */
  .sidebar {
    width: min(320px, 86%);
    height: 100%;
    padding: 20px 12px;
    top: 0;
    transform: translateX(-100%);
    will-change: transform;
    -webkit-overflow-scrolling: touch;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  /* Backdrop effect when sidebar open */
  body.sidebar-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.32);
    z-index: 1100;
  }

  /* Content spacing for mobile */
  .content {
    padding: 18px 16px;
    margin-left: 0;
    margin-right: 0;
  }

  .article-title {
    font-size: 22px;
  }

  .article-description {
    font-size: 14px;
  }

  /* Hide TOC on small screens and optionally offer a mobile TOC button later */
  .toc {
    display: none;
  }

  /* Increase spacing for list items to improve tappability */
  .content-list li {
    padding: 10px 0;
    margin-bottom: 10px;
  }

  /* Make tab list horizontally scrollable with larger buttons */
  .tab-list {
    padding: 12px;
  }

  /* Make forms, buttons and links larger on mobile */
  button,
  a.button,
  .dropdown-item {
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.06);
  }
}

@media (max-width: 420px) {
  /* Extra small devices adjustments */
  :root {
    --font-size-body: 15px;
    --h1-size: 26px;
    --h2-size: 22px;
  }

  .hero-title {
    font-size: 24px;
  }

  .logo-icon {
    height: 36px;
  }

  .search-input-wrapper {
    padding: 12px;
  }

  .search-modal-content {
    width: 95%;
    max-width: 520px;
  }
}

/* Version Notification */
.version-notification {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 2000;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 16px 20px;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s ease;
}

.version-notification.show {
  opacity: 1;
  transform: translateY(0);
}

.version-notification-content {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-dark);
}

.notification-icon {
  font-size: 20px;
}

/* Annotated image with numbered tags */
.annotated-image-container {
  position: relative;
  margin: 2rem 0;
  display: inline-block;
  width: 100%;
}

.annotated-image-container img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0px 4px 8px rgba(9, 30, 66, 0.15),
    0px 0px 1px rgba(9, 30, 66, 0.31), 0px 8px 16px rgba(9, 30, 66, 0.08);
}

.annotation-tag {
  position: absolute;
  height: 28px;
  width: 28px;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #f5cd47;
  font-family: "Charlie Display", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Roboto", sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 16px;
  color: #172b4d;
  box-shadow: 0px 8px 12px rgba(9, 30, 66, 0.15),
    0px 0px 1px rgba(9, 30, 66, 0.31);
  border: 2px solid #ffffff;
  z-index: 10;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.annotation-tag:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0px 8px 16px rgba(9, 30, 66, 0.25),
    0px 0px 1px rgba(9, 30, 66, 0.41);
}

.annotation-tag.active {
  background-color: #0c66e4;
  color: #ffffff;
  border-color: #0c66e4;
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0px 8px 16px rgba(12, 102, 228, 0.3),
    0px 0px 1px rgba(12, 102, 228, 0.5), 0 0 20px rgba(12, 102, 228, 0.4);
}

.annotation-tooltip-popup {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0px 8px 12px rgba(9, 30, 66, 0.15),
    0px 0px 1px rgba(9, 30, 66, 0.31);
  padding: 16px;
  min-width: 200px;
  max-width: 300px;
  z-index: 1000;
  animation: tooltipFadeIn 0.2s ease;
}

.annotation-tooltip-popup::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-bottom-color: #ffffff;
  filter: drop-shadow(0px -2px 2px rgba(9, 30, 66, 0.1));
}

/* Special positioning for tag 5 tooltip - position at top */
/* .annotation-tag.tooltip-top .annotation-tooltip-popup {
  top: calc(-100% - 24px);
  left: 30%;
  transform: translateX(-50%);
} */
/* 
.annotation-tag.tooltip-top .annotation-tooltip-popup::before {
  bottom: auto;
  left: 70%;
  top: 100%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: #ffffff;
  filter: drop-shadow(0px 2px 2px rgba(9, 30, 66, 0.1));
} */

/* Special positioning for tooltip - position at bottom */
/* .annotation-tag.tooltip-bottom .annotation-tooltip-popup {
  top: calc(100% + 24px);
  left: 30%;
  transform: translateX(-50%);
} */

/* .annotation-tag.tooltip-bottom .annotation-tooltip-popup::before {
  top: auto;
  left: 70%;
  bottom: 100%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-bottom-color: #ffffff;
  filter: drop-shadow(0px -2px 2px rgba(9, 30, 66, 0.1));
} */

.annotation-tooltip-popup .tooltip-content {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
    sans-serif;
  font-size: 14px;
  line-height: 1.42857;
  color: #172b4d;
}

.annotation-tooltip-popup .tooltip-content p {
  margin: 0;
}

.annotation-tooltip-popup .tooltip-title {
  font-size: 14px;
  font-weight: 600;
  color: #172b4d;
  margin-bottom: 8px;
  line-height: 1.42857;
}

.annotation-tooltip-popup .tooltip-description {
  font-size: 14px;
  font-weight: 400;
  color: #626f86;
  line-height: 1.42857;
}

.tooltip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #091e4224;
}

.tooltip-counter {
  font-size: 12px;
  font-weight: 600;
  color: #44546f;
}

.tooltip-nav-buttons {
  display: flex;
  gap: 4px;
}

.tooltip-nav-btn {
  background: transparent;
  border: none;
  padding: 4px;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #44546f;
  transition: background-color 0.2s ease;
}

.tooltip-nav-btn:hover:not(:disabled) {
  background-color: #091e420f;
}

.tooltip-nav-btn:active:not(:disabled) {
  background-color: #091e4224;
}

.tooltip-nav-btn:disabled {
  color: #091e424f;
  cursor: not-allowed;
}

.tooltip-nav-btn svg {
  width: 20px;
  height: 20px;
}

@keyframes tooltipFadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.annotation-line {
  position: absolute;
  width: 2px;
  background-color: #f5cd47;
  z-index: 5;
  transform-origin: top;
}

/* Company-managed project permissions highlight (custom) */
.company-managed-highlight {
  display: inline-block;
  /* Atlassian-style highlight: match provided tokens and sizing */
  font-family: Inter, sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  color: #091e42; /* ds-text-accent-gray-bolder */
  background-color: rgb(245, 205, 71); /* ds-background-accent-yellow-subtle */
  padding: 4px; /* compact padding like Atlassian */
  border-radius: 0;
  border: 1px solid rgba(9, 30, 66, 0.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset;
  vertical-align: baseline;
}

@media (max-width: 420px) {
  .company-managed-highlight {
    padding: 3px 6px;
    border-radius: 0;
  }
}

/* Style headings that should be 'important' without using inline <mark> */
.content-heading.important-heading {
  display: inline-block; /* keeps the visual tight to the text */
  background-color: rgb(245, 205, 71); /* match company-managed highlight */
  color: #091e42;
  padding: 4px 8px;
  border-radius: 0; /* square corners */
  border: 1px solid rgba(9, 30, 66, 0.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset;
  font-weight: 700;
}

@media (max-width: 520px) {
  .content-heading.important-heading {
    padding: 3px 6px;
    font-size: 1.05rem;
  }
}

/* Info callout used in Permission Control section */
.info-note {
  display: flex;
  gap: var(--ds-space-200, 1rem);
  align-items: flex-start;
  /* larger padding so content breathes */
  padding: calc(var(--ds-space-300, 1.5rem) + 12px) var(--ds-space-300, 1.5rem);
  background-color: var(--ds-background-information, #e9f2ff);
  color: var(--ds-text, #172b4d);
  border-radius: 8px;
  box-shadow: var(--ds-shadow-overlay, 0 8px 12px rgba(9, 30, 66, 0.12));
  max-width: none;
  box-sizing: border-box;
  margin: var(--ds-space-300, 1.5rem) 0;
}
.info-note .info-icon {
  color: var(--ds-icon-information, #1d7afc);
  flex: 0 0 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ds-background-accent-blue-subtlest, #e9f2ff);
  border-radius: 8px;
}
.info-note .info-icon svg {
  width: 24px;
  height: 24px;
  display: block;
  fill: currentColor;
}
.info-note .info-text p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 600; /* emphasize note text */
  width: 100%;
  white-space: normal;
  word-break: break-word;
}
/* Expand into right gutter (TOC) on wide screens */
@media (min-width: 1200px) {
  .info-note {
    /* Pull the box right into the TOC area to appear broader on the right */
    margin-right: calc(-1 * var(--toc-width));
    max-width: calc(100% + var(--toc-width));
    padding-right: calc(1rem + var(--toc-width));
    border-radius: 6px 0 0 6px; /* square right edge */
  }
}

@media (max-width: 520px) {
  .info-note {
    padding: 12px;
    gap: 0.75rem;
  }
  .info-note .info-text p {
    font-size: 13px;
  }
}

/* Page Navigation */
.page-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 3rem 0 2rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-color);
  gap: 2rem;
}

.page-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-dark);
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(9, 30, 66, 0.12);
  min-width: 200px;
  flex: 1;
  max-width: 320px;
}

.page-nav-link:hover {
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(0, 82, 204, 0.15);
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--text-dark);
}

.page-nav-link.previous {
  justify-content: flex-start;
}

.page-nav-link.next {
  justify-content: flex-end;
  text-align: right;
}

.page-nav-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--text-medium);
  transition: color 0.2s ease;
}

.page-nav-link:hover .page-nav-icon {
  color: var(--primary-color);
}

.page-nav-content {
  flex: 1;
}

.page-nav-label {
  font-size: 13px;
  color: var(--text-medium);
  margin-bottom: 4px;
  font-weight: 500;
}

.page-nav-title {
  font-size: 15px;
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1.3;
}

.page-nav-spacer {
  flex: 1;
}

@media (max-width: 768px) {
  .page-navigation {
    flex-direction: column;
    gap: 1rem;
  }

  .page-nav-link {
    min-width: auto;
    max-width: none;
    width: 100%;
  }

  .page-nav-link.next {
    text-align: left;
    justify-content: flex-start;
  }

  .page-nav-link.next .page-nav-content {
    order: 1;
  }

  .page-nav-link.next .page-nav-icon {
    order: 2;
  }
}

/* Back to Top Button */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--ds-background-brand-bold);
  color: var(--ds-text-inverse);
  border: none;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--ds-shadow-raised);
  z-index: 1000;
  transform: translateY(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

#backToTop:hover {
  background: var(--ds-background-brand-bold-hovered);
  transform: translateY(0px);
  box-shadow: var(--ds-shadow-overlay);
}

#backToTop:active {
  background: var(--ds-background-brand-bold-pressed);
  transform: translateY(2px);
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0px);
}

/* Arrow icon for back to top */
#backToTop::before {
  content: "↑";
  font-size: 20px;
  line-height: 1;
}

@media (max-width: 768px) {
  #backToTop {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 16px;
  }

  #backToTop::before {
    font-size: 18px;
  }
}
