/*
Theme Name: Giarmata – Școala Gimnazială
Theme URI: https://www.scoala-giarmata.ro
Author: Echipa tehnică (pentru Școala Gimnazială Giarmata)
Description: Temă proprie care reproduce fidel prototipul acceptat al Școlii Gimnaziale Giarmata (crem/bleumarin, hero 4:3, panou de accesibilitate). Conținutul editabil este în pagini/anunțuri WordPress; biblioteca de documente este oferită de pluginul „Giarmata – Biblioteca de documente”.
Version: 0.1.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: giarmata
*/

/* CSS-ul vizual este în assets/prototip.css și assets/a11y.css (încărcate din functions.php),
   ca să rămână identice cu sursa autoritativă din pachet. Acest fișier conține doar antetul temei
   plus mici ajustări pentru contextul WordPress. */

.giarmata-admin-bar-pad { }
.doc-row a.doc-action { color: #f3ca7d; }
.news-list { display: grid; gap: 18px; }
.anunt-card { background:#faf0df; border:1px solid var(--line); border-radius:18px; padding:26px 28px; }
.anunt-card h3 { margin:0 0 6px; font-size:1.375rem; letter-spacing:-.03em; }
.anunt-meta { color:var(--muted); font-size:0.875rem; margin:0 0 10px; }
.anunt-card p { color:var(--muted); line-height:1.65; margin:0 0 10px; }
.page-hero { padding:48px 0 10px; }
.page-hero h1 { font-size:clamp(2.125rem,4vw,3rem); letter-spacing:-.05em; margin:10px 0 0; }
.page-body { padding:30px 0 80px; }
.page-body :is(h2,h3){ letter-spacing:-.03em; }
.page-body p, .page-body li { line-height:1.75; color:#324a60; }
.breadcrumbs { color:var(--muted); font-size:0.9375rem; }

/* Legături lizibile și navigare simplă — 26.10.2026 */
.page-body a[href], main p a[href], main li a[href]:not(.btn), main .gm26-actions a[href], main .gm26-more {
 color:#195676; text-decoration-line:underline; text-decoration-thickness:1.5px; text-underline-offset:.2em; text-decoration-skip-ink:auto; font-weight:600;
}
.page-body a[href]:visited, main p a[href]:visited {color:#655080;}
.page-body a[href]:hover, main p a[href]:hover {color:#11374d;text-decoration-thickness:2.5px;}
a[href]:focus-visible, button:focus-visible, summary:focus-visible {outline:3px solid #a25a29;outline-offset:4px;border-radius:3px;}
.page-body :is(h2,h3,h4,[id]), .school-history {scroll-margin-top:160px;}
.school-history {border:1px solid #ded7c9;background:#faf6ed;border-radius:18px;margin:26px 0;}
.school-history>summary {cursor:pointer;padding:20px 24px;color:#17364c;font-size:1.1rem;font-weight:700;line-height:1.5;}
.school-history .history-content {padding:0 24px 24px;}
.history-content section {margin:26px 0;}
.history-content h4 {font-size:1.08rem;margin:20px 0 8px;color:#17364c;}
.history-content p {margin:10px 0 20px;}
.history-content a {overflow-wrap:anywhere;}
.public-doc-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:18px;margin:24px 0 36px;}
.public-doc-card {border:1px solid #e0d9cc;background:#fffcf5;border-radius:18px;padding:24px;scroll-margin-top:160px;}
.public-doc-card h3 {margin:0 0 12px;font-size:1.2rem;line-height:1.45;}
.public-doc-card p {margin:0 0 12px;}
.public-doc-card a {display:inline-block;line-height:1.6;padding:3px 0;}
@media(max-width:700px){.school-history>summary{padding:18px}.school-history .history-content{padding:0 18px 18px}.public-doc-card{padding:20px}.public-doc-card a{min-height:36px}.nav-sub{max-height:none;}}

/* Homepage concis — 27.10.2026. Doar pagina principală. */
.home #acasa{padding-top:32px;padding-bottom:32px}
.home #acasa .intro{max-width:36em}
.home .gm27-home-news,.home .gm27-home-quick{padding:32px 0}
.home .gm27-compact-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}
.home .gm27-compact-head h2{font-size:clamp(1.75rem,3vw,2.4rem);line-height:1.15;margin:8px 0 0}
.home .gm27-compact-head .btn{flex-shrink:0}
.home .gm27-home-news .gm27-empty{margin:0;padding:18px 22px;background:#faf6ed;border:1px solid #e0d9cc;border-radius:16px;line-height:1.6}
.home .gm27-home-news .gm27-news-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.home .gm27-quick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.home a.gm27-quick-card{display:block;padding:22px;border:1px solid #e0d9cc;border-radius:18px;background:#fffcf5;color:#17364c;text-decoration:none;transition:border-color .15s,background .15s}
.home a.gm27-quick-card:hover{border-color:#a25a29;background:#faf0df}
.home .gm27-quick-card h3{font-size:1.15rem;line-height:1.4;margin:0 0 8px;letter-spacing:-.02em}
.home .gm27-quick-card h3 span{color:#35627a}
.home .gm27-quick-card p{font-size:1rem;line-height:1.55;margin:0;color:#526373}
.home .gm27-home-extras{padding-top:14px;padding-bottom:0}
.home .gm27-home-disclosure{border:1px solid #e0d9cc;border-radius:18px;background:#fffcf5;overflow:hidden}
.home .gm27-home-disclosure>summary{cursor:pointer;padding:20px 24px;font-weight:700;color:#17364c;font-size:1.15rem;line-height:1.45}
.home .gm27-home-disclosure>summary span{display:inline;font-size:1rem;font-weight:400;color:#526373;margin-left:12px}
.home .gm27-home-disclosure[open]>summary{border-bottom:1px solid #e0d9cc}
.home .gm27-disclosure-body{padding:24px}
.home .gm27-disclosure-body .wrap{width:100%;max-width:none;margin:0;padding:0}
.home .gm27-disclosure-body #poezia-zilei{padding:0}
.home .gpr-area.gm27-home-fold{padding:14px 0 0;background:transparent}
.home .gpr-area.gm27-home-fold:last-of-type{padding-bottom:32px}
.home .gm27-home-fold .gpr-life-grid,.home .gm27-home-fold .gpr-resources-grid{margin:0}
@media(max-width:700px){
.home #acasa{padding-top:24px;padding-bottom:24px}
.home .gm27-home-news,.home .gm27-home-quick{padding:24px 0}
.home .gm27-compact-head{align-items:flex-start;gap:14px;flex-wrap:wrap}
.home .gm27-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.home a.gm27-quick-card{padding:16px;min-width:0}
.home .gm27-quick-card h3{font-size:1.05rem;overflow-wrap:anywhere}
.home .gm27-quick-card p{font-size:.95rem}
.home .gm27-home-news .gm27-news-grid{grid-template-columns:1fr}
.home .gm27-home-disclosure>summary{padding:18px;font-size:1.08rem}
.home .gm27-home-disclosure>summary span{display:block;margin:4px 0 0}
.home .gm27-disclosure-body{padding:18px}
}
@media(max-width:350px){.home .gm27-quick-grid{grid-template-columns:1fr}}

/* Documente compacte — componentă comună pentru conținut existent și viitor. */
main .doc-list{display:grid;gap:8px;margin:18px 0 24px}
main .gm27-file-row{display:grid;grid-template-columns:46px minmax(0,1fr) auto;align-items:center;gap:14px;padding:14px 16px;margin:8px 0;border:1px solid #dedfd8;border-radius:14px;background:#fffcf5;color:#17364c;min-width:0}
main .doc-list .gm27-file-row{margin:0}
main .gm27-file-badge{display:flex;align-items:center;justify-content:center;width:46px;height:48px;border:1px solid #d7e2e7;background:#eaf1f4;border-radius:10px;font-size:.65rem;letter-spacing:.03em;font-weight:800;color:#24516a}
main .gm27-file-info{min-width:0}
main a.gm27-file-title,main a.gm27-file-title:visited{display:inline;color:#17364c;font-size:1.02rem;line-height:1.45;font-weight:650;text-decoration:none;overflow-wrap:anywhere}
main a.gm27-file-title:hover{text-decoration:underline;text-underline-offset:.18em;color:#195676}
main .gm27-file-meta{display:block;font-size:.82rem;line-height:1.5;color:#5a6b76;margin-top:4px}
main .gm27-file-summary{font-size:.9rem;line-height:1.5;margin:5px 0 0;color:#526373}
main .gm27-file-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}
main .gm27-file-actions a,main .gm27-file-actions a:visited{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:8px 12px;border-radius:9px;font-size:.9rem;line-height:1.35;font-weight:650;text-decoration:none;white-space:nowrap;color:#195676;background:transparent}
main .gm27-file-actions .gm27-file-open,main .gm27-file-actions .gm27-file-open:visited{background:#eaf1f4;color:#173f56}
main .gm27-file-actions a:hover{background:#dae7ed;text-decoration:underline;text-underline-offset:.16em}
main .gm27-file-actions .gm27-file-source{font-size:.82rem;padding-left:6px;padding-right:6px}
main .gm26-doc-grid{grid-template-columns:minmax(0,1fr);gap:0}
main .gm26-doc-grid .gm27-file-row{margin-bottom:0}
main .gm27-file-row:focus-within{border-color:#326680}
/* Liens PDF/Word dans le texte: conserver la phrase, rendre le lien reconnaissable. */
main :is(.rich,.page-body,.entry-content,.post-content) a:is([href$=".pdf" i],[href*=".pdf?" i],[href*=".pdf#" i],[href$=".docx" i],[href$=".doc" i]):not(:where(.gm27-file-row *, .doc-row *, .btn, .doc-dl, .doc-action, .wp-block-file *)) {color:#195676;text-decoration:underline;text-underline-offset:.18em;font-weight:600;overflow-wrap:anywhere}
main :is(.rich,.page-body,.entry-content,.post-content) a:is([href$=".pdf" i],[href*=".pdf?" i],[href*=".pdf#" i]):not(:where(.gm27-file-row *, .doc-row *, .btn, .doc-dl, .doc-action, .wp-block-file *))::before{content:"PDF";display:inline-block;background:#eaf1f4;color:#24516a;border-radius:5px;font-size:.65rem;font-weight:800;padding:1px 5px;margin-right:6px;vertical-align:middle;text-decoration:none}
@media(max-width:1000px){main .gm27-file-row{grid-template-columns:42px minmax(0,1fr);gap:10px 12px}main .gm27-file-badge{width:42px;height:44px}main .gm27-file-actions{grid-column:2;justify-content:flex-start}}
@media(max-width:480px){main .gm27-file-row{padding:12px;gap:8px 10px}main .gm27-file-title{font-size:1rem}main .gm27-file-actions{grid-column:1/-1;justify-content:flex-end}main .gm27-file-actions a{min-height:44px;padding:8px 11px}}

/* Aliniere carduri și accesibilitate discretă — 27.10.2026 */
.home .gpr-area.gm27-home-fold>.wrap{width:min(1160px,calc(100% - 48px))}
.home .gpr-area.gm27-home-fold{border-top:0;border-bottom:0;box-shadow:none}
#a11y-open.a11y-trigger{width:48px;height:48px;min-width:48px;min-height:48px;padding:10px;gap:0}
#a11y-open .a11y-trigger-label{display:none}

@media(max-width:640px){.home .gpr-area.gm27-home-fold>.wrap{width:min(1160px,calc(100% - 32px))}}
