/* Repeatable education records and one consistent select affordance. */
.field .select-control{position:relative;width:100%;min-width:0}
.field .select-control>select{display:block;width:100%;min-width:0;appearance:none;-webkit-appearance:none;background-image:none;padding-right:46px;text-overflow:ellipsis;line-height:1.5}
.select-control>.select-chevron{position:absolute;right:16px;top:50%;width:16px;height:16px;display:grid;place-items:center;transform:translateY(-50%);pointer-events:none;color:var(--muted)}
.select-control>.select-chevron>.icon{position:static;inset:auto;width:16px;height:16px;transform:rotate(90deg);stroke-width:1.8;display:block}
.select-control:focus-within>.select-chevron{color:var(--ink)}
.education-entries{display:grid;gap:18px}
.education-entries>.education-entry{margin:0;padding:24px;min-width:0}
.education-entry .entry-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}
.education-entry .entry-head>b{font-size:14px;white-space:nowrap}
.education-row-actions{display:flex;align-items:center;gap:4px;flex:none}
.education-row-actions .btn{min-width:32px;min-height:32px;padding:5px 9px;font-size:13px;line-height:1.3}
.education-row-actions .btn:last-child{margin-left:5px;font-size:11px}
.education-row-actions .btn:disabled{opacity:.3}
.education-entry .fields-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.education-entry .education-school-type>.field:only-child{grid-column:1/-1}
.education-entry .field{min-width:0}
.education-entry .field input,.education-entry .field select{min-width:0;max-width:100%}
.education-entry .education-years .field{margin-bottom:0}
.education-years .field-label{display:block;margin-bottom:8px;font-size:12px;font-weight:650;line-height:1.5}
.education-current{display:flex;align-items:center;min-height:48px;padding:12px 15px;border:1px solid var(--line);border-radius:10px;background:var(--surface-input,var(--paper));color:var(--muted);font-size:13px;line-height:1.5}
.education-add-hint{margin-top:12px!important}
.education-summary-entry+.education-summary-entry{margin-top:15px;padding-top:15px;border-top:1px solid var(--line)}
.education-summary-entry>b{display:block;font-weight:700;line-height:1.6;overflow-wrap:anywhere}
.education-summary-entry>p{margin:4px 0 0;line-height:1.6}
.education-summary-entry>.education-period{color:var(--muted);font-variant-numeric:tabular-nums;font-size:.92em}
.resume-preview .education-summary-entry{font-size:12px}
.resume-preview .education-summary-entry>p{font-size:11px}
.education-entries>.education-entry.is-collapsed{padding:18px 20px}
.education-record-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px}
.education-toggle{display:flex;align-items:center;gap:12px;min-width:0;width:100%;min-height:44px;padding:0;border:0;background:transparent;color:var(--ink);text-align:left;font:inherit;cursor:pointer}
.education-row-number{align-self:flex-start;margin-top:3px;font:600 10px/1.6 var(--font);color:var(--muted);font-variant-numeric:tabular-nums}
.education-record-title{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px}
.education-record-title>strong{font-size:14px;font-weight:700;line-height:1.5;overflow-wrap:anywhere}
.education-record-title>span{font-size:12px;line-height:1.55;color:var(--muted);overflow-wrap:anywhere}
.education-record-title>small{font-size:11px;line-height:1.5;color:var(--muted);font-variant-numeric:tabular-nums}
.education-record-title>small:empty{display:none}
.education-toggle-label{display:flex;align-items:center;gap:5px;font-size:11px;color:var(--muted);white-space:nowrap}
.education-toggle-label>.icon{width:13px;height:13px;transform:rotate(90deg)}
.education-entry.is-editing .education-toggle-label>.icon{transform:rotate(-90deg)}
.education-record-tools>span{display:none}
.education-record-tools .education-row-actions{justify-content:flex-end}
.education-editor{padding-top:22px;margin-top:20px;border-top:1px solid var(--line)}
.education-editor[hidden]{display:none}
.education-done{display:flex;justify-content:flex-end;margin-top:20px}
.education-done>.btn{min-height:40px}
@media(max-width:740px){
  .education-entries{gap:14px}
  .education-entries>.education-entry{padding:17px 13px}
  .education-entry .entry-head{margin-bottom:17px;gap:8px}
  .education-entry .entry-head>b{font-size:13px}
  .education-entry .fields-row{gap:12px}
  /* the major gets the whole row on phones, so a long name isn't cut */
  .education-entry .education-major{grid-template-columns:minmax(0,1fr)}
  .education-entry .field select{padding-right:34px}
  .education-entry .select-chevron{right:10px}
  .education-years .field-label{font-size:11px}
  .education-current{min-height:47px;padding:11px 12px;font-size:13px}
  .education-entries>.education-entry.is-collapsed{padding:16px 14px 10px}
  .education-record-head{grid-template-columns:minmax(0,1fr);gap:7px}
  .education-toggle{gap:9px}
  .education-record-title>strong{font-size:14px}
  .education-record-title>span{font-size:11px}
  .education-record-title>small{font-size:10px}
  .education-record-tools .education-row-actions{gap:8px}
  .education-editor{padding-top:18px;margin-top:12px}
}

/* Completed records form a compact list inside the shared form panel. */
.education-entries{gap:0}.education-entries>.education-entry{background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:20px 0}.education-entries>.education-entry:first-child{padding-top:0}.education-entry .entry-head{margin-bottom:0}.education-entry.is-expanded .entry-head{margin-bottom:20px}

/* Academic records share the numbered editing checkpoints of other entries. */
.education-row-number{display:grid;place-items:center;flex:0 0 24px;min-height:24px;margin-top:1px;border:1px solid #ffffff0e;border-radius:7px;background:#ffffff03;color:#8f9caf;font-size:10px;line-height:1}
.education-entry.is-editing .education-row-number{background:#3de8c60a;border-color:#3de8c62c;color:#9be8d5}
.education-entry.is-editing .education-record-head{padding:8px 10px;margin:-8px -10px;border-radius:10px;background:linear-gradient(90deg,#3de8c608,transparent 85%)}
.education-toggle-label,.education-toggle-label>.icon{transition:color .16s ease,transform .16s ease}
.education-entry.is-editing .education-toggle-label{color:#a0d6c9}
.education-current{background:#3de8c606;border-color:#3de8c624;color:#a8d6cb}
.education-entry input[type="month"]{min-width:0;max-width:100%;font-variant-numeric:tabular-nums}
@media(hover:hover){.education-toggle:hover .education-record-title>strong{color:#d0fff0}}
@media(max-width:740px){
  .education-entry .education-years{grid-template-columns:minmax(0,1fr);gap:18px}
  .education-row-number{flex-basis:22px;min-height:22px;font-size:9px}
  .education-entry.is-editing .education-record-head{padding:7px 8px;margin:-7px -8px}
}
@media(max-width:360px){.education-entry .education-school-type{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.education-toggle-label,.education-toggle-label>.icon{transition:none}}
