/* Copyright (c) 2026 Amped RE Technologies, LLC. All rights reserved. Licensed to HANFRA. */
/* hanfra-office: assets/portal.css. The member portal on /portal/ (2026-11-02, t26-portal), over the theme's own classes and colors. Phone first: one column under 640 px, targets at least 44 px, tables as stacked rows. */

.hfm{display:flex;flex-direction:column;gap:1.4rem;min-width:0}
.hfm h2{font-size:clamp(1.3rem,3vw,1.7rem);margin:0 0 .6rem}
.hfm h3{font-family:var(--body);font-size:1.02rem;font-weight:600;color:var(--text);margin:0 0 .4rem}
.hfm p + p{margin-top:.5rem}
.hfm .notice{max-width:none;margin-bottom:0}
.hfm .notice.hfm-warn{border-left-color:var(--gold)}
.hfm .form{max-width:none}
.hfm .fld input,.hfm .fld select,.hfm .fld textarea{min-height:44px;font-size:16px}
.hfm .fld.check input{min-height:0;width:20px;height:20px;margin-top:.2rem}
.hfm .fld.check{min-height:44px;align-items:center}
.hfm .fld.check .hint{display:block;margin-top:.15rem} /* a box's hint on its own line under the label, not run into it */
/* My CE record (2026-11-12): the three tiles, the hours table's Electives and Total rows, and the 4-step certificate form.
   Mike's second look: darker type, and fields no wider than what goes in them. */
.hfm-ce p,.hfm-ce li,.hfm-ce td,.hfm-ce th,.hfm-ce .tile .s,.hfm-ce legend{color:var(--text)}
.hfm-ce .muted,.hfm-ce .hint,.hfm-ce .tag{color:var(--text-2)}
.hfm-ce .tile .k,.hfm-ce .fld label{color:var(--text-2)}
.hfm-ce .fld label{font-size:.68rem}
.hfm-ce-dash{margin-bottom:1rem}
.hfm-ce .fld-file{flex:0 1 30rem}
.hfm-ce .fld-code{flex:0 1 20rem}
.hfm-ce .fld-date{flex:0 1 14rem}
.hfm-ce .fld-hours{flex:0 1 9rem}
.hfm-ce .fld-email{flex:0 1 26rem}
.hfm-ce .fld-school,.hfm-ce .fld-course{flex:1 1 16rem;max-width:30rem}
.hfm-ce-topics tr.hfm-total th,.hfm-ce-topics tr.hfm-total td{font-weight:700;border-top:2px solid var(--rule)}
.hfm-ce-topics tr.hfm-elective th{font-weight:600}
.hfm-ce-upload .hfm-step{margin-top:1.1rem;padding-top:.9rem;border-top:1px solid var(--rule-soft)}
.hfm-ce-upload .hfm-step:first-child{margin-top:0;padding-top:0;border-top:0}
.hfm-ce-upload .hfm-step h4{font-family:var(--body);font-size:.95rem;font-weight:600;margin:0 0 .55rem;color:var(--text)}
.hfm-ce-upload fieldset{border:1px solid var(--rule);border-radius:7px;padding:.6rem .9rem .5rem;margin:.6rem 0 .35rem;min-width:0}
.hfm-ce-upload legend{font-family:var(--body);font-size:.88rem;color:var(--text-2);padding:0 .35rem;letter-spacing:0;text-transform:none}
.hfm-ce-upload .hfm-ce-topics-in .fld{flex:1 1 170px;max-width:240px}
.hfm-ce-upload .frow{margin-bottom:.4rem}
.hfm .btn{min-height:44px;display:inline-flex;align-items:center;justify-content:center;text-align:center;gap:.4rem}
.hfm .btn[aria-disabled="true"]{opacity:.6;cursor:progress}
.hfm form + form{margin-top:0}

