/* Modcast Studios site layer, 2026-11-14.
   Loaded after each page's own <style> blocks, so it wins at equal specificity.
   Content column: 1080px (the .wrap max-width minus its 20px side padding). */

:root{
  --content:1080px;
  --card:var(--bg-card);
  --surface:var(--bg-card);
  --wash:var(--bg-card);
  --accent-soft:color-mix(in srgb,var(--accent) 14%,transparent);
  --h-section:28px;
  --h-card:20px;
}
@media (max-width:640px){:root{--h-section:24px;--h-card:19px}}

.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* One content width ---------------------------------------------------- */
.wrap{max-width:calc(var(--content) + 40px)}
.hero{padding-left:max(20px,calc((100vw - var(--content)) / 2));padding-right:max(20px,calc((100vw - var(--content)) / 2))}
.app-head{width:auto;margin-left:0;margin-right:0;padding:28px 0 4px}

/* Header --------------------------------------------------------------- */
.utility-bar{display:none!important}
.site-header{position:sticky;top:0;z-index:120;padding-top:env(safe-area-inset-top,0px);background:color-mix(in srgb,var(--bg) 82%,transparent);backdrop-filter:saturate(1.6) blur(16px);-webkit-backdrop-filter:saturate(1.6) blur(16px);border-bottom:1px solid var(--line)}
.sh-inner{max-width:var(--content);margin:0 auto;height:56px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding-left:max(20px,env(safe-area-inset-left,0px));padding-right:max(20px,env(safe-area-inset-right,0px));box-sizing:content-box}
@media (max-width:1120px){.sh-inner{max-width:none}}
.sh-brand{display:inline-flex;align-items:center;gap:10px;text-decoration:none;color:var(--text);font-weight:680;font-size:16px;letter-spacing:-.01em;white-space:nowrap}
.sh-brand img{width:28px;height:28px;border-radius:7px;display:block}
.sh-nav{display:flex;align-items:center;gap:4px}
.sh-link,.sh-apps>summary{display:inline-flex;align-items:center;gap:4px;height:36px;padding:0 12px;border-radius:999px;color:var(--text);text-decoration:none;font-size:14.5px;font-weight:550;cursor:pointer;white-space:nowrap}
.sh-link:hover,.sh-apps>summary:hover,.sh-apps[open]>summary{background:var(--accent-soft)}
.sh-apps{position:relative}
.sh-apps>summary{list-style:none}
.sh-apps>summary::-webkit-details-marker{display:none}
.sh-apps>summary svg{width:14px;height:14px;transition:transform .2s ease}
.sh-apps[open]>summary svg{transform:rotate(180deg)}
.sh-menu{position:absolute;right:0;top:calc(100% + 8px);width:min(520px,calc(100vw - 32px));display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:10px;background:var(--bg-card);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}
@media (max-width:560px){.sh-menu{position:fixed;left:16px;right:16px;top:calc(64px + env(safe-area-inset-top,0px));width:auto;grid-template-columns:1fr}}
.sh-menu a{display:flex;align-items:center;gap:12px;padding:8px 10px;border-radius:12px;text-decoration:none;color:var(--text);min-width:0}
.sh-menu a:hover,.sh-menu a:focus-visible{background:var(--accent-soft);outline:none}
.sh-menu img{width:36px;height:36px;border-radius:9px;flex:none}
.sh-menu b{display:block;font-size:14.5px;font-weight:620;line-height:1.2}
.sh-menu small{display:block;font-size:12.5px;color:var(--muted);line-height:1.3}
.sh-theme{width:36px;height:36px;margin-left:4px;border-radius:50%;border:1px solid var(--line);background:var(--bg-card);color:var(--text);display:grid;place-items:center;cursor:pointer;padding:0}
.sh-theme svg{width:18px;height:18px}
.sh-theme .i-moon{display:none}
.theme-light .sh-theme .i-sun{display:none}
.theme-light .sh-theme .i-moon{display:block}
.site-header svg,.ico{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
@media (max-width:640px){.sh-hide-sm{display:none}.sh-brand span{font-size:15px}}
@media (max-width:360px){.sh-brand span{display:none}}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* Release banner: one slim line ----------------------------------------- */
.spotlight{max-width:none;margin:16px 0 0;padding:8px 10px 8px 16px;border-radius:12px;font-size:14px;flex-wrap:nowrap;justify-content:space-between;gap:12px;box-shadow:none}
.spotlight .sp-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.spotlight .sp-text a{margin-left:6px}
.spotlight button{flex:none;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font-size:18px}
.spotlight button:hover{background:rgba(255,255,255,.18)}

/* Hero: sized to its content ------------------------------------------- */
.hero{min-height:0;padding-top:64px;padding-bottom:40px}
@media (max-width:720px){.hero{padding-top:40px;padding-bottom:28px}.hero .iphone{width:min(190px,56vw)}.hero-device{margin-top:28px}}

/* Featured app ---------------------------------------------------------- */
.featured{margin-top:8px;grid-template-columns:minmax(0,1fr) minmax(0,1fr);text-align:left}
@media (max-width:860px){.featured{grid-template-columns:minmax(0,1fr)}}
.featured-left,.featured-right{min-width:0}
.featured-left{display:flex;flex-direction:column;align-items:flex-start}
.featured-left .feat-head{display:flex;align-items:center;gap:14px}
.featured-left .feat-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.featured-left .price{margin-top:12px}
.feat-facts{margin:6px 0 0;font-size:13.5px;line-height:1.5;color:var(--muted)}
.feat-facts .star{color:#f5a623}
.feat-nav{display:flex;align-items:center;gap:12px;margin-top:auto;padding-top:22px}
.feat-nav .featured-dots{margin:0}
.feat-nav .feat-count{font-size:13px;color:var(--muted2);font-variant-numeric:tabular-nums}
.featured-dots button{width:8px;height:8px}
.featured-right{border-left:1px solid var(--line);padding:24px 0 24px 24px;display:block;background:color-mix(in srgb,var(--bg) 40%,var(--bg-card))}
@media (max-width:860px){.featured-right{border-left:0;border-top:1px solid var(--line);padding:20px 0 20px 20px}}
.feat-shots{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;padding:4px 24px 12px 0;scrollbar-width:thin}
.feat-shots img{flex:0 0 auto;height:min(380px,62vw);width:auto;border-radius:20px;border:1px solid var(--line);scroll-snap-align:start;background:var(--bg-elevated)}
.feat-pause{display:none}

/* App grid: one card template ------------------------------------------ */
.grid{margin-top:28px;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
@media (max-width:960px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:620px){.grid{grid-template-columns:minmax(0,1fr)}}
.grid .card{padding:24px 22px 20px;min-width:0}
.grid .card[hidden]{display:none}
.card h3{font-size:var(--h-card);margin:16px 0 4px}
.card .card-rating{margin:0 0 8px;font-size:13px;color:var(--muted)}
.card .card-rating .star{color:#f5a623}
.card p{margin:6px 0 16px}
.card .price-line{margin-top:0}
.card .updated-line{margin-top:2px}
.card-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;flex-wrap:wrap}
.card-actions .store-badge img{width:132px}
.card-actions .learn{margin-top:0}
.grid-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-top:48px}
.grid-head h2{margin:0}
.grid-head p{margin:0;color:var(--muted);font-size:15px}

/* Category chips follow the theme -------------------------------------- */
.tag{background:var(--bg-elevated);color:var(--muted);border-color:var(--line)}

/* One type scale for section headings ----------------------------------- */
.latest-updates h2,.studio-pick h2,.quiz h2,.vs-section>h2,.guides-section>h2,.coming-soon h2,#studio-title,.grid-head h2,.more-apps h2{font-size:var(--h-section);letter-spacing:-.02em;line-height:1.15}
.vs-card h3,.guide-card h3,.studio-card h3,.quiz-question h3,.guide-pick h3,.press-card h3,.review-card h3,.journal-entry h3{font-size:18px}
.latest-updates{margin:48px 0 8px}
.studio-pick,.quiz{margin:40px 0 0}
.vs-section,.guides-section{margin-top:56px}
section[aria-labelledby="studio-title"]{margin-top:56px}
section[aria-labelledby="studio-title"] .section-sub{color:var(--muted);margin:6px 0 20px}

/* Latest updates -------------------------------------------------------- */
.latest-row{min-width:0}
.latest-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (max-width:560px){.latest-row{flex-wrap:wrap;row-gap:4px}.latest-title{white-space:normal;flex-basis:100%;order:3}.latest-date{margin-left:auto}}

/* Web Notes card (its styles used to apply only on narrow screens) ------- */
.coming-soon{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px 24px;margin:40px 0 0;padding:26px 28px;background:var(--bg-card);border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow);text-align:left;max-width:none}
.coming-soon .coming-kicker{grid-column:1;justify-self:start;display:inline-block;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--accent);background:var(--accent-soft);border:0;border-radius:999px;padding:4px 10px;margin:0 0 6px}
.coming-soon h2{grid-column:1;margin:0}
.coming-soon p{grid-column:1;margin:4px 0 0;max-width:none;color:var(--muted);font-size:15.5px}
.coming-soon .btn{grid-column:2;grid-row:1 / span 3;align-self:center}
@media (max-width:640px){.coming-soon{grid-template-columns:minmax(0,1fr)}.coming-soon .btn{grid-column:1;grid-row:auto;justify-self:start;margin-top:12px}}

