/* ==========================================================================
   HCISS WordPress layer
   WordPress, Elementor and blog styles on top of tokens.css / components.css / pages.css.
   ========================================================================== */

/* ---- WordPress essentials ---- */
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.screen-reader-text:focus { background: var(--hciss-white); clip: auto !important; clip-path: none; color: var(--hciss-navy-800); display: block; height: auto; left: 8px; padding: 12px 18px; top: 8px; width: auto; z-index: 100000; }
.site-main { display: block; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption, figure { max-width: 100%; }
.wp-caption-text, figcaption { font: var(--text-body-sm); color: var(--hciss-navy-700); margin-top: 8px; }
.sticky, .bypostauthor, .gallery-caption { /* required by WordPress */ }

/* ---- Header in WordPress ---- */
.site-nav.is-static { position: relative; }
.admin-bar .site-nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-nav { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-nav { top: 0; } }
.site-nav .logo { flex-shrink: 0; line-height: 0; }
.site-nav .logo img { height: 60px; width: auto; }
.nav-wrap { display: flex; }
#nav-links .menu-item { list-style: none; }
#nav-links .sub-menu, #nav-links .nav-sub { list-style: none; }
@media (max-width: 1180px) { #nav-links { gap: 18px; } #nav-links a.hciss-navlink, .nav-parent { font-size: 14.5px; } }
@media (max-width: 1040px) { .site-nav .nav-cta { padding: 10px 16px; font-size: 13.5px; } }
@media (max-width: 880px) {
  .site-nav .logo img { height: 44px; }
  .nav-wrap { display: contents; }
}

/* ---- Footer in WordPress ---- */
.site-footer .footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer .footer-links a { font-family: var(--font-body); font-size: 14px; color: var(--hciss-navy-800); }
.site-footer .footer-links a:hover { color: var(--hciss-navy-900); }
.site-footer .logo img { height: 54px; width: auto; display: block; margin-bottom: 14px; }
.site-footer .base a { color: var(--hciss-navy-800); }

/* ---- Elementor compatibility ---- */
.hciss-sec { width: 100%; }
.elementor .hciss-sec a.hciss-btn-primary, .elementor .hciss-sec a.hciss-btn-outline { text-decoration: none; }
body .card-foot a, body .journey .hciss-h3 a, body .on-light a:not([class]), body .res-list a.res-go { text-decoration: underline; text-decoration-color: var(--hciss-gold-600); text-underline-offset: 4px; }
.elementor-widget-html:has(.hciss-sec) { margin-bottom: 0 !important; }
.elementor-section .elementor-widget-html .hciss-sec h1,
.elementor-section .elementor-widget-html .hciss-sec h2,
.elementor-section .elementor-widget-html .hciss-sec h3 { margin-top: 0; }
.elementor-editor-active .hciss-reveal, .elementor-editor-preview .hciss-reveal { opacity: 1 !important; transform: none !important; }
.hciss-elementor-page .site-main > .elementor { width: 100%; }

/* ---- Homepage (inline-styled reference markup) responsive fixes ---- */
.hciss-pillar-card { transition: border-color var(--duration-hover) var(--ease-standard), box-shadow var(--duration-hover) var(--ease-standard); }
.hciss-pillar-card:hover { border-color: var(--hciss-gold-600) !important; box-shadow: 0 8px 24px rgba(11, 18, 32, 0.08); }
@media (max-width: 760px) {
  .hciss-sec [style*="grid-template-columns: repeat(3, minmax(0, 1fr))"] { grid-template-columns: 1fr !important; }
}
@media (max-width: 640px) {
  .hciss-hero-h1 { font-size: 36px !important; }
  .hciss-sec > div[style*="64px"] { padding-left: var(--space-section-x-mobile) !important; padding-right: var(--space-section-x-mobile) !important; }
  .hciss-sec > div[style*="padding: 84px"] { padding-top: 60px !important; padding-bottom: 60px !important; }
  .hciss-sec > div[style*="padding: 92px"] { padding-top: 68px !important; padding-bottom: 68px !important; }
  .hciss-sec #industries [style*="gap: 60px"] { gap: 28px 36px !important; }
  .hciss-sec h2[style*="font-size: 32px"] { font-size: 26px !important; }
}

/* ---- Ordinary pages and posts ---- */
.content-narrow { max-width: 760px; }
.hciss-container.content-narrow { margin-inline: auto; }
.entry-content { font: var(--text-body); font-size: 17px; line-height: 1.7; color: var(--hciss-navy-700); }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2, .entry-content h3, .entry-content h4 { font-family: var(--font-display); color: var(--hciss-navy-800); line-height: 1.25; margin-top: 1.8em; margin-bottom: 0.4em; text-wrap: balance; }
.entry-content h2 { font-size: 28px; font-weight: 800; }
.entry-content h3 { font-size: 21px; font-weight: 700; }
.entry-content h4 { font-size: 18px; font-weight: 700; }
.entry-content p { margin: 0; }
.entry-content a { color: var(--hciss-navy-800); text-decoration: underline; text-decoration-color: var(--hciss-gold-600); text-underline-offset: 3px; }
.entry-content a:hover { color: var(--hciss-navy-900); text-decoration-thickness: 2px; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: 0.35em; }
.entry-content blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--hciss-gold-600); color: var(--hciss-navy-800); font-size: 19px; }
.entry-content img { border-radius: 8px; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--hciss-border); padding: 10px 12px; text-align: left; }
.entry-content th { font: var(--text-label); letter-spacing: 0.08em; text-transform: uppercase; background: var(--hciss-slate-050); }
.entry-content code, .entry-content pre { font-family: var(--font-mono); font-size: 0.9em; background: var(--hciss-slate-050); border-radius: 4px; }
.entry-content code { padding: 2px 5px; }
.entry-content pre { padding: 16px; overflow-x: auto; }
.entry-content .alignwide { max-width: 1180px; }
.entry-content .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.entry-content .wp-block-button__link { background: var(--hciss-gold-600); color: var(--hciss-navy-800); font: var(--text-button); border-radius: var(--radius-button); padding: 14px 26px; text-decoration: none; }
.entry-content .wp-block-button__link:hover { background: var(--hciss-gold-500); color: var(--hciss-navy-800); }
.entry-meta, .post-tags { font: var(--text-body-sm); color: var(--hciss-navy-700); }

