@import url('/fonts.css');
:root{--h-bg:#0c1512;--h-panel:#14221c;--h-panel-alt:#1c3026;--h-line:#30463a;--h-text:#f0f5ea;--h-muted:#b0c2b6;--h-accent:#c3ed73;--h-orange:#f2ac7f;--h-input:#101c16;color-scheme:dark}
html[data-theme=light]{--h-bg:#f3f5ee;--h-panel:#fff;--h-panel-alt:#e9f0e2;--h-line:#c9d5c3;--h-text:#173025;--h-muted:#4c6455;--h-accent:#386d1f;--h-orange:#a64d20;--h-input:#f6f8f2;color-scheme:light}
.platform-page{margin:0;background:radial-gradient(ellipse at 0 0,#7da04c1a,transparent 45rem),var(--h-bg);color:var(--h-text);font:15px/1.6 'DM Sans',system-ui,-apple-system,"Segoe UI",sans-serif;min-height:100vh}
.platform-page *,.platform-header-tools *{box-sizing:border-box}
.platform-page a{color:var(--h-accent)}
.platform-page button,.platform-page input,.platform-page select,.platform-page textarea{font:inherit}
.platform-page button,.platform-page a,.platform-header-tools a,.platform-header-tools button{touch-action:manipulation}
.platform-page button{cursor:pointer}
.platform-page [hidden]{display:none!important}
.platform-page :is(a,button,input,select,textarea):focus-visible,.platform-header-tools :is(a,button,summary,select):focus-visible{outline:3px solid var(--h-orange);outline-offset:3px}
.platform-sr{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;clip-path:inset(50%);overflow:hidden;white-space:nowrap}
.platform-top{max-width:1240px;margin:auto;padding:20px 28px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--h-line)}
.platform-page .platform-wordmark{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--h-text);font-size:22px;font-weight:850;letter-spacing:.09em}
.platform-wordmark small{display:block;color:var(--h-muted);font-size:9px;letter-spacing:.15em}
.platform-header-tools{display:flex;align-items:center;justify-content:flex-end;gap:10px;color:var(--h-text);font:13px/1.4 system-ui;letter-spacing:0}
.platform-language{display:block}
.platform-language select{background:var(--h-panel);color:var(--h-text);border:1px solid var(--h-line);border-radius:10px;padding:9px 6px;min-height:40px;font-size:12px;cursor:pointer}
.platform-icon{display:grid;place-items:center;min-width:40px;min-height:40px;border-radius:10px;border:1px solid var(--h-line);background:var(--h-panel);color:var(--h-accent);font-size:24px;cursor:pointer}
.platform-account{display:flex;align-items:center;gap:10px}
@media (max-width: 400px) {
  .platform-top { flex-wrap: wrap; }
  .platform-top > hackory-header { min-width: 0; max-width: 100%; margin-inline-start: auto; }
  .platform-top .platform-header-tools { flex-wrap: wrap; }
}
.platform-admin-link{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:7px 12px;border:1px solid var(--h-accent);border-radius:10px;color:var(--h-accent);font-weight:800;text-decoration:none;white-space:nowrap}
.platform-header-tools .platform-admin-link{color:var(--h-accent)}
.platform-admin-link:hover{background:var(--h-panel-alt)}
.platform-signin,.platform-signup{padding:9px 12px;text-decoration:none;font-weight:750;color:var(--h-text);border:1px solid var(--h-line);border-radius:10px;white-space:nowrap}
a.platform-signup,.platform-page a.platform-signup{color:var(--h-bg);background:var(--h-accent);border-color:var(--h-accent)}
.platform-user-menu{position:relative}
.platform-user-link{display:flex;align-items:center;gap:8px;min-height:40px;padding:4px 8px 4px 4px;border:1px solid var(--h-line);border-radius:11px;color:var(--h-text);font-weight:700;text-decoration:none;white-space:nowrap}
.platform-header-tools .platform-user-link{color:var(--h-text)}
.platform-user-link:hover{background:var(--h-panel-alt)}
.platform-user-link img{border-radius:8px;object-fit:cover}
.platform-toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);z-index:300;background:var(--h-panel);color:var(--h-accent);border:1px solid var(--h-accent);border-radius:12px;padding:12px 20px;box-shadow:0 10px 35px #0003;max-width:90vw;font:14px/1.6 system-ui}
.platform-toast[data-error=true]{border-color:var(--h-orange);color:var(--h-orange)}
.account-layout{max-width:1110px;margin:70px auto 100px;padding:0 28px;display:grid;grid-template-columns:1fr 1fr;gap:80px;align-items:start}
.account-story{padding:35px 0;position:sticky;top:40px}
.platform-eyebrow{font:750 11px/1.6 ui-monospace,monospace;color:var(--h-accent);letter-spacing:.16em;text-transform:uppercase}
.account-story h1,.community-hero h1{font-size:clamp(40px,5vw,66px);line-height:1.05;letter-spacing:-.055em;margin:20px 0 24px}
.account-story p{font-size:17px;color:var(--h-muted);max-width:360px}
.account-graphic{margin:45px 0 25px;display:grid;grid-template-columns:repeat(3,1fr);gap:12px;max-width:280px;transform:rotate(-3deg)}
.account-graphic img{width:100%;border:1px solid var(--h-line);border-radius:20px;background:var(--h-panel);box-shadow:0 8px 20px #0002}
.platform-card{background:var(--h-panel);border:1px solid var(--h-line);border-radius:22px;padding:32px;min-width:0}
.platform-card h2{font-size:27px;line-height:1.2;letter-spacing:-.03em;margin:0 0 24px}
.platform-form{display:grid;gap:18px}
.platform-field{display:grid;gap:7px;font-size:13px;font-weight:700}
.platform-field input,.platform-field textarea,.platform-field select,.leaderboard-filters select{width:100%;min-height:46px;background:var(--h-input);color:var(--h-text);border:1px solid var(--h-line);border-radius:10px;padding:11px 13px;font-weight:400;min-width:0}
.platform-field small,.platform-help{font-size:12px;font-weight:400;line-height:1.6;color:var(--h-muted)}
#verification-recipient bdi{overflow-wrap:anywhere}
.platform-field textarea{resize:vertical}
.platform-page .platform-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:11px 18px;background:var(--h-accent);color:var(--h-bg);border:1px solid var(--h-accent);border-radius:10px;font-size:14px;font-weight:800;text-decoration:none;transition:transform .16s}
.platform-button:hover{transform:translateY(-2px)}
.platform-button:disabled{opacity:.6;cursor:wait}
.platform-page .platform-button.secondary{background:transparent;color:var(--h-text);border-color:var(--h-line)}
.platform-form-nav{display:flex;flex-wrap:wrap;gap:14px;justify-content:space-between;margin-top:20px}
.platform-form-nav a{font-size:13px}
.platform-feedback{color:var(--h-accent);font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.platform-feedback[data-error=true]{color:var(--h-orange)}
.settings-shell{max-width:980px;margin:55px auto 100px;padding:0 28px}
.settings-title{font-size:clamp(34px,5vw,50px);letter-spacing:-.045em;line-height:1.1;margin:14px 0}
.settings-intro{color:var(--h-muted);max-width:650px;margin-bottom:30px}
.settings-grid{display:grid;grid-template-columns:220px minmax(0,1fr);gap:25px}
.settings-avatar-preview{width:110px;height:110px;object-fit:cover;border:1px solid var(--h-line);border-radius:24px}
.avatar-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:16px 0}
.avatar-choice{padding:3px;border:2px solid transparent;border-radius:12px;background:var(--h-panel-alt);min-width:44px;min-height:44px}
.avatar-choice[aria-pressed=true]{border-color:var(--h-accent)}
.avatar-choice img{display:block;width:100%;height:auto;border-radius:8px}
.avatar-upload{display:block;font-size:12px;font-weight:700;margin-top:18px}
.avatar-upload input{font-size:11px;width:100%;margin-top:9px}
.settings-avatar h2{font-size:16px}
.settings-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.settings-fields .full{grid-column:1/-1}
.platform-checkbox{display:flex;gap:10px;align-items:start;font-size:14px;cursor:pointer}
.platform-checkbox input{width:18px;height:18px;accent-color:var(--h-accent);flex:none;margin-top:3px}
.settings-security{margin-top:28px}
.settings-security form{max-width:480px}
.community-shell{max-width:1100px;margin:55px auto 100px;padding:0 28px}
.community-hero{max-width:850px;margin-bottom:35px}
.community-hero p{color:var(--h-muted);font-size:17px}
.leaderboard-filters{display:flex;gap:16px;flex-wrap:wrap;margin:25px 0}
.leaderboard-filters label{min-width:180px;max-width:300px;flex:1}
.leaderboard-scroll{overflow:auto;border:1px solid var(--h-line);border-radius:16px;background:var(--h-panel)}
.leaderboard-table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}
.leaderboard-table th{color:var(--h-muted);font-size:11px;text-transform:uppercase;letter-spacing:.06em;background:var(--h-panel-alt)}
.leaderboard-table th,.leaderboard-table td{padding:16px;border-bottom:1px solid var(--h-line)}
.leaderboard-table tbody tr:last-child td{border:0}
.leaderboard-person{display:flex;align-items:center;gap:12px;text-decoration:none}
.leaderboard-person img{width:35px;height:35px;border-radius:9px;object-fit:cover}
.leaderboard-xp{text-align:right;font-variant-numeric:tabular-nums}
/* Phones (M12): position, student and XP only. A fixed layout keeps the XP column inside the card with its own margin,
   and a long name is shortened with an ellipsis instead of pushing the table sideways. */
