/* Youth's Online public layout v1.0.0
   Integrated into the original YouthOnline v0.13 child theme; selectors target posts, blog and customer portal.
   Scoped to existing classes. No hidden links, no modified permissions/forms.
   Loaded after parent, child and importer styles on the front end. */

/* A predictable wide but readable measure on public listings, without shrinking the hero. */
:root{--yol-reading-max:1080px;--yol-post-max:980px;--yol-list-max:1400px;--yol-gutter:clamp(16px,2.6vw,44px)}
html{scroll-padding-top:105px}
body :where(.yo-update-page,.yo-blog-page,.yopc-app-wrap,.yopc-auth-page) :where(img,svg,video,iframe){max-width:100%}
body :where(.yo-update-page,.yo-blog-page,.yopc-app-wrap) :where(h1,h2,h3,h4,p,li,a){overflow-wrap:break-word}

/* Job detail and general pages: headline/paragraphs should not span the full monitor. */
body.single-post main.yo-update-page.container{
 width:min(calc(100% - (var(--yol-gutter) * 2)),var(--yol-reading-max));
 max-width:var(--yol-reading-max);padding-block:clamp(26px,3.4vw,60px) 70px;min-width:0;
}
body.single-post main.yo-update-page>article{
 max-width:var(--yol-post-max);width:100%;margin-inline:auto;padding:clamp(20px,3vw,42px);
 background:#fff;border:1px solid #dfebf5;border-radius:20px;box-shadow:0 12px 34px rgba(8,49,103,.055);
}
body.single-post .yo-update-page h1{
 font-size:clamp(26px,2.9vw,40px);line-height:1.24;letter-spacing:-.022em;margin:10px 0 18px;color:#112e51;
}
body.single-post .yo-update-page .kicker{font-size:11px;letter-spacing:.1em}
body.single-post .yo-update-page .yo-update-facts{
 display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:15px 0 23px;color:#506984;font-size:13px;
}
body.single-post .yo-update-page .yo-update-facts>span{
 display:inline-flex;align-items:center;max-width:100%;min-height:32px;padding:5px 10px;
 border:1px solid #dae8f5;border-radius:999px;background:#f5f9fe;
}
body.single-post .yo-update-page .yo-update-facts>span.yo-expired-label{
 color:#8a4423;background:#fff2eb;border-color:#f5d7c9;
}
body.single-post .yo-update-page .yo-update-content{
 min-width:0;font-size:clamp(15.5px,1.06vw,17px);line-height:1.82;color:#273e57;
}
body.single-post .yo-update-page .yo-update-content>:where(p,ul,ol){margin-block:0 17px}
body.single-post .yo-update-page .yo-update-content :where(h2,h3,h4){
 max-width:100%;margin:29px 0 12px;color:#0c3b61;line-height:1.36;letter-spacing:-.01em;
}
body.single-post .yo-update-page .yo-update-content h2{font-size:clamp(20px,2vw,25px)}
body.single-post .yo-update-page .yo-update-content h3{font-size:clamp(18px,1.5vw,21px)}
body.single-post .yo-update-page .yo-update-content :where(ul,ol){padding-inline-start:1.3em}
body.single-post .yo-update-page .yo-update-content li+li{margin-top:7px}
body.single-post .yo-update-page .yo-update-content :where(table){width:100%;border-collapse:collapse;line-height:1.55;font-size:clamp(13px,.95vw,15.5px)}
body.single-post .yo-update-page .yo-update-content :where(th,td){padding:11px 13px;border:1px solid #dfe9f3;vertical-align:top;text-align:start;overflow-wrap:anywhere}
body.single-post .yo-update-page .yo-update-content th{background:#eff6fe;color:#123c64}
body.single-post .yo-update-page .yo-update-content tr:nth-child(even) td{background:#f8fbff}
body.single-post .yo-update-page .yo-update-content .yon-job-scroll,
body.single-post .yo-update-page .yo-update-content .wp-block-table{
 max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;
}
body.single-post .yo-update-page .yo-update-content a:not(.btn):not(.yonpp-btn):not(.yon-job-primary){
 color:#075b9d;text-decoration:underline;text-underline-offset:3px;
}
body.single-post .yo-update-page .yo-update-content :where(.yon-job-article,.yonpp-apply){max-width:100%}
body.single-post .yo-update-page :where(.yonpp-btn,.btn,.yon-job-primary){min-height:44px;white-space:normal;text-align:center}
body.single-post .yo-update-page .yonpp-apply{border-radius:17px}
body.single-post .yo-update-page .rate-disclaimer{font-size:13px;line-height:1.7}

/* Category/blog pages retain their spacious cards, but never run edge-to-edge at 4K. */
body .yo-blog-page .container,
body .yo-blog-hero .container,
body .yo-blog-sections.container{
 width:min(calc(100% - (var(--yol-gutter) * 2)),var(--yol-list-max));max-width:var(--yol-list-max);margin-inline:auto;
}
body .yo-blog-sections .yo-update-section{padding:clamp(18px,2vw,29px);border-radius:20px;margin-block:18px 25px}
body .yo-blog-sections .yo-updates-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(12px,1.35vw,20px)}
body .yo-blog-sections .yo-update-card{min-width:0;min-height:0;padding:clamp(15px,1.6vw,22px);border-radius:15px}
body .yo-blog-sections .yo-update-card h3{font-size:clamp(16px,1.1vw,19px);line-height:1.52}
body .yo-blog-sections .yo-update-card :where(p,small){overflow-wrap:anywhere}
body .yo-blog-sections .yo-update-heading{gap:16px;flex-wrap:wrap}
body .yo-blog-sections .yo-all-link{white-space:normal;flex-shrink:0}
body .yo-blog-hero h1{max-width:26ch}

/* Standard information pages and service pages should not use a 1760px text line. */
body.page:not(.home):not(.yopc-mobile-customer) main.container.inner-page,
body.page:not(.home) main.container.inner-page,
body.single-yo_service main.container.inner-page{
 width:min(calc(100% - (var(--yol-gutter) * 2)),1220px);max-width:1220px;
 padding-block:clamp(27px,3vw,60px) 72px;min-width:0;
}
body.page:not(.home) main.container.inner-page article>:where(p,ul,ol),
body.page:not(.home) main.container.inner-page article>.entry-content{max-width:80ch}
body.page:not(.home) main.container.inner-page h1{font-size:clamp(27px,3vw,42px);line-height:1.25}
body :where(.inner-page,.yo-blog-page) a:focus-visible{outline:3px solid #1a76bd;outline-offset:3px}

/* Customer/operator pages: flexible desktop panel, readable inner form width. */
body .yopc-app-wrap .container.yopc-app-grid{
 width:min(calc(100% - (var(--yol-gutter) * 2)),1320px);max-width:1320px;
 grid-template-columns:minmax(220px,252px) minmax(0,1fr);gap:clamp(15px,2vw,30px);
}
body .yopc-app-wrap .yopc-app-aside{min-width:0}
body .yopc-app-wrap .yopc-app-main{min-width:0;padding:clamp(18px,2.2vw,34px)}
body .yopc-app-wrap .yopc-app-content{min-width:0;overflow-wrap:anywhere}
body .yopc-app-wrap .yopc-app-content :where(.yo-portal,.yo-center,.yo-job-matcher,.yo-online-directory){
 width:100%;max-width:100%;min-width:0;
}
body .yopc-app-wrap .yopc-app-content :where(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){
 max-width:100%;min-width:0;box-sizing:border-box;
}
body .yopc-app-wrap .yopc-app-content :where(table,.yo-table,.wp-block-table){max-width:100%}
/* Tables keep readable column widths on phones; scroll inside the table, not the entire page. */
body .yopc-app-wrap .yopc-app-content :where(.yo-requests-table,.yo-appointments-table,.yo-operator-table,.yo-table-scroll,.wp-block-table){max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
body .yopc-app-wrap .yopc-app-content table{max-width:100%;border-collapse:collapse}
body .yopc-app-wrap .yopc-app-content table :where(th,td){padding:10px 12px;line-height:1.45;overflow-wrap:anywhere}
body .yopc-app-wrap .yopc-app-content :where(.yo-requests-table,.yo-appointments-table,.yo-operator-table) :where(th,td){min-width:114px}
body .yopc-app-wrap .yopc-app-content :where(.yo-box,.yo-card){min-width:0}
body .yopc-app-wrap .yopc-app-content :where(button,.button,a.yo-btn){max-width:100%;overflow-wrap:break-word}
body .yopc-app-wrap :where(.yo-job-matcher,.yo-portal,.yo-center) :where(h2,h3){line-height:1.35}

/* Sign-in retains the existing modern split design, with safe widths on smaller screens. */
body .yopc-auth-page .yopc-auth-frame{width:100%;max-width:1100px}
body .yopc-auth-page .yopc-auth-paper{min-width:0}
body .yopc-auth-page .yopc-auth-shortcode :where(input,button){max-width:100%;box-sizing:border-box}

/* Footer columns must not overflow on translations, phone numbers or long hyperlinks. */
body .footer-grid{gap:clamp(18px,3vw,50px)}
body .footer-grid>*{min-width:0;overflow-wrap:anywhere}

@media (min-width:1500px){
 body .yo-blog-sections .yo-updates-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:1100px){
 body .yo-blog-sections .yo-updates-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body .yopc-app-wrap .container.yopc-app-grid{grid-template-columns:minmax(218px,245px) minmax(0,1fr)}
 body.single-post main.yo-update-page>article{padding:clamp(16px,3vw,30px)}
}
@media (max-width:960px){
 body .yopc-app-wrap .container.yopc-app-grid{grid-template-columns:1fr}
 body .yopc-app-wrap .yopc-app-aside{position:static}
}
@media (max-width:640px){
 :root{--yol-gutter:14px}
 body.single-post main.yo-update-page.container{width:calc(100% - 22px);padding:13px 0 40px}
 body.single-post main.yo-update-page>article{padding:19px 15px 22px;border-radius:16px;box-shadow:0 5px 18px rgba(8,49,103,.035)}
 body.single-post .yo-update-page h1{font-size:clamp(23px,6vw,29px);line-height:1.28}
 body.single-post .yo-update-page .yo-update-facts{gap:7px}
 body.single-post .yo-update-page .yo-update-content{font-size:15.5px;line-height:1.77}
 body.single-post .yo-update-page .yo-update-content .yon-job-scroll{margin-inline:-4px}
 body.single-post .yo-update-page .yo-update-content :where(th,td){padding:9px 10px;font-size:13px}
 body.single-post .yo-update-page :where(.yonpp-btn,.btn,.yon-job-primary){max-width:100%;white-space:normal}
 body .yo-blog-sections .yo-updates-grid{grid-template-columns:1fr}
 body .yo-blog-sections .yo-update-section{padding:16px;border-radius:16px;margin-block:13px}
 body .yo-blog-sections .yo-update-card{padding:16px;min-height:0}
 body .yo-blog-sections .yo-update-heading{align-items:flex-start;gap:10px}
 body .yo-blog-sections .yo-update-heading h2{font-size:clamp(21px,5vw,27px)}
 body .yopc-app-wrap .container.yopc-app-grid{width:calc(100% - 22px);max-width:none;gap:11px}
 body .yopc-app-wrap .yopc-app-main{padding:16px 13px;border-radius:17px}
 body .yopc-app-wrap .yopc-app-content :where(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){font-size:16px}
 body .yopc-auth-page .yopc-auth-paper{padding:clamp(18px,5vw,24px)}
 body .footer-grid{gap:23px}
}
@media(max-width:390px){
 body.single-post main.yo-update-page>article{padding:17px 12px}
 body .yopc-app-wrap .yopc-app-main{padding:13px 10px}
 body .yo-blog-sections .yo-update-card{padding:14px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* v0.13.1 integration: resilient phone widths without clipping article/table content. */
body.single-post .yo-update-page :where(.yon-job-article,.yon-job-content,figure,blockquote){max-width:100%;min-width:0}
body.single-post .yo-update-page .yo-update-content :where(pre,code){overflow-wrap:anywhere}
body.single-post .yo-update-page .yo-update-content pre{overflow-x:auto;white-space:pre}
body.single-post .yo-update-page .yo-update-content :where(.wp-block-table,.yon-job-scroll){max-width:100%;overflow-x:auto}
body .yopc-app-wrap .yopc-app-content :where(.yo-portal,.yo-center,.yo-job-matcher) :where(.yo-grid,.yo-cards,.yo-portal-grid)>*{min-width:0}
@media(max-width:640px){
 body .yopc-app-wrap .yopc-app-content :where(.yo-requests-table,.yo-appointments-table,.yo-operator-table) table{min-width:540px}
 body.single-post .yo-update-page .yo-update-content :where(.wp-block-table,.yon-job-scroll) table{min-width:420px}
}