/* The space between the parts of a page (Mike, 2026-11-04: no space after the fields before the next heading, too much
   between a heading and its text, Good Standing too close to the RPAC line). Every view's top parts stand 1.75rem apart,
   with a soft rule between sections; a heading sits close above its own text; a sub-heading in a section has room above. */
.hfm-view > * + *{margin-top:1.75rem}
.hfm-view > .hfm-section + .hfm-section{border-top:1px solid var(--rule-soft);padding-top:1.5rem}
.hfm-section > h2{margin-bottom:-.1rem}
.hfm-view section > h3:not(:first-child){margin-top:1.25rem}
.hfm .hfm-view > h2:not(:first-child){margin-top:1rem}
.hfm-view > h2 + *{margin-top:0}
/* Our office: its parts spaced the same way, its two links apart, and the agents table inside the page (its headings wrap). */
.hfm-office{display:flex;flex-direction:column;gap:1rem}
.hfm-office > h2{margin:0}
.hfm-office > h3{margin:1.25rem 0 -.5rem}
.hfm-office .hfm-table th{white-space:normal}
p.hfm-links{display:flex;flex-wrap:wrap;gap:.2rem 1.5rem;margin:0}

/* The tab bar, Our office's sub-tabs and office picker, and the Classes filters: the theme's chips, tall enough for a thumb (2026-11-03). */
.hfm-tabs{margin:0}
.hfm-tabs a.chip,.hfm-subtabs a.chip,.hfm-office-pick a.chip,.hfm-chips a.chip{min-height:44px;display:inline-flex;align-items:center}

/* The greeting and the notes above the cards. */
.hfm-hello .lede{margin-top:.3rem}
.hfm-banner{border-left-color:var(--gold)}
.hfm-allset strong{margin-right:.3rem}

/* The home cards: two across on a wide screen, one on a phone. */
.hfm-cards{display:grid;gap:1rem;grid-template-columns:repeat(2,minmax(0,1fr))}
.hfm-card .hfm-card-k{font-family:var(--mono);font-size:.68rem;letter-spacing:.11em;text-transform:uppercase;color:var(--text-3);font-weight:600}
.hfm-card p{font-size:.95rem;color:var(--text)}
.hfm-card.hfm-due{border-top:3px solid var(--warn)}
.hfm-card.hfm-good{border-top:3px solid var(--ok)}
.hfm-card .hfm-act{margin-top:auto;padding-top:.7rem}

/* News and reminders on Home and the news page (2026-11-04): the reminders and Member notices, then the newsletters' subjects. */
.hfm-box{display:flex;flex-direction:column;gap:.8rem}
.hfm-box > h3{margin:0}
.hfm-reminders{display:flex;flex-direction:column;gap:.9rem}
.hfm-remind{border-left:3px solid var(--gold);padding:.1rem 0 .1rem .8rem;min-width:0}
.hfm-remind h4{font-family:var(--body);font-size:1rem;font-weight:600;color:var(--text);margin:0 0 .25rem}
.hfm-remind p{font-size:.95rem;color:var(--text);overflow-wrap:anywhere}
.hfm-remind .hfm-act{margin-top:.5rem}
.hfm-remind.hfm-notice{border-left-color:var(--rule)}
.hfm-all,.hfm-back{display:flex;flex-wrap:wrap;gap:.2rem 1.2rem;margin:0}
.hfm-all a,.hfm-back a{display:inline-flex;align-items:center;min-height:44px;font-weight:600}

/* The links at the foot of Home, and Help with this site at the foot of every page (2026-11-04). */
.hfm-resources h3,.hfm-foot h3{margin-bottom:.2rem}
.hfm-resources .hfm-linklist{flex-direction:row;flex-wrap:wrap;gap:0 1.2rem;padding-left:0;list-style:none}
.hfm-foot{border-top:1px solid var(--rule-soft);padding-top:.8rem;font-size:.9rem;color:var(--text-2)}

