/*
Theme Name: Radio Rugby Heritage
Description: Historic village radio child theme for Radio Rugby.
Author: Radio Rugby
Template: radio-station
Version: 0.6.0
Text Domain: radio-rugby-heritage
*/
:root{--rr-green:#172e20;--rr-forest:#263a27;--rr-cream:#f8f0dc;--rr-paper:#f2e4c6;--rr-gold:#b49a5c;--rr-burgundy:#6e2924}
body{background:var(--rr-green);font-family:Georgia,'Times New Roman',serif;color:#1f3024}body .rr-site,body .rr-site *{box-sizing:border-box}body .rr-site a{text-decoration:none}body .rr-site a:focus-visible,body .rr-header a:focus-visible{outline:3px solid #d3ac61;outline-offset:4px}
body .rr-header{background:var(--rr-green);color:var(--rr-cream);border-bottom:3px solid var(--rr-gold);font-family:Georgia,serif}body .rr-header-inner{max-width:1400px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:12px 28px}body .rr-brand{display:flex;flex-direction:column;color:#ead4a5!important;text-decoration:none!important;line-height:1.1;white-space:nowrap}body .rr-brand-main{font-size:clamp(26px,3vw,43px)}body .rr-brand-sub{font-size:15px;font-style:italic;color:#f8f0dc;margin-top:5px}body .rr-nav .rr-menu{display:flex;gap:20px;align-items:center;flex-wrap:wrap;list-style:none!important;margin:0!important;padding:0!important}body .rr-nav .rr-menu li{margin:0!important;padding:0!important;list-style:none!important}body .rr-nav .rr-menu a{color:#f8f0dc!important;font:600 15px Georgia,serif;text-decoration:none!important}body .rr-nav .rr-menu a:hover{color:#e1c27b!important}body .rr-button{display:inline-block;background:var(--rr-burgundy);border:1px solid var(--rr-gold);padding:12px 23px;color:#fff!important;font:700 13px/1.4 Georgia,serif;text-align:center;text-transform:uppercase;letter-spacing:.075em;text-decoration:none!important;transition:background .15s}body .rr-button:hover{background:#4b1d1a}body .rr-header-listen{white-space:nowrap}
.rr-hero{min-height:330px;display:grid;grid-template-columns:55% 45%;background:linear-gradient(90deg,#24180f,#483020);color:var(--rr-cream);overflow:hidden}.rr-hero-copy{padding:50px 4vw 42px;text-align:center;align-self:center}.rr-kicker{letter-spacing:.22em;font:600 12px Arial,sans-serif;text-transform:uppercase}.rr-hero h1{color:var(--rr-cream);font-size:clamp(56px,6.8vw,110px);font-weight:400;line-height:1.05;margin:12px 0 2px}.rr-hero-sub{font-size:clamp(24px,3vw,39px);font-style:italic;margin:0}.rr-ornament{color:#d6b86e;margin:18px auto}.rr-hero-copy>p:last-child{font-size:clamp(17px,2vw,23px);line-height:1.5}.rr-hero-photo{background:linear-gradient(90deg,rgba(36,24,15,.2),transparent 40%),url('assets/hero-radio.jpg') center center/cover no-repeat;min-height:330px}
.rr-home-container{max-width:1360px;padding:0 22px 35px;margin:-1px auto 0}.rr-paper{background:linear-gradient(135deg,#fff7e3,#ead5a7);border:5px double #ad8f52;box-shadow:0 5px 13px #0004}.rr-on-air{display:grid;grid-template-columns:60% 40%;gap:0;margin-top:0;position:relative}.rr-onair-left{padding:25px 30px 30px}.rr-title{text-align:center;color:#59351e;letter-spacing:.16em;text-transform:uppercase;font-size:28px;margin:0 0 18px}.rr-air-inner{display:flex;gap:25px;align-items:center}.rr-air-inner>img{width:31%;aspect-ratio:1;object-fit:cover;border:2px solid #59402a}.rr-air-inner h3{font-size:28px;margin:6px 0;color:#1e3226}.rr-air-inner p{margin:8px 0 14px;font-size:17px}.rr-label{font-style:italic}.rr-player{margin-top:15px;max-width:440px}.rr-player iframe{width:100%;height:145px;border:0}.rr-about{border-left:1px solid #b49a5c;padding:29px 30px;text-align:center}.rr-about h2{font-size:20px;letter-spacing:.12em;text-transform:uppercase;margin:0 0 15px}.rr-about p{font-size:18px;line-height:1.45;margin:0 0 14px}.rr-about img{width:100%;max-height:105px;object-fit:cover;mix-blend-mode:multiply}.rr-three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:14px}.rr-panel{padding:0 23px 23px;display:flex;flex-direction:column;align-items:stretch;min-height:340px}.rr-panel h2{background:var(--rr-green);color:#f7e6bd;text-transform:uppercase;text-align:center;letter-spacing:.15em;font-size:18px;padding:15px 8px;margin:0 -23px 20px}.rr-panel p{font-size:18px;line-height:1.5}.rr-panel .rr-button{margin-top:auto;align-self:center}.rr-news article{padding:0 0 10px;margin-bottom:10px;border-bottom:1px solid #c5ad7d}.rr-news span{font-size:12px;color:#765b3a}.rr-news h3{font-size:18px;margin:4px 0}.rr-news a{color:#263a27!important}.rr-telegraph img{width:100%;max-height:165px;object-fit:cover}.rr-telegraph p{text-align:center}.rr-global-footer{background:#172e20;color:#f8f0dc;text-align:center;padding:26px 15px;border-top:2px solid var(--rr-gold);font-family:Georgia,serif}.rr-global-footer p{letter-spacing:.18em;font-size:13px}.rr-global-footer nav{display:flex;justify-content:center;gap:25px;flex-wrap:wrap;margin:14px 0}.rr-global-footer a{color:#f8f0dc!important;text-decoration:none!important}.rr-global-footer small{font-size:12px;color:#d8c69e}
@media(max-width:1000px){body .rr-header-inner{flex-wrap:wrap;justify-content:center}body .rr-nav{order:3;width:100%}body .rr-nav .rr-menu{justify-content:center}.rr-on-air{grid-template-columns:1fr}.rr-about{border-left:0;border-top:1px solid #b49a5c}.rr-about img{max-height:90px}}@media(max-width:720px){.rr-hero{grid-template-columns:1fr}.rr-hero-photo{min-height:210px;order:-1}.rr-hero-copy{padding:28px 16px}.rr-hero h1{font-size:57px}.rr-three{grid-template-columns:1fr}.rr-home-container{padding:0 10px 20px}.rr-air-inner{flex-direction:column;text-align:center}.rr-air-inner>img{width:65%;max-width:230px}.rr-onair-left,.rr-about{padding:20px}.rr-panel{min-height:260px}body .rr-header-inner{padding:12px}body .rr-nav .rr-menu{gap:12px}body .rr-nav .rr-menu a{font-size:14px}}

/* v0.4 — Live365 integrated player and tighter layout */
.rr-hero{min-height:295px}.rr-hero-photo{min-height:295px}.rr-hero-copy{padding-top:35px;padding-bottom:30px}
.rr-onair-left{padding:20px 26px 22px}.rr-about{padding:22px 26px}
.rr-player{width:100%;max-width:450px;margin:14px 0 0;scroll-margin-top:30px}
.rr-player iframe{display:block;width:100%;height:316px;max-width:450px;border:0;background:#172e20}
.rr-player-note{font:italic 13px/1.4 Georgia,serif!important;margin:7px 0 0!important;color:#604d31}
.rr-air-inner{align-items:flex-start;gap:20px}.rr-air-inner>img{width:27%;max-width:180px;margin-top:6px}
.rr-panel{min-height:300px}.rr-panel p{margin-top:10px;margin-bottom:12px}
@media(max-width:720px){.rr-hero{min-height:0}.rr-hero-photo{min-height:205px}.rr-player{margin-left:auto;margin-right:auto}.rr-air-inner>img{width:55%;max-width:180px}}

/* v0.5 interior pages */
.rr-interior{min-height:65vh;background:#172e20;padding:24px 16px 65px}.rr-interior-wrap{max-width:1040px;margin:auto}.rr-page-head{text-align:center;color:#f8f0dc;padding:22px 12px 24px}.rr-page-head h1{font:normal clamp(36px,5vw,64px)/1.1 Georgia,serif;color:#f8f0dc;margin:12px 0}.rr-page-body{padding:35px clamp(20px,5vw,65px);min-height:300px}.rr-page-body h2{font-size:28px;color:#263a27}.rr-page-body p{font-size:19px;line-height:1.7;max-width:75ch}.rr-page-body a:not(.rr-button){color:#6e2924;text-decoration:underline}.rr-story-list article{padding:18px 0;border-bottom:1px solid #b49a5c}.rr-story-list time{font-size:13px;color:#695735}.rr-story-list h3{margin:7px 0}.rr-contact{max-width:620px;display:grid;gap:18px}.rr-contact label{display:grid;gap:7px;font-size:17px;font-weight:bold}.rr-contact input,.rr-contact textarea{background:#fffaf0;border:1px solid #8c7b58;padding:12px;font:17px Georgia,serif;width:100%;max-width:100%}.rr-contact button{justify-self:start;cursor:pointer}.rr-honeypot{position:absolute;left:-9999px}.rr-notice{border-left:4px solid #6e2924;padding:10px 15px;background:#fff6df}.rr-form-note{font-size:14px!important}.rr-page-body .rr-button{margin-top:12px}

/* v0.6 — One focused Telegraph panel; Programme and Village News removed from homepage only. */
.rr-home-bottom{max-width:880px;margin:18px auto 0}
.rr-home-bottom .rr-panel{min-height:0;padding-bottom:24px}
.rr-home-bottom .rr-telegraph-body{display:grid;grid-template-columns:minmax(180px,38%) 1fr;align-items:center;gap:28px;padding:0 8px}
.rr-home-bottom .rr-telegraph img{height:190px;max-height:none;object-fit:cover}
.rr-home-bottom .rr-telegraph-body>div{text-align:center}
.rr-home-bottom .rr-telegraph p{margin:0 0 22px}
.rr-home-bottom .rr-telegraph .rr-button{margin:0}
@media(max-width:650px){.rr-home-bottom .rr-telegraph-body{grid-template-columns:1fr;gap:14px}.rr-home-bottom .rr-telegraph img{height:155px}}


/* Radio Rugby homepage player layout — editable version */

.rr-onair-left {
    min-width: 0;
    text-align: center;
}

.rr-onair-left .rr-air-inner,
.rr-onair-left .rr-air-editable {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

.rr-onair-left .rr-air-inner > *,
.rr-onair-left .rr-air-editable > * {
    flex: 0 0 auto !important;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.rr-onair-left .rr-air-inner h3,
.rr-onair-left .rr-air-inner p {
    text-align: center !important;
    margin: 8px auto !important;
}

.rr-onair-left .rr-player {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
    margin: 12px auto !important;
}

.rr-onair-left .rr-player iframe {
    display: block !important;
    width: 100% !important;
    max-width: 450px !important;
    height: 316px !important;
    border: 0 !important;
}

.rr-onair-left .rr-player-note {
    text-align: center !important;
    font-style: italic;
}

@media (max-width: 700px) {
    .rr-onair-left .rr-player iframe {
        max-width: 100% !important;
    }
}


/* Radio Rugby — About section photograph proportions */

.rr-about .rr-library-photo {
    display: block !important;
    width: 100% !important;
    max-width: 480px !important;
    margin: 22px auto 0 !important;
    padding: 0 !important;
    text-align: center !important;
}

.rr-about .rr-library-photo img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 2px;
}

.rr-about .rr-library-photo figcaption {
    display: block !important;
    margin-top: 8px !important;
    font-size: 11px !important;
    line-height: 1.5 !important;
    text-align: center !important;
}

.rr-about {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

.rr-about > p {
    max-width: 520px;
}

@media (max-width: 700px) {
    .rr-about .rr-library-photo {
        max-width: 100% !important;
    }
}
@import url("weather-layout.css");

/* Radio Rugby homepage weather layout */
@media (min-width: 900px) {
  .rr-home-container {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    gap: 24px;
    align-items: start;
  }

  .rr-on-air {
    grid-column: 1;
  }

  .rr-weather-home {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    padding: 24px;
  }

  .rr-home-bottom {
    grid-column: 1 / -1;
  }
}

@media (max-width: 899px) {
  .rr-weather-home {
    margin: 24px 0;
    padding: 20px;
  }
}

/* Radio Rugby: corrected homepage columns */

@media screen and (min-width: 900px) {

  .rr-home-container {
    display: grid !important;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr) !important;
    gap: 24px !important;
    align-items: start;
  }

  .rr-home-container > .rr-on-air {
    grid-column: 1 !important;
    grid-row: 1 !important;
    min-width: 0;
  }

  .rr-home-container > .rr-weather-home {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 0;
    margin: 0 !important;
  }

  .rr-home-container > .rr-home-bottom {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
  }

}

@media screen and (max-width: 899px) {
  .rr-home-container {
    display: block !important;
  }

  .rr-weather-home {
    margin-top: 24px;
  }
}

/* Radio Rugby — consistent homepage headings and panels */

/* Make the three main headings identical */
.rr-onair-left > h2.rr-title,
.rr-about > h2,
.rr-weather-home > h2.rr-title {
    font-family: Georgia, 'Times New Roman', serif !important;
    font-size: 24px !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    text-align: center !important;
    margin: 0 0 18px !important;
}

/* Consistent padding inside the three sections */
.rr-onair-left,
.rr-about,
.rr-weather-home {
    padding: 24px !important;
    box-sizing: border-box;
}

/* Align weather panel with the main panel on desktop */
@media screen and (min-width: 900px) {
    .rr-home-container {
        align-items: stretch !important;
    }

    .rr-home-container > .rr-on-air,
    .rr-home-container > .rr-weather-home {
        height: 100%;
        align-self: stretch;
    }
}

/* Preserve natural panel heights on smaller screens */
@media screen and (max-width: 899px) {
    .rr-home-container > .rr-weather-home {
        height: auto;
    }
}



/* ============================================
   RADIO RUGBY — UNIFIED THREE-COLUMN HOMEPAGE
   ============================================ */

@media screen and (min-width: 900px) {

    body .rr-home-container {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 16px !important;
        align-items: stretch !important;
    }

    body .rr-home-container > .rr-on-air {
        display: contents !important;
    }

    body .rr-home-container .rr-onair-left,
    body .rr-home-container .rr-about,
    body .rr-home-container > .rr-weather-home {
        grid-column: auto !important;
        grid-row: 1 !important;
        min-width: 0 !important;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
    }

    body .rr-home-container > .rr-home-bottom {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
    }
}

/* Matching paper panels */

body .rr-home-container .rr-onair-left,
body .rr-home-container .rr-about,
body .rr-home-container > .rr-weather-home {
    background: linear-gradient(
        135deg, #fff7e3, #ead5a7
    ) !important;

    border: 5px double #ad8f52 !important;
    box-shadow: 0 5px 13px #0004 !important;

    padding: 24px !important;
    box-sizing: border-box !important;
}

/* Identical headings */

body .rr-home-container .rr-onair-left > h2.rr-title,
body .rr-home-container .rr-about > h2,
body .rr-home-container .rr-weather-home > h2.rr-title {
    font-family: Georgia, 'Times New Roman', serif !important;
    font-size: 24px !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    letter-spacing: .12em !important;
    text-transform: uppercase !important;
    text-align: center !important;
    color: #59351e !important;
    margin: 0 0 20px !important;
    padding: 0 !important;
    background: transparent !important;
}

/* Remove old dividing line */

body .rr-home-container .rr-about {
    border-left: 5px double #ad8f52 !important;
}

/* Prevent player overflow */

body .rr-home-container .rr-player,
body .rr-home-container .rr-player iframe {
    max-width: 100% !important;
}

/* Tablet and mobile */

@media screen and (max-width: 899px) {

    body .rr-home-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }

    body .rr-home-container > .rr-on-air {
        display: contents !important;
    }

    body .rr-home-container .rr-onair-left,
    body .rr-home-container .rr-about,
    body .rr-home-container > .rr-weather-home {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
    }

    body .rr-home-container > .rr-home-bottom {
        width: 100% !important;
        margin: 0 !important;
    }
}



/* Radio Rugby — compact five-period weather forecast */

body .rr-weather-home .rr-compact-weather {
    margin: 0 !important;
    padding: 0 !important;
}

body .rr-weather-home .rr-weather-item {
    margin: 0 0 10px !important;
    padding: 0 0 9px !important;
    border-bottom: 1px solid rgba(89, 53, 30, 0.20);
}

body .rr-weather-home .rr-weather-item strong {
    display: block;
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    margin: 0 0 2px !important;
    color: #263a27;
}

body .rr-weather-home .rr-weather-item p {
    font-size: 15px !important;
    line-height: 1.35 !important;
    margin: 0 !important;
    padding: 0 !important;
}

body .rr-weather-home .rr-weather-item:last-of-type {
    border-bottom: none;
}

body .rr-weather-home .rr-weather-source {
    font-size: 11px !important;
    font-style: italic;
    margin: 12px 0 0 !important;
    text-align: center;
    opacity: 0.75;
}
