/* Jeddah Anchor · Edition 07 · layout consistency and authority accessibility.
   The shared page shell is a single source of truth for width, gutters and mastheads.
   No app logic, auth, PDF or issue permissions are modified by this stylesheet. */
:root{
 --ja7-max:1360px;--ja7-gutter:clamp(16px,2.3vw,34px);
 --ja7-deep:#082f48;--ja7-ocean:#0a7396;--ja7-stroke:#dce8ed;
 --ja7-radius:19px;--ja7-soft-shadow:0 7px 26px rgba(5,44,67,.065);
}
html{scroll-behavior:smooth}
body,body.is-admin,body.is-public{overflow-x:clip}
/* A common outer grid; functional forms may be narrower for reading comfort. */
.content-in,.pub-header-in,.pub-main,.pv-top-in,.pv-main{
 box-sizing:border-box;width:100%;max-width:var(--ja7-max)!important;
 margin-inline:auto!important;padding-inline:var(--ja7-gutter)!important;
}
.content-in{padding-block:24px 55px!important;gap:20px!important;align-content:start}
.pub-main{padding-block:24px 48px!important}
.pub-main:is(.is-complaint,.is-feedback,.is-inspection,.is-track){max-width:var(--ja7-max)!important}
.pub-main:is(.is-complaint,.is-feedback,.is-inspection,.is-track)>:is(.form,.card,.pub-intro,.notice,.ix-progress){
 width:min(100%,940px);margin-inline:auto;
}
.pub-main:is(.is-complaint,.is-feedback,.is-inspection)>.form{
 margin-top:-17px!important;position:relative;z-index:2;
}
.pub-main.is-landing .pub-intro,.pub-main.is-landing .choices,.pub-main.is-landing .hint{width:100%}
.pv-main{align-items:stretch;padding-block:24px 48px!important}
.pv-main>.pv-results,.pv-main>.pv-search,.pv-main>.pv-card,.pv-main>.pv-w,.pv-main>.pv-back,.pv-main>.pv-actions,.pv-main>.pv-foot-note{width:100%}
.pv-top-in{min-height:69px!important}
/* Admin pages: predictable masthead height, typography, image/gradient composition. */
:is(.content-in .page-head,.content-in .fi-head,.content-in .ia-head,.rvw .ph){
 position:relative!important;isolation:isolate!important;overflow:hidden!important;
 border-radius:var(--ja7-radius)!important;
 min-height:180px!important;
 padding:clamp(24px,3vw,38px)!important;
 background-color:#0a3b55!important;
 box-shadow:var(--ja7-soft-shadow)!important;
}
:is(.content-in .page-head,.content-in .fi-head,.content-in .ia-head,.rvw .ph)::before,
:is(.content-in .page-head,.content-in .fi-head,.content-in .ia-head,.rvw .ph)::after{display:none!important;content:none!important}
:is(.content-in .page-head,.content-in .fi-head,.content-in .ia-head,.rvw .ph)>*{max-width:min(76%,880px)!important;min-width:0}
:is(.content-in .page-head,.content-in .fi-head,.content-in .ia-head,.rvw .ph) h1{font-size:clamp(1.65rem,2.5vw,2.4rem)!important;line-height:1.35!important;color:#fff!important}
:is(.content-in .page-head,.content-in .fi-head,.content-in .ia-head,.rvw .ph) p{color:#f0f7fa!important;line-height:1.7!important}
/* Report-review has exactly one photo layer, never a nested photo frame. */
.rvw .iw-top:has(.ph),.rvw .iw-top:has(.ph)::before,.rvw .iw-top:has(.ph)::after{
 background:none!important;box-shadow:none!important;border:0!important;
}
.rvw .iw-top:has(.ph){padding:0!important;margin:0!important}
.rvw .iw-top .ph{margin:0!important;width:100%!important;max-width:none!important}
/* Public mastheads inherit same gradients and consistent image crop; one image per surface. */
.pub-main .pub-intro{border-radius:var(--ja7-radius)!important;overflow:hidden!important}
.pub-main:not(.is-landing) .pub-intro{min-height:194px!important}
.pub-main .pub-intro::before,.pub-main .pub-intro::after{display:none!important;content:none!important}
.pub-main .pub-intro :is(h1,p){color:#fff!important}
/* Native select arrows were pushed into the border by conflicting older styles.
   Keep native keyboard/AT behavior; reserve a safe inner chevron inset for RTL and LTR. */
body select:not([multiple]):not([size]){
 appearance:none!important;-webkit-appearance:none!important;
 background-color:#fff!important;
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230c637e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")!important;
 background-size:18px 18px!important;
 background-repeat:no-repeat!important;
 background-position:left 15px center!important;
 padding-left:45px!important;padding-right:15px!important;
 min-height:44px;line-height:1.5;
 text-overflow:ellipsis;cursor:pointer;
}
html[dir=ltr] body select:not([multiple]):not([size]){
 background-position:right 15px center!important;padding-right:45px!important;padding-left:15px!important;
}
:where(.field,.filters,.toolbar,.op-row,.op-form,.fi-filter,.ia-filter,.form,.card,.pv,.content-in) select:disabled{opacity:.65!important;cursor:not-allowed}
:where(.field,.filters,.toolbar,.op-row,.op-form,.fi-filter,.ia-filter,.form,.card,.pv,.content-in) select:focus-visible{
 outline:3px solid rgba(17,137,167,.3);outline-offset:1px;border-color:#087da0;
}
/* Authority header text used light colors on a white background, making it invisible. */
.pv-top{background:#fff!important;border-bottom:1px solid #dce9ef!important;color:#163e56!important}
.pv-top .brand,.pv-top .brand strong{color:#0a3a55!important}
.pv-top .brand small{color:#4b7186!important}
.pv-top .pv-user,.pv-top .pv-user b{color:#16475f!important}
.pv-top .pv-user small{color:#496c7d!important}
.pv-top .pv-user .ic{color:#0d7395!important}
.pv-top .pv-out{background:#f1f7f9;color:#0b4b65;border:1px solid #d4e4ec}
.pv-top .pv-out:hover{background:#e2f1f7;color:#073b57}
.pv-top .pv-out .ic{color:inherit}
.pv-top .ja-lang-switch{flex-shrink:0}
/* One photo and a calibrated navy gradient behind the certificate search heading. */
.pv.is-auth:not(:has(.ja-authority-frame)) .pv-search{
 position:relative!important;isolation:isolate!important;
 width:100%;min-height:285px!important;
 padding:clamp(27px,3.8vw,48px)!important;
 border:1px solid rgba(12,86,116,.15);border-radius:var(--ja7-radius)!important;
 background-image:linear-gradient(270deg,rgba(3,38,59,.98),rgba(4,44,66,.9) 43%,rgba(5,52,72,.38) 77%,rgba(7,50,73,.12)),url('photos/daylight-port.webp')!important;
 background-repeat:no-repeat!important;background-size:cover!important;
 background-position:center,center 58%!important;
 box-shadow:var(--ja7-soft-shadow)!important;
}
html[dir=ltr] .pv.is-auth:not(:has(.ja-authority-frame)) .pv-search{
 background-image:linear-gradient(90deg,rgba(3,38,59,.98),rgba(4,44,66,.9) 43%,rgba(5,52,72,.38) 77%,rgba(7,50,73,.12)),url('photos/daylight-port.webp')!important;
}
.pv.is-auth .pv-search::before,.pv.is-auth .pv-search::after{content:none!important;display:none!important}
.pv.is-auth .pv-search h1{max-width:720px;color:#fff!important;font-size:clamp(1.8rem,2.55vw,2.55rem)!important;line-height:1.4!important}
.pv.is-auth .pv-search>p{color:#ebf5fa!important;max-width:680px!important;line-height:1.75}
.pv.is-auth .pv-search .pv-sform{width:100%;max-width:min(760px,100%)!important;gap:10px}
.pv.is-auth .pv-search .pv-sbox{min-width:0!important;flex:1 1 250px}
.pv.is-auth .pv-search .pv-sbox input{color:#163f58!important;background:#fff!important;border:1px solid #c4dce6!important;min-width:0}
.pv.is-auth .pv-search .pv-sform>.btn{min-height:48px;background:#efbc66!important;color:#123c52!important;border-color:#efbc66!important}
/* QA warning must not inherit the hero's pale text. */
.pv.is-auth .pv-search .pv-test{
 display:flex!important;align-items:center!important;gap:9px;
 width:fit-content;max-width:760px!important;min-height:44px;
 padding:11px 15px!important;margin-top:17px!important;
 border:1px solid #f3c6ab!important;border-radius:11px!important;
 color:#79351e!important;background:#fff5e9!important;
 font-weight:700;font-size:.84rem;line-height:1.55;
}
.pv.is-auth .pv-search .pv-test span,.pv.is-auth .pv-search .pv-test .ic{color:#79351e!important;stroke:#79351e!important}
/* Non-empty authority landing, with honest descriptions of actual searchable identifiers. */
.ja7-authority-guide{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;width:100%;margin:0!important}
.ja7-authority-guide>div{background:#fff;border:1px solid var(--ja7-stroke);border-radius:15px;padding:20px;box-shadow:var(--ja7-soft-shadow);min-width:0}
.ja7-authority-guide .ic{width:23px;height:23px;color:var(--ja7-ocean)}
.ja7-authority-guide h2{font-size:1rem;color:#103c55;margin:9px 0 4px;line-height:1.5}
.ja7-authority-guide p{font-size:.85rem;color:#4b6a7b;line-height:1.7;margin:0}
/* Authority login photo: deliberate focal point and stronger contrast of overlays and captions. */
.pv.is-auth:has(.ja-authority-frame) .pv-main{align-items:center;justify-content:center;padding-block:24px!important}
.ja-authority-frame{width:min(1190px,100%)!important;max-width:100%!important;min-height:0!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;overflow:hidden!important;border-radius:var(--ja7-radius)!important}
.ja-authority-story{min-height:560px!important;background-image:url('photos/harbor.webp')!important;background-position:56% center!important;background-size:cover!important}
.ja-authority-story::before{display:block!important;content:""!important;background:linear-gradient(180deg,rgba(4,36,57,.75),rgba(4,38,59,.16) 39%,rgba(3,28,49,.9))!important}
.ja-authority-story-copy h2,.ja-authority-story-copy p,.ja-authority-story-top,.ja-authority-story-top small,.ja-authority-story-foot{color:#fff!important;text-shadow:0 2px 9px rgba(0,22,40,.48)}
.pv.is-auth .ja-authority-frame .pv-login{padding:clamp(26px,3.2vw,48px)!important;gap:12px!important;min-width:0}
.pv.is-auth .ja-authority-frame .pv-login>p{color:#45667a!important}
/* Standard page components: one radius & density scale for cards, tables, and forms. */
:where(.content-in .card,.content-in .op-card,.content-in .fi-card,.content-in .kpi,.content-in .iw-card,.pub-main .choice,.pv-card){border-radius:15px!important;border-color:var(--ja7-stroke)!important}
:where(.content-in .card,.content-in .op-card,.content-in .fi-card,.pub-main .choice,.pv-card){box-shadow:var(--ja7-soft-shadow)!important}
@media(max-width:1023px){
 .content-in{padding-block:16px 35px!important}
 .pv-top-in,.pub-header-in{min-height:62px!important}
 .pv-top .pv-user{min-width:0;max-width:34vw}
 .pv-top .pv-user span{overflow:hidden}
 .pv-top .pv-user b,.pv-top .pv-user small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
@media(max-width:760px){
 .content-in,.pub-main,.pv-main,.pub-header-in,.pv-top-in{padding-inline:16px!important}
 :is(.content-in .page-head,.content-in .fi-head,.content-in .ia-head,.rvw .ph){
  min-height:190px!important;padding:25px 20px!important;
  background-position:center,44% center!important;
 }
 :is(.content-in .page-head,.content-in .fi-head,.content-in .ia-head,.rvw .ph)>*{max-width:100%!important}
 .pv.is-auth:not(:has(.ja-authority-frame)) .pv-search{
  min-height:0!important;background-image:linear-gradient(180deg,rgba(3,38,59,.95),rgba(3,38,59,.76)),url('photos/daylight-port.webp')!important;
  padding:27px 21px!important;background-position:center,54% center!important;
 }
 html[dir=ltr] .pv.is-auth:not(:has(.ja-authority-frame)) .pv-search{background-image:linear-gradient(180deg,rgba(3,38,59,.95),rgba(3,38,59,.76)),url('photos/daylight-port.webp')!important}
 .pv.is-auth .pv-search .pv-sform{flex-direction:column}
 .pv.is-auth .pv-search .pv-sform .btn{width:100%}
 .pv.is-auth .pv-search .pv-sbox{flex:0 1 auto;width:100%}
 .ja7-authority-guide{grid-template-columns:1fr}
 .ja-authority-frame{grid-template-columns:1fr!important}
 .ja-authority-story{min-height:250px!important;padding:24px!important;background-position:center 60%!important}
 .ja-authority-story-copy h2{font-size:1.6rem!important}
 .ja-authority-story-foot{display:none!important}
 .pv.is-auth .ja-authority-frame .pv-login{padding:25px 22px!important}
 .pv-main{padding-block:18px 34px!important}
 .pub-main:is(.is-complaint,.is-feedback,.is-inspection)>.form{margin-top:-10px!important}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}}

/* Edition 08 follow-up — enlarge shared canvas, strengthen login, and improve public-form internals. */
:root{--ja7-max:1480px;--ja7-gutter:clamp(18px,2vw,32px)}
/* Public functional pages were over-narrow after the width unification.
   Keep a common outer shell, but let the inner form surfaces breathe. */
.pub-main:is(.is-complaint,.is-feedback,.is-inspection,.is-track)>:is(.form,.card,.pub-intro,.notice,.ix-progress){
 width:min(100%,1100px)!important;margin-inline:auto!important;
}
.pub-main:not(.is-landing) .pub-intro{
 min-height:218px!important;padding:clamp(28px,3.2vw,42px)!important;
}
.pub-main:not(.is-landing) .pub-intro :is(h1,p){max-width:min(60%,760px)!important}
.pub-main:is(.is-complaint,.is-feedback,.is-inspection)>.form{
 width:min(100%,1100px)!important;
 margin-top:-22px!important;padding:clamp(26px,3vw,40px)!important;
}
.pub-main .form .group{gap:18px!important;margin-block:0 22px!important}
.pub-main .form .group-title{font-size:1.03rem!important;color:#123f57!important;font-weight:700!important;padding-bottom:13px!important}
.pub-main .grid-2{gap:18px 16px!important}
.pub-main .field{gap:8px!important}
.pub-main .field :is(input:not([type=radio]):not([type=checkbox]):not([type=file]),select,textarea),
.pub-main .input{
 min-height:52px!important;padding:12px 16px!important;border-radius:12px!important;
 background:#fbfdfe!important;border-color:#cfe0e8!important;
}
.pub-main .field textarea{min-height:138px!important}
.pub-main .field :is(input,select,textarea):focus,.pub-main .input:focus{
 background:#fff!important;border-color:#0f86aa!important;box-shadow:0 0 0 3px rgba(14,136,170,.12)!important;
}
.pub-main .seg-field{margin-bottom:4px!important}
.pub-main .segmented{padding:5px!important;border:1px solid #d9e6ec!important;background:#edf4f7!important;border-radius:16px!important}
.pub-main .segmented label{min-height:56px!important;border-radius:12px!important;font-weight:700!important}
.pub-main .segmented input:checked+label{color:#085f80!important;box-shadow:0 1px 2px rgba(10,50,70,.06),0 0 0 1px #d8e7ee!important}
.pub-main .upload{padding:18px!important;border-radius:14px!important;background:#fbfdfe!important}
.pub-main .form-actions{padding-top:18px!important;gap:12px!important}
.pub-main .form-actions .btn{min-height:50px!important;padding-inline:22px!important;border-radius:12px!important}
.pub-main .req-note,.pub-main .privacy-note,.pub-main .help-row{font-size:.82rem!important}
/* Complaint page specific layout balance. */
.pub-main.is-complaint .segmented{grid-template-columns:1fr 1fr!important}
/* Feedback internals: larger rating block, calmer spacing, clearer two-column fields. */
.pub-main.is-feedback .rating-field{
 display:grid!important;justify-items:center!important;gap:10px!important;
 padding:30px 28px!important;border-radius:18px!important;
 border:1px solid #edd7a7!important;background:radial-gradient(circle at 50% 0,#fff5db,#fff 74%)!important;
}
.pub-main.is-feedback .rating{gap:14px!important;justify-content:center!important;flex-wrap:wrap!important}
.pub-main.is-feedback .rating label{width:54px!important;height:54px!important;border-radius:16px!important}
.pub-main.is-feedback .rating-caption{font-size:.96rem!important;color:#6a5830!important}
/* Login page: make the premium stage feel intentional and large enough on desktop.
   Avoid a tiny card floating in excessive whitespace. */
.auth.auth-premium{
 min-height:calc(100dvh - 124px)!important;padding:clamp(18px,2.4vw,34px)!important;
 display:grid!important;place-items:center!important;
}
.auth.auth-premium .auth-stage{
 width:min(1240px,100%)!important;max-width:1240px!important;
 min-height:640px!important;height:min(640px,calc(100dvh - 158px))!important;
 grid-template-columns:minmax(430px,.96fr) minmax(0,1.04fr)!important;
 border-radius:24px!important;overflow:hidden!important;
}
.auth.auth-premium .auth-card{
 padding:clamp(34px,4vw,60px)!important;justify-content:center!important;gap:16px!important;
}
.auth.auth-premium .auth-brand{padding-bottom:18px!important;margin-bottom:2px!important}
.auth.auth-premium .auth-brand img{width:58px!important;height:58px!important}
.auth.auth-premium .auth-brand strong{font-size:1.24rem!important}
.auth.auth-premium h1{font-size:clamp(2.1rem,3.2vw,3rem)!important;line-height:1.18!important;margin:4px 0!important}
.auth.auth-premium .muted{font-size:1rem!important;line-height:1.8!important;max-width:35ch!important;margin:0 0 12px!important}
.auth.auth-premium form{gap:18px!important}
.auth.auth-premium .field label{font-size:.89rem!important}
.auth.auth-premium .field input{min-height:56px!important;font-size:1rem!important;border-radius:12px!important}
.auth.auth-premium .btn.btn-primary{min-height:54px!important;border-radius:12px!important;font-size:1rem!important}
.auth.auth-premium .auth-foot{margin-top:auto!important;padding-top:8px!important}
.auth.auth-premium .auth-story{padding:24px!important;background-position:center!important}
.auth.auth-premium .auth-story-copy{padding:20px 24px!important;border-radius:18px!important;max-width:min(76%,420px)!important}
.auth.auth-premium .auth-story-copy h2{font-size:clamp(2rem,2.8vw,2.6rem)!important;line-height:1.2!important}
.auth.auth-premium .auth-story-copy p{font-size:1rem!important;line-height:1.8!important}
.auth.auth-premium .auth-story-bottom{padding:0 24px 18px!important}
/* Wider-but-still-structured authority login stage. */
.pv.is-auth:has(.ja-authority-frame) .pv-main{padding-block:28px 40px!important}
.ja-authority-frame{width:min(1260px,100%)!important;grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr)!important}
.ja-authority-story{min-height:600px!important}
.pv.is-auth .ja-authority-frame .pv-login{padding:clamp(32px,3.4vw,54px)!important;gap:14px!important}
/* Shared public cards feel better a bit larger after the container expansion. */
.pub-main.is-landing .choices{gap:18px!important}
.pub-main.is-landing .choice{min-height:185px!important}
@media(max-width:1080px){
 .auth.auth-premium .auth-stage{width:min(1160px,100%)!important;grid-template-columns:minmax(380px,.94fr) minmax(0,1.06fr)!important}
 .pub-main:not(.is-landing) .pub-intro :is(h1,p){max-width:70%!important}
}
@media(max-width:760px){
 :root{--ja7-max:100%}
 .pub-main:is(.is-complaint,.is-feedback,.is-inspection,.is-track)>:is(.form,.card,.pub-intro,.notice,.ix-progress){width:100%!important}
 .pub-main:not(.is-landing) .pub-intro{min-height:200px!important;padding:24px 20px!important}
 .pub-main:not(.is-landing) .pub-intro :is(h1,p){max-width:100%!important}
 .pub-main:is(.is-complaint,.is-feedback,.is-inspection)>.form{margin-top:-10px!important;padding:22px 18px!important}
 .pub-main .grid-2{grid-template-columns:1fr!important;gap:14px!important}
 .pub-main.is-feedback .rating-field{padding:22px 14px!important}
 .pub-main.is-feedback .rating label{width:48px!important;height:48px!important}
 .auth.auth-premium{padding:14px!important;min-height:calc(100dvh - 118px)!important}
 .auth.auth-premium .auth-stage{display:flex!important;flex-direction:column!important;max-width:560px!important;min-height:0!important;height:auto!important}
 .auth.auth-premium .auth-story{order:1;min-height:220px!important;padding:22px!important}
 .auth.auth-premium .auth-story-copy{max-width:100%!important;padding:16px 18px!important}
 .auth.auth-premium .auth-card{order:2;padding:26px 22px!important}
}
