@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Libre+Caslon+Display&display=swap');
:root{--ink:#103d31;--muted:#708076;--paper:#f8f7f0;--line:#dedfd3;--gold:#c6ac66;--bnh-bottom-nav-h:78px;font-family:'DM Sans',sans-serif;color:var(--ink);background:#eaeae1}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;color:inherit}button:disabled{opacity:.5;cursor:default}button:focus-visible,a:focus-visible{outline:3px solid var(--gold);outline-offset:3px}#app{max-width:700px;margin:auto;background:var(--paper);min-height:100dvh}#content-view{padding-bottom:100px}#page-header{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;min-height:76px}#page-header h1{font:32px 'Libre Caslon Display',Georgia,serif;margin:0}#page-header button{border:1px solid var(--line);border-radius:50%;width:38px;height:38px;background:transparent}.hero{height:350px;background:#153d31 center/cover;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;text-align:center;color:#fff;padding:32px 20px 62px}.hero:before{content:'';position:absolute;inset:0;background:linear-gradient(#08271c20,#06271cdc)}.hero>*{position:relative}.hero h1{font:36px 'Libre Caslon Display',Georgia,serif;margin:20px 0 8px}.hero p{margin:3px}.brand{font:44px 'Libre Caslon Display',Georgia,serif;line-height:1}.brand small{display:block;font:10px 'DM Sans',sans-serif;letter-spacing:5px;margin-top:6px}.event-logo{height:70px;max-width:210px;object-fit:contain}.page{padding:20px}.home-content{position:relative;margin-top:-32px;padding:0 18px 22px}.card{border:1px solid var(--line);border-radius:18px;background:#fffef8;padding:22px;margin-bottom:14px}.card h2{font-size:21px;margin:0 0 12px}.eyebrow{font-size:11px;letter-spacing:2px;text-transform:uppercase;color:var(--muted)}.muted{color:var(--muted);line-height:1.5}.primary,.secondary{border-radius:12px;padding:15px 20px;display:block;width:100%;font-weight:600;margin-top:14px;border:1px solid var(--ink)}.primary{color:#fff;background:var(--ink)}.secondary{background:transparent}.ball-title{display:flex;align-items:center;gap:16px;padding:18px 0}.ball-title img{width:32px;height:32px;object-fit:contain}.ball-title strong{display:block;font-size:20px}.ball-title p{margin:5px 0}.avatars{display:flex;gap:20px;justify-content:center;padding:12px 0 20px}.avatar{display:flex;flex-direction:column;align-items:center;gap:7px;font-size:12px}.avatar i{width:44px;height:44px;border-radius:50%;background:#e6e9dc;display:grid;place-items:center;font-style:normal;font-size:16px}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.grid .card{padding:16px;font-size:13px}.grid img{height:30px;max-width:35px;object-fit:contain;float:left;margin-right:12px}.tabs{display:flex;gap:8px;overflow:auto;padding:8px 0 18px}.tabs button{border:1px solid var(--line);background:#fffef8;white-space:nowrap;border-radius:12px;padding:11px 17px}.tabs button.active{background:var(--ink);color:#fff}.list-link{display:flex;align-items:center;gap:15px;width:100%;padding:20px 5px;background:none;border:0;border-bottom:1px solid var(--line);text-align:left}.list-link img{width:25px;height:25px;object-fit:contain}.list-link span{flex:1}label{display:grid;gap:8px;margin:16px 0;font-size:14px}input,select,textarea{width:100%;padding:12px;border:1px solid #cbd2c6;background:#fff;border-radius:9px;color:var(--ink)}textarea{min-height:90px}table{width:100%;border-collapse:collapse;font-size:14px}th{text-align:left;color:var(--muted);font-size:11px;font-weight:500}th,td{padding:14px 6px;border-bottom:1px solid var(--line)}tr.mine{background:#f2e9cf}.pill{display:inline-block;border-radius:20px;padding:6px 10px;background:#f3ecd5;font-size:11px}.empty{padding:36px 20px;line-height:1.6}.section-title{font:30px 'Libre Caslon Display',Georgia,serif}#gamebook-bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,700px);z-index:100;background:#fffef9;border-top:1px solid var(--line);padding:10px 8px calc(10px + env(safe-area-inset-bottom));display:flex;justify-content:space-around}#gamebook-bottom-nav button{display:grid;justify-items:center;gap:7px;border:0;background:none;font-size:10px;position:relative;min-width:50px;padding:3px}#gamebook-bottom-nav img{width:25px;height:25px;object-fit:contain}#gamebook-bottom-nav button[aria-current=page]:after{content:'';position:absolute;bottom:-6px;width:24px;height:2px;background:var(--ink)}#message{position:fixed;left:50%;bottom:110px;transform:translateX(-50%);padding:12px 18px;background:#123e30;color:white;border-radius:10px;z-index:10000;display:none;max-width:90%}.preview-banner{font-size:11px;padding:8px;text-align:center;background:#f3e8ca;color:#624b1e}.cs-hole-head{padding:20px}.cs-hole-head h2{font:30px 'Libre Caslon Display',Georgia,serif!important}.cs-match-inputs section h3{font-family:inherit!important}.tv #app{max-width:none}.tv #gamebook-bottom-nav{display:none}.tv table{font-size:25px}.tv .page{padding:40px}.tv #content-view{padding:0}.guide-page{height:calc(100dvh - 160px)!important}.guide-map-stage{min-height:350px}.guide-map{height:100%;min-height:350px}.guide-page .guide-card{bottom:15px!important}.brand-preview{width:100%;height:130px;object-fit:cover;border-radius:10px}@media(min-width:700px){.hero{height:390px}.home-content{padding-inline:32px}.page{padding:28px}}
#content-view .guide-page{height:calc(100dvh - 100px)!important;display:flex;flex-direction:column;overflow:hidden}#content-view .guide-page .guide-map-stage{flex:1;min-height:0;position:relative}#content-view .guide-page .guide-map{position:absolute;inset:0;height:100%;min-height:0}#content-view .guide-page .guide-card{position:absolute!important;bottom:14px!important;left:12px;right:12px;z-index:20}.guide-hole-tabs{flex:none}.guide-map-controls{z-index:25}

/* Trip subpage header: same typography, icons and unframed controls. */
#page-header{gap:8px;padding:14px 12px 19px;background:linear-gradient(135deg,#fafbf7,#f2f4ed)}
#page-header button{border:0;border-radius:0;background:none;box-shadow:none;min-height:44px;flex-shrink:0;padding:0}
#page-header .t-header-back{width:32px;font-size:40px;line-height:1;font-weight:300}
#page-header .t-header-more{width:32px;font-size:16px;letter-spacing:1px}
.t-header-heading{display:flex;align-items:center;gap:10px;min-width:0}
.t-header-heading>img{width:38px;height:38px;object-fit:contain;flex-shrink:0}
#page-header h1{font:600 24px/1.1 'Bodoni Moda',Georgia,serif;letter-spacing:-.045em;overflow-wrap:anywhere}
.t-header-heading p{font:400 14px/1.3 Inter,Arial,sans-serif;margin:2px 0 0;max-width:230px;overflow-wrap:anywhere}
.t-header-heading p:empty{display:none}
.cs-header-spacer{width:42px;flex-shrink:0}
@media(max-width:359px){#page-header h1{font-size:21px}.t-header-heading{gap:7px}.t-header-heading>img{width:30px;height:30px}.t-header-heading p{font-size:12px}}@media(min-width:700px){#page-header{padding-top:20px}#page-header h1{font-size:30px}.t-header-heading p{font-size:16px}}
#page-header{position:sticky;top:0;z-index:90}

/* v538: bottenmenyn som i Trips spelalage - fem knappar med Trips egen runda
   mittenknapp, samma matt och samma tva bilder som 11-app.js anvander: Play
   Golf-bollen innan ronden borjat, scorekortet nar en rond ar igang.
   Allt hangs pa #gamebook-bottom-nav - radens egna regler for button och img
   ar id-selektorer och vinner annars over en ensam klass. */
#gamebook-bottom-nav{align-items:center;padding-top:6px;overflow:visible}
#gamebook-bottom-nav button{max-width:84px}
#gamebook-bottom-nav button>span{font-size:10px;line-height:1.2;text-align:center;overflow-wrap:anywhere}
#gamebook-bottom-nav .tl-nav-score{position:relative;z-index:5;overflow:visible;margin-top:-18px;
 padding:0;width:82px;height:82px;min-width:82px;flex:0 0 82px;max-width:none;
 border-radius:999px;background:#092f1c;border:1.5px solid #fff;box-shadow:none;
 display:flex;align-items:center;justify-content:center}
/* Wrap:en foljer knappens egen storlek i stallet for en hardkodad pixelsiffra,
   sa bilden aldrig kan sticka ut genom den vita ringen. */
#gamebook-bottom-nav .tl-nav-score-wrap{position:absolute;inset:0;display:flex;
 align-items:center;justify-content:center;border-radius:50%;overflow:hidden}
#gamebook-bottom-nav .tl-nav-score-icon{width:100%;height:100%;object-fit:contain;display:block;margin:0}
@media(max-width:359px){#gamebook-bottom-nav .tl-nav-score{width:74px;height:74px;min-width:74px;
 flex:0 0 74px;margin-top:-15px}}
