/*
 * MacSurf 1.0 home page styles.
 *
 * Palette sampled from the puffin banner:
 *   #002030  wordmark dark teal-blue
 *   #F0D040  puffin yellow halo
 *   #E07010  warm orange (beak, underline accent)
 *   #B05030  deep brown / dark orange shadow
 *   #F0F0F0  near-white
 *
 * Constraints:
 *   - Class-based CSS only — MacSurf's <img> width/height attribute and
 *     inline style sizing don't reach the cascade (issue #143), but class
 *     selectors do.
 *   - Geneva 12 reads cleanly in MacSurf at the new DPI; serif fallback
 *     for the masthead because Geneva makes a poor display face above
 *     ~14 pt on classic hardware.
 */

html, body {
    margin: 0;
    padding: 0;
}

body {
    background: linear-gradient(to bottom, #FFF4D0 0%, #FFE790 100%);
    color: #002030;
    font-family: Geneva, 'Lucida Grande', Verdana, sans-serif;
    font-size: 13px;
    padding: 22px 18px 28px;
    box-sizing: border-box;
    min-height: 100vh;
}

/* --- masthead --------------------------------------------------------- */

.hero {
    max-width: 880px;
    margin: 0 auto 18px;
    text-align: center;
}

img.banner {
    display: block;
    margin: 0 auto 6px;
    width: 400px;
    height: 86px;
}

.tagline {
    font-family: serif;
    font-size: 16px;
    color: #002030;
    margin: 0;
}

.ver {
    color: #E07010;
    font-weight: bold;
}

/* --- card chrome ------------------------------------------------------ */

.card {
    background: #ffffff;
    border: 1px solid #002030;
    border-radius: 6px;
    padding: 14px 16px;
    margin: 0 0 14px;
    box-sizing: border-box;
}

.card-h {
    font-family: serif;
    font-size: 18px;
    color: #002030;
    margin: 0 0 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #E07010;
}

/* --- search + weather row -------------------------------------------- */

.top-row {
    max-width: 880px;
    margin: 0 auto 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.search {
    flex: 2 1 420px;
    margin-right: 14px;
}

.weather {
    flex: 1 1 220px;
}

.search .q {
    width: 96%;
    padding: 8px 10px;
    font-family: Geneva, sans-serif;
    font-size: 16px;
    border: 1px solid #002030;
    background: #fdfdfd;
    color: #002030;
}

.search .go {
    font-family: Geneva, sans-serif;
    font-size: 14px;
    padding: 6px 18px;
    background: #E07010;
    color: #ffffff;
    border: 1px solid #B05030;
    border-radius: 4px;
    cursor: pointer;
}

.search .go:hover {
    background: #B05030;
}

.search .powered {
    display: inline-block;
    margin-left: 10px;
    color: #B05030;
    font-size: 11px;
}

.weather .cond {
    font-size: 15px;
    color: #002030;
    margin: 0 0 2px;
}

.weather .temp {
    font-family: serif;
    font-weight: bold;
    font-size: 28px;
    color: #E07010;
    margin: 0 0 4px;
    line-height: 1;
}

.weather .wind {
    font-size: 12px;
    color: #B05030;
    margin: 0 0 6px;
}

.weather .stamp {
    font-size: 10px;
    color: #888888;
    margin: 0 0 8px;
}

.loc-set {
    margin: 0;
    padding: 0;
}

.loc-input {
    width: 96%;
    padding: 4px 6px;
    font-family: Geneva, sans-serif;
    font-size: 11px;
    border: 1px solid #B05030;
    background: #fffaf0;
    color: #002030;
}

/* --- news grid ------------------------------------------------------- */

.news {
    max-width: 880px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
}

.panel {
    flex: 1 1 410px;
    margin: 0 14px 14px 0;
}

.panel.last,
.panel:nth-child(2n) {
    margin-right: 0;
}

.panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.panel li {
    border-bottom: 1px dotted #E0C880;
    padding: 5px 0;
    line-height: 1.3;
}

.panel li:last-child {
    border-bottom: none;
}

.panel a {
    color: #002030;
    text-decoration: none;
}

.panel a:hover {
    text-decoration: underline;
    color: #E07010;
}

.panel .empty {
    color: #B05030;
    font-style: italic;
    margin: 0;
}

/* --- friends-of section ---------------------------------------------- */

.friends {
    max-width: 880px;
    margin: 4px auto 14px;
    text-align: center;
}

.friends-h {
    font-family: serif;
    font-size: 13px;
    color: #B05030;
    margin: 0 0 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.friend-link {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 4px;
    border: 1px solid #002030;
    border-radius: 6px;
    background: #ffffff;
    line-height: 0;
    vertical-align: middle;
}

.friend-link:hover {
    background: #FFF4D0;
}

img.friend-mactrove {
    display: block;
    width: 240px;
    height: 56px;
}

img.friend-mpls {
    display: block;
    width: 130px;
    height: 48px;
}

/* --- footer ---------------------------------------------------------- */

.foot {
    max-width: 880px;
    margin: 18px auto 0;
    text-align: center;
    color: #002030;
    font-size: 11px;
}

.foot p {
    margin: 0;
}