/* The newsletters' subjects and the other views. */
.hfm-month,.hfm-links ul,.hfm-linklist,.hfm-how{margin:0;padding-left:1.1rem;display:flex;flex-direction:column;gap:.45rem}
.hfm-month li a,.hfm-links li a,.hfm-linklist li a{display:inline-block;padding:.35rem 0;font-weight:600}
.hfm-links ul{list-style:none;padding:0;display:grid;gap:.5rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr))}
.hfm-links li a{display:flex;align-items:center;min-height:44px;padding:.4rem .9rem;border:1px solid var(--rule);border-radius:6px;background:var(--surface)}

/* Sections and the record. */
.hfm-section{display:flex;flex-direction:column;gap:.6rem}
.hfm-section .form{margin-top:.2rem}
/* The staff view's member forms, shown grayed out (hanfra_mp_form): no frame of its own, faded, nothing to press. */
.hfm-staff-view{border:0;margin:0;padding:0;min-width:0;opacity:.6;display:flex;flex-direction:column;gap:.6rem}
.hfm-dl{display:grid;gap:.1rem;margin:0;border:1px solid var(--rule);border-radius:7px;background:var(--surface);overflow:hidden}
.hfm-dl > div{display:grid;grid-template-columns:minmax(9rem,14rem) 1fr;gap:.8rem;padding:.6rem .9rem;border-bottom:1px solid var(--rule-soft)}
.hfm-dl > div:last-child{border-bottom:0}
.hfm-dl dt{font-family:var(--mono);font-size:.66rem;letter-spacing:.1em;text-transform:uppercase;color:var(--text-3);padding-top:.2rem}
.hfm-dl dd{margin:0;color:var(--text);word-break:break-word}
.hfm-ro{border-left:3px solid var(--rule);padding-left:.7rem}
.hfm-actions{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center}
.hfm-actions form{margin:0}
.hfm-choice{border:0;padding:0;margin:0 0 .8rem}
/* A question over its own Yes and No (2026-11-04, Mike: "the type size should be a bit larger so you see it belongs with
   the radio buttons"): in the body face at the answers' size, not the small capitals of a field label. */
.hfm-choice legend{font-family:var(--body);font-size:1rem;font-weight:600;color:var(--text);margin-bottom:.4rem;padding:0}
.hfm-specs{display:grid;gap:.2rem .8rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr))}

/* Sign in. */
.hfm-signin .hfm-h{margin-bottom:.8rem}
.hfm-help{margin-top:1rem;border-top:1px solid var(--rule-soft);padding-top:.6rem}
.hfm-help summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:600;color:var(--navy)}
.hfm-help p{margin:.2rem 0 .7rem;font-size:.9rem;color:var(--text-2)}
.hfm-join{margin-top:.9rem}

/* Set your password (2026-11-04): one column, as wide as the sign-in form. */
.hfm-setpw{max-width:34rem}
.hfm-setpw .hfm-h{margin-bottom:.8rem}
.hfm-rules{margin:.2rem 0 1rem;padding-left:1.1rem;font-size:.95rem;color:var(--text-2)}
.hfm-setpw .hfm-first{font-size:.9rem;color:var(--text-2)}
.hfm-setpw .hfm-back{margin:1rem 0 0}

/* The directory search and the pages. */
.hfm-search{display:flex;flex-wrap:wrap;gap:.6rem;align-items:flex-end;margin:0}
.hfm-search .fld{flex:1 1 240px;max-width:420px}
.hfm-pager{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center;margin-top:.4rem}

/* A newsletter or notice on its own page, and the text of a Member notice. */
.hfm-news + .hfm-news{margin-top:1rem}
.hfm-news-head{font-family:var(--display);font-size:1.15rem;color:var(--text)}
.hfm-news-body{font-size:.95rem;color:var(--text-2);display:flex;flex-direction:column;gap:.6rem;overflow-wrap:anywhere}
.hfm-news-body img{max-width:100%;height:auto}
.hfm-news-body table{min-width:0}

