/*
Theme Name: FCI HRMS Guide
Theme URI: https://fcihrms.com/
Author: FCI HRMS Guide
Description: Unofficial guide theme: maroon and wheat, Newsreader headings with Instrument Sans text, a notice bar on every page, "at a glance" fact boxes, numbered contents, step lists, official-links boxes, in-page tools and HowTo, FAQ and WebApplication schema.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fcihrms
*/

@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 600; font-display: swap; src: url(assets/fonts/newsreader-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/newsreader-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/instrument-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(assets/fonts/instrument-sans-latin-600-normal.woff2) format("woff2"); }

:root {
	--bg: #fbf8f2;
	--panel: #ffffff;
	--wheat: #f3e3bf;
	--wheat-d: #c9962f;
	--line: #e6dcc8;
	--ink: #221d1b;
	--muted: #5c534d;
	--maroon: #6e1f2a;
	--maroon-d: #4d141d;
	--good: #1f6b3a;
	--bad: #a3271b;
	--serif: "Newsreader", Georgia, "Times New Roman", serif;
	--sans: "Instrument Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 12px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.7 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--maroon); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--maroon-d); text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 4.4vw, 2.75rem); font-weight: 700; margin: 0 0 .35em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 700; margin: 1.8em 0 .5em; }
h3 { font-size: 1.18rem; font-weight: 600; margin: 1.3em 0 .4em; }
p, ul, ol { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--panel); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid var(--wheat-d); outline-offset: 2px; }

/* --------------------------------------------------------- notice + header */
.fh-notice { margin: 0; background: var(--wheat); color: var(--maroon-d); font-size: .82rem; line-height: 1.45; text-align: center; padding: 7px 16px; border-bottom: 1px solid #e3cf9f; }
.fh-top { background: var(--maroon); color: #fff; position: relative; z-index: 20; }
.fh-top-in { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; min-height: 60px; padding-top: 8px; padding-bottom: 8px; }
.fh-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 600 1.12rem/1 var(--serif); margin-right: auto; }
.fh-brand:hover { color: #fff; }
.fh-brand svg { width: 34px; height: 34px; flex: none; }
.fh-brand b { color: #e8c27a; }
.fh-tabs { display: flex; gap: 2px; order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; }
.fh-tabs::-webkit-scrollbar { display: none; }
@media (max-width: 979px) { .fh-tabs { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); } }
.fh-tabs a { flex: none; color: #f6e9d6; text-decoration: none; font-weight: 600; font-size: .92rem; padding: 6px 12px; border-radius: 4px; }
.fh-tabs a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.fh-pop summary { list-style: none; cursor: pointer; font-weight: 600; font-size: .9rem; padding: 7px 14px; border-radius: 4px; background: #e8c27a; color: var(--maroon-d); }
.fh-pop summary::-webkit-details-marker { display: none; }
.fh-pop-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--panel); color: var(--ink); border-bottom: 3px solid var(--wheat-d); box-shadow: 0 16px 28px rgba(40, 20, 20, .18); max-height: 75vh; overflow: auto; }
.fh-pop-panel .wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 24px; padding-top: 16px; padding-bottom: 18px; }
.fh-pop-h { font: 600 .78rem/1.3 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--maroon); margin: 8px 0 6px; }
.fh-pop .col a { display: block; padding: 4px 0; color: var(--ink); text-decoration: none; }
.fh-pop .col a:hover { color: var(--maroon); text-decoration: underline; }

/* ------------------------------------------------------------------- home */
.fh-hero { background: var(--panel); border-bottom: 1px solid var(--line); padding: 32px 0 28px; }
.fh-hero .lead { font-size: 1.08rem; color: var(--muted); max-width: 720px; }
.fh-hero-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 20px; }
.fh-hero-card { display: block; padding: 14px 16px; border: 1px solid var(--line); border-left: 4px solid var(--wheat-d); border-radius: 6px; text-decoration: none; color: var(--ink); background: var(--bg); }
.fh-hero-card:hover { border-left-color: var(--maroon); color: var(--ink); }
.fh-hero-card b { display: block; font: 700 1.08rem/1.3 var(--serif); color: var(--maroon); }
.fh-hero-card span { font-size: .88rem; color: var(--muted); }
.fh-index { padding-bottom: 36px; }
.fh-index > h2 { border-top: 2px solid var(--ink); padding-top: 16px; }
.fh-index-group h3 { color: var(--maroon); font-size: 1.25rem; }

/* ------------------------------------------------------------ guide lists */
.fh-shelf { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 10px; }
.fh-tile { display: flex; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 8px; text-decoration: none; color: var(--ink); height: 100%; }
.fh-tile:hover { border-color: var(--wheat-d); color: var(--ink); }
.fh-tile img { width: 96px; height: 54px; object-fit: cover; border-radius: 4px; flex: none; background: var(--wheat); }
.fh-tile-t b { display: block; font: 600 1.02rem/1.3 var(--serif); color: var(--maroon); }
.fh-tile-t small { display: block; font-size: .84rem; color: var(--muted); line-height: 1.4; }

