/**
 * extra.css – Breach360 Docs (MkDocs Material)
 *
 * Custom styles that override and extend the Material theme. Loaded via mkdocs.yml extra_css. Covers typography, 
 * header/footer colours, home-page nav tiles, image borders, and responsive behaviour.
 */

@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* -------------------------------------------------------------------------
   Header title typography
   ------------------------------------------------------------------------- */
[dir=ltr] .md-header__title {
    margin-left: 4px;
    font-family: "Raleway", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Lighter weight for the first part of the header topic (e.g. "BreachLock"). */
.md-header__title .md-header__ellipsis .md-header__topic:first-child {
    font-weight: 300;
}

/* -------------------------------------------------------------------------
   Brand colours (primary and footer)
   ------------------------------------------------------------------------- */
:root  > * {
    --md-primary-fg-color: #0f1c2b;
    --md-primary-fg-color--light: #0f1c2b;
    --md-primary-fg-color--dark: #0f1c2b;
    --md-footer-bg-color: #0f1c2b;
    --md-footer-bg-color--light: #0f1c2b;
    --md-footer-bg-color--dark: #0f1c2b;
}

/* Darker background in slate (dark) theme. */
[data-md-color-scheme="slate"] {
    --md-default-bg-color: #040f1b;
}

/* Header bar height and vertical padding. */
.md-header {
    padding-top: 0.5rem;
    height: 3.5rem;
}

/* -------------------------------------------------------------------------
   Header wordmark
   ------------------------------------------------------------------------- */
/* The header logo is the full Breach360 wordmark rather than a square glyph, so Material's 1.2rem square sizing
   would squash it. Fix the height and let the width follow the artwork's aspect ratio (198:32). */
.md-header__button.md-logo img,
.md-header__button.md-logo svg {
    width: auto;
    height: 1.4rem;
}

/* Material's logo button reserves padding for a square icon; trim the right side so the wordmark sits close to the
   "Docs" segment of the title rather than floating away from it. */
.md-header__button.md-logo {
    padding-right: 0;
}

/* -------------------------------------------------------------------------
   Home page title classes (e.g. "Breach360 Docs")
   ------------------------------------------------------------------------- */
.title-doc {
    font-weight: 600;
}

[data-md-color-scheme="slate"] .title-doc {
    color: #ffffff;
}

/* Accent colour for the second part of the title (e.g. "Breach360 Docs"). */
.title-start {
    font-weight: 300;
    color: #CC7A28;
}

/* -------------------------------------------------------------------------
   Home page navigation grid and tiles
   ------------------------------------------------------------------------- */
.nav-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin: 2rem 0;
}

/* Card-style links: accent border, rounded corners, hover lift. */
.nav-tile {
    display: block;
    background: var(--md-default-bg-color);
    border: 1px solid #CC7A28;
    border-left: 5px solid #CC7A28;
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Stronger shadow and slightly lighter background on hover. */
.nav-tile:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-color: #CC7A28;
    background: var(--md-default-bg-color--light);
}

/* Inner layout for tile text and icon. */
.nav-tile-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Row for icon + heading inside each tile. */
.nav-tile-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Fa icon colour and size to match brand accent. */
.nav-tile-icon {
    font-size: 1.25rem;
    color: #CC7A28;
    opacity: 0.75;
    flex-shrink: 0;
}

.nav-tile-content h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--md-default-fg-color);
}

[data-md-color-scheme="slate"] .nav-tile-content h3 {
    color: #ffffff;
}

/* Subtext under the tile heading. */
.nav-tile-content p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--md-default-fg-color--light);
    line-height: 1.5;
}

/* -------------------------------------------------------------------------
   Images in content
   ------------------------------------------------------------------------- */
/* Rounded corners and dark border for screenshots/diagrams. */
.md-content img,
.md-typeset img {
    border-radius: 6px;
    border: 1px solid #0f1c2b;
}

/* -------------------------------------------------------------------------
   Responsive behaviour
   ------------------------------------------------------------------------- */
/* Single column for nav tiles on narrow viewports (matches Material breakpoint). */
@media screen and (max-width: 45em) {
    .nav-grid {
        grid-template-columns: 1fr;
    }
}