@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;500;700&display=swap');
:root{--teal:#007f80;--ink:#173f43;--muted:#536e68;--sand:#f5f3eb;--line:#d6dfd6}
*{box-sizing:border-box}body{margin:0;background:var(--sand);color:var(--ink);font:16px/1.5 Ubuntu,'Trebuchet MS',sans-serif}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;min-height:44px}button:disabled{opacity:.5;cursor:not-allowed}[hidden]{display:none!important}a{color:#006d70}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #c28b27;outline-offset:3px}
.shell{width:calc(100% - 36px);max-width:1200px;margin:auto}.header{background:white}.top{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-block:18px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink);min-width:0}.brand img{width:48px;height:48px;object-fit:contain}.brand strong{display:block;font-size:24px;letter-spacing:-.8px}.brand em{font-style:normal;color:var(--teal)}.brand small{display:block;font-size:10px;max-width:330px}.clock{text-align:right;flex-shrink:0;font-size:11px;color:var(--muted)}.clock time{display:block;font-size:25px;color:var(--ink);font-variant-numeric:tabular-nums}.tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:3px;padding-block:9px;border-top:1px solid #f0f0eb}.tabs button{background:none;border:0;padding:9px 4px;color:var(--ink);font-size:12px;border-radius:24px;display:flex;align-items:center;justify-content:center;gap:7px}.tabs button.active{background:#e5eee7;color:#006e67}.icon{width:19px;height:19px;display:inline-block;flex-shrink:0}
.hero-photo{position:relative;min-height:290px;background:linear-gradient(120deg,#005b60,#278e88);overflow:hidden}.hero-photo img{position:absolute;width:100%;height:100%;object-fit:cover;inset:0;transition:opacity .5s}.hero-photo:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#003b40cf,#003b4020 90%);pointer-events:none}.hero-copy{position:relative;z-index:1;padding-top:70px;padding-bottom:85px;color:#fff;pointer-events:none}.hero-copy small{font-size:11px;letter-spacing:1.7px;text-transform:uppercase}.hero-copy h1{font-size:clamp(32px,4.4vw,49px);line-height:1.1;font-weight:500;letter-spacing:-1px;margin:12px 0}.hero-copy p{margin:0;max-width:650px}.photo-controls{position:absolute;right:18px;top:12px;z-index:2;display:flex;gap:6px;align-items:center}.photo-controls button{background:#fffef2e8;color:#104c4b;border:0;border-radius:50%;min-width:44px}.photo-controls span{color:white;text-shadow:0 1px 3px #000;font-size:12px}.photo-caption{position:absolute;z-index:2;bottom:50px;right:18px;color:white;max-width:40%;font-size:11px;text-shadow:0 1px 4px #000}
.planner{position:relative;z-index:3;margin-top:-38px;background:#edf2ef;border-radius:10px;padding:18px;box-shadow:0 12px 24px #173e4120}.trip-type{border:0;background:transparent;color:#17635d;margin-bottom:12px;padding:6px}.fields{display:grid;grid-template-columns:1fr;gap:10px;align-items:stretch}.field{background:white;padding:11px 13px;border-radius:5px;min-width:0;position:relative}.field label{display:block;color:#087a74;font-size:14px}.field select,.date-trigger{display:block;width:100%;border:0;background:white;color:#304f50;min-height:35px;text-align:left;padding:3px 0;font-size:16px}.primary{border:0;background:var(--teal);color:white;padding:12px 19px;border-radius:5px;display:inline-flex;align-items:center;justify-content:center;gap:8px}.secondary,.booking{display:inline-flex;align-items:center;justify-content:center;border:1px solid #b6c9c0;background:#fff;color:#175e59;border-radius:7px;padding:9px 13px;min-height:44px;text-decoration:none;font:inherit;gap:7px}.help{font-size:12px;color:var(--muted);margin:13px 0}
.calendar{background:white;border:1px solid #c3d7cb;padding:14px;border-radius:9px;box-shadow:0 10px 25px #10434420;position:absolute;top:100%;left:0;width:min(330px,calc(100vw - 64px));z-index:20}.calendar-header{display:flex;justify-content:space-between;align-items:center}.calendar-header button{background:white;border:0;min-width:44px;color:#175e59}.days{display:grid;grid-template-columns:repeat(7,1fr);gap:3px;text-align:center}.days small{font-size:12px}.days button{border:0;background:#e6f3eb;color:#155e57;border-radius:5px;font-weight:700;padding:3px;min-height:38px}.days button:disabled{background:white;color:#75847b;font-weight:400}.days button.chosen{background:#006f72;color:white}.content{padding-block:24px 32px}h2{font-size:27px;font-weight:500;letter-spacing:-.5px}h3{font-weight:500}
.notice{display:flex;align-items:center;gap:12px;flex-wrap:wrap;border:1px solid #d8c99c;border-left:4px solid #9d7924;background:#fbf6e7;padding:15px 18px;margin:14px 0;color:#68521f}.notice a{color:inherit}.notice strong{display:block}.notice.cancelled,.notice.suspended{background:#fff0eb;color:#8b3529;border-color:#dbad9e}.notice.information{background:#e7f2ee;color:#155e54;border-color:#b5d5c9}.notice .secondary{margin-left:auto}.result{background:white;padding:20px;border-bottom:1px solid var(--line);display:grid;gap:14px;grid-template-columns:1fr}.result.blocked{border-left:4px solid #b14330;background:#fff5f1}.result-time strong{display:block;font-size:23px}.duration{display:inline-block;font-size:13px;background:#e8f2e9;color:#225e4f;border-radius:5px;padding:4px 8px;margin:6px 0}.vessel{display:flex;align-items:center;gap:10px;min-width:0}.vessel img,.logo-fallback{width:48px;height:48px;object-fit:contain;flex-shrink:0}.logo-fallback{background:#e4efe7;border-radius:50%;display:grid;place-items:center;color:#1c6058}.vessel strong{display:block}.vessel small{color:var(--muted)}.result-route{overflow-wrap:anywhere}.actions{display:flex;flex-wrap:wrap;gap:8px}.remarks{white-space:pre-line;font-size:14px}.result-notices{grid-column:1/-1}.result-notices .notice{margin:5px 0;font-size:14px}
.toolbar{display:flex;gap:12px;flex-wrap:wrap;align-items:end;margin:16px 0}.toolbar label{display:block;flex:1;min-width:150px;font-size:14px}.toolbar select,.toolbar input,.guide-picker select,.map-side select{display:block;width:100%;font:inherit;font-size:16px;padding:10px;border:1px solid #bacdc2;background:white;border-radius:5px;color:var(--ink);margin:5px 0}.toolbar>button{flex:1}.board-row{background:white;padding:18px;border-bottom:1px solid var(--line);display:grid;gap:12px}.board-row.soon-departure{background:#fcf0d6;border-left:4px solid #ad7927}.board-row.soon-arrival{background:#e1f1e7;border-left:4px solid #26816a}.board-row.elapsed{background:#e9edeb;border-left:4px solid #84978b}.board-row.blocked{background:#fff0eb;border-left:4px solid #b34a39}.board-time{font-size:24px}.board-status small{display:block}.week-nav{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin:16px 0}.week-nav button{background:white;color:#175d58;border:1px solid #bfd3c5;border-radius:7px;padding:7px 2px;font-size:12px}.week-nav button.active{background:var(--teal);color:white}.week-nav small{display:block}
.map-layout{display:grid;grid-template-columns:1fr;gap:20px}.map-side{background:white;border-radius:10px;padding:20px;min-width:0}.map-side .primary{width:100%}#map{height:380px;min-width:0;background:#bddadd;z-index:0}#map .leaflet-popup-content{font-family:inherit}.guide{background:white;padding:22px;border:1px solid var(--line);margin-top:16px;white-space:normal}.guide p,.guide li{white-space:pre-line}.guide li{padding-bottom:12px}.guide-picker{margin-top:18px}.guide-picker label{display:block}.advisory-detail{background:white;padding:22px;margin:15px 0;border-left:4px solid #c09237}.advisory-detail p{white-space:pre-line}.advisory-detail dt{font-weight:500;color:#32645e}.advisory-detail dd{margin:0 0 12px}.empty{padding:24px;background:white;color:var(--muted)}#page-status{font-size:13px;padding-top:12px;white-space:pre-line}#page-status.error{color:#a22c27}
footer{background:#005e62;color:#e2eee7;padding:32px 0 24px}.footer-divider{display:flex;align-items:center;justify-content:center;gap:24px;margin-bottom:30px;font-size:25px;font-weight:500}.footer-divider:before,.footer-divider:after{content:'';height:1px;background:#88b5b2;flex:1}.footer-divider em{font-style:normal;color:#efd499}.footer-columns{display:grid;grid-template-columns:1fr 1fr;gap:24px}.footer-columns h3{font-size:17px}.footer-columns button{display:block;border:0;color:#e3eee7;background:transparent;padding:4px 0;text-align:left}.footer-credits{grid-column:1/-1;font-size:14px}.footer-credits img{width:220px;height:auto;max-width:100%;object-fit:contain}.footer-bottom{border-top:1px solid #679b97;margin-top:25px;padding-top:20px;display:flex;gap:16px;flex-wrap:wrap;justify-content:space-between;align-items:center;font-size:12px}.government{display:flex;align-items:center;gap:12px}.government img{width:55px;height:55px;object-fit:contain}.motto{color:#f0d7a5;font-size:17px}.spinner{display:inline-block;width:17px;height:17px;border:2px solid #ffffff60;border-top-color:white;border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
@media(min-width:800px){body{font-size:17px}.brand strong{font-size:28px}.brand img{width:60px;height:60px}.brand small{font-size:11px;max-width:none}.clock time{font-size:29px}.tabs{grid-template-columns:repeat(6,1fr)}.tabs button{font-size:15px;padding:12px 8px}.hero-photo{min-height:350px}.hero-copy{padding-top:90px}.planner{padding:22px}.fields{grid-template-columns:1fr 1fr 1fr auto}.result{grid-template-columns:1fr 1.1fr 1.2fr}.result .ticketing{grid-column:1/-1}.board-row{grid-template-columns:.8fr 1.2fr 1.3fr 1fr;align-items:center}.board-row .result-notices{grid-column:1/-1}.map-layout{grid-template-columns:300px minmax(0,1fr)}#map{height:600px}.footer-columns{grid-template-columns:.8fr .8fr 1.3fr}.footer-credits{grid-column:auto}.toolbar>button{flex:0 1 auto}.week-nav button{font-size:16px}.photo-caption{bottom:55px}}
@media(max-width:420px){.brand strong{font-size:20px}.brand img{width:36px;height:36px}.clock time{font-size:18px}.clock{max-width:120px}.brand{gap:7px}.brand small{font-size:9px}.tabs button{font-size:11px}.hero-copy p{font-size:14px}.photo-caption{max-width:80%;bottom:44px}.footer-columns{grid-template-columns:1fr}.actions .booking,.actions .secondary{flex:1}.calendar{left:-10px;width:min(310px,calc(100vw - 55px))}}
@media(prefers-reduced-motion:reduce){.hero-photo img{transition:none}.spinner{animation:none}}
@media print{nav,.photo-controls,.toolbar,.actions,.planner,.hero-photo,footer{display:none!important}.shell{width:100%}.panel[hidden]{display:none!important}body{background:white;color:black}.result,.board-row,.advisory-detail{break-inside:avoid}}
@media(max-width:600px){.top{flex-wrap:wrap;gap:12px}.brand{width:100%;gap:10px}.brand strong{font-size:25px}.brand small{font-size:10px}.brand img{width:45px;height:45px}.clock{max-width:none;width:100%;display:flex;align-items:center;gap:10px;flex-wrap:wrap;text-align:left;border-top:1px solid #e6ebe4;padding-top:9px}.clock time{font-size:23px}.clock #clock-source{margin-left:auto}.clock>span{font-size:10px}.hero-copy{padding-top:65px;padding-bottom:75px}}
.hero-photo img:not([hidden]){animation:photo-in .6s ease}@keyframes photo-in{from{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){.hero-photo img:not([hidden]){animation:none}}
/* Return date stays before the action; roundtrip search occupies the next row. */
.fields.roundtrip #search{grid-column:1/-1}
@media(min-width:800px){.fields.roundtrip{grid-template-columns:repeat(4,minmax(0,1fr))}.fields.roundtrip .return-field{grid-column:auto}.fields.roundtrip #search{justify-self:end;min-width:200px}.fields.roundtrip .return-field .calendar{left:auto;right:0}}

/* Port guides share the Interactive Map's sidebar proportions and spacing. */
.guide-layout{align-items:start}
.guide-side label{display:block;font-size:14px;color:var(--ink);margin-bottom:18px}
.guide-side select{min-height:46px}
.guide-side select:disabled{background:#f4f6f3;color:#72827b;cursor:not-allowed}
.guide-display{min-width:0}
.guide-display #guide-notices:empty{display:none}
.guide-display #guide-notices .notice:first-child{margin-top:0}
.guide-welcome,.guide-display .guide-instruction{background:white;border:1px solid var(--line);border-radius:10px;overflow:hidden;margin:0;padding:0}
.guide-section-head{padding:26px 28px 23px;border-bottom:1px solid #e4ebe5}
.guide-section-head h3{font-size:25px;line-height:1.3;letter-spacing:-.5px;margin:9px 0 10px;overflow-wrap:anywhere}
.guide-section-head p{font-size:15px;color:var(--muted);line-height:1.7;margin:0;max-width:65ch}
.guide-checklist{padding:4px 28px 10px}
.guide-checklist>div{display:flex;gap:16px;padding:21px 0;border-bottom:1px solid #edf1ec}
.guide-checklist>div:last-child{border:0}
.guide-checklist .icon{color:var(--teal);margin-top:3px;width:21px;height:21px}
.guide-checklist h4,.guide-directions h4,.guide-practical h4{font-size:16px;font-weight:500;margin:0 0 5px}
.guide-checklist p{font-size:14px;color:var(--muted);line-height:1.65;margin:0;max-width:62ch}
.guide-route-arrow{color:var(--teal)}
.guide-facts{display:flex;flex-wrap:wrap;gap:18px 30px;padding:19px 28px;background:#f0f6f2;border-bottom:1px solid #dce7df;margin:0}
.guide-facts>div{flex:1 1 180px;min-width:0}
.guide-facts dt{color:var(--muted);font-size:12px;margin-bottom:5px}
.guide-facts dd{margin:0;font-size:16px;white-space:pre-line;overflow-wrap:anywhere}
.guide-directions{padding:25px 28px 6px}
.guide-steps{list-style:none;counter-reset:port-step;margin:20px 0 0;padding:0}
.guide-steps li{counter-increment:port-step;display:flex;gap:15px;position:relative;padding:0 0 23px!important;line-height:1.75;overflow-wrap:anywhere}
.guide-steps li:before{content:counter(port-step);display:grid;place-items:center;flex:0 0 28px;height:28px;background:#e6f2eb;color:#006c68;border:1px solid #cce0d6;border-radius:50%;font-size:12px;font-weight:700}
.guide-steps li>div{min-width:0;white-space:pre-line;padding-top:1px}
.guide-practical{margin:0 28px 24px;padding:16px 18px;border-left:3px solid #b59c59;background:#f8f6ef}
.guide-practical p{margin:0;color:var(--muted);font-size:14px;line-height:1.75}
.guide-description{white-space:pre-line}
.guide-source{border-top:1px solid #e4ebe5;padding:15px 28px;color:var(--muted);display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;font-size:12px}
@media(max-width:600px){.guide-section-head{padding:22px}.guide-section-head h3{font-size:23px}.guide-checklist{padding:0 22px 5px}.guide-facts{padding:18px 22px}.guide-directions{padding:22px 22px 3px}.guide-practical{margin:0 22px 22px}.guide-source{padding:15px 22px}}

/* One title, two selectors, one reading area. */
#guide-panel>h2{margin-bottom:22px}
.guide-side label:last-child{margin-bottom:0}
.guide-section-head h3{margin-top:0}

/* Mobile navigation and actions use consistent, flexible tap targets. */
@media(max-width:799px){
 .tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding-block:12px;grid-auto-rows:1fr}
 .tabs button{border:1px solid #b6c9c0;border-radius:24px;background:#fff;min-height:48px;min-width:0;width:100%;padding:10px 12px;font-size:13px;line-height:1.3;white-space:normal;overflow-wrap:anywhere;justify-content:flex-start;text-align:left;gap:9px}
 .tabs button.active{border-color:#007f80;background:#e5eee7;color:#006e67}
 .panel :is(.primary,.secondary,.booking){box-sizing:border-box;min-width:0;max-width:100%;min-height:48px;font-size:14px;line-height:1.4;padding:11px 14px;white-space:normal;overflow-wrap:anywhere;text-align:center}
 .toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:stretch}
 .toolbar>label{grid-column:1/-1;min-width:0;width:100%;margin:0}
 .toolbar>button{min-width:0;width:100%}
 .toolbar>button:not([data-board]){grid-column:1/-1}
 .toolbar input:not([type=checkbox]),.toolbar select{min-width:0;max-width:100%;width:100%}
 .toolbar input[type=checkbox]{display:inline-block;width:auto;margin-right:7px}
 .actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(140px,100%),1fr));gap:10px;align-items:stretch}
 .actions :is(.booking,.secondary,.primary){width:100%;height:100%}
 .notice>div{min-width:0;flex:1 1 180px}
 .notice :is(.secondary,.primary){width:100%;margin-left:0;flex-basis:100%}
 .map-side>button{width:100%;min-width:0}
 #planner-form #search{width:100%;min-width:0;justify-self:stretch}
 .field .date-trigger{min-width:0;width:100%;font-size:16px}
 .week-nav{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;grid-auto-rows:1fr}
 .week-nav button{min-width:0;min-height:48px;width:100%;font-size:13px;padding:9px 4px;white-space:normal;overflow-wrap:anywhere}
 .week-nav small{font-size:11px}
 .calendar-header button{min-width:44px}
 .days button{min-width:0;width:100%;min-height:38px}
 .photo-controls button{width:44px;height:44px;min-width:44px;flex:0 0 44px;padding:0}
}
@media(min-width:560px) and (max-width:799px){.tabs{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:359px){.toolbar{grid-template-columns:1fr}.toolbar>button{grid-column:1/-1}.week-nav{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Port guide v8: a single journey selector and full-width reading area. */
#guide-panel{padding-top:4px}
#guide-panel .port-guide-intro{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:30px 32px 50px;border-radius:14px;background:linear-gradient(115deg,#004f55,#007f80);color:#fff}
#guide-panel .port-guide-kicker{text-transform:uppercase;font-size:11px;letter-spacing:1.6px;color:#cce6dc}
#guide-panel .port-guide-intro h2{font-size:clamp(27px,3vw,36px);line-height:1.2;margin:9px 0 12px;font-weight:500}
#guide-panel .port-guide-intro p{margin:0;max-width:55ch;color:#e1efea;font-size:15px}
#guide-panel .port-guide-emblem{display:grid;place-items:center;width:80px;height:80px;border:1px solid #ffffff40;border-radius:50%;flex-shrink:0;transform:rotate(-8deg)}
#guide-panel .port-guide-emblem .icon{width:38px;height:38px;color:#efd499}
#guide-panel .port-guide-selector{position:relative;margin:-24px 24px 28px;padding:24px 26px 16px;display:grid;grid-template-columns:minmax(0,1fr) 28px minmax(0,1fr);column-gap:18px;row-gap:12px;align-items:end;background:white;border:1px solid #d6dfd6;border-radius:10px;box-shadow:0 6px 16px #173f430b}
#guide-panel .port-guide-selector label{display:block;min-width:0}
#guide-panel .port-guide-label{display:flex;align-items:center;gap:9px;color:#24534f;font-size:14px;font-weight:500;margin-bottom:10px}
#guide-panel .port-guide-number{display:grid;place-items:center;flex:0 0 23px;height:23px;background:#e6f1eb;color:#00716d;border-radius:50%;font-size:12px}
#guide-panel .port-guide-selector select{display:block;width:100%;max-width:100%;min-width:0;min-height:48px;border:1px solid #b5cac0;border-radius:6px;background:#fff;color:#173f43;font:inherit;font-size:16px;padding:10px 12px}
#guide-panel .port-guide-selector select:disabled{background:#f1f4f1;color:#72827b}
#guide-panel .port-guide-connector{color:#568c80;text-align:center;font-size:23px;padding-bottom:10px}
#guide-panel .port-guide-status{grid-column:1/-1;font-size:12px;color:#536e68;margin:0;line-height:1.5}
#guide-panel .guide-display{max-width:100%;margin:0 24px}
#guide-panel .port-guide-ready{padding:6px 0 16px}
#guide-panel .port-guide-ready>h3{margin:0 0 20px;font-weight:500;font-size:22px;letter-spacing:-.4px}
#guide-panel .port-guide-tips{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
#guide-panel .port-guide-tips>div{padding:0 22px 0 0;border-right:1px solid #d6dfd6}
#guide-panel .port-guide-tips>div:last-child{border-right:0;padding-right:0}
#guide-panel .port-guide-tips .icon{color:#007f80;width:22px;height:22px;margin-bottom:10px}
#guide-panel .port-guide-tips h4{font-size:15px;font-weight:500;margin:0 0 7px}
#guide-panel .port-guide-tips p{font-size:13px;color:#536e68;line-height:1.7;margin:0}
#guide-panel .guide-section-head{background:#fff;border-top:3px solid #007f80}
#guide-panel .guide-section-head h3{font-size:24px}
#guide-panel .guide-description,#guide-panel .guide-steps li>div{max-width:72ch}
@media(max-width:799px){
 #guide-panel .port-guide-intro{padding:25px 23px 45px}
 #guide-panel .port-guide-emblem{width:52px;height:52px}
 #guide-panel .port-guide-emblem .icon{width:26px;height:26px}
 #guide-panel .port-guide-selector{margin:-22px 12px 24px;padding:19px;grid-template-columns:minmax(0,1fr);gap:18px}
 #guide-panel .port-guide-connector{display:none}
 #guide-panel .guide-display{margin:0 12px}
 #guide-panel .port-guide-tips{grid-template-columns:1fr;gap:0}
 #guide-panel .port-guide-tips>div{border-right:0;border-bottom:1px solid #d6dfd6;padding:17px 0;display:grid;grid-template-columns:26px 1fr;column-gap:12px}
 #guide-panel .port-guide-tips>div:last-child{border-bottom:0}
 #guide-panel .port-guide-tips .icon{grid-row:1/3;margin:0}
 #guide-panel .port-guide-tips p{grid-column:2}
 #guide-panel .port-guide-ready>h3{margin-bottom:2px;font-size:20px}
}
@media(max-width:420px){#guide-panel .port-guide-emblem{display:none}#guide-panel .port-guide-selector{margin-inline:0}#guide-panel .guide-display{margin-inline:0}}

/* Sailing board: dates, direction tabs and expandable timetable rows. */
#board-panel .board-heading h2{margin-bottom:4px}#board-panel .board-heading p{margin-top:0;color:var(--muted)}
#board-panel .board-filters{max-width:800px}
#board-panel .board-information{border:1px solid #ccb776;background:#fbf8ed;color:#65551d;border-radius:8px;padding:17px 20px;margin:24px 0}
#board-panel .board-information p{margin:6px 0 0;font-size:14px;line-height:1.65}
#board-panel .board-timezone{font-size:12px;color:var(--muted);margin:24px 0 14px}
#board-panel .board-dates{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--line);border-radius:8px 8px 0 0;overflow:hidden;background:#fff}
#board-panel .board-dates button{border:0;border-right:1px solid var(--line);background:#fff;color:var(--muted);padding:14px 8px;min-width:0;line-height:1.5;white-space:normal;font-size:14px}
#board-panel .board-dates button:last-child{border-right:0}#board-panel .board-dates strong,#board-panel .board-dates span{display:block}
#board-panel .board-dates button.active{background:#007f80;color:white}
#board-panel .board-direction{display:grid;grid-template-columns:1fr 1fr;background:white;border-bottom:1px solid #9eb9ac}
#board-panel .board-direction button{border:0;border-radius:0;border-bottom:3px solid transparent;background:transparent;color:var(--muted);padding:14px;min-width:0;font:inherit}
#board-panel .board-direction button[aria-pressed=true]{border-bottom-color:#007f80;color:#006d68;font-weight:700}
#board-panel .board-list-controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding:10px 0;font-size:12px;color:var(--muted)}
#board-panel .board-list-controls .help{margin:0}#board-panel .board-list-controls label{display:flex;align-items:center;gap:6px;min-height:44px}
#board-panel .sailing-row{border-bottom:1px solid #d6dfd6;background:white}
#board-panel .sailing-row>summary{list-style:none;cursor:pointer;display:grid;grid-template-columns:1.2fr 1.2fr 1.5fr 1fr 65px;gap:16px;align-items:center;padding:20px;font-size:14px}
#board-panel .sailing-row>summary::-webkit-details-marker{display:none}
#board-panel .sailing-row>summary>div{min-width:0;overflow-wrap:anywhere}
#board-panel .board-cell-label{display:block;font-size:11px;color:var(--muted);margin-bottom:5px;font-weight:400}
#board-panel .sailing-times{display:grid;grid-template-columns:1fr 1fr;gap:12px}
#board-panel .sailing-times strong{display:block;font-size:16px}
#board-panel .sailing-times small{display:block;font-size:11px;color:var(--muted);margin-top:4px}
#board-panel .sailing-row .vessel img,#board-panel .sailing-row .logo-fallback{width:32px;height:32px}
#board-panel .sailing-row .vessel small{display:block;font-size:11px}
#board-panel .sailing-badge{display:inline-block;background:#eaf0ed;color:#3f6358;padding:5px 8px;border-radius:4px;font-size:12px;font-weight:500}
#board-panel .blocked .sailing-badge{background:#ffebe4;color:#9b3527}#board-panel .advised .sailing-badge,#board-panel .soon .sailing-badge{background:#fff1d2;color:#826018}
#board-panel .elapsed{background:#f0f2f0}#board-panel .elapsed .sailing-badge{background:#e2e7e3;color:#52665c}
#board-panel .sailing-more{color:#007f80;display:flex;align-items:center;gap:8px;font-size:12px}
#board-panel .sailing-more>span:first-child{text-decoration:underline}#board-panel details[open] .sailing-chevron{transform:rotate(180deg)}
#board-panel .sailing-detail{border-top:1px solid #edf1eb;padding:0 20px 22px}
#board-panel .sailing-detail-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:28px;margin-top:20px}
#board-panel .sailing-detail h3{font-size:15px;margin:0 0 14px}
#board-panel .sailing-disclaimer{font-size:13px;color:var(--muted);margin-top:18px}
#board-panel .sailing-calls{margin:0;padding-left:19px}#board-panel .sailing-calls li{padding:0 0 12px;font-size:13px}#board-panel .sailing-calls span{display:block;color:var(--muted);font-size:12px;margin-top:3px}
@media(max-width:999px){#board-panel .sailing-row>summary{grid-template-columns:1fr 1fr;gap:16px}#board-panel .sailing-times{grid-column:1/-1}#board-panel .sailing-more{justify-self:end}#board-panel .sailing-status{grid-column:1}}
@media(max-width:599px){#board-panel .board-dates{grid-template-columns:repeat(2,minmax(0,1fr))}#board-panel .board-dates button{border-bottom:1px solid var(--line);font-size:13px}#board-panel .sailing-row>summary{padding:17px;gap:14px}#board-panel .sailing-detail{padding:0 17px 20px}#board-panel .sailing-detail-grid{grid-template-columns:1fr;gap:16px}#board-panel .board-information{padding:15px}#board-panel .board-direction button{font-size:14px}}
@media print{#board-panel .board-dates,#board-panel .board-direction,#board-panel .sailing-more{display:none!important}#board-panel .sailing-row{break-inside:avoid}}

/* Route-first crossing cards shared by planner and weekly search results. */
.crossing-card{background:#fff;border:1px solid #d6dfd6;border-radius:10px;margin:0 0 16px;overflow:hidden}
.crossing-header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:9px 20px;padding:18px 24px;border-bottom:1px solid #e3eae4;background:#f9fbf8}
.crossing-header h3{font-size:19px;line-height:1.5;margin:0;font-weight:500;overflow-wrap:anywhere}
.crossing-header h3>span{color:#007f80;margin-inline:5px}
.crossing-type{font-size:12px;color:#536e68;white-space:normal}
.crossing-schedule{display:grid;grid-template-columns:1fr minmax(120px,.75fr) 1fr;align-items:center;gap:26px;padding:24px}
.crossing-label{display:block;font-size:12px;color:#536e68;margin-bottom:5px}
.crossing-endpoint>strong{display:block;font-size:29px;line-height:1.25;letter-spacing:-.6px}
.crossing-date{display:block;font-size:12px;color:#536e68;margin-top:8px}
.crossing-arrival{text-align:right}
.crossing-duration{text-align:center;color:#24655b;font-size:14px}
.crossing-track{position:relative;height:26px;display:flex;align-items:center;justify-content:center;margin-top:8px}
.crossing-track:before{content:'';height:1px;background:#c5d8cd;position:absolute;inset-inline:0;top:50%}
.crossing-track .icon{position:relative;background:#fff;box-sizing:content-box;padding-inline:9px;width:18px;height:18px}
.crossing-overnight{display:inline-block;border-radius:4px;background:#f9efcf;color:#765d18;padding:2px 5px;margin-left:4px;font-size:11px}
.crossing-via{margin:0;padding:0 24px 18px;color:#536e68;font-size:13px;overflow-wrap:anywhere}
.crossing-footer{border-top:1px solid #e3eae4;padding:18px 24px;display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start}
.crossing-footer .vessel img,.crossing-footer .logo-fallback{width:40px;height:40px}
.crossing-footer .vessel strong{font-size:15px}.crossing-footer .vessel small{font-size:12px;display:block}
.crossing-ticketing .actions{justify-content:flex-end}
.crossing-ticketing .help{margin:8px 0 0;text-align:right}
.crossing-ticketing .remarks{font-size:13px;margin:10px 0 0}
.crossing-notices{padding:0 24px 16px}.crossing-notices .notice{margin:0 0 8px}
.crossing-blocked{border-left:4px solid #b14330}.crossing-blocked .crossing-header{background:#fff2ed}
@media(max-width:599px){
 .crossing-header{padding:15px 17px}.crossing-header h3{font-size:17px}.crossing-schedule{grid-template-columns:1fr 1fr;gap:18px;padding:20px 17px 14px}
 .crossing-duration{grid-column:1/-1;grid-row:2;display:flex;justify-content:center;align-items:baseline;gap:7px;padding-top:10px;border-top:1px solid #edf1eb}
 .crossing-duration .crossing-label{margin:0}.crossing-track{display:none}.crossing-endpoint>strong{font-size:clamp(21px,6vw,27px)}
 .crossing-date{font-size:11px}.crossing-overnight{margin:3px 0 0}.crossing-footer{grid-template-columns:1fr;padding:17px}.crossing-ticketing .help{text-align:left}
 .crossing-notices{padding:0 17px 12px}.crossing-via{padding:0 17px 14px}
}
