/* linux.omnipotent.net — era-faithful styling.
   Palette and proportions echo the original Linux.com circa 1999-2001
   (see static/screenshots/) without trying to reproduce it pixel-for-pixel.
   Verdana body, navy section bars, pale-blue panels, orange accents. */

:root {
    --ink:           #222;
    --ink-soft:      #555;
    --link:          #003399;
    --link-visited:  #553388;
    --link-hover:    #cc3300;
    --accent:        #cc6600;       /* orange — section ticks, "more" */
    --dot:           #f78600;       /* the dot in LINUX.COM */
    --navy:          #336699;       /* primary section-bar fill */
    --navy-deep:     #003366;       /* headings, masthead subtitle */
    --rule:          #99a8c0;       /* panel borders */
    --panel-band:    #d8e0ec;       /* article meta strip */
    --panel-soft:    #f0f3f8;       /* sidebar / info backgrounds */
    --page-bg:       #d8dee8;
    --zebra:         #f4f6fa;
}

* { box-sizing: border-box; }

body {
    background: var(--page-bg);
    color: var(--ink);
    font-family: Verdana, Geneva, "DejaVu Sans", Tahoma, sans-serif;
    font-size: 11px;
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

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

p, td, ul, li { font-size: 11px; line-height: 1.55; }
p { margin: 6px 0 10px; }

/* ----- Masthead -------------------------------------------------------- */

.masthead {
    background: linear-gradient(to bottom, #ffffff 0%, #eef1f6 100%);
    border-bottom: 1px solid var(--rule);
    padding: 14px 24px 10px;
    max-width: 960px;
    margin: 0 auto;
    border-left: 1px solid var(--rule);
    border-right: 1px solid var(--rule);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.masthead-brand {
    display: flex;
    align-items: baseline;
    gap: 10px;
}
a.wordmark,
a.wordmark:visited {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 38px;
    font-weight: bold;
    color: #6a6a6a;
    letter-spacing: -1px;
    line-height: 1;
    display: inline-block;
    text-decoration: none;
    user-select: none;
}
a.wordmark:hover { color: #4a4a4a; text-decoration: none; }
a.wordmark:hover .wordmark-dot { color: #ff8800; }
.wordmark-c {
    color: #9a9a9a;
}
.wordmark-dot { color: var(--dot); }
.masthead-sub {
    color: var(--navy-deep);
    font-size: 12px;
    font-style: italic;
}

.masthead-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
}
.masthead-search label {
    color: var(--navy-deep);
    font-weight: bold;
}
.masthead-search input {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 11px;
    padding: 3px 6px;
    border: 1px solid var(--rule);
    background: #fff;
    color: var(--ink);
    width: 170px;
}
.masthead-search input:focus {
    border-color: var(--navy);
    outline: none;
}
.masthead-search button {
    /* inherit the base button look but trim padding to match the input */
    padding: 3px 10px;
}

/* ----- Top nav strip --------------------------------------------------- */

.nav-strip {
    background: var(--navy);
    color: #fff;
    padding: 6px 24px;
    border-bottom: 1px solid var(--navy-deep);
    font-size: 11px;
    max-width: 960px;
    margin: 0 auto;
    border-left: 1px solid var(--navy-deep);
    border-right: 1px solid var(--navy-deep);
    overflow: hidden;
}
.nav-strip a,
.nav-strip a:visited { color: #fff; text-decoration: none; font-weight: bold; }
.nav-strip a:hover   { color: #ffcc66; text-decoration: underline; }
.nav-strip .sep      { color: #b8c8dc; margin: 0 4px; font-weight: normal; }
.nav-strip .nav-right {
    float: right;
    color: #cdd8e8;
    font-style: italic;
    font-weight: normal;
}

/* ----- Page card ------------------------------------------------------- */

.page {
    max-width: 960px;
    margin: 0 auto;
    background: #fff;
    border-left: 1px solid var(--rule);
    border-right: 1px solid var(--rule);
    padding: 18px 24px 24px;
}

/* ----- Headings -------------------------------------------------------- */

h1, .title {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 20px;
    font-weight: bold;
    color: var(--navy-deep);
    margin: 14px 0 8px;
}
h2, .subtitle {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 15px;
    font-weight: bold;
    color: var(--navy);
    margin: 14px 0 6px;
}
h3 {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 12px;
    font-weight: bold;
    color: var(--navy-deep);
    margin: 14px 0 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px dotted var(--rule);
    padding-bottom: 3px;
}

/* ----- Tabular section bar (used by old table-based blocks) ---------- */

.section-bar {
    background: var(--navy);
    color: #fff;
    padding: 4px 8px;
    font-weight: bold;
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.section-bar a,
.section-bar a:visited { color: #fff; }

/* ----- Article header / body ------------------------------------------ */

.article_head {
    background: var(--panel-soft);
    border: 1px solid var(--rule);
    border-collapse: collapse;
    margin-top: 8px;
}
.article_head_field {
    background: var(--panel-band);
    font-size: 11px;
    padding: 4px 8px;
    border-bottom: 1px solid var(--rule);
    color: var(--navy-deep);
}
.article_head_field a,
.article_head_field a:visited { color: var(--navy-deep); }
.article_title {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 19px;
    font-weight: bold;
    color: var(--navy-deep);
    margin: 6px 0 6px;
}
.article_blurb { padding: 4px 10px 10px; }

.article_body {
    background: #fff;
    border: 1px solid var(--rule);
    border-collapse: collapse;
}
.article_body_pagenum {
    background: var(--panel-band);
    font-size: 11px;
    font-style: italic;
    padding: 4px 8px;
    border-bottom: 1px solid var(--rule);
    color: var(--navy-deep);
}
.article_body_pagenum a,
.article_body_pagenum a:visited { color: var(--accent); font-weight: bold; font-style: normal; }

/* The rendered legacy article HTML re-uses font tags etc.; keep body
   content readable inside the card without trying to scrub it. */
#lcpage { font-size: 12px; line-height: 1.55; padding: 4px 12px 12px; }
#lcpage p { font-size: 12px; }

/* ----- List table (articles, sortable lists) -------------------------- */

.list_table {
    width: 100%;
    background: #fff;
    border: 1px solid var(--rule);
    border-collapse: collapse;
    margin: 8px 0;
}
.list_table th,
.list_table th a {
    text-align: left;
    background: var(--navy);
    color: #fff;
    padding: 5px 7px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.list_table td {
    background: #fff;
    padding: 4px 7px;
    border-top: 1px solid #e3e8ef;
    vertical-align: top;
}
.list_table tr:nth-child(even) td { background: var(--zebra); }

/* ----- Info table (staff member detail) ------------------------------- */

.info_table {
    background: var(--panel-soft);
    border: 1px solid var(--rule);
    border-collapse: collapse;
    width: 100%;
}
.info_table th,
.info_table th a {
    text-align: left;
    background: var(--navy);
    color: #fff;
    padding: 5px 7px;
}
.info_left {
    font-weight: bold;
    text-align: right;
    vertical-align: top;
    width: 110px;
    color: var(--navy-deep);
    padding: 4px 8px;
    background: var(--panel-band);
}
.info_right {
    vertical-align: top;
    padding: 4px 10px;
    background: #fff;
}

/* ----- Source / category browser -------------------------------------- */

.source_list {
    font-size: 12px;
    list-style: square;
    padding-left: 22px;
    color: var(--navy-deep);
}
.source_list > li { padding: 6px 0; }
.cat_list {
    font-size: 11px;
    list-style: disc;
    padding-left: 22px;
    margin: 4px 0 8px;
    color: var(--ink);
}
.cat_list li { padding: 2px 0; }

/* ----- Index page screenshots gallery --------------------------------- */

.screenshots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin: 10px 0 18px;
}
.screenshots a {
    display: block;
    border: 1px solid var(--rule);
    background: #fff;
    padding: 4px;
    text-align: center;
    text-decoration: none;
    color: var(--ink-soft);
}
.screenshots a:hover { border-color: var(--accent); }
.screenshots img { width: 100%; height: auto; display: block; }
.screenshots span {
    display: block;
    font-size: 10px;
    padding-top: 4px;
    color: var(--ink-soft);
}

/* ----- Random article block on index ---------------------------------- */

#search { margin-top: 4px; }

/* ----- Buttons -------------------------------------------------------- */

button {
    font-family: inherit;
    font-size: 11px;
    padding: 4px 12px;
    background: linear-gradient(to bottom, #f8fafd 0%, #d8dee8 100%);
    border: 1px solid var(--rule);
    color: var(--navy-deep);
    cursor: pointer;
    font-weight: bold;
}
button:hover {
    background: linear-gradient(to bottom, #ffffff 0%, #e0e6ee 100%);
    border-color: var(--navy);
}

/* ----- Footer --------------------------------------------------------- */

.footer {
    max-width: 960px;
    margin: 0 auto;
    background: #eef1f6;
    border: 1px solid var(--rule);
    border-top: 2px solid var(--navy);
    font-size: 10px;
    text-align: center;
    color: var(--ink-soft);
    padding: 10px 24px;
}
.footer a, .footer a:visited { color: var(--navy-deep); }

/* ----- Pagefind UI tweak --------------------------------------------- */

:root {
    --pagefind-ui-primary:    #003366;
    --pagefind-ui-background: #f0f3f8;
}

/* ----- Archive.org icon (unchanged behaviour, themed colour) --------- */

.archive-link {
    display: inline-block;
    width: 1.1em;
    height: 1.1em;
    margin: 0 2px 0 3px;
    vertical-align: -2px;
    background-color: var(--navy);
    -webkit-mask: url('/static/archive-org.svg') no-repeat center / contain;
            mask: url('/static/archive-org.svg') no-repeat center / contain;
    text-indent: -9999px;
    overflow: hidden;
    white-space: nowrap;
    opacity: 0.55;
    transition: opacity 0.1s;
}
.archive-link:hover { opacity: 1; }

.empty-body { color: #888; font-style: italic; }
