/* ==========================================================================
   9to5 AI Ghost Theme — screen.css (v2.0 Dark Edition)
   ========================================================================== */

:root {
  /* Core palette */
  --color-void:        #121212;
  --color-obsidian:    #1E1E1E;
  --color-obsidian-hv: #252525;
  --color-mint:        #2DFFC4;
  --color-white:       #FFFFFF;
  --color-white-70:    rgba(255, 255, 255, 0.7);
  --color-white-40:    rgba(255, 255, 255, 0.4);
  --color-white-10:    rgba(255, 255, 255, 0.1);
  --color-white-05:    rgba(255, 255, 255, 0.05);

  /* Typography */
  --font-primary: 'Inter', Arial, sans-serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;

  /* Layout */
  --max-width: 1280px;
}

body {
    background-color: var(--color-void);
    color: var(--color-white);
    font-family: var(--font-primary);
}

::selection {
    background: var(--color-mint);
    color: var(--color-void);
}

/* --------------------------------------------------------------------------
   Default Layout Resets for Non-Tailwind Templates (Posts/Pages)
   -------------------------------------------------------------------------- */
.post-container, .page-container, .tag-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 96px 32px;
}

.post-title, .page-title, .tag-title {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 40px;
    color: var(--color-white);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.post-content {
    max-width: 720px;
    margin: 0 auto;
    color: var(--color-white-70);
    line-height: 1.7;
}

.post-content a {
    color: var(--color-mint);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Ghost Content Width Modifiers (required by GScan)
   -------------------------------------------------------------------------- */

.gh-content .kg-width-wide {
    width: min(1000px, 100vw - 64px);
    margin-left: auto;
    margin-right: auto;
}

.gh-content .kg-width-full {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
}

.gh-content .kg-width-wide img,
.gh-content .kg-width-full img {
    width: 100%;
    height: auto;
    border-radius: 0;
}

/* --------------------------------------------------------------------------
   Ghost Card Assets (Bookmark, Gallery, etc.)
   -------------------------------------------------------------------------- */

.gh-content .kg-card {
    margin: 48px 0;
}

.gh-content .kg-bookmark-card {
    background-color: var(--color-obsidian);
    border: 1px solid var(--color-white-05);
    border-radius: 8px;
    overflow: hidden;
}

.gh-content .kg-bookmark-container {
    display: flex;
    text-decoration: none;
    color: inherit;
}

.gh-content .kg-bookmark-content {
    padding: 16px 24px;
    flex: 1;
}

.gh-content .kg-bookmark-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--color-white);
    margin-bottom: 4px;
}

.gh-content .kg-bookmark-description {
    font-size: 13px;
    color: var(--color-white-70);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gh-content .kg-bookmark-metadata {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-white-40);
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gh-content .kg-bookmark-icon {
    width: 16px;
    height: 16px;
}

.gh-content .kg-bookmark-thumbnail {
    width: 120px;
    flex-shrink: 0;
    object-fit: cover;
}

.gh-content .kg-callout-card {
    display: flex;
    gap: 16px;
    background-color: var(--color-obsidian);
    border-radius: 8px;
    padding: 24px;
    border-left: 3px solid var(--color-mint);
}

.gh-content .kg-callout-emoji {
    font-size: 20px;
    flex-shrink: 0;
}

.gh-content .kg-toggle-card {
    background-color: var(--color-obsidian);
    border: 1px solid var(--color-white-05);
    border-radius: 8px;
    padding: 16px 24px;
}
