/*
    beauty.css — modem19.com custom styles
    Supplements templatemo_style.css
*/

/* =============================================
   EPOCH BLOCKS — used on history.php
   ============================================= */

.epoch_block {
    display: flex;
    gap: 20px;
    border-left: 3px solid #218dfb;
    padding-left: 15px;
    margin-bottom: 10px;
}

.epoch_year {
    flex-shrink: 0;
    width: 90px;
    font-size: 11px;
    font-weight: bold;
    color: #218dfb;
    padding-top: 3px;
    line-height: 1.6em;
    letter-spacing: 0.03em;
}

.epoch_body {
    flex: 1;
}

.epoch_body h2 {
    font-size: 16px;
    color: #20d1ee;
    margin: 0 0 8px 0;
    padding: 0;
    font-weight: bold;
}

.epoch_body h2 a {
    color: #20d1ee;
    text-decoration: none;
    font-weight: bold;
}

.epoch_body h2 a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.epoch_body p {
    color: #e4e4e4;
    padding-bottom: 8px;
    text-align: justify;
}

/* Tags row */
.epoch_tags {
    margin: 6px 0 10px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.epoch_tags span {
    display: inline-block;
    background: #2a2a2a;
    border: 1px solid #218dfb;
    color: #218dfb;
    font-size: 10px;
    padding: 2px 7px;
    letter-spacing: 0.04em;
}

/* =============================================
   SPEED TABLE — used on history_pc.php
   ============================================= */

.speed_table_wrap {
    margin: 10px 0 15px 0;
    overflow-x: auto;
}

.speed_table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.speed_table thead tr {
    background: #218dfb;
}

.speed_table thead th {
    color: #ffffff;
    text-align: left;
    padding: 6px 10px;
    font-weight: bold;
    letter-spacing: 0.04em;
}

.speed_table tbody tr {
    border-bottom: 1px solid #2a2a2a;
}

.speed_table tbody tr:nth-child(odd) {
    background: #1a1a1a;
}

.speed_table tbody tr:nth-child(even) {
    background: #141414;
}

.speed_table tbody td {
    padding: 5px 10px;
    color: #cccccc;
    vertical-align: middle;
}

.speed_table tbody tr:hover td {
    color: #ffffff;
    background: #222d3a;
}

/* =============================================
   BREADCRUMB — epoch subpages
   ============================================= */

.breadcrumb {
    font-size: 11px;
    color: #878181;
    padding-bottom: 0;
}

.breadcrumb a {
    color: #218dfb;
    text-decoration: none;
}

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

/* =============================================
   THEORY BLOCK — Nyquist, Shannon explanations
   ============================================= */

.theory_block {
    background: #141414;
    border-left: 4px solid #20d1ee;
    padding: 15px 20px;
    margin: 10px 0 15px 0;
}

.theory_label {
    font-size: 12px;
    font-weight: bold;
    color: #20d1ee;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.theory_block p {
    color: #cccccc;
    padding-bottom: 8px;
    text-align: justify;
}

.theory_block p:last-child {
    padding-bottom: 0;
}

.theory_block a {
    color: #CCFF00;
}

.theory_block strong {
    color: #ffffff;
}

/* =============================================
   IMAGE SUGGESTION — editorial hints
   ============================================= */

.image_suggestion {
    background: #1a1a1a;
    border: 1px dashed #444;
    color: #878181;
    font-size: 10px;
    padding: 8px 12px;
    margin: 5px 0;
}

.image_suggestion strong {
    color: #aaaaaa;
}

/* =============================================
   EPOCH NAVIGATION — prev / next at page bottom
   ============================================= */

.epoch_nav {
    display: flex;
    justify-content: space-between;
    border-top: 1px dotted #333;
    padding-top: 15px;
}

.epoch_nav a {
    color: #218dfb;
    font-weight: bold;
    font-size: 12px;
    text-decoration: none;
}

.epoch_nav a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* =============================================
   CATALOG — catalog.php
   ============================================= */

/* Jump links bar */
.catalog_jumps {
    font-size: 11px;
    color: #878181;
    padding: 8px 0;
    border-top: 1px dotted #333;
    border-bottom: 1px dotted #333;
    margin-bottom: 5px;
}

.catalog_jumps a {
    color: #218dfb;
    text-decoration: none;
    font-weight: bold;
}

.catalog_jumps a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Section header */
.catalog_section_header {
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #218dfb;
}

.catalog_section_header h1 {
    margin-bottom: 2px;
}

.catalog_section_sub {
    font-size: 11px;
    color: #878181;
    display: block;
    margin-bottom: 5px;
}

.catalog_section_histlink {
    font-size: 11px;
    color: #CCFF00;
    text-decoration: none;
}

.catalog_section_histlink:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Individual modem card */
.catalog_card {
    border: 1px solid #2a2a2a;
    border-left: 3px solid #20d1ee;
    background: #161616;
    padding: 12px 15px;
    margin-bottom: 12px;
}

.catalog_card_header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 7px;
}