/* Cards that pointed at an undefined colour ---------------------------- */
.studio-card,.review-card,.press-card{background:var(--bg-card)}

/* Icons in place of emoji ---------------------------------------------- */
.ico{width:26px;height:26px;color:var(--accent);display:block}
.guide-emoji{display:inline-grid;place-items:center;width:44px;height:44px;border-radius:12px;background:var(--accent-soft);font-size:0}
.guide-emoji .ico{width:22px;height:22px}
.page-title .guide-emoji,.guide-hero h2 .guide-emoji{vertical-align:middle;margin-right:10px;transform:translateY(-3px)}
.strip h4{display:flex;align-items:center;gap:10px}
.strip h4 .ico{width:20px;height:20px}

/* Comparison table ------------------------------------------------------ */
.vs-plus{display:inline-block;margin-left:4px;font-size:10.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--accent)}
.vs-asof{text-align:center;color:var(--muted2);font-size:13px;margin:14px 0 0}

/* Footer ---------------------------------------------------------------- */
footer.site-footer{display:grid;grid-template-columns:minmax(0,1.4fr) repeat(3,minmax(0,1fr));gap:28px 32px;align-items:start;margin-top:64px;padding-top:32px;border-top:1px solid var(--line)}
@media (max-width:820px){footer.site-footer{grid-template-columns:repeat(2,minmax(0,1fr))}.sf-brand{grid-column:1 / -1}}
.sf-logo{display:inline-flex;align-items:center;gap:10px;font-weight:680;color:var(--text)!important;text-decoration:none;font-size:16px}
.sf-logo img{width:28px;height:28px;border-radius:7px}
.sf-brand p{margin:12px 0 0;max-width:340px;font-size:14px;line-height:1.55;color:var(--muted)}
.sf-col h2{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted2);margin:4px 0 12px}
.sf-col ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.sf-col a{font-size:14.5px;font-weight:500;color:var(--text);text-decoration:none}
.sf-col a:hover{color:var(--accent)}
.sf-legal{grid-column:1 / -1;margin:8px 0 0;padding-top:20px;border-top:1px solid var(--line);font-size:12.5px;color:var(--muted2)}

