/* Schema.org Stylesheet */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 0.9em;
    line-height: 1.5;
    color: #333;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

/* Container - for doc pages (ID) */
#container {
    width: 100%;
}

/* Container - for type pages (class) */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles - for type pages */
header {
    background: #fff;
    border-bottom: 1px solid #ddd;
    padding: 20px 0;
}

header h1 {
    margin: 0;
    color: #900;
    font-size: 24px;
}

/* Header Styles - for doc pages */
#headerwrap {
    background-color: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
}

#pagehead1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.header-block {
    display: flex;
    align-items: center;
}

#sitename2 {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
}

#sitename2 a {
    color: #900;
    text-decoration: none;
}

#sitename2 a:hover {
    text-decoration: underline;
}

/* Navigation */
#selectionbar2 {
    display: flex;
    align-items: center;
    height: 100%;
}

#selectionbar2 ul {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
    align-items: center;
}

#selectionbar2 a {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    padding: 5px 10px;
    display: inline-block;
}

#selectionbar2 a:hover {
    color: #900;
    text-decoration: underline;
}

/* Search Form */
#cse-search-form2 {
    margin-left: 20px;
}

/* Override Google CSE default styles to match schema.org */
.gsc-control-searchbox-only {
    width: 200px !important;
}

.gsc-search-box {
    margin-bottom: 0 !important;
}

/* Input field styling */
.gsc-input-box {
    border: none !important;
    background: #fff !important;
}

.gsc-input {
    background: none !important;
    padding: 0 !important;
}

.gsib_a {
    padding: 2px 4px !important;
}

.gsib_b {
    display: none !important;
}

/* Search button */
.gsc-search-button-v2 {
    padding: 4px 8px !important;
    min-width: auto !important;
    margin-left: 2px !important;
}

/* Remove default Google CSE styling */
.gsc-control-searchbox-only .gsc-search-box {
    border: none !important;
    background: none !important;
    box-shadow: none !important;
}

/* Mobile Navigation Icon */
#navicon2 {
    display: none;
}

.icon {
    cursor: pointer;
}

/* Development Note */
.devnote {
    background-color: #fffbcc;
    border: 1px solid #fceb77;
    padding: 10px 20px;
    text-align: center;
    font-size: 13px;
    margin: 0;
}

.devnote a {
    color: #0066cc;
}

/* Main Content - for doc pages */
#mainContent {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

/* Main Content - for type pages */
.main-content {
    background: #fff;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Breadcrumb navigation */
.breadcrumb {
    padding: 10px 0;
    color: #666;
    font-size: 13px;
}

.breadcrumb a {
    color: #0066cc;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.row {
    margin-bottom: 30px;
}

.row h1 {
    font-size: 28px;
    line-height: 1.3;
    color: #333;
    margin: 0 0 20px 0;
}

.row p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.bold {
    font-weight: bold;
}

/* Links */
a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Footer */
#footer {
    background-color: #f8f8f8;
    border-top: 1px solid #e0e0e0;
    padding: 20px;
    text-align: center;
    font-size: 12px;
    color: #666;
}

#footer a {
    color: #666;
}

#footer a:hover {
    color: #333;
}

#versioninfo {
    margin-top: 10px;
}

.sep {
    margin: 0 10px;
    color: #999;
}

/* Responsive Design */
@media (max-width: 768px) {
    #pagehead1 {
        flex-wrap: wrap;
    }
    
    .header-block-right {
        display: none;
    }
    
    #navicon2 {
        display: block;
    }
    
    #selectionbar2 ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .mobnav {
        position: relative;
    }
}

/* Additional Utility Classes */
.header-bottom {
    height: 0;
}

.live-only {
    /* For elements that should only show on live site */
}

/* Documentation Specific Styles */
.faq {
    max-width: 800px;
    margin: 0 auto;
}

.question {
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 10px;
    font-size: 16px;
}

/* Code and Pre formatting */
pre {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    overflow-x: auto;
    margin: 15px 0;
}

code {
    background-color: #f5f5f5;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: Consolas, Monaco, 'Courier New', monospace;
    font-size: 0.9em;
}

/* Tables */
table {
    border-collapse: collapse;
    width: 100%;
    margin: 20px 0;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f5f5f5;
    font-weight: bold;
}

/* Lists */
ul, ol {
    margin-left: 30px;
    margin-bottom: 15px;
}

li {
    margin-bottom: 5px;
}

/* Sections */
section {
    margin-bottom: 40px;
}

section h1 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

section h2 {
    font-size: 20px;
    margin-bottom: 15px;
    margin-top: 25px;
    color: #444;
}

section h3 {
    font-size: 18px;
    margin-bottom: 10px;
    margin-top: 20px;
    color: #555;
}

/* Article styles for documentation pages */
article#mainContent {
    max-width: 900px;
}

article h1 {
    font-size: 32px;
    margin-bottom: 25px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

article h2 {
    font-size: 24px;
    margin-top: 35px;
    margin-bottom: 20px;
    color: #333;
}

/* Type page specific styles */
.type-info {
    background: #f9f9f9;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 30px;
}

.type-hierarchy {
    margin: 20px 0;
}

.hierarchy-item {
    padding-left: 20px;
}

.property-list {
    margin: 20px 0;
}

.property-item {
    margin: 10px 0;
    padding: 10px;
    background: #f5f5f5;
    border-left: 3px solid #900;
}

.property-name {
    font-weight: bold;
    color: #900;
}

.property-description {
    margin-top: 5px;
    color: #666;
}

.subclass-list, .instance-list {
    margin: 20px 0;
}

.subclass-item, .instance-item {
    display: inline-block;
    margin: 5px;
    padding: 5px 10px;
    background: #e9e9e9;
    border-radius: 3px;
    text-decoration: none;
    color: #333;
}

.subclass-item:hover, .instance-item:hover {
    background: #d0d0d0;
}