.catalog_card_year {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: bold;
    color: #218dfb;
    min-width: 36px;
}

.catalog_card_name {
    font-size: 14px;
    font-weight: bold;
    color: #ffffff;
}

/* Specs row */
.catalog_card_specs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    font-size: 10px;
    color: #aaaaaa;
    margin-bottom: 8px;
}

.catalog_card_specs strong {
    color: #878181;
}

/* Description */
.catalog_card_desc {
    font-size: 11px;
    color: #cccccc;
    padding-bottom: 8px;
    text-align: justify;
}

/* Historical significance */
.catalog_card_sig {
    font-size: 11px;
    color: #cccccc;
    background: #1e1e1e;
    border-left: 3px solid #CCFF00;
    padding: 6px 10px;
    margin-bottom: 8px;
}

.catalog_card_sig_label {
    display: block;
    font-size: 10px;
    font-weight: bold;
    color: #CCFF00;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 3px;
}

/* =============================================
   TECHNOLOGY PAGE — technology.php
   ============================================= */

.tech_section {
    margin-bottom: 10px;
}

.tech_section h1 {
    font-size: 20px;
    color: #218dfb;
    margin: 0 0 12px 0;
    padding: 0 0 8px 0;
    border-bottom: 1px solid #218dfb;
}

.tech_section h2 {
    font-size: 14px;
    color: #20d1ee;
    margin: 16px 0 6px 0;
    padding: 0;
    font-weight: bold;
}

.tech_section p {
    color: #cccccc;
    padding-bottom: 8px;
    text-align: justify;
}

.tech_section a {
    color: #CCFF00;
}

/* Formula block */
.formula_block {
    background: #0d0d0d;
    border: 1px solid #218dfb;
    border-left: 4px solid #218dfb;
    padding: 12px 16px;
    margin: 10px 0 14px 0;
    font-family: "Courier New", Courier, monospace;
}

.formula {
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: 0.03em;
}

.formula sub,
.formula sup {
    font-size: 10px;
}

.formula_legend {
    font-size: 10px;
    color: #878181;
    line-height: 1.8em;
    font-family: Verdana, Arial, sans-serif;
}

.formula strong {
    color: #20d1ee;
}

/* =============================================
   STORIES PAGE — stories.php
   ============================================= */

.story_block {
    border-top: 2px solid #218dfb;
    padding-top: 15px;
    margin-bottom: 5px;
}

.story_label {
    font-size: 10px;
    font-weight: bold;
    color: #218dfb;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 5px;
}

.story_block h1 {
    font-size: 22px;
    color: #ffffff;
    margin: 0 0 4px 0;
    padding: 0;
    border: none;
}

.story_meta {
    font-size: 11px;
    color: #878181;
    font-style: italic;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px dotted #333;
}

.story_block p {
    color: #cccccc;
    padding-bottom: 10px;
    text-align: justify;
    line-height: 1.7em;
}

.story_block p em {
    color: #ffffff;
    font-style: italic;
}

.story_block p strong {
    color: #ffffff;
}

/* =============================================
   INFO PAGE — info.php
   ============================================= */

.info_section {
    margin-bottom: 10px;
}

.info_section h1 {
    font-size: 20px;
    color: #218dfb;
    margin: 0 0 12px 0;
    padding: 0 0 8px 0;
    border-bottom: 1px solid #218dfb;
}

