/* sry.css — Larry Puckett's Southern Railway System site
   Part of Dave's SRS at southern-railway.railfan.net/srs/
   HTML5 redesign 2026 */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    background: #fff;
    color: #222;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

/* ── SVG arrow watermark (608×339 native aspect ratio) ── */
body::before {
    content: '';
    position: fixed;
    top: 160px;
    left: 50%;
    transform: translateX(-50%);
    width: 580px;
    height: 323px;
    background: url(SR-Arrow-Vector.svg) center center no-repeat;
    background-size: contain;
    opacity: 0.20;
    z-index: -1;
    pointer-events: none;
}

/* ── Site header ── */
#sry-header {
    background: #004d00;
    color: #fff;
    padding: 14px 24px 10px;
    border-bottom: 4px solid #008000;
}
#sry-header h1 {
    margin: 0;
    font-size: 1.55em;
    font-weight: bold;
    color: #fff;
    letter-spacing: 0.02em;
}
.sry-subtitle {
    margin: 4px 0 0;
    font-size: 0.88em;
    color: #99d699;
}

/* ── Navigation ── */
#sry-nav {
    background: #006600;
    border-bottom: 2px solid #004d00;
}
#sry-nav ul {
    list-style: none;
    margin: 0;
    padding: 0 8px;
    display: flex;
    flex-wrap: wrap;
}
#sry-nav li a {
    display: block;
    padding: 8px 14px;
    color: #fff;
    text-decoration: none;
    font-size: 0.88em;
    font-weight: bold;
    letter-spacing: 0.02em;
    border-right: 1px solid rgba(255,255,255,0.15);
}
#sry-nav li:last-child a { border-right: none; }
#sry-nav li a:hover { background: #004d00; }
#sry-nav li a.nav-current {
    background: #003d00;
    color: #99d699;
}

/* ── Content area ── */
#sry-content {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 20px 32px;
}

/* ── Typography ── */
h2 {
    color: #005000;
    font-size: 1.5em;
    border-bottom: 2px solid #008000;
    padding-bottom: 5px;
    margin-top: 0;
}

h3 {
    color: #005000;
    font-size: 1.15em;
}

h4, h5 { color: #444; }

p { margin: 0.7em 0; }

a { color: #005000; }
a:visited { color: #555; }
a:hover { color: #008000; text-decoration: underline; }

hr {
    border: none;
    border-top: 2px solid #008000;
    margin: 1.5em 0;
}

strong { color: inherit; }

/* ── Link lists (replacing bulletindent.gif) ── */
ul.sry-links {
    list-style: none;
    padding: 0;
    margin: 0.5em 0;
}
ul.sry-links li {
    padding: 6px 0 6px 30px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpolygon points='3,4 15,9 3,14' fill='%23008000'/%3E%3C/svg%3E")
                0 50% no-repeat;
    font-size: 1.05em;
    font-weight: bold;
    line-height: 1.4;
}
ul.sry-links li a {
    color: #005000;
    text-decoration: none;
}
ul.sry-links li a:hover { text-decoration: underline; }

/* ── Section headings within link lists ── */
p.sry-section {
    font-size: 1.15em;
    color: #005000;
    font-weight: bold;
    margin-top: 1.2em;
    margin-bottom: 0.2em;
}

/* ── Photo thumbnail tables ── */
table.photo-grid {
    margin: 0 auto 1em;
    border-collapse: collapse;
}
table.photo-grid td {
    padding: 6px;
    vertical-align: top;
    text-align: center;
    font-size: 0.82em;
    line-height: 1.4;
}
table.photo-grid img {
    display: block;
    border: 1px solid #aaa;
    max-width: 192px;
    height: auto;
    margin: 0 auto 4px;
}
table.photo-grid td a:hover img {
    border-color: #008000;
    box-shadow: 0 0 4px rgba(0,128,0,0.5);
}

/* ── Inline images (diesel.htm, rccars.htm) ── */
.inline-photo {
    float: left;
    margin: 0 16px 12px 0;
    text-align: center;
}
.inline-photo img {
    border: 1px solid #aaa;
    display: block;
}
.clearfix::after { content: ''; display: table; clear: both; }

/* ── Centered content ── */
.center { text-align: center; }

/* ── Notice box ── */
.notice {
    border: 1px solid #cc9900;
    background: #fffbe6;
    padding: 10px 14px;
    margin: 1em 0;
    border-radius: 3px;
    font-size: 0.93em;
}

/* ── Footer ── */
#sry-footer {
    background: #004d00;
    color: #99d699;
    padding: 12px 24px;
    text-align: center;
    font-size: 0.82em;
    border-top: 4px solid #008000;
    margin-top: 30px;
}
#sry-footer a { color: #c8f0c8; }
#sry-footer a:hover { color: #fff; }

/* ── Responsive ── */
@media (max-width: 600px) {
    #sry-content { padding: 16px 12px; }
    table.photo-grid td { padding: 3px; }
    table.photo-grid img { max-width: 90px; }
    body::before { width: 320px; height: 178px; }
}
