/*
Theme Name: GotITAdmin
Theme URI: https://gotitadmin.com/
Author: GotITAdmin
Description: A modern, accessible block theme for technical documentation and knowledge bases.
Version: 0.0.3
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: gotitadmin
*/

/* GotITAdmin v0.0.2 — compact terminal header */
.gotit-header {
    background: #14202b;
    color: #f4f7f9;
    padding: 0 20px;
}

.gotit-header-inner {
    min-height: 58px;
    gap: 24px;
    flex-wrap: nowrap !important;
}

.gotit-brand,
.gotit-header-actions {
    display: flex;
    align-items: center;
    flex-wrap: nowrap !important;
}

.gotit-brand {
    gap: 10px;
    flex-shrink: 0;
}

.gotit-prompt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #263846;
    color: #70e0a0;
    font: 700 19px/1 monospace;
    width: 36px;
    height: 36px;
    border-radius: 7px;
}

.gotit-header .wp-block-site-title {
    margin: 0;
    font-size: 19px;
    line-height: 1.2;
    white-space: nowrap;
}

.gotit-header .wp-block-site-title a,
.gotit-header .wp-block-navigation a {
    color: #f4f7f9;
    text-decoration: none;
}

.gotit-header .wp-block-navigation a:hover,
.gotit-header .wp-block-site-title a:hover {
    color: #70e0a0;
}

.gotit-header-actions {
    gap: 16px;
    min-width: 0;
}

.gotit-header .wp-block-navigation {
    font-size: 13px;
    gap: 12px;
}

.gotit-header .wp-block-navigation__container {
    column-gap: 12px;
    row-gap: 8px;
}

.gotit-header-search {
    flex-shrink: 0;
}

.gotit-header-search .wp-block-search__button {
    background: #263846;
    color: #f4f7f9;
    border: 0;
    border-radius: 7px;
    padding: 8px;
    margin: 0;
}

.gotit-header-search .wp-block-search__button:hover {
    background: #345061;
    color: #70e0a0;
}

@media (max-width: 1000px) {
    .gotit-header-inner {
        gap: 12px;
    }

    .gotit-header .wp-block-navigation {
        font-size: 12px;
    }
}

@media (max-width: 782px) {
    .gotit-header {
        padding: 0 14px;
    }

    .gotit-header-inner {
        min-height: 56px;
    }

    .gotit-header .wp-block-site-title {
        font-size: 17px;
    }
}

/* GotITAdmin v0.0.2 — slimmer header refinement */
.gotit-header {
    padding-top: 0;
    padding-bottom: 0;
}

.gotit-header-inner {
    min-height: 46px;
    gap: 16px;
}

.gotit-prompt {
    width: 28px;
    height: 28px;
    font-size: 16px;
    border-radius: 5px;
}

.gotit-header .wp-block-site-title {
    font-size: 17px;
}

.gotit-header .wp-block-navigation {
    font-size: 12px;
}

.gotit-header .wp-block-navigation__container {
    column-gap: 10px;
}

.gotit-header-search .wp-block-search__button {
    padding: 5px;
}

@media (max-width: 782px) {
    .gotit-header-inner {
        min-height: 46px;
    }
}

/* GotITAdmin v0.0.2 — enforce compact header */
.gotit-header {
    padding-block: 0 !important;
    margin-block: 0 !important;
}

.gotit-header > .gotit-header-inner {
    min-height: 48px !important;
    padding-block: 0 !important;
    margin-block: 0 !important;
}

.gotit-header .gotit-brand,
.gotit-header .gotit-header-actions {
    margin-block: 0 !important;
}

.gotit-header .wp-block-search__button {
    min-height: 30px;
    padding: 4px 7px;
}

.gotit-header .wp-block-navigation {
    margin-block: 0 !important;
}

/* GotITAdmin v0.0.2 — correct WordPress group padding */
body .wp-site-blocks .gotit-header,
body .gotit-header.wp-block-group {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-block: 0 !important;
}

body .gotit-header .gotit-header-inner {
    min-height: 48px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}


/* GOTITADMIN SIDEBAR 0.0.3 */

.gotit-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(230px, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
    align-items: start;
}

.gotit-primary {
    min-width: 0;
}

.gotit-sidebar {
    min-width: 0;
    border-left: 1px solid #d9dee3;
    padding-left: 1.5rem;
    font-size: 0.9rem;
}

.gotit-sidebar h3 {
    font-size: 1.05rem;
    margin: 0 0 0.8rem;
}

.gotit-sidebar .wp-block-latest-posts {
    padding-left: 1.1rem;
}