@media (max-width:640px){.leaderboard-table .leaderboard-secondary{display:none}.leaderboard-table{table-layout:fixed;white-space:normal}.leaderboard-table th,.leaderboard-table td{padding:12px 8px}.leaderboard-table th:first-child,.leaderboard-table td:first-child{width:3.1rem;padding-inline-start:14px}.leaderboard-table th.leaderboard-xp,.leaderboard-table td.leaderboard-xp{width:5.6rem;padding-inline-end:16px;white-space:nowrap}.leaderboard-person{min-width:0;gap:10px}.leaderboard-person img{flex:none;width:32px;height:32px}.leaderboard-person span{min-width:0;flex:1}.leaderboard-person strong,.leaderboard-person small{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
.leaderboard-person strong{display:block;color:var(--h-text);font-size:14px}
.leaderboard-person small{display:block;color:var(--h-muted);font-size:12px}
.profile-hero{padding:30px 34px 25px;border:1px solid var(--h-line);border-radius:23px;background:linear-gradient(115deg,var(--h-panel-alt),var(--h-panel) 68%);overflow:hidden}
.profile-heading{display:flex;align-items:center;gap:24px;flex-wrap:wrap;margin:16px 0 20px}
.profile-heading img{width:110px;height:110px;border-radius:24px;object-fit:cover}
.profile-heading h1{font-size:38px;line-height:1.2;letter-spacing:-.04em;margin:0;overflow-wrap:anywhere}
.profile-heading p{margin:5px 0;color:var(--h-muted)}
.profile-bio{color:var(--h-text);font-size:16px;max-width:700px;white-space:pre-wrap;overflow-wrap:anywhere}
.profile-links{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0 0}
.profile-links a{border:1px solid var(--h-line);padding:7px 12px;border-radius:8px;text-decoration:none}
.profile-layout{display:grid;grid-template-columns:minmax(0,1fr) 225px;gap:22px;align-items:start;margin-top:22px}
.profile-layout-public{display:block}
.profile-account-aside{position:sticky;top:20px;padding:22px}
.profile-account-aside h2{font-size:16px;margin:0 0 15px}
.profile-actions{display:grid;gap:7px}
.profile-action{display:inline-flex;align-items:center;justify-content:flex-start;min-height:42px;padding:9px 14px;border:1px solid var(--h-line);border-radius:10px;background:var(--h-panel);color:var(--h-text);font-weight:700;text-align:left;text-decoration:none;cursor:pointer;transition:background .16s,transform .16s}
.platform-page .profile-action{color:var(--h-text)}
.profile-action:hover{background:var(--h-panel-alt);transform:translateY(-2px)}
.profile-signout{width:100%}
.platform-page .profile-signout{font-weight:700}
.profile-stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:0 0 25px}
.profile-stat{padding:22px;border:1px solid var(--h-line);border-radius:15px;background:var(--h-panel)}
.profile-stat strong{display:block;font-size:30px;letter-spacing:-.04em;line-height:1.3}
.profile-stat span{font-size:12px;color:var(--h-muted)}
.profile-programming{margin:-12px 0 24px;font-size:14px;color:var(--h-muted)}.profile-programming a{color:inherit}.profile-programming strong{color:var(--h-text,inherit)}
.profile-content{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.profile-content .platform-card h2{font-size:20px}
.profile-skill{display:flex;gap:12px;align-items:center;justify-content:space-between;border-top:1px solid var(--h-line);padding:12px 0;font-size:13px}
.profile-rank{margin:0 0 28px}
.profile-achievements{margin:0 0 20px}
.profile-rank h2{font-size:16px;margin:0 0 10px}
.profile-rank p{margin:7px 0 0}
.profile-next{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 26px;padding:24px 28px;border:1px solid var(--h-line);border-radius:18px;background:var(--h-panel-alt)}
.profile-next h2{font-size:23px;line-height:1.25;letter-spacing:-.025em;margin:5px 0}
.profile-next p{max-width:650px;color:var(--h-muted);margin:0}
.profile-next .profile-action{flex:none;background:var(--h-accent);border-color:var(--h-accent)}
.platform-page .profile-next .profile-action{color:var(--h-bg)}
.profile-activity{margin-top:20px}
.profile-activity h2{font-size:20px}
.profile-activity-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:13px 0;border-top:1px solid var(--h-line)}
.profile-activity-row strong,.profile-activity-row small{display:block}
.profile-activity-row strong{font-size:14px}
.profile-activity-row small{font-size:12px;color:var(--h-muted);margin-top:3px}
.profile-activity-xp{color:var(--h-accent);font:700 12px/1.4 ui-monospace,monospace;white-space:nowrap}
.profile-friends{margin:0 0 24px;padding:22px 26px}
.profile-friends-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.profile-friends-heading h2{font-size:20px;margin:0}
.profile-friends-heading .profile-action{font-size:12px;min-height:36px}
.profile-friends-count{margin:15px 0 4px;font:700 28px/1.2 'Space Grotesk',sans-serif;color:var(--h-text)}
.profile-friends-note{margin:6px 0 14px;color:var(--h-muted);font-size:13px;line-height:1.5}
.profile-friends h3{font-size:13px;margin:20px 0 7px;text-transform:uppercase;letter-spacing:.08em;color:var(--h-muted)}
.profile-friends-list{list-style:none;padding:0;margin:0;display:grid;gap:0}
.profile-friends-list li{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:11px 0;border-top:1px solid var(--h-line);font-size:13px}
.profile-friend-person{display:inline-flex;align-items:center;gap:10px;text-decoration:none;min-width:130px;color:var(--h-text)}
.profile-friend-person img{width:34px;height:34px;border-radius:9px;object-fit:cover}
.profile-friends-list li>span{color:var(--h-muted);flex:1 1 140px}
.profile-friends-list small{color:var(--h-muted)}
.rank-progress{height:8px;width:100%;accent-color:var(--h-accent)}
.platform-top .brand-mark{width:42px;height:42px}
.topbar:has(hackory-header){height:auto;min-height:69px;gap:16px;padding-top:12px;padding-bottom:12px;flex-wrap:wrap}
.study-save-status{display:grid;gap:7px;padding:12px 0;color:var(--h-muted);font:11px/1.6 system-ui}
.study-save-status button{border:1px solid var(--h-line);border-radius:7px;background:var(--h-panel);color:var(--h-accent);font:inherit;padding:7px 9px;cursor:pointer;text-align:left}
.sql-instance-tools{border:1px solid var(--h-line);background:var(--h-panel);border-radius:12px;padding:15px;margin:20px 0;display:flex;flex-direction:column;gap:12px;color:var(--h-muted);font:13px/1.6 system-ui}
.sql-instance-tools>div{display:flex;flex-wrap:wrap;gap:8px}
.sql-instance-tools [hidden]{display:none!important}
@media(max-width:900px){.account-layout{gap:30px;margin-top:30px}.platform-signup{display:none}.settings-grid{grid-template-columns:190px minmax(0,1fr)}.platform-card{padding:24px}.profile-stat-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:850px){.profile-layout{grid-template-columns:minmax(0,1fr) 195px;gap:16px}.profile-stat-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:650px){.platform-top{padding:15px 18px;gap:10px}.platform-wordmark{font-size:17px;gap:8px}.platform-wordmark small{display:none}.platform-top .brand-mark{width:34px;height:34px;border-radius:10px}.platform-header-tools{gap:6px}.platform-user-link{padding:3px}.platform-user-link span{display:none}.platform-signin{padding:9px;font-size:12px}.account-layout{display:block;padding:0 18px;margin-bottom:60px}.account-story{padding:10px 0 20px;position:static}.account-story h1{font-size:38px;margin:18px 0}.account-story p{font-size:15px;max-width:none}.account-graphic{display:none}.settings-shell,.community-shell{padding:0 18px;margin-top:30px}.settings-grid{grid-template-columns:1fr}.settings-avatar{display:grid;grid-template-columns:80px 1fr;gap:10px 18px;align-items:start}.settings-avatar-preview{width:80px;height:80px}.settings-avatar h2{grid-column:1/-1;margin:0}.avatar-gallery{grid-template-columns:repeat(6,1fr);margin:0}.avatar-upload,.settings-avatar .platform-help{grid-column:1/-1}.settings-fields,.profile-content{grid-template-columns:1fr}.settings-fields .full{grid-column:auto}.profile-hero{padding:24px}.profile-layout{display:flex;flex-direction:column}.profile-account-aside{position:static;order:-1;width:100%}.profile-actions{grid-template-columns:1fr 1fr}.profile-heading h1{font-size:30px}.profile-heading img{width:80px;height:80px}.profile-next{display:block}.profile-next .profile-action{margin-top:16px}.profile-stat{padding:16px}.leaderboard-filters{gap:12px}.leaderboard-filters label{min-width:130px}.platform-icon{min-width:36px;min-height:38px}.platform-language select{padding:8px 2px}}
@media(prefers-reduced-motion:reduce){.platform-button{transition:none}}
@media(max-width:900px){.leaderboard-page .platform-signup{display:inline-flex}}
@media(max-width:650px){.leaderboard-page .platform-top{flex-wrap:wrap}.leaderboard-page hackory-header{width:100%}.leaderboard-page .platform-header-tools{justify-content:space-between;flex-wrap:wrap}.leaderboard-page .platform-signup{padding:9px 10px;font-size:12px}}
@media(max-width:420px){.platform-top:has(.platform-admin-link) .platform-wordmark>span:last-child{display:none}.platform-admin-link{padding:7px 9px}}
.skill-progress{display:block;width:100%;height:6px;accent-color:var(--h-accent);margin:0 0 18px}
@media(max-width:650px){.settings-avatar .avatar-gallery{grid-template-columns:repeat(3,minmax(44px,1fr))}}
.format-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:24px 0 48px}
.format-overview article{display:flex;flex-direction:column;align-items:flex-start;min-width:0;padding:24px;border:1px solid var(--h-line);border-radius:16px;background:var(--h-panel);color:var(--h-text)}
.format-overview-number{font:750 11px/1.4 ui-monospace,monospace;letter-spacing:.1em;color:var(--h-accent)}
.format-overview h2{font-size:20px;line-height:1.2;margin:14px 0 8px}
.format-overview p{font-size:14px;line-height:1.55;color:var(--h-muted);margin:0 0 20px}
.format-overview button{margin-top:auto;border:0;background:transparent;color:var(--h-accent);padding:8px 0;font:750 13px/1.4 system-ui;cursor:pointer;text-align:left}
.format-overview button:focus-visible{outline:3px solid var(--h-orange);outline-offset:3px}
.format-section{margin:38px 0 64px;scroll-margin-top:24px}
.format-section .section-heading{margin-bottom:22px}
.instance-lab-card .lab-card-top>span:last-child{color:var(--h-accent)}
.lab-format-note{border-left:3px solid var(--h-accent);padding:8px 12px;background:var(--h-panel);color:var(--h-text);font-size:13px;line-height:1.5;max-width:680px}
@media(max-width:850px){.format-overview{grid-template-columns:1fr}.format-overview article{padding:20px}}
.study-local-import{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin:12px 24px;padding:16px 18px;border:1px solid var(--h-line);border-radius:12px;background:var(--h-panel);color:var(--h-text)}
.study-local-import>div:first-child{flex:1 1 360px}.study-local-import strong{display:block;font:700 16px/1.3 'Space Grotesk',sans-serif}.study-local-import p{margin:5px 0 0;color:var(--h-muted);font-size:13px;line-height:1.5}.study-local-import-actions{display:flex;gap:8px;flex-wrap:wrap}.study-local-import-actions button{padding:9px 12px;border:1px solid var(--h-line);border-radius:8px;background:var(--h-accent);color:var(--h-bg);font:700 12px/1.2 'DM Sans',sans-serif;cursor:pointer}.study-local-import-actions button+button{background:transparent;color:var(--h-text)}.study-local-import-actions button:focus-visible{outline:3px solid var(--h-orange);outline-offset:2px}.study-local-import-actions button:disabled{opacity:.55;cursor:wait}.study-local-import-feedback:empty{display:none}
@media(max-width:650px){.study-local-import{margin:10px 14px;align-items:stretch}.study-local-import-actions{width:100%}}