.info_section h2 {
    font-size: 13px;
    color: #20d1ee;
    margin: 16px 0 6px 0;
    padding: 0;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info_section p {
    color: #cccccc;
    padding-bottom: 8px;
    text-align: justify;
    line-height: 1.7em;
}

.info_section p em {
    color: #ffffff;
    font-style: italic;
}

.info_section p strong {
    color: #ffffff;
}

.info_section a {
    color: #CCFF00;
    text-decoration: none;
}

.info_section a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* =============================================
   HOME PAGE — index.php
   ============================================= */

/* Section cards grid */
/* HOME SECTIONS - FIREFOX FIX */
.home_sections {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
}

.home_section_card {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 calc(50% - 7px);
    flex: 0 0 calc(50% - 7px);
    max-width: calc(50% - 7px);
    box-sizing: border-box;
    background: #161616;
    border: 1px solid #2a2a2a;
    border-top: 3px solid #218dfb;
    padding: 14px 16px;
}

.home_section_num {
    font-size: 22px;
    font-weight: bold;
    color: #2a2a2a;
    line-height: 1em;
    margin-bottom: 4px;
    display: block;
}

.home_section_card h2 {
    font-size: 16px;
    color: #20d1ee;
    margin: 0 0 8px 0;
    padding: 0;
    font-weight: bold;
    border: none;
}

.home_section_card h2 a {
    color: #20d1ee;
    text-decoration: none;
    font-weight: bold;
}

.home_section_card h2 a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.home_section_card p {
    font-size: 11px;
    color: #aaaaaa;
    padding-bottom: 10px;
    line-height: 1.7em;
}

.home_section_links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.home_section_links a {
    font-size: 10px;
    color: #218dfb;
    text-decoration: none;
    border: 1px solid #218dfb;
    padding: 2px 7px;
}

.home_section_links a:hover {
    color: #ffffff;
    background: #218dfb;
    text-decoration: none;
}

/* Timeline strip */
.home_timeline {
    border-left: 3px solid #218dfb;
    padding-left: 16px;
    margin: 10px 0;
}

.home_tl_item {
    display: flex;
    gap: 14px;
    align-items: baseline;
    padding: 5px 0;
    border-bottom: 1px dotted #222;
}

.home_tl_item:last-child {
    border-bottom: none;
}

.home_tl_year {
    flex-shrink: 0;
    width: 38px;
    font-size: 11px;
    font-weight: bold;
    color: #218dfb;
}

.home_tl_text {
    font-size: 11px;
    color: #cccccc;
    line-height: 1.5em;
}

/* =============================================
   FOOTER LEGAL — footer.php
   ============================================= */

.footer_legal {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dotted #333;
    font-size: 10px;
    color: #555555;
    line-height: 1.7em;
    text-align: center;
}

.footer_legal p {
    margin: 0 0 6px 0;
    padding: 0;
}

.footer_legal a {
    color: #666666;
    text-decoration: underline;
}

.footer_legal a:hover {
    color: #aaaaaa;
}

/* =============================================
   HEADER — clickable site title
   ============================================= */

#site_title_link {
    display: inline-block;
    text-decoration: none;
}

#site_title_link h1,
#site_title_link h2 {
    text-decoration: none;
}

#site_title_link:hover h1 {
    color: #4aa8ff;
}

#site_title_link:hover h2 {
    color: #aaaaaa;
}

/* =============================================
   SEARCH PAGE — search.php
   ============================================= */

/* Large search form on results page */
.search_form {
    display: flex;
    gap: 8px;
    margin-bottom: 5px;
}

.search_input_large {
    flex: 1;
    background: #1a1a1a;
    border: 1px solid #218dfb;
    color: #ffffff;
    font-size: 13px;
    padding: 7px 10px;
    font-family: Verdana, Arial, sans-serif;
}

.search_input_large:focus {
    outline: none;
    border-color: #20d1ee;
    background: #1f1f1f;
}

.search_submit_large {
    background: #218dfb;
    border: none;
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    padding: 7px 18px;
    cursor: pointer;
    font-family: Verdana, Arial, sans-serif;
}

.search_submit_large:hover {
    background: #20d1ee;
    color: #000000;
}

/* Individual result */
.search_result {
    border-left: 3px solid #20d1ee;
    padding: 10px 14px;
    margin-bottom: 12px;
    background: #161616;
}

.search_result_meta {
    margin-bottom: 3px;
}

.search_result_section {
    font-size: 10px;
    font-weight: bold;
    color: #218dfb;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.search_result_title {
    font-size: 14px;
    margin: 0 0 6px 0;
    padding: 0;
    color: #ffffff;
    border: none;
}

.search_result_title a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
}

.search_result_title a:hover {
    color: #20d1ee;
    text-decoration: underline;
}

.search_result_excerpt {
    font-size: 11px;
    color: #aaaaaa;
    padding-bottom: 6px;
    line-height: 1.7em;
}

.search_result_url {
    font-size: 10px;
}

.search_result_url a {
    color: #555555;
    text-decoration: none;
}

.search_result_url a:hover {
    color: #878181;
}

/* Highlight matched terms */
mark {
    background: #218dfb;
    color: #ffffff;
    padding: 0 2px;
    font-style: normal;
}

/* No results */
.search_noresults {
    color: #878181;
    padding: 10px 0;
}

.search_noresults strong {
    color: #cccccc;
}

.search_noresults a {
    color: #218dfb;
}

/* =============================================
   SITE IMAGES — photos with captions
   ============================================= */

.site_image {
    margin: 10px 0 16px 0;
    border: 1px solid #2a2a2a;
    background: #111111;
    padding: 8px;
}

.site_image img {
    display: block;
    width: 100%;
    height: auto;
}

