@charset "utf-8";
/* CSS Document */

/* --------------------------------------------------
   Base Layout
-------------------------------------------------- */

body {
  background: #000;
  color: #eee;
  font-family: "Segoe UI", Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* --------------------------------------------------
   Header banner image
-------------------------------------------------- */
.site-header {
    background-image: url('/history/images/1925.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    height: 180px;              /* keeps header image small */
    padding: 60px 20px 20px;    /* positions the H1 nicely */
    text-align: center;
    color: white;
    border-bottom: 1px solid #444;
	position: relative;   /* <<< THIS fixes mobile behaviour */
    overflow: hidden;     /* keeps image cropped on iPhone */
}

/* Title styling on top of the image */
.site-header h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

/* MOBILE FIXES */
@media (max-width: 600px) {

    /* Header needs more room on iPhone */
    .site-header {
        height: 240px;
        padding-top: 40px;
    }

    /* Shrink title so it doesn't push nav out */
    .site-header h1 {
        font-size: 1.6rem;
        line-height: 1.2;
        margin-bottom: 10px;
    }

    /* Nav stays inside header + wraps neatly */
    .history-nav {
        bottom: 10px;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;     /* <<< THIS stops items disappearing */
        gap: 8px;            /* tighter spacing for small screens */
    }

    /* Mobile-friendly nav buttons */
    .history-nav a {
        font-size: 0.9rem;
        padding: 5px 8px;
        white-space: nowrap; /* prevents splitting words */
        display: inline-block;
    }
}

/* --------------------------------------------------
   Footer
-------------------------------------------------- */
.site-footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #444;
    margin-top: 40px;
}

/* --------------------------------------------------
   Navigation
-------------------------------------------------- */

.history-nav {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;

    display: flex;              /* keeps items together */
    justify-content: center;    /* centres them */
    gap: 10px;                  /* spacing between buttons */
}


.history-nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    font-size: 1.1em;

    background: rgba(0,0,0,0.4);   /* translucent dark background */
    padding: 6px 10px;             /* space around text */
    border-radius: 4px;            /* soft rounded corners */
}


.history-nav a:hover {
    color: #f0e6c8; /* soft newspaper yellow */
}

/* --------------------------------------------------
   Content Area
-------------------------------------------------- */

