/* v.87.1 - Prepared by MK with Claude Aug. '26

added to v.76.1
tr.yerushalmioz
.yeruoztitle
.yeruoztitle a
.yeruoztitletext
*/
/*
yomistyles2.css
20141208a formed from yomistyles.css for use with ym177513x.htm
20141209a mods to conform with Hebrew version
20141210a mod to change dafpage and schedules margins (affects English only)
          Tried border:none for img
20141211a Alterations/additions
*/
body {
    padding:0;
    background: #FFFFFF url('http://www.dafyomi.co.il/daftile.gif');
    font-family:"Times New Roman", Arial, Helvetica;
    font-size:16px;
    font-weight:normal;
    text-align:center;
    margin-left:0; margin-right:0; margin-top:8px; margin-bottom:0; background-color:#FFFFFF
}

img {   /*20141210a addition */
    border:none;
}

/* FIXED: was "width:960px" (a hard fixed width that caused horizontal overflow
   on phones no matter what override was added later). Now fluid up to 1200px. */
#wrapper {
    width:100%;
    max-width:1200px;
    margin:0 auto;
    padding:0 10px;
    box-sizing:border-box;
}
table {
    margin:auto; }

/* The heading section */
/* FIXED: was "width:370px" (fixed width - logo overflowed on narrow screens
   because nothing after this in the cascade overrode the "width" property
   itself, only "max-width", which does not shrink a smaller fixed width).
   Also FIXED: centering broke because Bootstrap's "img-responsive" class
   (added to the logo <img> in the HTML) sets display:block, and a
   display:block image is no longer centered by an ancestor's
   text-align:center (that only centers inline content). Adding
   "display:block; margin:0 auto;" here centers it explicitly regardless
   of any ancestor's text-align, and regardless of Bootstrap. */
.logo img {
    display:block;
    margin:0 auto;
    width:100%;
    max-width:370px;
    height:auto; }
/* FIXED: same fixed-width issue as .logo img above, plus the same
   explicit-centering fix (this image doesn't have Bootstrap's class, but
   centering it explicitly is more robust than depending on inherited
   text-align either way). */
.language img {
    display:block;
    margin:-5px auto 0;
    width:100%;
    max-width:80px;
    height:auto; }
.languageheb img {
    width:80px;
    margin-top:-1px; }
    
.dafpage, .dafindex {   /*Eng, Heb*/
    font-size:40px;     /*Orig 30pt*/
    margin:10px 0 0px 0; }    /*20141210a addition*/
.schedules {            /*Eng only*/
    font-size:21px;     /*Orig 16pt*/
    margin:10px 0 10px 0; }   /*20141210a addition*/