.site_image_caption {
    font-size: 10px;
    color: #878181;
    padding: 6px 4px 2px 4px;
    line-height: 1.6em;
}

.site_image_credit {
    display: block;
    color: #555555;
    font-style: italic;
    margin-top: 2px;
}

/* Image floated right — for inline images within text */
.site_image_right {
    float: right;
    width: 220px;
    margin: 0 0 14px 18px;
    border: 1px solid #2a2a2a;
    background: #111111;
    padding: 8px;
}

.site_image_right img {
    display: block;
    width: 100%;
    height: auto;
}

.site_image_right .site_image_caption {
    font-size: 10px;
    color: #878181;
    padding: 6px 4px 2px 4px;
    line-height: 1.6em;
}

/* Image floated left — text wraps to the right */
.site_image_left {
    float: left;
    width: 220px;
    margin: 0 18px 14px 0;
    border: 1px solid #2a2a2a;
    background: #111111;
    padding: 8px;
}

.site_image_left img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

.site_image_left .site_image_caption {
    font-size: 10px;
    color: #878181;
    padding: 6px 4px 2px 4px;
    line-height: 1.6em;
}

/* Fix full-width image to never overflow */
.site_image img {
    max-width: 100%;
    height: auto;
}

/* =============================================
   IMAGE LIGHTBOX — zoom on click
   ============================================= */

/* Cursor hint that image is clickable */
img.zoomable {
    cursor: zoom-in;
}

/* Overlay */
#lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    cursor: zoom-out;
    text-align: center;
}

#lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* The enlarged image */
#lightbox img {
    max-width: 90%;
    max-height: 85vh;
    width: auto;
    height: auto;
    display: block;
    border: 1px solid #333;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.8);
    cursor: zoom-out;
}

/* Caption inside lightbox */
#lightbox_caption {
    color: #878181;
    font-size: 11px;
    margin-top: 12px;
    font-family: Verdana, Arial, sans-serif;
}

/* Close button */
#lightbox_close {
    position: fixed;
    top: 16px;
    right: 24px;
    color: #878181;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    font-family: Verdana, Arial, sans-serif;
    z-index: 10000;
}

#lightbox_close:hover {
    color: #ffffff;
}

/* =============================================
   H1 LINE HEIGHT FIX — multiline headings
   ============================================= */

#templatemo_content_left h1,
#templatemo_content_left .tech_section h1,
#templatemo_content_left .story_block h1,
#templatemo_content_left .info_section h1 {
    line-height: 1.3em;
    margin-bottom: 10px;
}

/* =============================================
   RIGHT COLUMN — replace template background
   images with clean CSS styling
   ============================================= */

#templatemo_content_right .content_right_product_01,
#templatemo_content_right .content_right_product_02 {
    height: auto;
    min-height: 0;
    background: #161616;
    border: 1px solid #2a2a2a;
    border-top: 3px solid #218dfb;
    padding: 14px 12px;
    margin-bottom: 14px;
    box-sizing: border-box;
}

#templatemo_content_right h1 {
    font-size: 14px;
    font-weight: bold;
    color: #218dfb;
    margin: 0 0 4px 0;
    padding: 0 0 6px 0;
    border-bottom: 1px dotted #2a2a2a;
}

#templatemo_content_right h2 {
    font-size: 11px;
    font-weight: bold;
    color: #878181;
    margin: 0 0 8px 0;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#templatemo_content_right ul li {
    color: #cccccc;
    font-size: 11px;
    padding: 0 0 4px 5px;
    line-height: 1.6em;
}

#templatemo_content_right ul li a {
    color: #cccccc;
}

#templatemo_content_right ul li a:hover {
    color: #ffffff;
}

/* =============================================
   RIGHT COLUMN — orange header style
   ============================================= */

#templatemo_content_right .content_right_product_01 h1,
#templatemo_content_right .content_right_product_02 h1 {
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    background: #c8820a;
    margin: -14px -12px 12px -12px;
    padding: 10px 12px;
    border-bottom: none;
    letter-spacing: 0.02em;
}

/* =============================================
   RIGHT COLUMN — remove top border, round corners
   ============================================= */

#templatemo_content_right .content_right_product_01,
#templatemo_content_right .content_right_product_02 {
    border-top: 1px solid #2a2a2a;
    border-radius: 10px 10px 15px 15px;
    overflow: hidden;
}

#templatemo_content_right .content_right_product_01 h1,
#templatemo_content_right .content_right_product_02 h1 {
    border-radius: 0;
}

/* =============================================
   RIGHT COLUMN — hanging indent for list items
   ============================================= */

#templatemo_content_right ul li {
    padding-left: 10px;
    text-indent: -12px;
}
