/* gs1-respec-style.css */

h1#title, div.head {
  display: none !important;
}

body {
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #2c2c2c;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Open Sans", Arial, sans-serif;
  font-weight: 600;
  color: #002d72;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

h1 { font-size: 30px; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }
h4 { font-size: 18px; }

p {
  margin-top: 0;
  margin-bottom: 1em;
}

ul.ref-numbered .item-number {
  font-weight: bold;
  margin-right: 0.5em;
  color: #f47920;
}

body a:not(nav#toc a) {
  color: #005eb8;
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
}

body a:not(nav#toc a)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background-color: #005eb8;
}

body a:not(nav#toc a):hover::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  height: 2px;
  width: 100%;
  background-color: #c13f00;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  font-family: Arial, sans-serif;
  font-size: 14px;
  border: 1px solid #ccc;
}

caption {
  caption-side: top;
  text-align: center;
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 8px;
}

thead {
  background-color: #002d72; /* GS1 dark navy blue */
  color: white;
}

th, td {
  border: 1px solid #ccc;
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}

tbody tr:nth-child(even) {
  background-color: #fff;
}

/* Code blocks */
pre, code {
  background-color: #f8f8f8;
  border: 1px solid #eaeaea;
  padding: 0.5em;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.95em;
  overflow-x: auto;
}

/* Notes and warnings */
.note, .warning {
  border-left: 4px solid #005eb8;
  background-color: #e6f0fa;
  padding: 1em;
  margin: 1em 0;
}

.warning {
  border-color: #d9534f;
  background-color: #f9e6e6;
}

/* Lists */
ul, ol {
  margin-left: 2em;
  margin-bottom: 1em;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
}

/* Blockquotes */
blockquote {
  border-left: 4px solid #ccc;
  padding-left: 1em;
  color: #666;
  margin: 1em 0;
}

ul {
  list-style: none;
  padding-left: 1.5em;
}

ul li::before {
  content: "";
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  margin-right: 0.6em;
  background-color: #f47920; /* GS1 orange */
  vertical-align: middle;
}

ul ul li::before {
  content: "";
  display: inline-block;
  width: 0.45em;             /* smaller */
  height: 0.45em;            /* smaller */
  margin-right: 0.6em;
  background-color: transparent;
  border: 1.5px solid #f47920; /* thinner circle */
  border-radius: 50%;
  vertical-align: middle;
}
.gs1-header {
  font-family: Arial, sans-serif;
}

.gs1-topbar {
  background-color: #f2f7fb;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.gs1-logo {
  height: 60px;
}

.gs1-site {
  font-size: 16px;
  margin-left: 10px;
  color: #333;
  position: absolute;
  left: 100px;
  top: 50%;
  transform: translateY(-50%);
}

.gs1-tagline {
  font-size: 14px;
  color: #333;
}

.gs1-banner {
  background-color: #f26522;
  color: white;
  padding: 30px 20px 20px;
  position: relative;
  text-align: left;
}

.gs1-banner h1 {
  font-size: 28px;
  margin: 0 0 10px;
}

.gs1-banner p {
  font-size: 18px;
  margin: 0 0 20px;
}

.gs1-badge {
  background-color: #c13f00;
  padding: 5px 10px;
  display: inline-block;
  border-radius: 3px;
  font-size: 14px;
  margin-bottom: 10px;
}

.gs1-buttons a.gs1-btn {
  background-color: #c13f00;
  color: white;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 3px;
  font-size: 14px;
  display: inline-block;
  transition: background-color 0.2s ease;
}

.gs1-buttons a.gs1-btn:hover {
  background-color: #a23000;
}

/* Tabs container */
.tabs {
  margin-top: 1em;
  border: 1px solid #ccc;
  border-radius: 5px;
  overflow: hidden;
}

/* Tab buttons */
.tab-buttons {
  display: flex;
  background-color: #f2f2f2;
  border-bottom: 1px solid #ccc;
}

.tab-buttons button {
  background: none;
  border: none;
  padding: 10px 20px;
  font-weight: bold;
  color: #002d72;
  cursor: pointer;
  flex: 1;
  text-align: center;
  transition: background-color 0.3s;
}

.tab-buttons button:hover {
  background-color: #e0e0e0;
}

.tab-buttons button.active {
  background-color: #002d72;
  color: white;
}

/* Tab content */
.tab-content {
  display: none;
  padding: 1em;
  background-color: #fff;
}

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

.callout {
  display: flex;
  align-items: flex-start;
  background-color: #f2f7fb; /* GS1 light blue */
  border-radius: 6px;
  padding: 1em;
  margin: 1em 0;
  border: none;              /* No left bar */
  box-shadow: none;
}

.callout-icon {
  width: 32px;
  height: 32px;
  margin-right: 1em;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  color: white;
  background-color: #f47920; /* GS1 orange default */
  flex-shrink: 0;
}

.callout.important .callout-icon {
  background-color: #f47920; /* GS1 red for important */
}

.callout-text {
  flex: 1;
}

.callout-text strong {
  font-weight: bold;
  margin-right: 0.3em;
}

div.note,
div.issue,
div.warning,
div.ednote {
  background-color: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}


.example-tabset {
  border: 1px solid #ccc;
  border-radius: 5px;
  margin: 1em 0;
  font-family: "Open Sans", Arial, sans-serif;
}
.example-tab-buttons {
  display: flex;
  background-color: #f5f5f5;
  border-bottom: 1px solid #ccc;
}
.example-tab-buttons button {
  flex: 1;
  padding: 0.75em 1em;
  border: none;
  border-right: 1px solid #ccc;
  background: #f5f5f5;
  font-weight: 600;
  color: #002d72;
  cursor: pointer;
}
.example-tab-buttons button:last-child {
  border-right: none;
}
.example-tab-buttons button.active {
  background-color: #002d72;
  color: white;
}
.example-tab-content pre {
  margin: 0;
  padding: 1em;
  background-color: #fcfcfc;
  border-top: none;
  border-radius: 0 0 5px 5px;
}
code { white-space: pre-wrap; }

.hljs {
  display: block;
  overflow-x: auto;
  padding: 1em;
  background: #f8f8f8;
  color: #333;
  font-family: monospace;
  font-size: 0.9em;
  border-radius: 4px;
}

.hljs-keyword, .hljs-selector-tag, .hljs-literal, .hljs-section {
  font-weight: bold;
}

.todo {
  color: #d63333;
  background-color: #fff3cd;
  padding: 0.2em 0.4em;
  border-left: 4px solid #d63333;
  font-weight: bold;
  display: inline-block;
}

table caption {
  caption-side: top; /* or bottom */
  font-weight: bold;
  font-size: 1.1em;
  padding: 0.5em;
  color: #005eb8; /* GS1 blue */
}

/* Reduce space below sections */
section {
  margin-bottom: 0.0rem !important;
}

/* Reduce spacing between section headings and following text */
section > h1,
section > h2,
section > h3,
section > h4 {
  margin-bottom: 0.0rem !important;
}

/* Reduce space after the last paragraph in a section */
section > p:last-of-type {
  margin-bottom: 0.0rem !important;
}