.parshaweek {
    font-size:21px;
    color:#0000FF; }     /*Orig 16pt*/

/* The navigation table */
/* FIXED: was "width:750px" fixed. My earlier override used selector
   ".navigation" which is LESS specific than "table.navigation" below and
   so never won. Now fluid up to 750px, and selector matches exactly. */
table.navigation {
    border:none;
    width:100%;
    max-width:750px; }
table.navigation td  {
    border:none;
    padding:7px;
    vertical-align:top;
    width:250px; }
table.navigation td p {
    margin:0px 0 0px 0; }
table.navigation td p.left {
    text-align:left; }
table.navigation td p.center {
    text-align:center; }
table.navigation td p.right {
    text-align:right; }

/* The main calendar table */
/* FIXED: was "width:900px" fixed. This is the main bug from your screenshot -
   this selector (table.yomitable) is more specific than the ".yomitable"
   override I had added in the responsive section, so 900px always won -
   including for the MOBILE split tables, which also carry class "yomitable"
   and were being forced to 900px wide and pushed off-screen. */
table.yomitable {
    border:none;
    border-collapse:collapse;   /* v.87.2: needed so the 1px gridlines don't double up */
    width:100%;
    max-width:900px; }
table.yomitable td {
    border:1px solid #FFFFFF;   /* v.87.2: thin white gridlines (desktop + mobile day tables) */
    padding:7px; }
td.yomitabledim0 {
    width:23% !important;
    text-align:right; }
table.yomitable td.yomitabledim {
    width:11%; }
.align {    /*To override in Hebrew head section as text-align:right*/
    /* no CSS*/
}
/*The links in the yomitable (the daily study cells)
  v.87.6: made to look like links - blue + underlined at rest (works on touch screens,
  which have no hover), with a yellow highlight on hover/focus/tap.
  WHY THIS WAS NEEDED: yomispages.css (loaded before this file) contains "a{color:inherit}",
  which turned every link into plain black text. The study cells are plain <td> elements
  (no class) inside tr.bavli, tr.amud, etc., so these rules aim at every <td> that is
  NOT a title cell (title cells all have a class containing "title" and keep their own
  yellow link style further down).
  To change the colours, edit the two colour values below. */
table.yomitable td:not([class*="title"]) a:link,
table.yomitable td:not([class*="title"]) a:visited {
    color:#0033CC;
    text-decoration:underline;
    text-decoration-thickness:1px;
    text-underline-offset:2px;
    -webkit-tap-highlight-color:rgba(0,51,204,0.25);
}
table.yomitable td:not([class*="title"]) a:hover,
table.yomitable td:not([class*="title"]) a:focus,
table.yomitable td:not([class*="title"]) a:active {
    color:#001F80;
    text-decoration:underline;
    text-decoration-thickness:2px;
    background-color:#FFFF99;
}
/* the small a/b letter inside a link keeps the link colour */
table.yomitable a .amud-ab {
    color:inherit;
}
/*The table row properties*/
tr.engday, tr.hebmonthnum, tr.engmonthnum  {
    text-align:center;
    font-size:14px;
    color:#000000; }
tr.engday {
    background-color:#6699CC;
    color:#FFFFFF; }
tr.hebmonthnum, tr.engmonthnum {
    background-color:#99CCFF; }
tr.bavli, tr.amud, tr.yerushalmi, tr.yerushalmioz, tr.meshulav, tr.meshulavbavli, tr.mishna, tr.hal, tr.shonei, tr.mbdaf, tr.mbamud, tr.mbdirshu, tr.chch, tr.rmbm1, tr.rmbm3, tr.meshulav {   /*20141209a added for Hebrew version*/
    background-color:#CCCCCC;
    text-align:center;
    font-size:16px;
    color:#000000;
}

.amud-ab {
    font-size:12px;
	color:#000000;
    font-style:italic;
}


/* I CHANGED THE FOLLOWING
tr.meshulav, tr.meshulavbavli, tr.rmbm1, tr.rmbm3 {
    vertical-align:top; }
*/

tr.meshulav, tr.meshulavbavli {
    vertical-align:top; }



/*Column of row titles*/
.bavlititle, .amudtitle, .yerutitle, .yeruoztitle, .meshulavtitle, .mishnatitle,
.haltitle, .shoneititle, .mbdaftitle, .mbamudtitle, .mbdirshutitle, .chchtitle, .rmbm1title, .rmbm3title {
    background-color:#6699CC;
    text-align:left;
    color:#FFFFFF;
    font-size:14px;
    vertical-align:top; }
.haltitleclass {     /*20141209a mod to conform with Hebrew version*/
    font-size:14px;
    color:#FFFFFF; }
.engdaycol, .hebmonthweek, .engmonthweekname {
    background-color:#6699CC;
    font-weight:bold;
    color:#FFFFFF; }
/*Links in fist column*/
/* v.87.5: added haltitle, shoneititle, mbdaftitle, mbamudtitle, mbdirshutitle, chchtitle.
   (rmbm1title / rmbm3title intentionally left out.) NOTE: this styles LINKS (<a>) in those
   cells - titles that are plain text (no <a href>) stay white until they are made links, or
   until the name is wrapped in <span class="titlename"> (see below). */
.bavlititle a, .amudtitle a, .yerutitle a, .yeruoztitle a, .meshulavtitle a, .mishnatitle a,
.haltitle a, .shoneititle a, .mbdaftitle a, .mbamudtitle a, .mbdirshutitle a, .chchtitle a {
    text-decoration:underline;
    color:#FFFF00;
}
/* Optional: makes a plain-text title name look like the links above WITHOUT being a link */
.titlename {
    text-decoration:underline;
    color:#FFFF00;
}

/*Text in row titles*/
.bavlititletext, .amudtitletext, .yerutitletext, .yeruoztitletext, .meshulavtitletext, .mishnatitletext, .haltitletext, .neviimtitletext, .kesuvimtitletext, .mifal20titletext, .mifal30titletext {
    font-size:12px;
	color:#FFFFFF;
    font-style:normal;
	}
.shoneititletext, .shoneititletext2, .mbdaftitletext, .mbamudtitletext, .chchtitletext, .mbdirshutitletext, .mbdirshutitletext2,
.rmbm1titletext, .rmbm3titletext {
    font-size:13px; }
.meshulavtext {    /*20141209a mod to conform with Hebrew version*/
    font-size:12px; }



/*Weekly programs section */

.weeklyprograms {
   margin:auto;
   margin-top:25px;
    color:#0000FF;
    font-size:21px;
    font-weight:bold; }
.weektitle{font-size:40px; }  /*for hebrew files*/
.weekof {
    font-weight:normal; }
/* v.87.2 FIX: the old rule had a typo ("width-max" is not a CSS property) and a
   later "width:685px" that overrode "width:100%", so the table never shrank.
   Correct pattern: width:100% + max-width. */
table.weekstudytable {
    border:1px solid #FFFFFF;
    width:100%;
    max-width:685px; }

table.weekstudytable td  {
    border:1px solid #FFFFFF;
    padding:7px; }
.neviimtitle, .kesuvimtitle {
    text-align:left;
    font-size:16px;
    color:#FFFFFF;
    background-color:#FF9900;
    vertical-align:top; }
.neviimtitle {
    width:25%; }
.neviim, .kesuvim {
    text-align:center;
    font-size:26px;
    background-color:#FFCC66; }



/*I ADDED THIS*/
/*Monthly programs section */
.monthlyprograms {
    margin:auto;
    color:#0000FF;
    font-size:21px;
    font-weight:bold; }
.monthtitle{font-size:40px; }  /*for hebrew files*/

.monthof {
    font-weight:normal; }

table.monthstudytable {   /* v.87.2: same fixed-width fix as weekstudytable */
    border:1px solid #FFFFFF;
    width:100%;
    max-width:685px; }

table.monthstudytable td  {
    border:1px solid #FFFFFF;
    padding:7px; }

.mifal20title, .mifal30title, .mifaloctitle, .mifalcmtitle {
    text-align:left;
    font-size:16px;
    color:#FFFFFF;
    background-color:#993399;
    vertical-align:top; }


 .mifal20title {
    width:18%; }



.mifal20, .mifal30, .mifaloc, .mifalcm {
    text-align:center;
    font-size:26px;
    background-color:#ff66ff; }



/*Table of links in page footer*/
.linkstable {
    text-align:center;
    width:480px;
    color:#000000; }
.linkstable p {
    font-size:16px; }

/*General*/
.horizrule {    /*20141211a added*/
    width:50%;
    margin:20px auto 20px auto;
    min-height:1px;
    border-bottom:1px solid black; }

/*Not found*/
.thisengyear { }

/*=============================================================
RESPONSIVE TEMPLATE (Bootstrap 3.3.7)
NOTE: the fixed-pixel-width base rules above (#wrapper, .logo img,
.language img, table.navigation, table.yomitable) were themselves edited
to be fluid, since a later override further down the file cannot beat a
more-specific (or property-mismatched) rule earlier in the file. Rules
below deal with which of the desktop table / mobile day-pane is visible,
column proportions, the day quick-nav buttons, and the scrollable pane.
==============================================================*/

.desktoptable{
    display:table;
    width:100%;
}

/* NEW: hidden on desktop by default; becomes a real line break only on
   phones, via the @media block below. Used inside .dafpage and .schedules. */
.mobile-break{
    display:none;
}

/* NEW: the 7 day-of-week quick-nav buttons and the scrollable day pane
   are both mobile-only; hidden here, switched on inside the @media block. */
.daynav-wrapper{
    display:none;
}

.daypane{
    display:none;
}

.mobiletable{
    display:none;
    width:100%;
    table-layout:fixed;
    margin-bottom:0;
}

.daytable-wrap{
    margin-bottom:14px;
}

.daytable-wrap:last-child{
    margin-bottom:0;
}

@media (max-width:767px){

.desktoptable{
    display:none;
}

/* NEW: quick-nav button bar - a plain 2-row/4-col table of links. Sits
   OUTSIDE the scrollable pane below, so it never moves. */
.daynav-wrapper{
    display:block;
    margin:10px auto 6px;
}

table.daynav{
    width:100%;
    max-width:400px;
    border-collapse:separate;
    border-spacing:4px;
}

table.daynav td{
    width:25%;
    padding:0;
}

.daybtn{
    display:block;
    background-color:#6699CC;
    color:#FFFFFF;
    text-decoration:none;
    text-align:center;
    font-size:13px;
    font-weight:bold;
    padding:10px 2px;
    border-radius:5px;
}

.daybtn:active,
.daybtn:focus,
.daybtn:hover{
    background-color:#4d7aa8;
}

/* NEW: the scrollable "frozen pane" - capped height with its own
   scrollbar. scroll-behavior:smooth animates the jump when a day
   button is tapped; scroll-margin-top on each day's wrapper div keeps
   a little breathing room above it when it scrolls into view. */
.daypane{
    display:block;
    max-height:65vh;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    scroll-behavior:smooth;
    border-top:2px solid #6699CC;
    padding-top:8px;
}

.daytable-wrap{
    scroll-margin-top:6px;
}

.mobiletable{
    display:table;
    font-size:85%;
}

/* FIXED: added ".yomitable" to this selector so it matches (and beats,
   via higher specificity) "table.yomitable { width:900px; }" above -
   this is what was forcing the mobile tables to 900px wide. */
table.yomitable.mobiletable{
    width:95% !important;
    /* ADJUST HERE for ask (1): max-width of each of the 7 daily tables.
       Only matters once the screen/container is wider than this value
       (e.g. tablets) - on narrow phones the table is already narrower
       than this, so width:100% above is what's actually visible. */
    max-width:500px;
}

.navigation img{
    max-width:24px;
    height:auto;
}

table.navigation td{
    width:33%;
    padding:2px;
}

.navigation a{
    font-size:85%;
}

/* Description column: each day-table now has only 2 columns (description
   + that single day), so the description column can take a comfortable,
   fixed share of the width. ".yomitabledim0" carries !important in the
   base rule, so we match that specificity with a more specific selector.
   NOTE ON ASK (2)/(3): because .mobiletable uses table-layout:fixed
   (needed so long words like "Yerushalmi" can't stretch a column),
   browsers size columns ONLY from the "width" declared on this header
   row's first cell - a max-width on a <td> is ignored for column sizing
   in fixed layout. So:
     - ask (3) - percentage of current width - is the "width:42%" line
       right below; that's the one real lever for column sizing.
     - ask (2) - a true pixel cap that stops the column from growing
       past a point even before the whole table's own max-width kicks
       in - isn't achievable on the <td> itself here. The practical way
       to get that effect is to put max-width on the CONTENT inside the
       cell instead (e.g. wrap the title text in a <span> and give that
       span a max-width) - the column track stays at 42%, but the text
       block inside it won't render wider than the span's max-width, so
       any leftover column space just becomes blank padding. Ask if
       you'd like me to add that wrapping span to the template. */
.mobiletable td.yomitabledim0{
    width:5% !important;
    padding:4px;
    font-size:95%;
}

.mobiletable td.yomitabledim,
.mobiletable td{
    padding:4px;
    word-wrap:break-word;
}

.mobiletable td.yomitabledim{
    width:auto;
}

/* NEW: reveal the mobile-only line breaks in the header */
.mobile-break{
    display:inline;
}

/* Keep each day-cell's link text (e.g. "Zevachim") on a single line
   instead of wrapping mid-word. With only one day-column per table now
   (instead of 4 or 3), there's much more room than before, so this is
   mostly a safety net rather than a hard squeeze - font-size can stay
   close to normal. The <br> before the daf/amud number still forces
   that onto its own line as before - white-space:nowrap does not cancel
   an explicit <br>, it only stops automatic mid-text wrapping. */
/* v.87.3: the no-wrap/ellipsis behaviour described above was REMOVED. It cut off any
   link text that didn't fit - the title links in the first column AND long text in the day
   cells. Links now wrap normally. Words are only broken mid-word if a single word is wider
   than the cell (td has word-wrap:break-word above). */
.mobiletable td a{
    display:inline;
    max-width:none;
    white-space:normal;
    overflow:visible;
    text-overflow:clip;
}

/* Smaller text and much tighter padding in the description (first)
   column on mobile. Targets the first <td> of every row - this covers
   the header row's blank/label cell (yomitabledim0), the Hebrew/English
   month-name cells, AND every study-track's title cell (bavlititle,
   amudtitle, yerutitle, etc.) all at once, so you never have to remember
   to add a new class name here when a new study track is introduced. */
.mobiletable tr td:first-child{
    font-size:80%;
    padding:2px 4px;
}

/* ADJUST HERE for ask (4a): "Tishrei" / "October" text - size & alignment.
   These two rules need !important because the generic rule right above
   (".mobiletable tr td:first-child") is otherwise more specific and would
   win regardless of source order. text-align isn't set anywhere else for
   these cells, so add whatever you like here (left/center/right). */
.mobiletable .hebmonthweek,
.mobiletable .engmonthweekname{
    font-size:90% !important;
    text-align:center !important;
}

/* ADJUST HERE for ask (4b): "Dafyomi Bavli" title text - size & alignment.
   Same !important reasoning as above. If you want this to apply to every
   study track's title (not just Bavli), add the other title classes to
   this selector list: .amudtitle, .yerutitle, .yeruoztitle,
   .meshulavtitle, .mishnatitle, .haltitle, .shoneititle, .mbdaftitle,
   .mbamudtitle, .mbdirshutitle, .chchtitle, .rmbm1title, .rmbm3title */
.mobiletable .bavlititle{
    font-size:90% !important;
    text-align:start !important;
}

/* ADJUST HERE for ask (4c): "[7 year cycle]" sub-text - size.
   No !important needed - this span isn't touched by the generic
   ":first-child" rule above (that rule targets the <td> itself; this
   span is a descendant with its own explicit font-size in the base
   stylesheet, so a same-or-higher-specificity rule here overrides it
   cleanly). */
.mobiletable .bavlititletext{
    font-size:100%;
}

}

/*=============================================================
v.87.2 ADDITIONS
==============================================================*/

/* Weekly / monthly study tables on phones: give the title column more room
   (18% was far too narrow for "(Chok l'Yisrael)") and use smaller text. */
@media (max-width:767px){
.neviimtitle, .kesuvimtitle, .mifal20title, .mifal30title, .mifaloctitle, .mifalcmtitle{
    width:30%;
    font-size:14px;
}
.neviim, .kesuvim, .mifal20, .mifal30, .mifaloc, .mifalcm{
    font-size:26px;
}
}

/* Footer links. Bootstrap 3 sets html{font-size:10px}, so the "rem" sizes in
   yomispages.css (.sitenav = .95rem) came out at only 9.5px on this page.
   These px sizes replace them. Phone sizes below are about 1.9x the old size. */
.sitefoot .sitenav, .sitefootheb .sitenav{   /* v.87.3: .sitefootheb = Hebrew pages */
    font-size:15px;
}
.sitefoot .btn, .sitefootheb .btn{
    font-size:16px;
}
@media (max-width:767px){
.sitefoot .sitenav, .sitefootheb .sitenav{
    font-size:18px;
    gap:8px;
}
.sitefoot .sitenav a, .sitefootheb .sitenav a{
    padding:10px 14px;
}
.sitefoot .btn, .sitefootheb .btn{
    font-size:20px;
    padding:14px 26px;
}
}
