/* ==========================================================================
   iBase7 Documentation Styles
   Consolidated CSS to match https://docs2.ibase.com/doc-ibase-70
   ========================================================================== */

/* ==========================================================================
   CSS Reset (Normalize)
   ========================================================================== */
html {
  font-family: sans-serif;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
}

article, aside, details, figcaption, figure, footer, header, 
hgroup, main, menu, nav, section, summary {
  display: block;
}

a {
  background-color: transparent;
}

a:active, a:hover {
  outline: 0;
}

b, strong {
  font-weight: 700;
}

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

img {
  border: 0;
}

hr {
  box-sizing: content-box;
  height: 0;
}

/* ==========================================================================
   Font Import - Roboto from Google Fonts
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,700;1,300;1,400&display=swap');

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
  --dark-blue: #031521;
  --mid-blue: #005796;
  --light-blue: #0083e3;
  --text-color: #2a3740;
  --text-secondary: #313234;
  --link-color: #005796;
  --link-hover: #0083e3;
  --max-width: 1000px;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
html, body {
  height: 100%;
}

body {
  font-family: Roboto, Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: var(--text-color);
  -webkit-font-smoothing: subpixel-antialiased;
}

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

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

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

/* ==========================================================================
   Main Page Layout (Layout_WebSite Page_DocIbase70)
   ========================================================================== */
body.Layout_WebSite.Page_DocIbase70 {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: none;
}

body.Layout_WebSite.Page_DocIbase70 header {
  background: linear-gradient(180deg, var(--dark-blue) 0%, var(--mid-blue) 100%);
  width: 100%;
  flex: 0 0 auto;
}

body.Layout_WebSite.Page_DocIbase70 .header-content {
  max-width: var(--max-width);
  margin: 0;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 2em;
}

body.Layout_WebSite.Page_DocIbase70 .header-content .logo {
  display: block;
  height: 45px;
  width: auto;
}

body.Layout_WebSite.Page_DocIbase70 .header-content h1 {
  color: #fff;
  font-size: 28px;
  font-weight: 200;
  margin: 0;
}

body.Layout_WebSite.Page_DocIbase70 article.infoTemplate {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

body.Layout_WebSite.Page_DocIbase70 .doc-wrapper {
  display: flex;
  align-items: stretch;
  flex: 1;
  min-height: 0;
}

body.Layout_WebSite.Page_DocIbase70 #doc-sidebar {
  flex: 0 0 350px;
  border: none;
  border-right: 1px solid #ddd;
}

body.Layout_WebSite.Page_DocIbase70 main.doc {
  flex: 1;
  padding: 0;
  position: relative;
}

body.Layout_WebSite.Page_DocIbase70 #doc-content {
  border: none;
  width: 100%;
  height: 100%;
}

body.Layout_WebSite.Page_DocIbase70 footer {
  background-color: var(--dark-blue);
  text-align: center;
  width: 100%;
  flex: 0 0 auto;
}

body.Layout_WebSite.Page_DocIbase70 .footer-content {
  color: #fff;
  font-size: 14px;
  padding: 16px;
}

body.Layout_WebSite.Page_DocIbase70 .footer-content a:any-link {
  color: #fff;
  text-decoration: none;
}

body.Layout_WebSite.Page_DocIbase70 .footer-content a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Navigation Styles (Layout_Navigation)
   ========================================================================== */
body.Layout_Navigation {
  background: #fff;
  padding: 0;
  margin: 0;
  overflow: auto;
}

nav.doc {
  padding: 8px;
}

nav.doc h2 {
  font-size: 20px;
  font-weight: 400;
  margin: 0 0 8px 0;
  color: var(--text-color);
}

nav.doc ol {
  counter-reset: section;
  list-style-type: none;
  padding-left: 0;
  margin: 0;
}

nav.doc li > ol {
  margin: 0 0 0 25px;
}

nav.doc ol li::before {
  content: counters(section, ".") " ";
  counter-increment: section;
}

nav.doc li {
  font-size: 15px;
  line-height: 1.6;
}

nav.doc li > h3 {
  display: inline;
  font-size: 15px;
  font-weight: 300;
}

nav.doc .sections {
  margin: 0 0 16px 0;
}

nav.doc .contents {
  margin: 0;
}

nav.doc a {
  color: var(--link-color);
  text-decoration: none;
}

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

/* ==========================================================================
   Documentation Content Styles (Layout_Documentation)
   ========================================================================== */
body.Layout_Documentation {
  background: none;
  color: var(--text-color);
  font-family: Roboto, Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 300;
  -webkit-font-smoothing: subpixel-antialiased;
  margin: 0;
  padding: 0;
}

