/* Waldorfska šola Maribor 1.8: Work 21. 10. audit; additive styles only. */
.wsm18-main{display:block;min-width:0;margin:0!important;padding:0!important;max-width:none!important}
.wsm18-main>*{min-width:0}
/* WordPress block theme: visible and focusable keyboard skip control. */
.wsm-skip{position:absolute;z-index:2147483647;top:-100px;left:14px;display:inline-block;padding:13px 18px;background:#273f3a;color:#fff;border-radius:8px;text-decoration:none;font:700 15px/1.5 system-ui,sans-serif}
.wsm-skip:focus-visible,.wsm-skip:focus{top:12px;outline:3px solid #f17e26;outline-offset:2px}
.wsm18-main:focus{outline:none}
/* Preserve a consistent visual grid for Gutenberg's old and new page sections. */
.wsm-page-content{min-width:0;width:100%;max-width:1220px!important}
.wsm-page-content .wsm14-section,.wsm-page-content .wsm14-intro,
.wsm-page-content .wsm14-page-photo,.wsm-page-content .wsm15-toc{width:100%;max-width:1100px!important}
.wsm-page-content .wsm14-linkgrid{max-width:100%!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important}
.wsm-page-content .wsm14-linkcard{width:100%;min-width:0;align-self:stretch;height:100%;margin:0!important}
.wsm-page-content .wsm14-linkcard h3,.wsm-page-content .wsm14-linkcard p{overflow-wrap:anywhere}
.wsm-page-content .wsm14-linkcard a:focus-visible{outline:3px solid #f17e26!important;outline-offset:3px}
.wsm-page-content .wsm17-section,.wsm-page-content .wsm17-short-lead,
.wsm-page-content .wsm17-activities,.wsm-page-content .wsm17-info-grid,
.wsm-page-content .wsm17-facts{max-width:1100px!important}
.wsm17-activity-doc a{overflow-wrap:anywhere}
/* PDF action groups: each official file appears exactly once, with good spacing. */
.wsm18-doc-actions{display:flex;flex-wrap:wrap;align-items:stretch;gap:13px;margin:12px auto 34px!important;width:100%;max-width:1100px!important}
.wsm18-doc-actions>.wp-block-shortcode{width:auto!important;max-width:100%!important;min-width:0;margin:0!important}
.wsm18-doc-actions .wsmv-inline-doc{display:inline-flex;align-items:center;min-height:48px;padding:11px 17px;border:1px solid #efd6ba;border-radius:10px;background:#fff8ed;color:#a6501b;text-decoration:underline;text-underline-offset:3px}
.wsm18-doc-actions .wsmv-inline-doc:hover{background:#ffecd8}
/* Clear, contact-first layout and clickable actions. */
.wsm18-contact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px auto 33px!important;max-width:1100px;width:100%}
.wsm18-contact-card{border:1px solid #efddc9;background:#fffaf2;border-radius:15px;padding:26px 28px;min-width:0}
.wsm18-contact-card h2{font:400 29px/1.2 Georgia,serif;margin:0 0 20px;color:#273f3a}
.wsm18-contact-card address{font-style:normal;display:flex;flex-direction:column;gap:11px}
.wsm18-contact-card strong,.wsm18-contact-card span{font:500 15px/1.65 system-ui,sans-serif;color:#465c4f}
.wsm18-contact-card strong{font-weight:700}
.wsm18-contact-card p{font:15px/1.75 system-ui,sans-serif;color:#56695d;overflow-wrap:anywhere}
.wsm18-contact-card a{display:inline-block;font:700 15px/1.6 system-ui,sans-serif;color:#a95a24;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.wsm18-contact-card a:focus-visible,.wsm18-calendar-fallback a:focus-visible{outline:3px solid #f17e26;outline-offset:4px}
/* Easier movement from one content section to the next. */
.wsm18-related{display:flex;flex-wrap:wrap;gap:14px;margin:22px auto 37px!important;max-width:1100px;width:100%}
.wsm18-related .wsm17-pill-link{display:inline-flex;min-height:44px;align-items:center;padding:10px 14px;border:1px solid #eedaca;border-radius:10px;background:#fffbf5;overflow-wrap:anywhere}
.wsm18-next-step{margin:28px auto 25px;padding:27px 30px;max-width:1100px;background:#fff1e2;border-radius:15px;border:1px solid #edceb0}
.wsm18-next-step p{margin:0 0 14px;font:400 25px/1.3 Georgia,serif;color:#273f3a}
.wsm18-dayflow-after{grid-column:1/-1;background:#f1f6ec!important;border-top-color:#547862!important}
.wsm18-dayflow-after b{margin-bottom:5px}
/* Existing staff tables remain genuine HTML tables on desktop. */
.wsm18-staff-table{max-width:1100px!important}
.wsm18-staff-table a[href^="mailto:"]{overflow-wrap:anywhere;word-break:break-word}
.wsm18-people-contact{max-width:1100px;margin:20px auto!important;padding:14px 19px;border-radius:11px;border-left:3px solid #dc8637;background:#fff8ed;line-height:1.7;color:#52665b;overflow-wrap:anywhere}
.wsm18-people-contact a{color:#a95a24;font-weight:700}
/* Calendar has a useful link even if external services are blocked. */
.wsm18-calendar{min-width:0}
.wsm18-calendar-fallback{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:17px;padding:18px 20px;border:1px solid #f0e0ce;background:#fffaf3;border-radius:12px}
.wsm18-calendar-fallback p{flex:1 1 100%;font:14px/1.7 system-ui,sans-serif;color:#5b6a60;margin:0}
.wsm18-calendar-fallback .wsm17-pill-link{padding:9px 12px;min-height:44px;display:inline-flex;align-items:center;border-radius:9px;background:#fff1e0;border:1px solid #eed3b5}
.wsm18-calendar .wsm17-calendar-frame{position:relative}
/* Allow WordPress's native overlay menu to remain scrollable and touch-friendly. */
.wsm-header-shell,.wsm-header-inner,.wsm-nav{min-width:0}
.wsm-nav button,.wsm-nav a{touch-action:manipulation}
.wsm-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container{scrollbar-width:thin}
/* Privacy is shown only after an official page is selected in WordPress. */
.wsm-footer .wsm18-privacy-link{margin:20px 0 0;font-size:13px}
.wsm-footer .wsm18-privacy-link a{color:#ad5b20;text-decoration:underline}
/* Prevent inline fragments, filter controls or long URLs from expanding page width. */
.wsm-page-content .wp-block-post-content,.wsm-page-content .wp-block-shortcode,
.wsm17-section,.wsm17-card,.wsm17-info-grid article{min-width:0;overflow-wrap:anywhere}
@media(max-width:980px){
 .wsm-header-inner{max-width:100%!important}
 .wsm-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content{min-height:44px;display:flex;align-items:center}
}
@media(max-width:782px){
 .wsm-page-content .wsm14-linkgrid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .wsm18-contact-grid{grid-template-columns:1fr}
 .wsm17-dayflow .wsm18-dayflow-after{grid-column:1/-1}
 .wsm18-calendar .wsm17-calendar-frame{min-height:545px}
 .wsm18-calendar .wsm17-calendar-frame iframe{height:540px}
}
@media(max-width:680px){
 .wsm-page-content{padding-inline:17px!important}
 .wsm-page-content .wsm14-linkgrid{grid-template-columns:1fr!important}
 .wsm18-doc-actions{display:grid;grid-template-columns:1fr;gap:9px}
 .wsm18-doc-actions>.wp-block-shortcode{width:100%!important}
 .wsm18-doc-actions .wsmv-inline-doc{display:flex;width:100%;justify-content:flex-start}
 .wsm18-related{flex-direction:column;align-items:stretch;gap:8px}
 .wsm18-related .wsm17-pill-link{width:100%}
 .wsm18-contact-card{padding:20px 19px}
 .wsm18-contact-card h2{font-size:25px}
 .wsm18-calendar-fallback{padding:15px 13px}
 .wsm18-calendar-fallback .wsm17-pill-link{width:100%;justify-content:center;text-align:center}
 .wsm18-next-step{padding:20px 19px}
 /* Staff: cards rather than hidden right-hand table columns on actual phones. */
 .wsm-page-content .wsm18-staff-table{width:100%;border:0;overflow:visible;border-radius:0}
 .wsm-page-content .wsm18-staff-table table,
 .wsm-page-content .wsm18-staff-table tbody,
 .wsm-page-content .wsm18-staff-table tr,
 .wsm-page-content .wsm18-staff-table td{display:block;width:100%;min-width:0}
 .wsm-page-content .wsm18-staff-table table{border:0;min-width:0!important;background:transparent}
 .wsm-page-content .wsm18-staff-table thead{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .wsm-page-content .wsm18-staff-table tr{background:#fffaf2;border:1px solid #ebddc9;border-radius:13px;margin:0 0 10px;padding:10px 14px}
 .wsm-page-content .wsm18-staff-table td{padding:7px 0!important;border:0!important;font-size:13px!important;line-height:1.65;overflow-wrap:anywhere}
 .wsm-page-content .wsm18-staff-table td:before{display:block;color:#748174;font:700 11px/1.5 system-ui,sans-serif;margin:0 0 3px}
 .wsm-page-content .wsm18-staff-table td:nth-child(1):before{content:"Ime in priimek"}
 .wsm-page-content .wsm18-staff-table td:nth-child(2):before{content:"Vloga / področje"}
 .wsm-page-content .wsm18-staff-table td:nth-child(3):before{content:"Službeni e-naslov"}
 .wsm-page-content .wsm18-staff-table table:not(:has(th:nth-child(3))) td:nth-child(2):before{content:"Službeni e-naslov"}
 .wsm-page-content .wsm18-staff-table td:empty{display:none}
 .wsm-page-content .wsm14-table:not(.wsm18-staff-table){max-width:100%;scrollbar-color:#c7a37e #fff9ec;scrollbar-width:thin}
 .wsm-page-content .wsm14-table:not(.wsm18-staff-table) table{min-width:485px!important}
 .wsm17-simple-table th,.wsm17-simple-table td{padding:11px 10px!important;font-size:13px!important}
 .wsm17-schedule td{word-break:normal;overflow-wrap:anywhere}
}
@media(max-width:390px){
 .wsm-header-inner{padding-inline:14px!important}
 .wsm-page-content{padding-inline:14px!important}
 .wsm18-contact-card a{font-size:14px}
}
@media(prefers-reduced-motion:reduce){.wsm18-main,.wsm18-contact-grid{scroll-behavior:auto}}