[data-open-attempts] {
  max-width: 62rem;
  min-width: 0;
  margin-block: 1rem;
  padding: clamp(.9rem, 2vw, 1.3rem);
  border: 1px solid var(--h-line);
  border-inline-start: .2rem solid var(--h-accent);
  border-radius: .5rem;
  background: var(--h-panel);
  color: var(--h-text);
  overflow-wrap: anywhere;
}
[data-open-attempts] h3 { margin: 0; font: 650 1.2rem/1.35 'Space Grotesk', system-ui, sans-serif; }
[data-open-attempts] p { max-width: 70ch; margin: .4rem 0; color: var(--h-text); line-height: 1.5; }
[data-open-attempts] ul { margin: .75rem 0; padding: 0; list-style: none; }
[data-open-attempts] li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, auto); align-items: center; gap: .4rem 1rem; border-top: 1px solid var(--h-line); padding-block: .15rem; }
[data-open-attempts] a { display: inline-flex; align-items: center; min-height: 44px; width: fit-content; color: var(--h-accent); font-weight: 650; text-decoration: underline; text-underline-offset: .18em; }
[data-open-attempts] small { color: var(--h-muted); }
[data-open-attempts] button { min-height: 44px; max-width: 100%; margin-top: .5rem; white-space: normal; }
[data-open-attempts] :is(h3,a,button):focus-visible { outline: 3px solid var(--h-accent); outline-offset: 3px; }
@media (max-width: 42rem) {
  [data-open-attempts] li { grid-template-columns: 1fr; gap: 0; padding-block-end: .45rem; }
}