/* App pages: one scrolling row of screenshots, readable What's new ------- */
.app-shots{display:flex!important;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;padding:8px 0 16px!important;margin:28px 0 0!important}
.app-shots img{flex:0 0 auto;width:auto!important;height:min(460px,72vh);border-radius:22px!important;border:1px solid var(--line);scroll-snap-align:start}
.changelog h3{font-size:15px;font-weight:650;color:var(--text);margin:18px 0 6px;letter-spacing:-.005em}
.changelog h3:first-of-type{margin-top:6px}
.changelog ul{margin:0 0 4px}
.changelog li{margin-bottom:6px;line-height:1.6}
.desc .plus-list{columns:2;column-gap:28px}
@media (max-width:560px){.desc .plus-list{columns:1}}
.desc .plus-tag{display:inline-block;margin-left:6px;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--accent);vertical-align:1px}

/* Header menu extras on phones, What's new card width */
.sh-menu .sh-extra{display:none}
@media (max-width:640px){.sh-menu .sh-extra{display:flex;grid-column:1 / -1;border-top:1px solid var(--line);border-radius:0;margin-top:4px;padding-top:12px;gap:18px}.sh-menu .sh-extra a{padding:6px 4px;font-weight:600;font-size:14.5px}}
.changelog{max-width:none}
.changelog .version-note{margin-bottom:6px}
.featured .feat-facts{margin:-2px 0 14px;font-size:13.5px;line-height:1.5;color:var(--muted)}
.featured .feat-facts .star{color:#f5a623}
.featured h2{font-size:30px}
@media (max-width:560px){.featured h2{font-size:26px}.featured p{font-size:15.5px}}
.spotlight a{flex:none;margin-left:auto;white-space:nowrap}
@media (max-width:640px){.grid-head{flex-direction:column;align-items:flex-start;gap:6px}}
@media (max-width:560px){.featured .store-badge img{width:136px}.featured .feat-actions .btn{padding:10px 18px}}
.app-shots{flex-wrap:nowrap!important}
.app-shots img{max-width:none!important}
.strip{margin-top:24px}