.content {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Gold H1 only inside .content */
.content h1 {
  color: #c8b878;
}

/* Keep H2 and H3 white everywhere */
h2, h3 {
  color: #f5f5f5;
}

/* --------------------------------------------------
   Article Boxes
-------------------------------------------------- */

.star-article {
  background: #111;
  border-left: 6px solid #c8b878;
  padding: 20px;
  margin: 30px 0;
}
.star-article h3 {
  margin-top: 0;
  color: #c8b878;
}

.courier-article {
  background: #111;
  border-left: 6px solid #888;
  padding: 20px;
  margin: 30px 0;
}
.courier-article h3 {
  margin-top: 0;
  color: #bbb;
}

.photo-box {
  background: #111;
  padding: 20px;
  margin: 30px 0;
  border: 1px solid #333;
  text-align: center;
}

.photo-box img {
  max-width: 100%;
  border: 3px solid #333;
  margin-left: auto;
  margin-right: auto;   /* centres the image */
}

.photo-box p {
  margin-top: 10px;
  font-style: italic;
  color: #ccc;
}


.highlight-box {
  background: #1a1a1a;
  padding: 20px;
  margin: 30px 0;
  border: 2px dashed #666;
}
.highlight-box h3 {
  margin-top: 0;
  color: #f0e6c8;
}

/* --------------------------------------------------
   Lightbox Image Styling
-------------------------------------------------- */

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

/* --------------------------------------------------
   PGN Viewer Tweaks
-------------------------------------------------- */

.pgnviewer {
  margin: 40px 0;
}
/* --------------------------------------------------
   Era Boxes
-------------------------------------------------- */
.era-boxes {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.era-box {
    background: #1a1a1a;
    border: 1px solid #444;
    padding: 15px 25px;
    border-radius: 10px;
    color: #f0e6c8; /* newspaper yellow */
    font-weight: bold;
    text-decoration: none;
    font-size: 1.1em;
    transition: background 0.2s, border-color 0.2s;
}

.era-box:hover {
    background: #2a2a2a;
    border-color: #c8b878; /* highlight on hover */
}
/* --------------------------------------------------
   Global Link Styling
-------------------------------------------------- */
a {
    color: #f0e6c8;        /* newspaper yellow */
    text-decoration: underline;
}

a:hover {
    color: #fff;           /* bright white on hover */
}
/* CHAPTER BOX — DARK THEME */
.chapter-box {
    background: #000;
    color: #fff;
    border: 1px solid #444;
    padding: 20px 25px;
    margin: 30px auto;
    max-width: 900px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

/* Align all H2/H4 headings with star-box width */
.chapter-box > h2,
.chapter-box > h4 {
    max-width: 700px;        /* same width as star-box */
    margin: 0 auto 15px;     /* center it above the star-box */
    padding-left: 5px;       /* visually matches star-box padding */
    color: #fff;
}

.chapter-box p {
    line-height: 1.6;
    color: #eee;
}


/* STAR ARTICLE BOX */
.star-box {
    background: #222;
    border: 2px solid #d4b44c;
    padding: 15px 20px;
    margin: 25px auto;
    max-width: 700px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.star-masthead {
    display: block;
    width: 100%;          /* full width */
    height: auto;         /* keep aspect ratio */
    margin: 0 0 15px 0;   /* spacing below */
    border-bottom: 1px solid #d4b44c; /* optional: ties masthead to border */
}

.star-content p {
    color: #eee;
    line-height: 1.6;
    margin: 0 0 12px 0;
}


/* EDITOR NOTE */
.editor-note {
    background: #222;
    border-left: 4px solid #d4b44c;   /* gold accent */
    padding: 12px 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.editor-note p {
    color: #eee;
    margin: 0 0 10px 0;
    line-height: 1.6;
}

.editor-note .article-cutting {
    float: right;
    margin: 0 0 10px 15px;
    max-width: 45%;
}

/* LETTER TO EDITOR */
.letter-box {
    background: #181818;
    border: 2px solid #888;        /* silver-grey border to distinguish from gold */
    padding: 15px 20px;
    margin: 25px auto;
    max-width: 700px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.letter-label {
    font-size: 0.9em;
    color: #d4b44c;                /* gold accent */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.letter-box p {
    color: #eee;
    line-height: 1.6;
    margin: 0 0 12px 0;
}
/* BACK TO TOP */
.back-to-top {
    text-align: right;
    margin: 30px 0 10px 0;
}

.back-to-top a {
    color: #d4b44c;              /* your gold accent */
    text-decoration: none;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

.back-to-top a:hover {
    text-decoration: underline;
}
/* Newspaper cutting inside article */
.article-cutting {
    width: 50%;
    float: left;
    margin: 0 20px 20px 0;
    display: block;
}

/* Mobile: full width */
@media (max-width: 768px) {
    .article-cutting {
        width: 100%;
        float: none;
        margin: 0 0 20px 0;
    }
}

.article-cutting-box {
    float: right;
    max-width: 45%;
    margin: 0 0 20px 20px;
    text-align: center;
}

.cutting-caption {
    font-size: 0.85em;
    font-style: italic;
    margin-top: 5px;
}

.game-box {
    background: #222;
    border: 1px solid #444;
    padding: 20px;
    margin: 30px 0;
    border-left: 4px solid #d4b44c; /* your gold accent */
}

.game-box h4 {
    margin-top: 0;
    color: #d4b44c;
}

.game-box p {
    margin-bottom: 15px;
}

.game-box .editor-note {
    background: #2b2b2b;
    border-left: 3px solid #888;
    padding: 10px 15px;
    margin: 15px 0;
}
/* --------------------------------------------------
   MOBILE OVERRIDES — GLOBAL CONTENT BOX TIGHTENING
   Applies to iPhone and small tablets
-------------------------------------------------- */
@media (max-width: 600px) {

    /* CHAPTER BOX — remove padding entirely */
    .chapter-box {
        padding: 0 !important;
        margin: 15px 0 !important;
    }

    /* STAR CONTENT — minimal padding */
    .star-content {
        padding: 8px 10px !important;
    }

    /* PHOTO BOX — minimal padding */
    .photo-box {
        padding: 8px 10px !important;
        margin: 20px 5px !important;
    }

    /* ARTICLE BOXES (Star, Courier, Highlight) */
    .star-article,
    .courier-article,
    .highlight-box {
        padding: 10px 12px !important;
        margin: 20px 5px !important;
    }

    /* GAME BOX — reduced padding */
    .game-box {
        padding: 10px 12px !important;
        margin: 20px 5px !important;
    }

    /* LETTER BOX — reduced padding */
    .letter-box {
        padding: 10px 12px !important;
        margin: 20px 5px !important;
        max-width: 100% !important;
    }

    /* EDITOR NOTE — reduced padding */
    .editor-note {
        padding: 8px 10px !important;
        margin: 15px 0 !important;
    }

    /* OPTIONAL: tighten paragraph spacing */
    .star-content p,
    .photo-box p,
    .star-article p,
    .courier-article p,
    .highlight-box p,
    .game-box p,
    .letter-box p,
    .editor-note p {
        margin-bottom: 10px !important;
    }
}
.photo-caption {
    float: right;
    max-width: 45%;
    margin: 0 0 10px 15px;
    text-align: center; /* optional but looks good */
}

.photo-caption img {
    width: 100%; /* keeps it tidy */
    height: auto;
}

.photo-caption p {
    font-size: 0.85em;
    font-style: italic;
    margin-top: 5px;
}
