/*
Theme Name: Spain Extra
Author: Spain Extra
Description: National English-language newspaper for Spain, with an editor-selected lead and a twelve-story front page.
Version: 1.4.4
Requires at least: 6.2
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: spain-extra
*/
@font-face{font-family:Post;src:url('assets/headlines.woff2') format('woff2'),url('assets/headlines.woff') format('woff');font-style:normal;font-weight:700;font-display:swap}
:root{--red:#d90006;--ink:#0c0b0b;--yellow:#ffdd00;--navy:#0b1948;--display:Post,'Arial Narrow',sans-serif}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#fff;color:var(--ink);font:16px/1.5 Arial,sans-serif}
a{color:inherit;text-decoration:none}
a:focus-visible{outline:3px solid #1164b8;outline-offset:4px}
img{display:block;max-width:100%;object-fit:cover}
h1,h2,p,figure{margin:0}
h1,h2{font-family:var(--display);font-weight:700;line-height:1.01;letter-spacing:-.035em}
.paper{max-width:1200px;margin:0 auto;padding:0 20px}
.skip{position:absolute;top:-10rem;left:1rem;background:white;padding:8px;z-index:5}
.skip:focus{top:.5rem}
.mast{display:grid;grid-template-columns:18% minmax(0,1fr);grid-template-rows:36px auto;column-gap:0;align-items:stretch}
.brand{grid-column:1;grid-row:1/3;align-self:start;display:block;background:#d40000;clip-path:polygon(0 0,100% 0,86% 100%,0 100%)}
.brand img{width:100%;height:auto}
.redbar{background:var(--red);color:white;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 14px;font:700 18px/1.1 var(--display);grid-column:2}
.redbar time{white-space:nowrap}
nav{display:flex;align-items:center;gap:clamp(10px,1.7vw,22px)}
nav a{padding:5px 0}
nav a[aria-current],nav a:hover{text-decoration:underline;text-underline-offset:3px}
.promos{grid-column:2;display:grid;grid-template-columns:1.12fr 1fr;gap:16px;padding:10px 0 8px 8px}
.teaser a{height:100%;display:grid;grid-template-columns:42% 1fr;gap:12px;align-items:center}
.teaser img{width:100%;height:100%;max-height:152px}
.teaser h2{font-size:clamp(22px,2.55vw,34px);margin-top:4px}
.teaser p{font:700 clamp(14px,1.45vw,18px)/1.15 var(--display);margin:5px 0 0}
.tag{display:inline-block;padding:.14em .44em .2em;line-height:1;letter-spacing:.015em;text-transform:uppercase;background:var(--red);color:white;font:700 16px/.98 var(--display)}
.tag.yellow{background:var(--yellow);color:#111;font-style:italic;transform:skew(-5deg);padding:.17em .5em .2em}
.lead{display:grid;grid-template-columns:minmax(0,3.25fr) minmax(0,.92fr);gap:18px;margin:17px 0 20px}
.splash a{height:100%;display:grid;grid-template-columns:41% minmax(0,1fr);gap:8px;align-items:stretch}
.splash-copy{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:8px 2px}
.splash-copy .tag{font-size:22px;margin:0 0 14px 4px}
.splash h1{font-size:clamp(46px,6.52vw,81px);line-height:.94;letter-spacing:-.059em;transform:skew(-4deg);transform-origin:left bottom;-webkit-text-stroke:.017em currentColor}
.splash h1 span{display:block;white-space:nowrap}
.splash-pic img{width:100%;height:100%;aspect-ratio:1.18}
.briefs{display:flex;flex-direction:column;justify-content:space-between;gap:14px;padding:5px 0}
.brief h2{font-size:clamp(22px,2.43vw,32px);margin:6px 0 0}
.middle,.more{display:grid;gap:16px;margin:0 0 22px}
.middle{grid-template-columns:1fr 1.63fr .94fr}
.more{grid-template-columns:repeat(3,minmax(0,1fr))}
.card{min-width:0}
.pic{position:relative;overflow:hidden}
.pic img{width:100%;height:100%}
.pic .tag{position:absolute;top:9px;left:9px}
.middle .pic{height:clamp(160px,19vw,226px)}
.more .pic{aspect-ratio:1.52}
.card h2{font-size:clamp(24px,2.65vw,35px);margin:7px 0 0}
.card.feature a{display:flex;flex-direction:column;height:100%;background:var(--navy);color:white}
.feature h2{margin:auto 0;padding:8px 10px 11px;font-size:clamp(30px,3.45vw,44px)}
.more h2{font-size:clamp(23px,2.35vw,31px)}
a:hover h2,.splash a:hover h1,.listing a:hover h2{color:#a50004}
.feature a:hover h2{color:var(--yellow)}
footer{margin:32px 0 0;padding:18px 15px;background:#f4f3f0;color:#444;display:flex;align-items:center;justify-content:space-between;gap:10px;font:14px/1.4 Arial,sans-serif}
footer a{font-family:var(--display);font-size:17px;color:var(--ink)}
.compact{grid-template-columns:99px 1fr;grid-template-rows:auto;align-items:start}
.compact .redbar{min-height:44px}
.wrap{max-width:1020px;margin:24px auto 50px}
.crumb{display:inline-block;color:#555;font-size:14px;margin-bottom:20px}
.crumb:hover,.source:hover{text-decoration:underline}
.section h1{font-size:clamp(48px,7vw,82px);margin-bottom:24px}
.listings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.listing a{display:grid;grid-template-columns:auto;align-content:start;background:#f6f5f2;padding:16px;height:100%}
.listing img{width:100%;height:auto;aspect-ratio:1.95;margin:0 0 15px}
.listing h2{font-size:35px;margin:6px 0}
.listing p{font-size:16px}
.article-layout{display:grid;grid-template-columns:minmax(0,2.8fr) minmax(0,1fr);gap:clamp(20px,5vw,65px)}
.place{display:inline-block;margin-left:8px;color:#555;font:700 15px/1.1 var(--display);text-transform:uppercase}
.article h1{font-size:clamp(44px,6.7vw,78px);margin:12px 0}
.deck{font-size:clamp(19px,2.4vw,25px);line-height:1.35}
.article time,.article figcaption{display:block;color:#585858;font-size:13px;margin:.75rem 0}
.article figure{margin:18px 0}
.article figure img{width:100%;max-height:440px}
.copy p{font-size:18px;line-height:1.58;margin:16px 0}
.source{color:#a40008;text-decoration:underline;text-underline-offset:3px;font-size:15px}
.article aside{align-self:start;background:#f4f3ef;padding:20px}
aside h2{font-size:24px;margin-bottom:18px}
aside a{display:block;font:700 23px/1.12 var(--display);margin:14px 0 0}
aside a:hover,.crumb:hover{color:var(--red)}
@media(max-width:850px){
.paper{padding:0 14px}.redbar{font-size:15px;padding:0 8px;gap:5px}.promos{gap:9px}.teaser a{gap:8px}.teaser p{display:none}.tag{font-size:14px}.lead{gap:12px}.splash-copy .tag{font-size:17px}.brief h2{font-size:22px}.middle,.more{gap:12px}.briefs{gap:9px}.splash h1{font-size:6.3vw}
}
@media(max-width:650px){
.paper{padding:0 12px}.mast,.mast.compact{grid-template-columns:91px minmax(0,1fr);grid-template-rows:41px auto;margin:0 -12px 0}
.brand{grid-row:1/3;z-index:1}.brand img{min-height:84px}
.redbar,.compact .redbar{display:contents}.redbar time{grid-column:2;grid-row:1;align-content:center;padding-left:12px;background:var(--red);color:white;font-size:18px}
nav{grid-column:2;grid-row:2;align-self:stretch;display:grid;grid-template-columns:repeat(3,1fr);align-content:center;gap:0 8px;padding:4px 9px 4px 10px;font-size:15px;color:var(--ink);background:#faf9f6}nav a{padding:3px 0}
.promos{grid-column:1/-1;grid-row:3;gap:10px;padding:12px 12px 0}.teaser a{grid-template-columns:60px 1fr;align-items:center;gap:6px}.teaser img{width:60px;height:65px}.teaser h2{font-size:17px;margin:2px 0 0;letter-spacing:-.018em}.teaser .tag{font-size:11px}
.lead{display:flex;flex-direction:column;margin:15px 0;gap:14px}.splash a{grid-template-columns:44% 1fr;gap:6px}.splash h1{font-size:clamp(34px,8.5vw,58px);line-height:.95}.splash-copy{padding:5px 0}.splash-copy .tag{font-size:16px;margin:0 0 8px 2px}.splash-pic img{min-height:170px;aspect-ratio:1.08}
.briefs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:10px;background:#f7f6f3}.brief h2{font-size:clamp(17px,4vw,22px);letter-spacing:-.025em;margin-top:4px}.tag{font-size:12px}
.middle{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:16px}.middle .feature{order:-1;grid-column:1/-1}.card.feature a{display:grid;grid-template-columns:54% 1fr;align-items:center}.feature h2{font-size:clamp(25px,6vw,34px);padding:12px}.middle .pic{height:auto;aspect-ratio:1.45}.middle .feature .pic{height:100%;min-height:118px;aspect-ratio:auto}.card h2,.more h2{font-size:clamp(22px,5vw,28px)}.feature h2{font-size:clamp(25px,6vw,34px);margin:0}
.more{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 12px}.more>.card:last-child:nth-child(odd){grid-column:1/-1}.more>.card:last-child:nth-child(odd) .pic{aspect-ratio:2.1}.pic .tag{top:6px;left:6px}
footer{flex-wrap:wrap;justify-content:space-between;padding:12px;font-size:11px}footer span{order:3;flex-basis:100%}
.article-layout,.listings{grid-template-columns:1fr}.article-layout{gap:20px}.wrap{margin:20px 0 35px}.listings{gap:12px}.copy p{font-size:17px}.article h1{font-size:45px}.section h1{font-size:50px}.listing h2{font-size:28px}
}
@media(max-width:365px){.teaser a{grid-template-columns:45px 1fr}.teaser img{width:45px;height:56px}.briefs{gap:8px}.splash h1{font-size:8vw}nav{gap:0 8px}.brief h2{font-size:17px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Rules for live WordPress content. */
.mast.compact{grid-template-rows:auto}.compact .brand{grid-row:1}
.redbar nav{flex-wrap:wrap;font-weight:700}
.redbar nav a{white-space:normal}
.splash,.splash-copy,.splash-pic,.teaser,.teaser a>div,.brief,.redbar,.card{min-width:0}
.splash h1,.teaser h2,.brief h2,.card h2,.article h1,.listing h2{overflow-wrap:anywhere}
.splash h1{font-size:clamp(42px,5.9vw,76px);letter-spacing:-.044em;line-height:.98}
.splash-pic{min-height:250px}.splash-pic img{height:100%;max-height:550px}
.full{grid-template-rows:minmax(36px,auto) auto}
.teaser img{height:clamp(88px,12vw,150px)}
.lead.solo{grid-template-columns:1fr}
.text-only a,.card.feature.text-only a{display:block}
.splash.text-only a{background:#f7f5ee;padding:clamp(16px,3vw,32px)}
.teaser.text-only a{padding:7px 12px;background:#f7f5ee}
.card.text-only a{padding:15px;background:#f7f5ee;height:100%}
.card.feature.text-only a{background:var(--navy)}
.card.feature.text-only h2{padding:0;margin-top:10px}
.article-meta{font-size:14px;color:#4c4c4c;margin:16px 0}.article-meta a,.copy a,.article figcaption a,.author-bio a,.pager a{text-decoration:underline;text-underline-offset:3px}
.article-meta time{display:inline;color:inherit;font-size:inherit}
.copy{max-width:740px;overflow-wrap:break-word}.copy img{height:auto}.copy ul,.copy ol{padding-left:1.4em}
.copy h2,.copy h3{margin:1em 0 .35em}.copy blockquote{border-inline-start:4px solid var(--red);padding-inline-start:1em;margin:1em 0}
.article figure.wp-block-image img,.article .featured img{max-height:none;height:auto}
.author-bio{max-width:700px;margin-bottom:1.5em}
.pager,.pagination .nav-links{display:flex;gap:18px;flex-wrap:wrap;margin:24px 0;font:700 18px/1.4 var(--display)}
footer .footer-links{display:flex;flex-wrap:wrap;gap:16px}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.search-form{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.search-field,.search-submit{padding:.55em .75em;font:inherit}
@media(min-width:651px){.mast.compact{grid-template-columns:78px minmax(0,1fr)}.mast.compact .redbar{align-self:start;min-height:48px}}
@media(max-width:650px){.mast.compact{grid-template-rows:41px auto}.compact .brand{grid-row:1/3}.redbar nav{font-family:var(--display)}.splash h1{font-size:clamp(31px,8vw,53px)}.splash-pic{min-height:165px}.teaser img{height:65px}.pager,.pagination,.footer-links{display:flex;background:none;padding:0}.splash.text-only .splash-copy{padding:4px}.full{grid-template-rows:41px auto}.article figcaption{overflow-wrap:anywhere}}
.section-links,.footer-links{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:clamp(10px,1.7vw,22px)}
@media(max-width:650px){.section-links{display:contents}.section-links a{display:block}footer nav{display:block;background:transparent;padding:0}}

/* Keep navigation targets comfortable on touch screens. */
@media (max-width: 650px) {
    .section-links a,
    footer a,
    .crumb {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        min-width: 44px;
    }
}

.sx-related { margin-top: 40px; padding-top: 24px; border-top: 3px solid var(--red); }
.sx-related > h2 { font-size: 34px; margin: 0 0 20px; }
.sx-related-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.sx-related-grid .pic { aspect-ratio: 3 / 2; }
.sx-related-grid .pic img { object-fit: cover; }
.sx-related-grid .card h2 { font-size: 25px; line-height: 1.08; }
@media (max-width: 850px) {
    .sx-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 400px) {
    .sx-related-grid { gap: 18px 12px; }
    .sx-related-grid .card h2 { font-size: 22px; }
}

/* Reader sharing on article pages. */
.sx-share {
    max-width: 740px;
    margin: 16px 0 22px;
    font: 700 14px/1.2 Arial, sans-serif;
}
.copy + .sx-share { margin-top: 28px; }
.sx-share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sx-share .sx-choice {
    display: inline-flex;
    min-height: 44px;
    min-width: 44px;
    padding: 8px 13px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: white;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    text-decoration: none;
}
.sx-share .sx-whatsapp { color: #fff; background: #116845; border-color: #116845; }
.sx-share .sx-facebook { color: #fff; background: #1858a6; border-color: #1858a6; }
.sx-share .sx-choice:hover { text-decoration: underline; text-underline-offset: 3px; }
.sx-share :focus-visible { outline: 3px solid #175fc0; outline-offset: 2px; }
.sx-share-panel { margin-top: 8px; padding: 8px; background: #f6f5f2; border-radius: 4px; }
.sx-share-address { display: block; margin-top: 8px; }
.sx-share-address input { display: block; width: 100%; margin-top: 4px; padding: 8px; font: 16px/1.3 Arial, sans-serif; }
.sx-share-status:not(:empty) { display: block; margin-top: 8px; font-weight: 400; }
.sx-share [hidden] { display: none; }
@media (max-width: 450px) {
    .sx-share .sx-choice { padding-inline: 8px; }
}
@media (max-width: 365px) {
    .sx-share > .sx-share-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media print { .sx-share { display: none; } }

/* Social profile links in the masthead. */
.redbar .sx-social {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-left: auto;
    padding: 0;
    color: #fff;
    background: transparent;
}
.redbar .sx-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    color: #fff;
    background: transparent;
}
.sx-social svg { display: block; flex: none; }
.redbar .sx-social a:hover { opacity: .75; }
.redbar .sx-social a:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }
.redbar .sx-sections { margin-left: 10px; }
.sx-channel-follow { margin: 20px 0 0; }
.sx-channel-follow a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    color: #116845;
    font: 700 16px/1.4 Arial, sans-serif;
    text-decoration: underline;
    text-underline-offset: 4px;
}
@media (min-width: 651px) and (max-width: 1049px) {
    .redbar { flex-wrap: wrap; padding-block: 4px; gap: 0 10px; }
    .redbar .sx-sections { flex-basis: 100%; justify-content: flex-end; margin-left: 0; padding-bottom: 4px; }
}
@media (max-width: 650px) {
    .mast, .mast.compact { grid-template-rows: 41px auto auto; }
    .redbar .sx-sections { grid-column: 2; grid-row: 2; margin: 0; }
    .redbar .sx-social {
        grid-column: 1 / -1;
        grid-row: 3;
        align-self: stretch;
        gap: 8px;
        margin: 0;
        background: var(--red);
    }
    .redbar .sx-social a { width: 44px; min-width: 44px; min-height: 44px; }
    .mast .promos { grid-row: 4; }
}
@media print { .sx-social, .sx-channel-follow { display: none !important; } }