/* Academy home footer: link back to the public landing, support and official social accounts. Hidden on the public landing itself. */
.academy-home-footer{display:grid;gap:18px;margin:48px 0 24px;padding:28px;border:1px solid var(--h-line,#2a3b33);border-radius:16px;background:var(--h-panel,transparent)}
.academy-home-footer h2{margin:0 0 6px;font-size:20px}
.academy-home-footer p{margin:0;color:var(--h-muted,inherit);line-height:1.6}
.academy-home-footer-actions,.academy-home-footer-social{display:flex;flex-wrap:wrap;gap:10px;margin:0;padding:0;list-style:none}
.academy-home-footer-link,.academy-home-footer-social a{display:inline-flex;align-items:center;min-height:44px;padding:8px 16px;border:1px solid var(--h-line,currentColor);border-radius:999px;font-weight:700;text-decoration:none;color:inherit}
.academy-home-footer-link:hover,.academy-home-footer-link:focus-visible,.academy-home-footer-social a:hover,.academy-home-footer-social a:focus-visible{border-color:#9fc23c;text-decoration:underline}
body.public-landing .academy-home-footer{display:none}

/* Account forms (beginner QA, Zona 1): the username rule turns into an error while typing, and the loose text links
   under the forms get a 44 px tall touch area without moving anything on screen. */
.platform-field input[aria-invalid=true]{border-color:var(--h-orange)}
.platform-field small[data-error=true]{color:var(--h-orange)}
.platform-form-nav{row-gap:24px}
:is(.platform-form-nav,.account-story)>a{position:relative}
:is(.platform-form-nav,.account-story)>a::after{content:'';position:absolute;left:0;right:0;top:50%;height:max(100%,44px);transform:translateY(-50%)}
/* Header controls (language, theme, account links) keep a 44 px touch target. */
.platform-header-tools :is(a,button,select){min-height:44px}
.platform-header-tools :is(a,button){display:inline-flex;align-items:center;justify-content:center}
.platform-header-tools button{min-width:44px}
.academy-home-footer-legal{display:flex;flex-wrap:wrap;gap:4px 22px}
.academy-home-footer-legal a{display:inline-flex;align-items:center;min-height:44px;color:inherit;text-underline-offset:.2em}

/* Community pages (ranking, profiles, friends): a visible way back to the academy, also on phones (I15). */
.platform-academy-link{display:inline-flex;align-items:center;min-height:44px;margin-inline-end:auto;padding:8px 14px;border:1px solid var(--h-line);border-radius:10px;font:750 13px/1.2 system-ui;text-decoration:none;white-space:nowrap}
.platform-page a.platform-academy-link{color:var(--h-text)}
.platform-page a.platform-academy-link:hover{border-color:var(--h-accent);color:var(--h-accent)}
@media(max-width:650px){.community-top{flex-wrap:wrap;row-gap:8px}.community-top .platform-academy-link{margin-inline:auto 0}.community-top>hackory-header{flex:1 0 100%}.community-top .platform-header-tools{justify-content:space-between;flex-wrap:wrap}}
/* Sentences for visitors only or for signed-in learners only (platform-ui.js sets html[data-session]). Hidden until the
   session is known, so nobody sees the wrong one first (M3). */
html:not([data-session=guest]) [data-session-only=guest],html:not([data-session=member]) [data-session-only=member]{display:none!important}
/* One lime action per page: in the academy and the standalone routes "Crear cuenta" stays visible as a secondary
   button next to "Entrar" (punto 33 de la auditoría de lanzamiento). */
.app-shell .topbar a.platform-signup,.shell .topbar a.platform-signup{color:var(--h-text);background:transparent;border-color:var(--h-accent)}
.app-shell .topbar a.platform-signup:hover,.shell .topbar a.platform-signup:hover{background:var(--h-panel-alt)}
/* Bounty programs: age and conditions of each platform, before the list (I12). */
.programs-age-note{align-items:flex-start;margin:4px 0 26px;border-color:var(--h-accent);font-size:14px;line-height:1.6}
.programs-age-note .note-icon{margin-top:3px}
.programs-age-note strong{display:block;margin-bottom:4px;font-size:16px;line-height:1.4}
.programs-age-note a.programs-age-link{display:inline-flex;align-items:center;min-height:44px;margin-top:4px;color:var(--h-accent);font-weight:800;text-decoration:underline;text-underline-offset:4px}
.programs-age-note a.programs-age-link::after{content:' →';white-space:pre}
.programs-age-note a.programs-age-link:focus-visible{outline:3px solid var(--h-orange);outline-offset:3px}
/* Until platform-ui.js defines the header, its row keeps its height on phones, so the page does not jump when the
   language, theme and account controls appear (CLS). On community pages the header always has its own row. */
@media (max-width: 400px){.platform-top>hackory-header:not(:defined){display:block;flex:1 0 100%;min-height:44px}}
@media (max-width: 650px){.community-top>hackory-header:not(:defined){display:block;flex:1 0 100%;min-height:44px}}
/* On the account page the forms already offer "Entrar" and "Crear cuenta": on phones the header does not repeat the
   second one (the 44 px rule above had made it visible again). */
@media(max-width:900px){body:has(.account-layout) .platform-header-tools a.platform-signup{display:none}}
/* The links of the academy home block "Tu camino" show the same focus ring as the rest of the academy. */
#view-inicio .home-path :is(a,button):focus-visible{outline:3px solid var(--h-orange);outline-offset:3px}