.gotit-sidebar .wp-block-latest-posts li {
    margin-bottom: 0.7rem;
}

.gotit-sidebar a {
    text-decoration: none;
}

.gotit-sidebar a:hover {
    text-decoration: underline;
}

@media (max-width: 800px) {
    .gotit-with-sidebar {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }

    .gotit-sidebar {
        border-left: 0;
        border-top: 1px solid #d9dee3;
        padding-left: 0;
        padding-top: 1.5rem;
    }
}

/* GOTITADMIN 0.0.3 - Sidebar layout correction */

@media (min-width: 801px) {
    body .wp-site-blocks .gotit-with-sidebar {
        display: grid !important;
        grid-template-columns: minmax(0, 3fr) minmax(230px, 1fr);
        gap: 2.5rem;
        align-items: start;
    }

    body .wp-site-blocks .gotit-with-sidebar > .gotit-primary,
    body .wp-site-blocks .gotit-with-sidebar > .gotit-sidebar {
        width: auto;
        max-width: none;
        min-width: 0;
        margin: 0;
    }
}

/* GOTITADMIN 0.0.3 - NATIVE COLUMNS */

body .gotit-columns {
    box-sizing: border-box;
    width: calc(100% - 48px);
    max-width: 1200px;
    margin: 2rem auto 4rem;
    align-items: flex-start;
}

body .gotit-columns > .wp-block-column {
    min-width: 0;
}

body .gotit-columns .gotit-sidebar {
    margin: 0;
    padding: 0;
    border: 0;
}

@media (max-width: 781px) {
    body .gotit-columns {
        width: calc(100% - 32px);
        margin-top: 1.5rem;
    }
}

/* GOTITADMIN 0.0.3 - FINAL SIDEBAR LAYOUT */

@media (min-width: 851px) {
    body .gotit-columns {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 20px !important;
        width: calc(100% - 48px) !important;
        max-width: 1080px !important;
        margin: 2rem auto 4rem !important;
        align-items: flex-start;
    }

    body .gotit-columns > .wp-block-column:first-child {
        flex: 1 1 780px !important;
        min-width: 0;
        max-width: 780px;
    }

    body .gotit-columns > .wp-block-column:last-child {
        flex: 0 0 280px !important;
        width: 280px !important;
        min-width: 280px;
        max-width: 280px;
    }
}

@media (max-width: 850px) {
    body .gotit-columns {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        width: calc(100% - 32px) !important;
        margin: 1.5rem auto 3rem !important;
    }

    body .gotit-columns > .wp-block-column {
        flex: 0 1 auto !important;
        width: 100% !important;
        max-width: none !important;
    }
}

/* GOTITADMIN 0.0.3 - SIDEBAR APPEARANCE */

body .gotit-sidebar {
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    width: 100%;
}

body .gotit-sidebar-content {
    box-sizing: border-box;
    background: #f1f0eb;
    border: 1px solid #dcd9d0;
    border-radius: 10px;
    padding: 18px;
    width: 100%;
}

body .gotit-sidebar .gotit-sidebar-heading {
    color: #253746;
    font-size: 17px !important;
    font-weight: 650;
    margin: 0 0 10px !important;
}

body .gotit-sidebar .gotit-recent-posts {
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
}

body .gotit-sidebar .gotit-recent-posts li {
    margin: 0 !important;
    padding: 4px 0 !important;
    line-height: 1.35;
}

body .gotit-sidebar .gotit-recent-posts a {
    color: #34536b;
    font-size: 14px;
    text-decoration: none;
}

body .gotit-sidebar .gotit-recent-posts a:hover {
    text-decoration: underline;
}

body .gotit-sidebar-shortcuts {
    border-top: 1px solid #dcd9d0;
    margin-top: 16px !important;
    padding-top: 12px;
}