.post-layout { display: grid; gap: 56px; }
.post-layout.has-sidebar { grid-template-columns: minmax(0, 1fr) 300px; }
.post-layout > .entry-content { max-width: 760px; }
@media (max-width: 900px) { .post-layout.has-sidebar { grid-template-columns: 1fr; } }
.post-thumb { margin: 0 0 28px; }
.post-thumb img { width: 100%; border-radius: var(--radius-card); }
.post-nav .nav-links { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--hciss-border); }
.post-sidebar .widget { margin-bottom: 32px; }
.widget-title { font: var(--text-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--hciss-navy-700); margin: 0 0 12px; }
.post-sidebar ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.post-sidebar a { color: var(--hciss-navy-800); }

.post-card .post-card-img { display: block; margin: -26px -26px 4px; border-radius: var(--radius-card) var(--radius-card) 0 0; overflow: hidden; aspect-ratio: 16 / 9; }
.post-card .post-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card h2 a { color: var(--hciss-navy-800); }
.pagination { margin-top: 44px; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--hciss-navy-800); border: 1px solid var(--hciss-border); background: var(--hciss-white); border-radius: var(--radius-button); padding: 9px 14px; }
.pagination .page-numbers.current { background: var(--hciss-navy-800); color: var(--hciss-slate-050); border-color: var(--hciss-navy-800); }

.search-form { display: flex; gap: 10px; flex-wrap: wrap; }
.search-form .search-field { flex: 1 1 240px; font: var(--text-body); padding: 11px 12px; border: 1px solid var(--hciss-border); border-radius: var(--radius-button); background: var(--hciss-white); }

.comments-area { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--hciss-border); }
.comment-list { padding-left: 0; list-style: none; }
.comment-list .comment { padding: 16px 0; border-bottom: 1px solid var(--hciss-border); }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea { width: 100%; font: var(--text-body); padding: 10px 12px; border: 1px solid var(--hciss-border); border-radius: var(--radius-button); }
.comment-form .submit { font: var(--text-button); color: var(--hciss-navy-800); background: var(--hciss-gold-600); border: 0; border-radius: var(--radius-button); padding: 13px 24px; cursor: pointer; }
.post-sidebar h2, .post-sidebar .wp-block-search__label { font: var(--text-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--hciss-navy-700); margin: 0 0 12px; display: block; }
.wp-block-search__inside-wrapper { display: flex; gap: 8px; }
.wp-block-search__input { flex: 1; min-width: 0; font: var(--text-body); padding: 10px 12px; border: 1px solid var(--hciss-border); border-radius: var(--radius-button); }
.wp-block-search__button { font: var(--text-button); font-size: 14px; color: var(--hciss-navy-800); background: var(--hciss-gold-600); border: 0; border-radius: var(--radius-button); padding: 10px 16px; cursor: pointer; margin: 0; }
.post-sidebar .wp-block-latest-comments { padding: 0; }

/* ---- Desktop nav fit (7 items + dropdowns) between 881px and 1180px ---- */
#nav-links a, .nav-parent, .site-nav .nav-cta { white-space: nowrap; }
@media (min-width: 881px) and (max-width: 1120px) {
  .site-nav .nav-cta { display: none; }
  .site-nav .logo img { height: 48px; }
  .site-nav { gap: 20px; }
}
@media (min-width: 881px) and (max-width: 1000px) {
  #nav-links { gap: 14px; }
  #nav-links a.hciss-navlink, .nav-parent { font-size: 14px; }
  .site-nav { padding-inline: 24px; }
}

/* ---- Blog ---- */
.blog-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.blog-filter a { font: var(--text-label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--hciss-navy-800); background: var(--hciss-white); border: 1px solid var(--hciss-border); border-radius: var(--radius-badge); padding: 8px 12px; }
.blog-filter a:hover { border-color: var(--hciss-gold-600); text-decoration: none; }
.blog-filter a[aria-current="page"] { background: var(--hciss-navy-800); border-color: var(--hciss-navy-800); color: var(--hciss-slate-050); }
.post-hero-meta { font: var(--text-label); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hciss-ice-200); margin: 0; }
.post-card h2 { margin: 0; }
.post-card .hciss-body-sm { margin: 0; }
.back-to-blog { margin-top: 20px; }
.back-to-blog a { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--hciss-navy-800); }
.entry-content .wp-block-buttons { margin-top: 0.6em; }
.single .entry-content > p:first-of-type { font-size: 19px; color: var(--hciss-navy-800); }

/* ---- Forms: selects ---- */
.form select, .form .form-select { font: var(--text-body); padding: 11px 12px; border: 1px solid var(--hciss-border); border-radius: var(--radius-button); background: var(--hciss-slate-050); color: #1A1A1A; width: 100%; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 2em !important; }
.post-tags span { font: var(--text-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--hciss-navy-700); margin-right: 4px; }
.post-tags a { font: var(--text-label); letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none !important; color: var(--hciss-navy-800) !important; background: var(--hciss-slate-050); border: 1px solid var(--hciss-border); border-radius: var(--radius-badge); padding: 5px 9px; }