/* -------------------------------------------------------------- page head */
.fh-mast { background: var(--panel); border-bottom: 1px solid var(--line); padding: 18px 0 18px; }
.fh-crumbs { font-size: .86rem; color: var(--muted); margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.fh-byline { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; font-size: .84rem; color: var(--muted); }
.fh-byline span + span::before { content: "\00b7"; margin-right: 8px; }

/* ----------------------------------------------------------------- content */
.fh-flow { padding-top: 22px; padding-bottom: 8px; max-width: 820px; }
.fh-intro { font-size: 1.06rem; }
.fh-facts { background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--maroon); border-radius: 6px; padding: 14px 18px; margin: 18px 0; }
.fh-facts h2 { font-size: 1.1rem; margin: 0 0 8px; }
.fh-facts dl { margin: 0; display: grid; grid-template-columns: 1fr; gap: 6px; }
.fh-facts div { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 10px; padding: 5px 0; border-top: 1px dashed var(--line); }
.fh-facts div:first-child { border-top: 0; }
.fh-facts dt { font-weight: 600; color: var(--maroon); font-size: .92rem; }
.fh-facts dd { margin: 0; font-size: .95rem; }
.fh-toc { margin: 18px 0; padding: 12px 18px; background: var(--wheat); border-radius: 6px; }
.fh-toc p { margin: 0 0 6px; font-weight: 600; font-size: .9rem; color: var(--maroon-d); }
.fh-toc ol { margin: 0; padding-left: 1.3em; font-size: .95rem; }
.fh-toc a { color: var(--ink); }
.fh-sec h2 { padding-top: 6px; }
.fh-sec ol { counter-reset: step; list-style: none; padding-left: 0; }
.fh-sec ol > li { counter-increment: step; position: relative; padding: 8px 0 8px 44px; border-bottom: 1px solid var(--line); }
.fh-sec ol > li::before { content: counter(step); position: absolute; left: 0; top: 8px; width: 30px; height: 30px; border-radius: 50%; background: var(--maroon); color: #fff; font: 600 .9rem/30px var(--sans); text-align: center; }
.fh-sec ul { padding-left: 1.2em; }
.fh-fig { margin: 18px 0 22px; }
.fh-fig img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; background: var(--wheat); }
.fh-fig figcaption { font-size: .88rem; color: var(--muted); margin-top: 6px; }
.table-scroll { overflow-x: auto; margin: 0 0 1.2em; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.fh-flow table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: .93rem; }
.fh-flow th { background: var(--wheat); text-align: left; font-weight: 600; padding: 9px 10px; color: var(--maroon-d); }
.fh-flow td { padding: 8px 10px; border-top: 1px solid var(--line); vertical-align: top; }
.fh-official { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--good); border-radius: 6px; padding: 12px 18px; margin: 26px 0; }
.fh-official h2 { font-size: 1.1rem; margin: 0 0 6px; }
.fh-official ul { margin: 0; padding-left: 1.2em; }
.fh-official p { margin: 6px 0 0; font-size: .85rem; color: var(--muted); }
.fh-faq { margin-bottom: 26px; }
.fh-faq details { border-bottom: 1px solid var(--line); }
.fh-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 14px 0; }
.fh-faq summary::-webkit-details-marker { display: none; }
.fh-faq summary::after { content: "+"; font: 700 1.3rem/1 var(--sans); color: var(--wheat-d); flex: none; }
.fh-faq details[open] summary::after { content: "\2212"; }
.fh-faq summary h3 { margin: 0; font-size: 1.05rem; }
.fh-ad { margin: 24px 0; text-align: center; }

