/*
Theme Name: Robopsychology — Shared Future
Theme URI: https://robopsychology.ai/
Description: An original editorial child theme for Robopsychology AI.
Author: Josef Mareyi
Template: infinite-news
Version: 0.2.1
Requires at least: 5.3
Requires PHP: 8.0
Text Domain: robopsychology-future
*/

/* Keep the child's palette and typography independent of parent/customizer variables. */
body.rp-theme{--rp-paper:#f5f2ea;--rp-white:#fbfaf6;--rp-ink:#292d26;--rp-body:#464b41;--rp-muted:#656a5e;--rp-action:#4f5e3d;--rp-accent:#596344;--rp-line:#dcd9cc;--rp-tint:#eae7da;--rp-width:1320px;--rp-font:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--clr-text:var(--rp-ink);--font-heading:var(--rp-font);--font-main:var(--rp-font)}
body.rp-theme{margin:0;background:var(--rp-paper);color:var(--rp-ink);font-family:var(--rp-font);font-size:16px;line-height:1.65}
body.rp-theme :is(h1,h2,h3,h4,h5,h6):not(.has-text-color){font-family:var(--rp-font);color:var(--rp-heading,var(--rp-ink))}
body.rp-theme :is(button,input,select,optgroup,textarea){font-family:var(--rp-font)}
body.rp-theme .rp-card h3 a{color:var(--rp-ink)}
body.rp-theme .rp-hero{--rp-heading:#fbfaf6}
body.rp-theme *,body.rp-theme *::before,body.rp-theme *::after{box-sizing:border-box}
body.rp-theme a{color:inherit;text-decoration-thickness:1px;text-underline-offset:.2em}
body.rp-theme a:focus-visible,body.rp-theme input:focus-visible,body.rp-theme button:focus-visible{outline:3px solid #596344;outline-offset:4px}
body.rp-theme img{max-width:100%;height:auto}
.rp-skip{position:absolute;left:-9999px;top:0;background:#fbfaf6;color:#292d26;padding:1em;z-index:100000}.rp-skip:focus{left:1em;top:1em}
.rp-wrap{width:min(var(--rp-width),calc(100% - 96px));margin-inline:auto}
.rp-header{position:relative;background:var(--rp-white);border-bottom:1px solid var(--rp-line);z-index:10}
.rp-header-inner{min-height:92px;display:flex;align-items:center;gap:32px;justify-content:space-between}
.rp-brand{display:inline-flex;align-items:center;color:var(--rp-ink);font-size:clamp(18px,2vw,23px);letter-spacing:-.04em;font-weight:720;text-decoration:none;line-height:1.1;max-width:310px}
.rp-brand img{max-height:56px;width:auto;display:block}
.rp-nav{display:flex;align-items:center;justify-content:flex-end;gap:25px;font-size:13px;font-weight:650}
.rp-nav ul{list-style:none;margin:0;padding:0;display:flex;gap:23px;align-items:center}
.rp-nav li{list-style:none;margin:0;position:relative}.rp-nav a{text-decoration:none;color:var(--rp-ink)}.rp-nav a:hover{text-decoration:underline}
.rp-nav .sub-menu{position:absolute;top:100%;left:-1em;display:none;min-width:210px;padding:12px 16px;background:#fbfaf6;border:1px solid var(--rp-line);box-shadow:0 12px 30px #292d2620}
.rp-nav li:hover>.sub-menu,.rp-nav li:focus-within>.sub-menu{display:block}.rp-nav .sub-menu li{padding:6px 0}
.rp-search{display:flex;align-items:center;border-bottom:1px solid #a5aa94;max-width:170px}.rp-search input{border:0;background:transparent;min-width:0;width:100%;padding:7px 3px;font:inherit;color:var(--rp-ink)}.rp-search button{background:none;border:0;color:var(--rp-action);font:inherit;padding:7px 3px;cursor:pointer}
.rp-hero{padding:clamp(52px,7vw,110px) 0 62px;position:relative;overflow:hidden;background:linear-gradient(132deg,#f8f5ed 0%,#ece9dc 70%,#e3e5d4 100%)}
.rp-hero-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.02fr);gap:clamp(36px,6vw,92px);align-items:center}
.rp-kicker{font-size:11px;line-height:1.4;letter-spacing:.16em;text-transform:uppercase;font-weight:750;color:var(--rp-accent);margin:0 0 20px}
.rp-hero h1{font-size:clamp(45px,5.7vw,80px);line-height:1.04;letter-spacing:-.055em;font-weight:650;margin:0 0 25px;color:var(--rp-ink)}
.rp-intro{max-width:570px;font-size:clamp(17px,1.5vw,20px);line-height:1.6;color:var(--rp-body);margin:0}
.rp-actions{display:flex;flex-wrap:wrap;align-items:center;gap:14px 25px;margin-top:30px}
.rp-button{display:inline-flex;align-items:center;justify-content:center;padding:13px 21px;background:var(--rp-action);color:#fbfaf6!important;border:1px solid var(--rp-action);border-radius:3px;font-size:14px;font-weight:700;text-decoration:none!important;min-height:48px}
.rp-button:hover{background:#3d4c2d}.rp-link{color:var(--rp-action)!important;text-decoration:none;font-weight:700;font-size:14px}.rp-link:hover{text-decoration:underline}
.rp-hero-art{min-height:360px;position:relative;overflow:hidden;border-radius:3px;background:linear-gradient(145deg,#a9b18d 0%,#d9ddc8 50%,#f0f0e4 100%);display:flex;align-items:flex-end}
.rp-hero-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.rp-hero-art::after{content:"";position:absolute;inset:35% 0 0;background:linear-gradient(transparent,rgba(28,34,24,.76))}
.rp-hero-card{position:relative;z-index:1;padding:27px 30px;color:#fbfaf6;width:100%}.rp-hero-card .rp-kicker{color:#e5e7d2;margin:0 0 8px}.rp-hero-card a{color:#fbfaf6;text-decoration:none}.rp-hero-card a:hover{text-decoration:underline}.rp-hero-card strong{display:block;font-size:clamp(18px,1.7vw,24px);line-height:1.25;max-width:550px;letter-spacing:-.025em}
.rp-section{padding:clamp(56px,6vw,88px) 0}.rp-section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:30px;border-bottom:1px solid var(--rp-line);padding-bottom:18px}
.rp-section-head .rp-kicker{margin:0 0 7px}.rp-section-head h2{font-size:clamp(30px,3.5vw,44px);letter-spacing:-.045em;line-height:1.1;margin:0;font-weight:650}
.rp-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:36px 26px}.rp-card{min-width:0}.rp-card-image{display:block;aspect-ratio:16/9;overflow:hidden;background:#e7e4d7}body.rp-theme .rp-card-image img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .25s ease}.rp-card-image:hover img{transform:scale(1.025)}
.rp-card .rp-kicker{margin:18px 0 8px;color:var(--rp-accent)}.rp-card h3{font-size:clamp(20px,1.75vw,25px);line-height:1.24;letter-spacing:-.025em;margin:0 0 12px;font-weight:660}.rp-card h3 a{text-decoration:none}.rp-card h3 a:hover{text-decoration:underline}
.rp-card p{color:var(--rp-body);line-height:1.55;margin:0 0 12px}.rp-meta{font-size:12px;color:var(--rp-muted);line-height:1.5}.rp-meta a{color:inherit;text-decoration:none}.rp-meta a:hover{text-decoration:underline}
.rp-story{background:var(--rp-tint);border-block:1px solid var(--rp-line)}.rp-story-inner{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:55px}.rp-story h2{font-size:clamp(38px,5vw,64px);line-height:1.05;letter-spacing:-.05em;margin:0 0 20px;font-weight:650}.rp-story p{font-size:18px;color:var(--rp-body);max-width:580px;margin:0 0 22px}.rp-story-visual{min-height:240px;background:linear-gradient(145deg,#c4c9b0,#eceddf);overflow:hidden}.rp-story-visual img{width:100%;height:100%;min-height:240px;max-height:340px;object-fit:cover;display:block}
.rp-archive-head{background:var(--rp-tint);padding:60px 0 45px}.rp-archive-head h1{font-size:clamp(42px,5vw,62px);line-height:1.05;letter-spacing:-.05em;margin:0 0 15px}.rp-archive-head p{color:var(--rp-body);max-width:700px;margin:0}.rp-tabs{display:flex;gap:25px;margin-top:25px;flex-wrap:wrap}.rp-tabs a{text-decoration:none;border-bottom:2px solid transparent;padding-bottom:4px;font-weight:650}.rp-tabs a[aria-current="page"]{color:var(--rp-action);border-color:var(--rp-action)}
.rp-pagination{display:flex;flex-wrap:wrap;gap:12px;margin-top:45px}.rp-pagination a,.rp-pagination span{display:inline-block;padding:7px 13px;text-decoration:none;border:1px solid var(--rp-line)}.rp-pagination .current{background:var(--rp-action);color:#fbfaf6;border-color:var(--rp-action)}
.rp-reading{padding:clamp(45px,6vw,78px) 0 90px}.rp-reading-head{max-width:960px;margin:0 auto 32px}.rp-reading-head h1{font-size:clamp(38px,5vw,66px);line-height:1.08;letter-spacing:-.045em;margin:0 0 18px;font-weight:650}.rp-feature{max-width:1100px;margin:0 auto 40px}.rp-feature img{width:100%;height:auto;display:block}.rp-feature figcaption{font-size:13px;color:var(--rp-muted);padding-top:8px;line-height:1.5}
.rp-reading-body{max-width:760px;margin:0 auto;color:#464b41;font-size:18px;line-height:1.8;overflow-wrap:anywhere}.rp-reading-body h2,.rp-reading-body h3,.rp-reading-body h4{color:var(--rp-ink);line-height:1.2;letter-spacing:-.025em;margin-top:2em}.rp-reading-body p,.rp-reading-body ul,.rp-reading-body ol{margin-bottom:1.3em}.rp-reading-body a{color:#4f5e3d;text-decoration:underline}.rp-reading-body figure{margin:2em 0}.rp-reading-body figcaption{font-size:13px;color:var(--rp-muted);line-height:1.5}.rp-reading-body blockquote{border-left:3px solid #a3ac83;padding-left:20px;margin:1.8em 0;color:#515c44}.rp-reading-body pre{overflow:auto;max-width:100%}.rp-reading-body iframe{max-width:100%}.rp-reading-body table{display:block;max-width:100%;overflow:auto}
.rp-topics,.rp-post-nav,.rp-comment-area{max-width:760px;margin:44px auto 0;border-top:1px solid var(--rp-line);padding-top:24px}.rp-post-nav a{color:var(--rp-action)}.rp-comment-area input,.rp-comment-area textarea{max-width:100%}
.rp-footer{background:#293127;color:#f1f0e5;padding:42px 0}.rp-footer-inner{display:flex;align-items:center;justify-content:space-between;gap:25px;flex-wrap:wrap;font-size:13px}.rp-footer-title{font-size:17px;letter-spacing:-.03em;font-weight:700}.rp-footer a{color:#f1f0e5}.rp-footer-links{display:flex;gap:22px;flex-wrap:wrap}
@media(max-width:1024px){.rp-wrap{width:min(var(--rp-width),calc(100% - 56px))}.rp-header-inner{gap:20px}.rp-nav{gap:16px}.rp-nav ul{gap:15px}.rp-search{max-width:125px}.rp-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.rp-wrap{width:calc(100% - 36px)}.rp-header-inner{padding:20px 0;min-height:0;display:block}.rp-brand{margin-bottom:16px}.rp-nav{justify-content:flex-start;flex-wrap:wrap;gap:12px 20px}.rp-nav ul{flex-wrap:wrap;gap:10px 17px}.rp-search{max-width:150px}.rp-hero-grid,.rp-story-inner{grid-template-columns:1fr;gap:30px}.rp-hero{padding:54px 0}.rp-hero h1{font-size:clamp(40px,10vw,58px)}.rp-hero-art{min-height:285px}.rp-story-visual{min-height:180px}.rp-reading-body{font-size:17px;line-height:1.75}}
@media(max-width:500px){.rp-grid{grid-template-columns:1fr}.rp-section-head{align-items:start;flex-direction:column}.rp-card h3{font-size:22px}.rp-hero-card{padding:22px}.rp-footer-inner{display:block}.rp-footer-links{margin-top:15px}}
@media(prefers-reduced-motion:reduce){body.rp-theme .rp-card-image img{transition:none}}
/* The homepage is a place in a shared future, with an editorial image beneath the introduction. */
.rp-hero{min-height:590px;display:flex;align-items:center;background:#222920;padding:0}
body.rp-theme .rp-hero-bg{position:absolute;inset:0;width:100%;height:100%;max-width:none!important;object-fit:cover;object-position:right 48%}
.rp-hero-stage::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(27,31,23,.91) 0%,rgba(27,31,23,.75) 35%,rgba(27,31,23,.16) 68%,rgba(27,31,23,.08) 100%)}
.rp-hero-grid{position:relative;z-index:1;min-height:590px;padding-top:86px;padding-bottom:86px;align-items:end;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}
.rp-hero-copy{max-width:560px}.rp-hero-copy h1{font-size:clamp(45px,5vw,68px)}
.rp-hero-copy{align-self:center}.rp-hero-copy h1{color:#fbfaf6}.rp-hero-copy .rp-kicker{color:#d5dcbd}.rp-hero-copy .rp-intro{color:#f0eee4}.rp-hero-copy .rp-link{color:#fbfaf6!important}.rp-hero-copy .rp-button{background:#f9f7ed;color:#343e2a!important;border-color:#f9f7ed}.rp-hero-copy .rp-button:hover{background:#e8e9d9}
.rp-hero-card{justify-self:end;max-width:360px;padding:19px 22px;background:rgba(30,38,27,.86);border-left:2px solid #b9c49b;border-radius:2px}.rp-hero-card .rp-kicker{margin-bottom:7px}.rp-hero-card strong{font-size:18px;line-height:1.3}
.rp-story-inner{grid-template-columns:1fr}.rp-story-inner.has-image{grid-template-columns:1fr 1fr}
@media(max-width:760px){.rp-hero{display:block;min-height:0}body.rp-theme .rp-hero-bg{position:relative;display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}.rp-hero-stage::after{display:none}.rp-hero-grid{min-height:0;display:block;padding-top:40px;padding-bottom:50px}.rp-hero-copy h1{font-size:clamp(38px,9vw,54px)}}
@media(max-width:760px){.rp-story-inner.has-image{grid-template-columns:1fr}}

/* Let the latest published articles use the available row width. */
.rp-grid--latest{grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr))}
.rp-grid--latest>.rp-card:only-child{max-width:860px}
.rp-breadcrumbs{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;color:var(--rp-muted);font-size:13px;line-height:1.5;margin:0 0 24px}
.rp-breadcrumbs a{text-decoration:underline}.rp-breadcrumbs span{color:var(--rp-muted)}
.rp-return-link{font-weight:700;font-size:14px}
.rp-adjacent-links{display:flex;flex-wrap:wrap;justify-content:space-between;gap:18px 32px;margin-top:20px;padding-top:20px;border-top:1px solid var(--rp-line)}
.rp-adjacent-links:empty{display:none}.rp-adjacent-links a{flex:1 1 240px;font-size:15px;line-height:1.5;overflow-wrap:anywhere}
.rp-adjacent-links a:last-child:not(:first-child){text-align:right}
@media(max-width:600px){.rp-adjacent-links a:last-child:not(:first-child){text-align:left}}

/* Bound the scene independently of ultrawide browser windows. */
.rp-hero-stage{position:relative;width:100%;max-width:1920px;margin-inline:auto;overflow:hidden}
.rp-story-visual{width:100%;max-width:480px;aspect-ratio:1;min-height:0;justify-self:end}
body.rp-theme .rp-story-visual img{width:100%;height:100%;min-height:0;max-height:none;object-fit:contain;object-position:center;display:block}
@media(min-width:1921px){.rp-hero-stage::after{background:linear-gradient(90deg,rgba(27,31,23,.91) 0%,rgba(27,31,23,.75) 35%,rgba(27,31,23,.16) 68%,rgba(27,31,23,.08) 100%),linear-gradient(90deg,#222920 0%,transparent 8%,transparent 92%,#222920 100%)}}
@media(max-width:1000px){.rp-hero{display:block;min-height:0}.rp-hero-stage{min-height:0}body.rp-theme .rp-hero-bg{position:relative;display:block;width:100%;height:auto;aspect-ratio:auto;object-fit:contain}.rp-hero-stage::after{display:none}.rp-hero-grid{min-height:0;display:block;padding-top:40px;padding-bottom:50px}.rp-hero-copy{max-width:620px}.rp-hero-copy h1{font-size:clamp(38px,6.5vw,54px)}}
@media(max-width:760px){.rp-story-visual{justify-self:center}.rp-hero-copy h1{font-size:clamp(38px,9vw,54px)}}

/* A reading route through the published RACEK chapters. */
.rp-chapter-index{max-width:960px;margin:0 auto 46px;padding:32px;display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:48px;background:var(--rp-tint);border:1px solid var(--rp-line);border-radius:4px}
.rp-chapter-intro h2{font-size:clamp(28px,3vw,36px);line-height:1.12;letter-spacing:-.035em;margin:0 0 18px}.rp-chapter-intro p{color:var(--rp-body);font-size:18px;line-height:1.6;margin:0 0 24px}.rp-chapter-intro .rp-kicker{margin-bottom:14px}
body.rp-theme .rp-chapter-list{list-style:none;margin:0;padding:0}.rp-chapter-list li{margin:0;padding:0}.rp-chapter-list a{display:grid;grid-template-columns:38px minmax(0,1fr) 18px;gap:14px;align-items:center;padding:15px 0;text-decoration:none;border-bottom:1px solid var(--rp-line)}.rp-chapter-list li:first-child a{padding-top:0}.rp-chapter-list li:last-child a{border-bottom:0;padding-bottom:0}.rp-chapter-list strong{font-size:18px;font-weight:650;line-height:1.35}.rp-chapter-number{font-variant-numeric:tabular-nums;font-size:22px;letter-spacing:-.03em;color:var(--rp-muted)}.rp-chapter-list a:hover strong{text-decoration:underline;text-underline-offset:.2em}

.rp-adjacent-links .rp-next-chapter{margin-left:auto;text-align:right}
@media(max-width:700px){.rp-chapter-index{grid-template-columns:1fr;gap:28px;padding:24px}.rp-chapter-list strong{font-size:17px}.rp-chapter-list a{gap:10px}.rp-adjacent-links .rp-next-chapter{text-align:left}}

.rp-chapter-intro .rp-story-source{font-size:13px;line-height:1.5;margin:20px 0 0}.rp-story-source a{text-decoration:underline;color:var(--rp-action)}

/* All published writing belonging to the world of RACEK. */
.rp-world-carousel{max-width:1100px;margin:58px auto 32px;min-width:0}
.rp-world-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px;padding-bottom:18px;border-bottom:1px solid var(--rp-line)}
.rp-world-head h2{font-size:clamp(28px,3vw,38px);line-height:1.15;letter-spacing:-.035em;margin:0;font-weight:650}
.rp-carousel-controls{display:flex;align-items:center;gap:10px;flex-shrink:0}.rp-carousel-controls[hidden]{display:none}.rp-carousel-status{font-size:12px;color:var(--rp-muted);margin-right:4px;min-width:68px;text-align:right;font-variant-numeric:tabular-nums}
.rp-carousel-controls button{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;padding:0;border:1px solid var(--rp-muted);border-radius:50%;background:transparent;color:var(--rp-ink);cursor:pointer}.rp-carousel-controls button:hover:not(:disabled){background:var(--rp-tint)}.rp-carousel-controls button:disabled{opacity:.35;cursor:default}
body.rp-theme .rp-world-track{position:relative;display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 48px)/3);gap:24px;list-style:none;margin:0;padding:0 0 20px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:thin;scrollbar-color:var(--rp-muted) var(--rp-line)}
.rp-world-track:focus-visible{outline:3px solid var(--rp-accent);outline-offset:5px}.rp-world-track::-webkit-scrollbar{height:6px}.rp-world-track::-webkit-scrollbar-track{background:var(--rp-line)}.rp-world-track::-webkit-scrollbar-thumb{background:var(--rp-muted);border-radius:6px}
.rp-world-slide{min-width:0;margin:0;padding:0;scroll-snap-align:start;display:flex}.rp-world-card{display:flex;flex-direction:column;min-width:0;width:100%}
.rp-world-image{display:flex;align-items:center;justify-content:center;aspect-ratio:16/10;overflow:hidden;background:var(--rp-tint);color:var(--rp-muted);font-size:20px;letter-spacing:.08em;text-decoration:none}
body.rp-theme .rp-world-image img{display:block;width:100%;height:100%;object-fit:cover;object-position:center top}
.rp-world-card h3{font-size:21px;line-height:1.28;letter-spacing:-.025em;margin:18px 0 12px;font-weight:650}.rp-world-card h3 a{color:var(--rp-ink);text-decoration:none}.rp-world-card h3 a:hover{text-decoration:underline}
.rp-world-card p{font-size:15px;color:var(--rp-body);line-height:1.6;margin:0 0 18px}.rp-world-card .rp-meta{margin-top:auto}
@media(max-width:900px){body.rp-theme .rp-world-track{grid-auto-columns:calc((100% - 24px)/2)}}
@media(max-width:600px){.rp-world-head{align-items:flex-start;flex-direction:column;gap:16px}.rp-carousel-controls{align-self:flex-end}body.rp-theme .rp-world-track{grid-auto-columns:88%}.rp-world-card h3{font-size:20px}}