/* Tables: the theme's wrapper, with no minimum width inside the portal. */
.hfm-tw{margin:0}
.hfm-table{min-width:0}

@media (max-width:639.98px){
  .hfm{gap:1.1rem}
  .hfm-cards,.hfm-signin.grid.two{grid-template-columns:1fr}
  .hfm .btn{width:100%}
  .hfm-actions{flex-direction:column;align-items:stretch}
  .hfm-actions form{width:100%}
  .hfm-dl > div{grid-template-columns:1fr;gap:.15rem}
  .hfm-tw{overflow-x:visible;border:0;background:transparent;box-shadow:none}
  .hfm-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}
  .hfm-table,.hfm-table tbody,.hfm-table tr,.hfm-table td{display:block;width:100%}
  .hfm-table tr{border:1px solid var(--rule);border-radius:7px;background:var(--surface);margin-bottom:.7rem;padding:.4rem 0;box-shadow:var(--shadow)}
  .hfm-table td{display:grid;grid-template-columns:7.5rem 1fr;gap:.6rem;border:0;padding:.35rem .9rem;min-width:0}
  .hfm-table td:first-child{min-width:0}
  .hfm-table td::before{content:attr(data-label);font-family:var(--mono);font-size:.62rem;letter-spacing:.1em;text-transform:uppercase;color:var(--text-3);padding-top:.15rem}
  .hfm-table td:empty{display:none}
  .hfm-search .fld{max-width:none}
}

/* My record (2026-11-27): one row per fact, Update at the end of a row a member can change, its form opening under the
   row (a details element, so it works without scripting). The summary sits at the row's right edge; the opened form
   takes the row's full width under it. */
.hfm-rec{display:flex;flex-direction:column;border:1px solid var(--rule);border-radius:7px;background:var(--surface)}
.hfm-rec-row{position:relative;display:grid;grid-template-columns:minmax(9rem,13rem) 1fr;gap:.2rem 1rem;padding:.7rem .9rem;border-top:1px solid var(--rule-soft)}
.hfm-rec-row:first-child{border-top:0}
.hfm-rec-row.hfm-rec-can{padding-right:7.5rem}
.hfm-rec-k{font-weight:600;color:var(--text-2)}
.hfm-rec-v{overflow-wrap:anywhere}
.hfm-rec-v p{margin:.25rem 0 0}
.hfm-none{color:var(--text-3);font-style:italic}
.hfm-wait{font-size:.88rem;color:var(--warn);background:var(--warn-bg);border-radius:4px;padding:.2rem .5rem;display:inline-block}
.hfm-rec-edit{grid-column:1 / -1}
.hfm-rec-row > .hfm-rec-edit > summary{position:absolute;top:.5rem;right:.9rem;list-style:none;cursor:pointer;min-height:44px;display:inline-flex;align-items:center}
.hfm-rec-edit > summary::-webkit-details-marker{display:none}
.hfm-rec-edit[open] > summary{opacity:.6}
.hfm-rec-form{margin-top:.6rem;padding:.8rem;border:1px solid var(--rule);border-radius:6px;background:var(--surface-2)}
.hfm-rec-form .hfm-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.4rem}
.hfm-fix-note > summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;min-height:44px}
.hfm-fix-note > summary::-webkit-details-marker{display:none}
.hfm-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
/* Classes (2026-11-27, Mike: "the page doesnt have any zip or coolness like other pages"): jump links, the summary strip in
   the home page's stat-tile style, gold-edged section headings, My classes as a schedule, the class list on cards, and the
   confirm from a public "Add to my calendar" link. */