body .gotit-sidebar .gotit-shortcut {
    display: flex;
    align-items: center;
    gap: 9px;
    background: #ffffff;
    border: 1px solid #dcd9d0;
    border-radius: 6px;
    padding: 10px 12px;
    margin: 0 0 8px !important;
    color: #253746;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

/* GOTITADMIN - SIDEBAR SHORTCUT ICONS */

body .gotit-sidebar-content .gotit-shortcut::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    background-color: #52677a;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* GOTITADMIN - SIDEBAR COLOR AND LEFT ALIGNMENT */

/* More visible warm gray/sand background */
body .gotit-sidebar .gotit-sidebar-content {
    background-color: #e1ddd3 !important;
    border-color: #c9c3b7 !important;
}

/* Remove inherited spacing from the shortcut container */
body .gotit-sidebar-content .gotit-sidebar-shortcuts {
    padding-top: 12px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/*
 * Extend each white tab toward the panel's left padding.
 * Its icon will align with the Recent Posts heading.
 */
body .gotit-sidebar-content .gotit-shortcut {
    box-sizing: border-box;
    margin-left: -12px !important;
    margin-right: 0 !important;
    padding: 9px 11px !important;
    gap: 8px !important;
    width: calc(100% + 12px);
}

/* Ensure the icon has no extra indentation */
body .gotit-sidebar-content .gotit-shortcut::before {
    margin: 0 !important;
}

/* Remove WordPress paragraph spacing */
body .gotit-sidebar-content .gotit-shortcut p {
    margin: 0 !important;
    padding: 0 !important;
}

/* Keep separators consistent with the new background */
body .gotit-sidebar-content .gotit-sidebar-shortcuts {
    border-top-color: #c9c3b7 !important;
}

/* GOTITADMIN - SIDEBAR FINAL SPACING REFINEMENT */

/* Keep the sand-gray panel */
body .gotit-sidebar .gotit-sidebar-content {
    background-color: #e1ddd3 !important;
    padding-bottom: 12px !important;
}

/* Shortcuts belong to the panel, not separate white boxes */
body .gotit-sidebar-content .gotit-shortcut {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 4px !important;

    width: 100% !important;
    padding: 5px 0 !important;
    min-height: 0 !important;
}

/* No extra bottom margin after the final shortcut */
body .gotit-sidebar-content .gotit-shortcut:last-child {
    margin-bottom: 0 !important;
}

/* Keep the link icon aligned with Recent Posts */
body .gotit-sidebar-content .gotit-shortcut::before {
    margin: 0 !important;
}

/* Slightly tighten the divider-to-shortcut spacing */
body .gotit-sidebar-content .gotit-sidebar-shortcuts {
    margin-top: 12px !important;
    padding-top: 8px !important;
}

/* GotITAdmin - Posts directory column width correction */

body.page-id-3580 table.gotit-post-directory {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

body.page-id-3580 table.gotit-post-directory td {
    box-sizing: border-box;
    border: none;
    padding: 3px 8px 3px 0;
    vertical-align: top;
    line-height: 1.45;
}

/* Column 1: Link */
body.page-id-3580 table.gotit-post-directory td:first-child {
    width: 60px;
    white-space: nowrap;
}

/* Column 2: Date */
body.page-id-3580 table.gotit-post-directory td:nth-child(2) {
    width: 115px;
    white-space: nowrap;
}

/* Column 3: Article title */
body.page-id-3580 table.gotit-post-directory td:nth-child(3) {
    width: auto;
    overflow-wrap: break-word;
}

/* GotITAdmin Virtualization directory */
body.page-id-167 .gotit-virtualization-directory {
    width: 100%;
}

body.page-id-167 .gotit-virtualization-intro {
    margin: 0 0 24px;
    line-height: 1.6;
}

body.page-id-167 .gotit-virtualization-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

body.page-id-167 .gotit-virtualization-card {
    min-width: 0;
    background: #ffffff;
    border: 1px solid #d7dfe6;
    border-radius: 9px;
    padding: 18px;
    box-sizing: border-box;
}

body.page-id-167 .gotit-virtualization-card h2 {
    font-size: 17px;
    line-height: 1.35;
    color: #142332;
    margin: 0 0 13px;
    padding-bottom: 11px;
    border-bottom: 1px solid #e1e7ec;
}

body.page-id-167 .gotit-virtualization-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

body.page-id-167 .gotit-virtualization-card li {
    margin: 0 0 9px;
    line-height: 1.45;
    font-size: 14px;
}

body.page-id-167 .gotit-virtualization-card li:last-child {
    margin-bottom: 0;
}

body.page-id-167 .gotit-virtualization-card a,
body.page-id-167 .gotit-virtualization-cloud a {
    color: #245c8a;
    text-decoration: none;
}

body.page-id-167 .gotit-virtualization-card a:hover,
body.page-id-167 .gotit-virtualization-cloud a:hover {
    text-decoration: underline;
}

body.page-id-167 .gotit-virtualization-cloud {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid #d7dfe6;
}

body.page-id-167 .gotit-virtualization-cloud h2 {
    font-size: 20px;
    margin: 0 0 10px;
}

@media (max-width: 650px) {
    body.page-id-167 .gotit-virtualization-grid {
        grid-template-columns: 1fr;
    }
}

/* GotITAdmin Xen technical reference — page 4449 */

body.page-id-4449 .gotit-xen-guide {
    color: #243546;
    line-height: 1.65;
}

body.page-id-4449 .gotit-xen-lead {
    font-size: 1.08rem;
    line-height: 1.75;
    margin: 0 0 16px;
}

body.page-id-4449 .gotit-xen-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 22px;
}

body.page-id-4449 .gotit-xen-meta span {
    background: #e9eff4;
    color: #36566f;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: .79rem;
}

body.page-id-4449 .gotit-xen-toc {
    border: 1px solid #d7dfe6;
    background: #f5f7fa;
    border-radius: 8px;
    padding: 18px 20px;
    margin: 20px 0 32px;
}

body.page-id-4449 .gotit-xen-toc strong {
    display: block;
    margin-bottom: 10px;
    color: #142332;
}

body.page-id-4449 .gotit-xen-toc ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 22px;
    row-gap: 7px;
    padding-left: 22px;
    margin: 0;
}

body.page-id-4449 .gotit-xen-guide a {
    color: #245c8a;
}

body.page-id-4449 .gotit-xen-guide section {
    margin: 30px 0;
    scroll-margin-top: 24px;
}

body.page-id-4449 .gotit-xen-guide section h2 {
    color: #142332;
    font-size: 1.42rem;
    line-height: 1.3;
    margin: 0 0 13px;
    padding-bottom: 9px;
    border-bottom: 1px solid #d7dfe6;
}

body.page-id-4449 .gotit-xen-guide section h3 {
    color: #203b52;
    font-size: 1.08rem;
    margin: 19px 0 7px;
}

body.page-id-4449 .gotit-xen-guide p {
    margin-top: 0;
}

body.page-id-4449 .gotit-xen-guide li {
    margin-bottom: 7px;
}

body.page-id-4449 .gotit-xen-guide code {
    font-size: .88em;
    overflow-wrap: anywhere;
}

/* Architecture diagram */

body.page-id-4449 .gotit-xen-diagram {
    border: 1px solid #d7dfe6;
    background: #fff;
    border-radius: 9px;
    padding: 17px;
    margin: 20px 0;
}

body.page-id-4449 .gotit-xen-diagram-title {
    color: #142332;
    font-weight: 700;
    margin-bottom: 12px;
}

body.page-id-4449 .gotit-xen-domains {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin-bottom: 9px;
}

body.page-id-4449 .gotit-xen-domain,
body.page-id-4449 .gotit-xen-hypervisor,
body.page-id-4449 .gotit-xen-hardware {
    border-radius: 5px;
    text-align: center;
    padding: 12px 7px;
}

body.page-id-4449 .gotit-xen-domain {
    background: #e8eef4;
}

body.page-id-4449 .gotit-xen-dom0,
body.page-id-4449 .gotit-xen-hypervisor {
    background: #dcebf5;
}

body.page-id-4449 .gotit-xen-hypervisor {
    border: 1px solid #b9d2e3;
    margin-bottom: 9px;
}

body.page-id-4449 .gotit-xen-hardware {
    background: #e6e9ed;
}

body.page-id-4449 .gotit-xen-diagram strong {
    display: block;
    font-size: .91rem;
}

body.page-id-4449 .gotit-xen-diagram small {
    display: block;
    font-size: .75rem;
    color: #4c6172;
    line-height: 1.45;
    margin-top: 3px;
}

/* Tables */

body.page-id-4449 .gotit-xen-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 15px 0;
}

