@font-face{font-family:'NotoAr';src:url(/assets/noto-ar-regular.woff) format('woff');font-weight:400;font-display:swap}
@font-face{font-family:'NotoAr';src:url(/assets/noto-ar-bold.woff) format('woff');font-weight:700;font-display:swap}
:root{--sand:#eddcbe;--cream:#fbf5e6;--terra:#b4532a;--terra-d:#96431f;--green:#1d6a4f;--ink:#43301f;--muted:#5c4a37;--line:#d9c39c}
*{box-sizing:border-box}
body{margin:0;font-family:'NotoAr',system-ui,sans-serif;color:var(--ink);line-height:1.8;background-color:var(--sand);
background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'><g fill='none' stroke='%23b4532a' stroke-opacity='.10' stroke-width='1.5'><rect x='33' y='33' width='30' height='30'/><rect x='33' y='33' width='30' height='30' transform='rotate(45 48 48)'/><circle cx='48' cy='48' r='4'/><path d='M0 48h24M72 48h24M48 0v24M48 72v24'/></g></svg>")}
main,.site-header,.site-footer{max-width:1100px;margin:auto;padding:0 16px}
.skip{position:absolute;inset-inline-start:-999px}.skip:focus{inset-inline-start:8px;top:8px;background:var(--cream);padding:6px 10px;border-radius:8px}
.site-header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-block:14px;flex-wrap:wrap}
.brand{font-weight:700;color:var(--terra);text-decoration:none;font-size:1.2rem}
nav a{color:var(--ink);margin-inline-end:16px;min-height:44px;display:inline-flex;align-items:center}
a{color:var(--terra-d)}
h1{font-size:1.9rem;line-height:1.5;margin:.4rem 0}h2{font-size:1.4rem}h3{font-size:1.1rem}
.date-line{color:var(--muted);font-size:.95rem}
.lead{background:var(--cream);border:1px solid var(--line);border-radius:14px;padding:14px 18px}
.hero-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:18px;align-items:start}
@media(max-width:760px){.hero-grid{grid-template-columns:1fr}}
section,.hero-card{background:var(--cream);border:1px solid var(--line);border-radius:16px;padding:16px 18px;margin:14px 0}
.table-wrap{overflow-x:auto}
table{border-collapse:collapse;width:100%;background:var(--cream)}
caption{font-weight:700;padding:8px 0;text-align:start}
th,td{padding:9px 10px;text-align:center;border-bottom:1px dashed var(--line)}
thead th{border-bottom:2px solid var(--terra);color:var(--terra-d)}
tr.is-next{background:var(--terra);color:#fff}tr.is-next a{color:#fff}
tr.is-today{background:#f3e4c5}
.next{background:var(--green);color:#fff;border-radius:12px;padding:10px 14px;font-weight:700;min-height:3.2em;display:flex;align-items:center;margin:0 0 10px}
.next:empty:before{content:'\00a0'}
.breadcrumb ol{list-style:none;display:flex;gap:8px;padding:0;flex-wrap:wrap;font-size:.92rem}
.breadcrumb li+li:before{content:'/';margin-inline-end:8px;color:var(--muted)}
.breadcrumb a{color:var(--muted)}
.city-photo{margin:0;background:transparent;border:0;padding:0}
.city-photo img{width:100%;height:auto;border-radius:160px 160px 14px 14px;border:2px solid var(--line);display:block}
.hero-photo img{border-radius:200px 200px 16px 16px}
.tiles{list-style:none;display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:14px;padding:0}
.tile{text-decoration:none;color:var(--ink);text-align:center;font-weight:700}
.tile img{width:100%;height:auto;min-height:56px;aspect-ratio:3/4;object-fit:cover;border-radius:999px 999px 12px 12px;border:2px solid var(--line);display:block}
.tile span{display:block;padding-top:4px;font-size:.9rem}
.links{display:flex;flex-wrap:wrap;gap:8px 18px;padding:0;list-style:none}
.links a{display:inline-flex;align-items:center;min-height:44px}
.posts{list-style:none;padding:0;display:grid;gap:14px}
.post h2{margin:0 0 4px}
details{border:1px solid var(--line);border-radius:10px;padding:10px 14px;margin:8px 0;background:var(--cream)}
summary{cursor:pointer;font-weight:700;min-height:44px;display:flex;align-items:center}
.month-note{margin:.25rem 0 1rem;color:var(--muted)}
article p{margin:.5rem 0}
article h2,article h3{color:var(--terra-d)}
.site-footer{border-top:2px solid var(--terra);margin-top:40px;padding-block:20px;background:var(--cream);border-radius:0}
.site-footer nav a{min-height:44px}
@media(max-width:420px){h1{font-size:1.5rem}.tiles{grid-template-columns:repeat(auto-fill,minmax(100px,1fr))}}

/* --- v4 design fixes --- */
.site-header .brand img{display:block;height:28px;width:auto}
@media(max-width:480px){.site-header .brand img{height:24px}}
.tile{min-height:44px}
.more{margin:18px 0 4px;text-align:center}
@media(max-width:480px){
  .table-wrap{overflow:visible}
  .table-wrap table{background:none}
  table,table thead,table tbody,table tr,table th,table td{display:block;width:auto}
  table{width:100%}
  table thead{display:none}
  table caption{display:block;width:100%;text-align:center;font-weight:700;padding:0 0 8px}
  table tbody{display:grid;gap:10px}
}

@media(max-width:480px){
  table tr{display:grid;grid-template-columns:repeat(3,1fr);gap:4px 2px;background:var(--cream);border:1px solid var(--line);border-radius:14px;padding:10px 8px;margin:0}
  table tr th{grid-column:1/-1;text-align:center;font-weight:700;padding:2px 0 6px;border:0;background:none;color:var(--green)}
  table tr td{padding:2px 0;text-align:center;border:0;font-size:.9rem}
  table tr td::before{content:attr(data-l);display:block;font-size:.66rem;color:#7a7264;font-weight:400;margin-bottom:1px}
  #today table tr{grid-template-columns:1fr 1fr}
  #today table tr td{font-size:1rem;white-space:nowrap}
}.tiles-mini{grid-template-columns:repeat(4,minmax(0,1fr));max-width:620px;margin:18px auto}
@media(max-width:480px){.tiles-mini{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* --- v5 --- */
.site-header{min-height:56px;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.site-header .brand img{display:block;height:44px;width:auto}
@media(max-width:480px){.site-header .brand img{height:36px}}
.more .btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 24px;border:2px solid var(--green);border-radius:999px;color:var(--green);text-decoration:none;font-weight:700;background:transparent}
.more .btn:hover{background:var(--green);color:var(--cream)}
@media(max-width:480px){table tr.is-next th,table tr.is-next td{color:var(--cream)}table tr.is-next td::before{color:var(--cream);opacity:.85}}
