/* Preserve original entry cards; group related homepage links only. */
#modern-portal .portal-grouped-entries{display:grid;gap:20px;margin-bottom:22px}
#modern-portal .portal-entry-group{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
@media(max-width:760px){
 #modern-portal .portal-entry-group{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 #modern-portal .portal-entry-group .portal-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:145px;padding:16px 9px}
 #modern-portal .portal-entry-group .portal-copy{text-align:center}
 #modern-portal .portal-entry-group .portal-copy strong{font-size:13px}
 #modern-portal .portal-entry-group .portal-copy small{font-size:11px}
 #modern-portal .portal-entry-group .portal-arrow{position:absolute;top:10px;right:10px}
}
/* The nature player belongs to its own route and keeps a widescreen TV shape. */
html body #sesli-dersler .draft-video-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:22px}
html body #sesli-dersler .draft-video-screen{display:block;grid-column:1;grid-row:1;width:100%;min-width:0;overflow:visible;background:transparent;border:0}
html body #sesli-dersler .nature-visual{position:relative;box-sizing:border-box;width:100%;height:auto;min-height:0;aspect-ratio:16/9;overflow:hidden;border:8px solid #162e42;border-bottom-width:17px;border-radius:10px;background-color:#102331;box-shadow:0 9px 0 -5px #162e42}
html body #sesli-dersler #nature-visual-player,html body #sesli-dersler .nature-visual iframe{position:absolute;inset:0;width:100%;height:100%;min-height:0;border:0}
html body #sesli-dersler .nature-audio-content{padding:18px 0 0}
html body #sesli-dersler #nature-audio-cover{display:none}
html body #sesli-dersler #nature-lesson-audio{display:block;width:100%;max-width:100%}
html body #sesli-dersler .draft-video-sidebar{grid-column:1;grid-row:2;max-height:none;margin:0}
html body #sesli-dersler #nature-fixed-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-height:none;overflow:visible;padding:12px}
html body #sesli-dersler .nature-sidebar-series{min-width:0;margin:0}
html body #sesli-dersler .nature-sidebar-series[open]{grid-column:1/-1}

@media(max-width:760px){html body #sesli-dersler .nature-visual{border-width:5px;border-bottom-width:11px;border-radius:7px}}

/* Nature video uses the same compact TV size as the other visual panels. */
html body #sesli-dersler .nature-visual{width:320px;max-width:100%;margin:0 auto 18px}
@media(max-width:760px){html body #sesli-dersler .nature-visual{width:260px}}

/* One step larger labels in the homepage's single-line section menu. */
html body.portal-home>header .site-nav>a{font-size:13px!important}

/* Keep the menu and its two controls inside equal left/right page gutters. */
html body.portal-home>header .masthead{width:calc(100% - 48px)!important;max-width:1280px!important;margin-inline:auto!important;box-sizing:border-box}
html body.portal-home>header .header-menu-line{display:grid!important;grid-template-columns:minmax(0,1fr) 36px 36px;gap:10px!important;width:100%;padding-inline:0!important;box-sizing:border-box}
html body.portal-home>header .header-menu-line .site-nav{width:100%;min-width:0;margin:0!important}
html body.portal-home>header .header-language{width:36px;margin:0!important;justify-self:end}
html body.portal-home>header #header-search-toggle{width:36px;margin:0!important;justify-self:end}
@media(max-width:760px){html body.portal-home>header .masthead{width:calc(100% - 24px)!important}html body.portal-home>header .header-menu-line{grid-template-columns:minmax(0,1fr) 34px 34px;gap:7px!important}html body.portal-home>header .header-language,html body.portal-home>header #header-search-toggle{width:34px}}