body.page-id-4449 .gotit-xen-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}

body.page-id-4449 .gotit-xen-table th {
    background: #e8eef4;
    color: #142332;
    text-align: left;
}

body.page-id-4449 .gotit-xen-table th,
body.page-id-4449 .gotit-xen-table td {
    border: 1px solid #d7dfe6;
    padding: 10px 12px;
    vertical-align: top;
}

body.page-id-4449 .gotit-xen-table td:first-child {
    width: 35%;
}

/* Installation options */

body.page-id-4449 .gotit-xen-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 15px 0;
}

body.page-id-4449 .gotit-xen-options > div {
    background: #f5f7fa;
    border: 1px solid #d7dfe6;
    border-radius: 7px;
    padding: 13px;
}

body.page-id-4449 .gotit-xen-options h3 {
    margin-top: 0 !important;
}

body.page-id-4449 .gotit-xen-options p {
    font-size: .88rem;
    margin-bottom: 0;
}

/* Mobile */

@media (max-width: 700px) {
    body.page-id-4449 .gotit-xen-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    body.page-id-4449 .gotit-xen-toc ol {
        grid-template-columns: 1fr;
    }

    body.page-id-4449 .gotit-xen-diagram {
        padding: 10px;
    }

    body.page-id-4449 .gotit-xen-diagram small {
        font-size: .67rem;
    }
}