body.Layout_Documentation main.doc {
  padding: 16px 8px;
  counter-reset: section;
}

/* Headings */
body.Layout_Documentation h1,
body.Layout_Documentation h2,
body.Layout_Documentation h3,
body.Layout_Documentation h4,
body.Layout_Documentation h5,
body.Layout_Documentation h6 {
  background-color: transparent;
  border: none;
  border-radius: 0;
  color: var(--text-color);
  font-family: Roboto, Arial, Helvetica, sans-serif;
  font-weight: 200;
  padding: 0;
  -webkit-font-smoothing: subpixel-antialiased;
}

body.Layout_Documentation h1 {
  font-size: 28px;
  margin: 0;
}

body.Layout_Documentation h2 {
  font-size: 24px;
  margin: 10px 0 0;
  counter-reset: sub-section;
}

body.Layout_Documentation h3 {
  font-size: 21px;
  margin: 10px 0 0;
  counter-reset: sub-sub-section;
}

body.Layout_Documentation h4 {
  font-size: 18px;
  margin: 10px 0 0;
  font-weight: 400;
  counter-reset: sub-sub-sub-section;
}

body.Layout_Documentation h5,
body.Layout_Documentation h6 {
  font-size: 16px;
  font-style: italic;
  margin: 10px 0 0;
  font-weight: 400;
}

/* Section numbering with counters */
body.Layout_Documentation main.doc h2::before {
  content: counter(section) " ";
  counter-increment: section;
}

body.Layout_Documentation main.doc h3::before {
  content: counter(section) "." counter(sub-section) " ";
  counter-increment: sub-section;
}

body.Layout_Documentation main.doc h4::before {
  content: counter(section) "." counter(sub-section) "." counter(sub-sub-section) " ";
  counter-increment: sub-sub-section;
}

body.Layout_Documentation main.doc h5::before {
  content: counter(section) "." counter(sub-section) "." counter(sub-sub-section) "." counter(sub-sub-sub-section) " ";
  counter-increment: sub-sub-sub-section;
}

/* Paragraphs */
body.Layout_Documentation p {
  margin: 10px 0 4px;
  line-height: 1.5;
}

/* Lists */
body.Layout_Documentation ul {
  list-style-position: outside;
  list-style-type: disc;
  margin: 12px 0 0 8px;
  padding-left: 20px;
}

body.Layout_Documentation li {
  font-style: italic;
  margin: 4px 0 4px 0;
  text-indent: 0;
  line-height: 1.5;
}

/* Links */
body.Layout_Documentation a:link {
  color: var(--link-color);
  text-decoration: none;
}

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

/* Emphasis and strong */
body.Layout_Documentation em {
  font-style: italic;
}

body.Layout_Documentation strong,
body.Layout_Documentation b {
  font-weight: 700;
}

/* ==========================================================================
   Section-Specific Counter Resets
   ========================================================================== */
body.Layout_Documentation.Page_DocIbase70Section1 main.doc {
  counter-reset: section 0;
}

body.Layout_Documentation.Page_DocIbase70Section2 main.doc {
  counter-reset: section 2;
}

body.Layout_Documentation.Page_DocIbase70Section3 main.doc {
  counter-reset: section 3;
}

body.Layout_Documentation.Page_DocIbase70Section4 main.doc {
  counter-reset: section 4;
}

body.Layout_Documentation.Page_DocIbase70Section5 main.doc {
  counter-reset: section 5;
}

body.Layout_Documentation.Page_DocIbase70Section6 main.doc {
  counter-reset: section 6;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 768px) {
  body.Layout_WebSite.Page_DocIbase70 .doc-wrapper {
    flex-direction: column;
  }
  
  body.Layout_WebSite.Page_DocIbase70 #doc-sidebar {
    flex: 0 0 auto;
    height: 300px;
    border-right: none;
    border-bottom: 1px solid #ddd;
  }
  
  body.Layout_WebSite.Page_DocIbase70 main.doc {
    flex: 1;
    min-height: 400px;
  }
  
  body.Layout_WebSite.Page_DocIbase70 .header-content h1 {
    font-size: 22px;
  }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
  body.Layout_Documentation {
    font-size: 12pt;
  }
  
  body.Layout_Documentation a:link {
    text-decoration: underline;
  }
  
  body.Layout_Documentation h1,
  body.Layout_Documentation h2,
  body.Layout_Documentation h3,
  body.Layout_Documentation h4 {
    page-break-after: avoid;
  }
}