.hfm-jump{display:flex;flex-wrap:wrap;gap:.4rem .6rem;margin:0}
.hfm-jump a{display:inline-flex;align-items:center;min-height:44px;padding:.3rem .9rem;border:1px solid var(--rule);border-radius:99px;background:var(--surface);font-size:.88rem;font-weight:600}
.hfm-jump a:hover{border-color:var(--navy);text-decoration:none}
.hfm-tags{display:flex;flex-wrap:wrap;gap:.3rem;margin:.1rem 0 .45rem}
.hfm-classes{display:flex;flex-direction:column;gap:1.4rem}
.hfm-classes > h2{margin:0}
.hfm-classes > .hfm-section > h3{font-family:var(--display);font-weight:500;font-size:1.35rem;border-left:4px solid var(--gold);padding-left:.65rem;margin:0}
.hfm-classes > .hfm-section + .hfm-section{border-top:1px solid var(--rule-soft);padding-top:1.4rem}
.hfm-stats{margin-top:0;box-shadow:var(--shadow)}
.hfm-stats .stat{min-width:0}
.hfm-stats .k{font-family:var(--mono);font-size:.64rem;letter-spacing:.11em;text-transform:uppercase;color:var(--text-2);margin-bottom:.4rem}
.hfm-stats .stat.lead .t{font-size:clamp(1.1rem,1.8vw,1.35rem);overflow-wrap:anywhere}
.hfm-stats .stat .l{color:var(--text-2)}
.hfm-stats .hcal-mark{margin-left:.2rem}
.hfm-sched,.hfm-my-past{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.7rem}
.hfm-mc{border:1px solid var(--rule);border-left:4px solid var(--text-3);border-radius:7px;background:var(--surface);padding:.75rem .95rem;box-shadow:var(--shadow);min-width:0;overflow-wrap:anywhere}
.hfm-mc p{margin:.25rem 0 0;color:var(--text)}
.hfm-mc p.muted{color:var(--text-2)}
.hfm-mc-registered{border-left-color:var(--navy-lift)}
.hfm-mc-wait{border-left-color:var(--navy-lift);border-left-style:dotted}
.hfm-mc-mine{border-left-color:var(--gold)}
.hfm-mc-head{display:flex;flex-wrap:wrap;align-items:center;gap:.3rem .6rem}
.hfm-mc-head strong{font-family:var(--display);font-weight:500;font-size:1.12rem}
.hfm-mc-head .hcal-mark{margin-top:0}
.hfm-mc-when{font-weight:600}
.hfm-mc .hfm-inline{margin-top:.5rem}
.hfm-my-past li{border:1px solid var(--rule-soft);border-radius:7px;padding:.6rem .9rem;background:var(--surface)}
.hfm-my-past-h{font-family:var(--body);font-size:.95rem;font-weight:600;color:var(--text-2);margin:.6rem 0 0}
.hfm-class-list{display:flex;flex-direction:column;gap:.8rem}
.hfm-class.card{border-top:3px solid var(--gold)}
.hfm-class.hfm-listing.card{border-top-color:var(--navy-lift)}
.hfm-class h4{font-size:1.2rem;margin-bottom:.3rem}
.hfm-class .hfm-when{font-weight:600}
.hfm-oncal{margin-top:.6rem}
.hfm-add{border:2px solid var(--gold);border-radius:9px;background:var(--surface);padding:1rem 1.1rem;box-shadow:var(--shadow)}
.hfm-classes > .hfm-add > h3{border-left:0;padding-left:0}
.hfm-add .hfm-actions{margin-top:.4rem}
@media (max-width:639.98px){
  .hfm-stats{grid-template-columns:1fr}
  .hfm-stats .stat{border-left:0;border-top:1px solid var(--rule-soft);padding:1rem 1.1rem}
  .hfm-stats .stat:first-child{border-top:0}
  .hfm-jump a{flex:1 1 auto;justify-content:center}
}
@media (max-width:639.98px){
  .hfm-rec-row{grid-template-columns:1fr}
  .hfm-rec-row.hfm-rec-can{padding-right:.9rem}
  .hfm-rec-row > .hfm-rec-edit > summary{position:static;margin-top:.4rem}
}
