/* AO / AAP / AMI — palette shared with cyber-front.css: navy #0F2A3A, orange #FF6D0C. */
.hti-ao { font-family: 'Open Sans', Arial, 'Helvetica Neue', sans-serif; color: #0F2A3A; margin: 0 0 24px; position: relative; }
.hti-ao__toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.hti-ao__toolbar input, .hti-ao__toolbar select { padding: 6px 10px; border: 1px solid #CBD5E1; border-radius: 0; font-size: 13px; background: #fff; max-width: 220px; }
.hti-ao__toolbar input[type=search] { flex: 1 1 240px; min-width: 200px; max-width: none; }
.hti-ao__toolbar input[type=number] { width: 110px; }
.hti-ao__range { font-size: 12px; color: #475569; display: flex; align-items: center; gap: 4px; }
.hti-ao__btn { padding: 7px 14px; border: 1px solid #0F2A3A; background: #fff; color: #0F2A3A; font-size: 13px; font-weight: 600; cursor: pointer; border-radius: 0; }
.hti-ao__btn:hover { background: #F8FAFC; }
.hti-ao__count { font-size: 13px; color: #475569; margin: 0 0 10px; }
.hti-ao__scroll { overflow-x: auto; border: 1px solid #E2E8F0; }
.hti-ao__table { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; }
.hti-ao__table th { text-align: left; padding: 9px 12px; background: #F8FAFC; border-bottom: 1px solid #E2E8F0; font-family: 'Montserrat', Arial, sans-serif; font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: #0F2A3A; white-space: nowrap; }
.hti-ao__table th[data-sort] { cursor: pointer; }
.hti-ao__table th[aria-sort="ascending"]::after { content: " ▲"; color: #FF6D0C; }
.hti-ao__table th[aria-sort="descending"]::after { content: " ▼"; color: #FF6D0C; }
.hti-ao__table td { padding: 9px 12px; border-bottom: 1px solid #F1F5F9; vertical-align: top; }
.hti-ao__table tbody tr[data-id] { cursor: pointer; }
.hti-ao__table tbody tr[data-id]:hover, .hti-ao__table tbody tr[data-id]:focus-visible { background: #FFF7F0; outline: none; }
.hti-ao__num { text-align: right; white-space: nowrap; }
.hti-ao__empty { text-align: center; color: #64748B; padding: 24px; }

/* kind of call: AAP blue, AMI purple, AO teal, AAC raspberry (hti_ao_type_colors() in ao-core.php) */
.hti-ao-type { display: inline-block; padding: 2px 9px; border-radius: 4px; font-size: 11.5px; font-weight: 800; letter-spacing: .4px; line-height: 1.5; white-space: nowrap; vertical-align: middle; color: #fff; background: #64748B; }
.hti-ao-type--aap { background: #2a78d6; }
.hti-ao-type--ami { background: #7b3fa0; }
.hti-ao-type--ao { background: #0f8b8d; }
.hti-ao-type--aac { background: #c2417a; }

/* countdown pill: green > 90 days, yellow 31-90, orange <= 30, red once passed */
.hti-ao-badge { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 11.5px; font-weight: 700; line-height: 1.5; white-space: nowrap; vertical-align: middle; color: #fff; background: #64748B; }
.hti-ao-badge--vert { background: #1a8a4a; }
.hti-ao-badge--jaune { background: #f2c200; color: #0F2A3A; }
.hti-ao-badge--orange { background: #FF6D0C; }
.hti-ao-badge--termine { background: #c62828; }
.hti-ao-badge--attribue { background: #0F2A3A; }

/* side panel of the table */
.hti-ao__drawer { position: fixed; z-index: 100000; top: 0; right: 0; bottom: 0; height: 100vh; height: 100dvh; max-height: 100vh; box-sizing: border-box; width: min(560px, 100%); overflow-y: auto; overscroll-behavior: contain; background: #fff; border-left: 4px solid #FF6D0C; box-shadow: -8px 0 24px rgba(15, 42, 58, .2); padding: 12px 20px 24px; }
.hti-ao__drawer[hidden] { display: none; }
body.admin-bar .hti-ao__drawer { top: 32px; height: calc(100dvh - 32px); max-height: calc(100vh - 32px); }
@media (max-width: 782px) { body.admin-bar .hti-ao__drawer { top: 46px; height: calc(100dvh - 46px); max-height: calc(100vh - 46px); } }
.hti-ao__drawer-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.hti-ao__drawer-link { font-size: 13px; font-weight: 600; }
.hti-ao__close { border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: #0F2A3A; }

/* the fiche (page and panel): specific selectors, the theme styles every h2/p/dl of an article body */
.hti-ao-fiche { color: #0F2A3A; font-family: 'Open Sans', Arial, sans-serif; }
.hti-ao-fiche .hti-ao-fiche__title { font-family: 'Montserrat', Arial, sans-serif; font-size: 20px; font-weight: 800; margin: 0 0 14px; }
.hti-ao-fiche section { margin: 0 0 22px; }
.hti-ao-fiche section > h2 { font-family: 'Montserrat', Arial, sans-serif; font-size: 13px; letter-spacing: 1.3px; text-transform: uppercase; margin: 0 0 10px; padding-bottom: 6px; border-bottom: 2px solid #FF6D0C; color: #0F2A3A; }
.hti-ao-fiche dl { display: grid; grid-template-columns: minmax(130px, 200px) 1fr; gap: 8px 16px; margin: 0; }
.hti-ao-fiche dt { font-weight: 700; font-size: 13px; color: #475569; }
.hti-ao-fiche dd { margin: 0; font-size: 14px; }
.hti-ao-fiche p { text-align: left; font-size: 14px; line-height: 1.6; margin: 0 0 10px; }
.hti-ao-fiche .hti-ao-fiche__note, .hti-ao-fiche .hti-ao-fiche__empty { color: #64748B; font-size: 12.5px; }
.hti-ao-logo { width: 36px; height: 36px; object-fit: contain; vertical-align: middle; margin-right: 8px; border: 1px solid #E2E8F0; background: #fff; }
.hti-ao-btn { display: inline-block; padding: 7px 16px; background: #FF6D0C; color: #fff !important; font-weight: 700; text-decoration: none; }
.hti-ao-btn:hover { background: #e55f06; }
.hti-ao-award { border: 1px solid #0F2A3A; border-left: 6px solid #0F2A3A; background: #F8FAFC; padding: 14px 18px; margin: 0 0 22px; }
.hti-ao-fiche .hti-ao-award__label { font-family: 'Montserrat', Arial, sans-serif; font-size: 11px; letter-spacing: 1.3px; text-transform: uppercase; color: #FF6D0C; font-weight: 800; margin: 0 0 6px; }
.hti-ao-fiche .hti-ao-award__who { font-size: 17px; font-weight: 700; }
/* reliability of the source, next to its link (same scale as the article "Sources" box) */
.hti-ao-fiab { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 10px; font-size: 11.5px; font-weight: 700; line-height: 1.5; white-space: nowrap; vertical-align: middle; background: #E2E8F0; color: #0F2A3A; }
.hti-ao-fiab--officielle { background: #1a8a4a; color: #fff; }
.hti-ao-fiab--peer_review { background: #2a78d6; color: #fff; }
.hti-ao-fiab--declarative { background: #f2c200; color: #0F2A3A; }
.hti-ao-fiab--presse { background: #64748B; color: #fff; }
.hti-ao-fiab--a_verifier { background: #c62828; color: #fff; }

/* news items: brève cards (the grid and the card itself come from style.css: .myrow, .general-article) */
.hti-ao-actus-grid { margin-bottom: 8px !important; }
.general-article .hti-ao-actu__nature { font-size: 12.5px; color: #475569; }
.general-article .hti-ao-actu__nature strong { color: #FF6D0C; }
.general-article .hti-ao-actu__projet { font-size: 12px; color: #64748B; }
@media (max-width: 600px) { .hti-ao-fiche dl { grid-template-columns: 1fr; gap: 2px; } .hti-ao-fiche dt { margin-top: 8px; } }

/* organisation fiche block */
.hti-ao-orga h3 { font-family: 'Montserrat', Arial, sans-serif; font-size: 14px; margin: 14px 0 8px; }
/* page of a news item of a call: link to the call */
.hti-ao-actu-of { background: #F8FAFC; border-left: 4px solid #FF6D0C; padding: 8px 12px; font-size: 14px; margin: 0 0 16px; }

/* [hti_ao_charts]: period selector and awardees table */
.hti-lc__period { display: inline-flex; flex-wrap: wrap; margin: 0 0 14px; }
.hti-lc__period button { border: 1px solid #0F2A3A; background: #fff; color: #0F2A3A; padding: 6px 14px; font-size: 12.5px; font-weight: 600; cursor: pointer; border-radius: 0; margin-left: -1px; }
.hti-lc__period button[aria-pressed="true"] { background: #0F2A3A; color: #fff; }
.hti-ao__table--attrib td { font-size: 12.5px; }

/* [hti_ao_stats] */
.hti-ao-stats { font-family: 'Open Sans', Arial, sans-serif; color: #0F2A3A; margin: 0 0 24px; }
.hti-ao-stats .hti-ao-stats__period { font-size: 12px; color: #64748B; margin: 0 0 8px; text-align: left; }
.hti-ao-stats__kpis { display: flex; flex-wrap: wrap; gap: 12px; }
.hti-ao-stats__kpis div { flex: 1 1 150px; border: 1px solid #E2E8F0; border-top: 4px solid #FF6D0C; background: #fff; padding: 12px 16px; }
.hti-ao-stats__kpis strong { display: block; font-family: 'Montserrat', Arial, sans-serif; font-size: 24px; }
.hti-ao-stats__kpis span { font-size: 12px; color: #64748B; }
