/* Booklet pages 26–27: numbered drawings and readable age calendars. */
.reader-ready .calendar-visual{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);grid-template-rows:auto minmax(0,1fr);gap:12px 26px;padding:16px 22px;align-items:center}
.calendar-intro{grid-column:1/-1;font-size:18px;line-height:1.35;margin:0;text-align:center;color:var(--ink)}
.calendar-figure{margin:0;min-width:0;min-height:0;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:6px}
.calendar-figure img{width:100%;height:100%;min-height:0;object-fit:contain;flex:1;filter:none}
.calendar-figure figcaption{font-size:14px;line-height:1.25;color:var(--muted);text-align:center;flex:none}
.calendar-table-wrap{min-width:0;align-self:center;width:100%}
.calendar-table{border-collapse:separate;border-spacing:0;width:100%;table-layout:fixed;line-height:1.2;font-size:18px;color:var(--ink)}
.calendar-table caption{text-align:left;font-size:23px;font-weight:800;color:var(--wine);line-height:1.2;margin-bottom:10px}
.calendar-table caption span{display:block;font-size:14px;font-weight:400;color:var(--muted);margin-top:3px}
.calendar-table th,.calendar-table td{padding:8px 10px;border-bottom:1px solid #d3e5ef}
.calendar-table th:first-child{width:65%;text-align:left}
.calendar-table thead th{font-size:15px;background:#eee4f9;color:var(--wine);white-space:nowrap;text-align:center}
.calendar-table thead th:first-child{border-radius:12px 0 0 0}
.calendar-table thead th:last-child{border-radius:0 12px 0 0}
.calendar-table tbody th{font-weight:600}
.calendar-table td{font-size:20px;font-weight:800;text-align:center;color:var(--wine);white-space:nowrap}
.calendar-table tbody tr:nth-child(even){background:#f0f8fb}
.calendar-number{display:inline-flex;align-items:center;justify-content:center;width:25px;height:25px;margin-right:8px;border-radius:50%;background:#eee4f9;border:1px solid #bb94d1;color:var(--wine);font-weight:800;font-size:17px;vertical-align:middle;flex:none}
#dents-adulte .calendar-number,#dents-adulte .calendar-table thead th{background:#e2f5e9}
.calendar-note{font-size:15px;line-height:1.3;color:var(--muted);margin:8px 0 0}
.page-copy .calendar-reassurance{font-size:16px;line-height:1.3;margin:0 0 3px}
.page-copy .calendar-reference{font-size:13px;line-height:1.3;margin:0}
.calendar-reference a{color:var(--muted);text-underline-offset:3px}
@media(max-width:1000px){
 .reader-ready .calendar-visual{grid-template-columns:1fr;grid-template-rows:auto minmax(55px,1fr) auto;gap:7px;padding:10px 14px}
 .calendar-intro{font-size:16px;line-height:1.25}
 .calendar-table-wrap{max-width:680px;justify-self:center}
 .calendar-table{font-size:17px}
 .calendar-table th,.calendar-table td{padding:5px 9px}
 .calendar-table td{font-size:18px}
 .calendar-table caption{font-size:20px;margin-bottom:6px;display:flex;align-items:baseline;justify-content:space-between;gap:8px}
 .calendar-table caption span{font-size:13px;margin:0;white-space:nowrap}
 .calendar-figure img{max-width:680px}
}
@media(max-width:760px){
 .reader-ready .calendar-visual{padding:9px 8px;gap:5px}
 .calendar-table{font-size:16px;line-height:1.15}
 .calendar-table th,.calendar-table td{padding:5px 4px}
 .calendar-table th:first-child{width:65%}
 .calendar-table thead th{font-size:13px}
 .calendar-table td{font-size:17px}
 .calendar-number{width:21px;height:21px;font-size:15px;margin-right:5px}
 .calendar-table caption{font-size:18px;margin-bottom:5px;gap:5px}
 .calendar-table caption span{font-size:11px}
 .calendar-figure figcaption{font-size:12px}
 .calendar-note{font-size:14px;line-height:1.2;margin:5px 0 0}
 .page-copy .calendar-reassurance{font-size:14px;line-height:1.25}
 .page-copy .calendar-reference{font-size:11px;line-height:1.3}
}
@media(max-height:650px) and (max-width:760px){
 .reader-ready .calendar-visual{padding:6px;gap:4px;min-height:0}
 .calendar-table th,.calendar-table td{padding:3px 4px}
 .calendar-table caption{font-size:17px;margin-bottom:4px}
 .calendar-number{width:18px;height:18px;font-size:14px}
 .calendar-figure figcaption{display:none}
 .calendar-note{font-size:13px;margin-top:4px}
 .page-copy .calendar-reassurance{font-size:13px}
 #dents-de-lait .page-layout,#dents-adulte .page-layout{gap:5px}
}
@media(max-width:359px),(max-height:649px),(max-width:760px) and (max-height:819px),(max-width:1000px) and (max-height:699px){
 .reader-ready .calendar-visual{display:flex;flex-direction:column}
 .calendar-figure{height:180px;flex:none}
 .calendar-table{font-size:16px}
}
/* Keep native table-caption layout; flex captions distort table columns. */
.calendar-table caption{display:table-caption}
@media(min-width:1001px){
 #dents-adulte .calendar-table th,#dents-adulte .calendar-table td{padding-top:4px;padding-bottom:4px}
 #dents-adulte .calendar-table caption{font-size:21px;margin-bottom:6px}
 #dents-adulte .calendar-note{margin-top:5px}
}
@media(max-width:1000px){
 .calendar-table caption span{display:inline-block;margin-left:9px}
}
@media(max-width:760px){
 .calendar-table caption{font-size:17px;line-height:1.2}
 .calendar-table caption span{font-size:11px;margin-left:7px}
}
@media(min-width:761px) and (max-width:1000px) and (max-height:849px){
 .reader-ready .calendar-visual{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);grid-template-rows:auto minmax(0,1fr);gap:8px 14px}
 .calendar-table{font-size:16px}
 .calendar-table th,.calendar-table td{padding:4px}
 .calendar-table thead th{font-size:13px}
 .calendar-number{width:21px;height:21px;font-size:15px;margin-right:5px}
 .calendar-table caption{font-size:18px;margin-bottom:5px}
 .calendar-table caption span{display:block;margin:3px 0 0;font-size:12px}
 .calendar-note{font-size:14px}
 .calendar-figure figcaption{font-size:12px}
}
