/*
 * AVENSCI EXPERIENCE MODULES
 * Consolidated from historical phase8_* / phase9_* styles.
 * Rule order intentionally preserved.
 */

/* =========================================================
   CHECKOUT / LIBRARY
   Former source: phase8_25.css
   ========================================================= */

/* =========================================================
   SEARCH / ORDERS / CONFIRMATION
   Former source: phase8_35.css
   ========================================================= */

.search-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:32px;padding-top:36px;padding-bottom:60px}.search-filters{border:1px solid #dbe3ee;border-radius:14px;padding:20px;height:max-content;background:#fff}.search-filters label{display:block;font-weight:650;margin-bottom:15px}.search-filters input,.search-filters select{width:100%;margin-top:6px;padding:10px 11px;border:1px solid #cbd5e1;border-radius:8px;background:#fff}.search-card{display:grid;grid-template-columns:100px 1fr;gap:20px;padding:20px 0;border-bottom:1px solid #e5e7eb}.search-card img{width:100px;max-height:145px;object-fit:cover;border-radius:5px}.search-card h2{margin:6px 0 8px;font-size:20px}.access-pill{display:inline-block;font-size:12px;padding:4px 8px;border-radius:999px;background:#eef4ff}.metadata-row{display:flex;gap:18px;flex-wrap:wrap;font-size:13px;color:#64748b;margin:8px 0}.result-count{font-weight:700;margin-bottom:10px}.order-line{display:grid;grid-template-columns:1fr 150px 100px;gap:15px;padding:14px 0;border-bottom:1px solid #e5e7eb}@media(max-width:800px){.search-layout,.orders-table .search-card{grid-template-columns:75px 1fr}.search-card img{width:75px}}

/* =========================================================
   ACCESS CONTROL UI
   Former source: phase8_40.css
   ========================================================= */

.access-grid{display:grid;grid-template-columns:230px minmax(0,1fr);gap:32px;padding-top:36px;padding-bottom:60px}
.access-card,.access-note,.access-allowed,.access-restricted{background:#fff;border:1px solid #dbe3ee;border-radius:14px;padding:22px;margin-bottom:18px}
.access-card h2{margin-top:0;color:#0f2747}.access-note{background:#f8fafc}
.access-decision{max-width:850px;padding-top:45px;padding-bottom:70px}
.access-allowed{border-left:5px solid #16a34a}.access-restricted{border-left:5px solid #c2410c}
.access-allowed>span,.access-restricted>span{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}

@media(max-width:800px){.access-grid{grid-template-columns:1fr}}

/* =========================================================
   ACCESSIBILITY BASE
   Former source: phase8_45.css
   ========================================================= */

:focus-visible{outline:3px solid currentColor;outline-offset:3px}
.skip-link{position:absolute;left:-9999px;top:auto}
.skip-link:focus{left:12px;top:12px;z-index:9999;background:#fff;padding:10px 14px;border:2px solid #0f2747}
img{max-width:100%;height:auto}
button,input,select,textarea{font:inherit}
[aria-current="page"]{font-weight:700}
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}

/* =========================================================
   READINESS UI
   Former source: phase8_50.css
   ========================================================= */

.readiness-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:32px;padding-top:36px;padding-bottom:70px}
.readiness-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:28px}
.readiness-summary>div,.readiness-card{background:#fff;border:1px solid #dbe3ee;border-radius:14px;padding:20px}
.readiness-summary strong{display:block;font-size:28px;color:#0f2747}.readiness-summary span{font-size:13px;color:#64748b}
.readiness-table{border:1px solid #dbe3ee;border-radius:14px;overflow:hidden;background:#fff}
.readiness-row{display:grid;grid-template-columns:1.2fr 110px 1fr;gap:18px;padding:16px;border-bottom:1px solid #e5e7eb}
.readiness-row:last-child{border-bottom:0}
.ready-badge,.blocked-badge{display:inline-block;padding:5px 9px;border-radius:999px;font-size:12px;font-weight:800}
.ready-badge{background:#ecfdf5}.blocked-badge{background:#fff7ed}
@media(max-width:900px){.readiness-layout{grid-template-columns:1fr}.readiness-row{grid-template-columns:1fr}.readiness-summary{grid-template-columns:1fr 1fr 1fr}}

/* =========================================================
   AUTH / HANDOFF / ERRORS
   Former source: phase9_5.css
   ========================================================= */

.auth-page,.handoff-page,.error-page{padding-top:56px;padding-bottom:80px}
.auth-card,.handoff-card,.error-card{max-width:620px;margin:0 auto;background:#fff;border:1px solid #dbe3ee;border-radius:16px;padding:30px}
.auth-card label{display:block;font-weight:700;margin-bottom:16px}.auth-card input{display:block;width:100%;margin-top:7px;padding:11px 12px;border:1px solid #cbd5e1;border-radius:8px}
.auth-error{padding:12px;border:1px solid #ef4444;background:#fff7f7;border-radius:8px;margin-bottom:16px}
.auth-note,.handoff-note{margin-top:18px;color:#64748b;font-size:13px}
.error-card{text-align:center}.error-code{font-size:54px;font-weight:800;color:#0f2747}.error-card .fmp-btn{margin:6px}

/* =========================================================
   CLEANUP / STATUS
   Former source: phase9_10.css
   ========================================================= */

.cleanup-page{padding-top:36px;padding-bottom:70px}.cleanup-warning,.status-summary{background:#fff7ed;border:1px solid #fdba74;border-radius:12px;padding:16px;margin-bottom:22px}
.cleanup-table{border:1px solid #dbe3ee;border-radius:14px;overflow:hidden;background:#fff}.cleanup-row{display:grid;grid-template-columns:1.5fr 100px 1fr;gap:16px;padding:15px;border-bottom:1px solid #e5e7eb}.cleanup-row:last-child{border-bottom:0}
.status-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;padding-top:36px;padding-bottom:70px}.status-grid>section{background:#fff;border:1px solid #dbe3ee;border-radius:14px;padding:20px}.status-row{display:flex;justify-content:space-between;gap:14px;padding:9px 0;border-bottom:1px solid #e5e7eb}.status-row:last-child{border-bottom:0}.status-summary{grid-column:1/-1}
@media(max-width:900px){.status-grid{grid-template-columns:1fr}.cleanup-row{grid-template-columns:1fr}}

/* =========================================================
   EDITORIAL / CONTACT
   Former source: phase9_20.css
   ========================================================= */

.editorial-hero{padding:58px 0 42px;background:linear-gradient(180deg,#f8fbff,#fff)}
.editorial-hero h1{max-width:850px;margin:8px 0 14px;font-size:clamp(34px,5vw,56px);line-height:1.05;color:#0f2747}
.editorial-hero p{max-width:820px;font-size:18px;line-height:1.65;color:#475569}
.editorial-eyebrow{text-transform:uppercase;font-size:12px;font-weight:800;letter-spacing:.09em;color:#315b8a}
.editorial-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}
.editorial-content{padding-top:42px;padding-bottom:72px}.editorial-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.editorial-sections section{border:1px solid #dbe3ee;border-radius:14px;background:#fff;padding:24px}
.editorial-sections h2{margin-top:0;color:#0f2747}.review-notice{padding:14px 16px;margin-bottom:22px;border:1px solid #f59e0b;background:#fffbeb;border-radius:10px}
.contact-layout{display:grid;grid-template-columns:.85fr 1.15fr;gap:42px;padding-top:42px;padding-bottom:72px}
.contact-form{border:1px solid #dbe3ee;border-radius:14px;background:#fff;padding:24px}
.contact-form label{display:block;font-weight:700;margin-bottom:15px}.contact-form input,.contact-form select,.contact-form textarea{display:block;width:100%;margin-top:6px;padding:11px;border:1px solid #cbd5e1;border-radius:8px;background:#fff}
.contact-note,.form-error,.form-success{padding:13px 14px;border-radius:9px;margin:15px 0}.contact-note{background:#f8fafc}.form-error{background:#fff7f7;border:1px solid #ef4444}.form-success{background:#ecfdf5;border:1px solid #86efac}

.fmp-btn{min-height:42px;display:inline-flex;align-items:center;justify-content:center}
@media(max-width:900px){.editorial-sections,.contact-layout{grid-template-columns:1fr}}
@media(max-width:600px){.editorial-hero{padding:38px 0 30px}.editorial-actions .fmp-btn{width:100%}.editorial-content{padding-top:28px}.contact-layout{gap:24px}}