/* ------------------------------------------------------------------- tools */
.fh-tool { background: var(--panel); border: 2px solid var(--maroon); border-radius: 8px; padding: 16px 18px; margin: 24px 0; }
.fh-tool:not(.is-ready)::before { content: "This tool needs JavaScript turned on in your browser."; color: var(--muted); font-size: .9rem; }
.fh-tool-h { margin: 0 0 4px; font-size: 1.3rem; }
.fh-tool-sub { color: var(--muted); font-size: .94rem; }
.fh-tool-note { font-size: .84rem; color: var(--muted); margin: 10px 0 0; }
.fh-form { display: grid; grid-template-columns: 1fr; gap: 10px; }
.fh-form label { display: grid; gap: 4px; font-weight: 600; font-size: .9rem; }
.fh-form .fh-check { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.fh-form input, .fh-form select { font: inherit; font-weight: 400; padding: 9px 10px; border: 1px solid #cbbfa8; border-radius: 5px; background: #fff; width: 100%; min-height: 44px; }
.fh-form .fh-check input { width: auto; min-height: 0; }
.fh-btn { display: inline-block; font: 600 1rem var(--sans); background: var(--maroon); color: #fff; border: 0; border-radius: 5px; padding: 11px 18px; cursor: pointer; text-decoration: none; min-height: 44px; }
.fh-btn:hover { background: var(--maroon-d); color: #fff; }
.fh-out { margin-top: 12px; }
.fh-out:empty { display: none; }
.fh-good { color: var(--good); font-weight: 600; }
.fh-bad { color: var(--bad); font-weight: 600; }
.fh-age b { font-size: 1.05rem; }
.fh-calc { width: 100%; border-collapse: collapse; }
.fh-calc th, .fh-calc td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.fh-calc td { text-align: right; font-variant-numeric: tabular-nums; }
.fh-calc .fh-total th, .fh-calc .fh-total td { font-weight: 700; border-top: 2px solid var(--ink); }
.fh-prev { display: inline-block; padding: 8px; background: var(--wheat); border-radius: 6px; margin-bottom: 8px; max-width: 100%; }
.fh-prev img { max-width: 100%; height: auto; border: 1px solid #ccc; background: #fff; }

/* ------------------------------------------------------- related, info pages */
.fh-next { margin: 30px 0 40px; }
.fh-next h2 { margin-top: 0; }
.fh-plain { padding-top: 24px; padding-bottom: 40px; }
.fh-page { max-width: 780px; margin: 0 auto; padding: 18px 0 36px; }
.fh-page h2 { font-size: 1.35rem; }
.fh-post-meta { color: var(--muted); font-size: .9rem; }
.fh-post-img { margin: 0 0 18px; border-radius: 6px; }
.fh-post-body img { margin: 12px 0; }
.fh-post-body blockquote { margin: 1em 0; padding: 4px 16px; border-left: 4px solid var(--wheat-d); background: var(--panel); }
.fh-post-list { list-style: none; padding: 0; max-width: 780px; margin: 0 auto 24px; }
.fh-post-list li { border-bottom: 1px solid var(--line); }
.fh-post-list a { display: block; padding: 10px 0; text-decoration: none; }
.fh-post-cards a b { display: block; font-family: var(--serif); font-size: 1.15rem; color: var(--ink); }
.fh-post-cards small { color: var(--maroon); font-size: .82rem; }
.fh-post-cards span { display: block; color: var(--muted); font-size: .95rem; }
.fh-pager { max-width: 780px; margin: 0 auto; }
.fh-pager .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.fh-pager .page-numbers { padding: 5px 11px; border: 1px solid var(--line); background: var(--panel); text-decoration: none; }
.fh-pager .current { background: var(--maroon); color: #fff; }
.alignleft { float: left; margin: 0 16px 10px 0; }
.alignright { float: right; margin: 0 0 10px 16px; }
.aligncenter { margin-left: auto; margin-right: auto; }

/* ------------------------------------------------------------------ footer */
.fh-foot { background: var(--maroon-d); color: #e9dccd; padding: 32px 0 20px; font-size: .93rem; margin-top: 20px; }
.fh-foot a { color: #fff; text-decoration: none; }
.fh-foot a:hover { color: #e8c27a; text-decoration: underline; }
.fh-foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fh-foot-about { grid-column: 1 / -1; }
.fh-foot-name { font: 700 1.25rem/1.2 var(--serif); color: #fff; margin-bottom: 6px; }
.fh-foot-warn { font-size: .84rem; color: #e8c27a; }
.fh-foot-h { font-weight: 600; color: #e8c27a; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.fh-foot-col a { display: block; padding: 3px 0; }
.fh-foot-info { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 24px 0 12px; padding-top: 14px; border-top: 1px solid rgba(232, 194, 122, .3); }
.fh-legal { font-size: .8rem; color: #c7b7a5; margin: 0; }

/* ------------------------------------------------------------ breakpoints */
@media (min-width: 700px) {
	.fh-hero-grid { grid-template-columns: repeat(2, 1fr); }
	.fh-shelf { grid-template-columns: repeat(2, 1fr); }
	.fh-form { grid-template-columns: 1fr 1fr; align-items: end; }
	.fh-form .fh-check, .fh-form .fh-btn { grid-column: 1 / -1; justify-self: start; }
	.fh-foot-grid { grid-template-columns: 1.4fr repeat(4, 1fr); }
	.fh-foot-about { grid-column: auto; }
}
@media (min-width: 980px) {
	.fh-tabs { order: 0; width: auto; }
	.fh-hero-grid { grid-template-columns: repeat(4, 1fr); }
	.fh-shelf { grid-template-columns: repeat(3, 1fr); }
	.fh-hero { padding: 44px 0 36px; }
}
@media print { .fh-top, .fh-foot, .fh-toc, .fh-ad, .fh-tool { display: none; } }
