<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_b702d8a2-ab38-484a-a554-524c7cfa9678">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-01</startDate>
            <endDate>2026-06-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b702d8a2-ab38-484a-a554-524c7cfa9678"
      id="F_151fde84-b484-4c7f-a707-bda101be32a1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_b702d8a2-ab38-484a-a554-524c7cfa9678"
      id="F_635d7af0-209b-419a-8c26-760174ad4977">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_b702d8a2-ab38-484a-a554-524c7cfa9678"
      id="F_246c4173-556c-4d05-868b-d41ece0f1f79">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_b702d8a2-ab38-484a-a554-524c7cfa9678"
      id="F_6552ae53-4c22-46c7-8e2a-dbcd1d7e6653">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_b702d8a2-ab38-484a-a554-524c7cfa9678"
      id="F_8621fb70-d000-416e-9e2a-727261ceb58e">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_b702d8a2-ab38-484a-a554-524c7cfa9678"
      id="F_f7c9c90d-5bd1-48d7-8a96-588d2e6d2ea6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_b702d8a2-ab38-484a-a554-524c7cfa9678"
      id="F_20e546ce-b9e1-4216-b9f7-a521c5eaf809">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_b702d8a2-ab38-484a-a554-524c7cfa9678"
      id="F_ee7b3200-4de7-4ac5-85a7-f303d7c4c5ae">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_b702d8a2-ab38-484a-a554-524c7cfa9678"
      id="F_69c9e089-f8b7-4e1f-8968-09e468d05a5d">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_b702d8a2-ab38-484a-a554-524c7cfa9678"
      id="F_897e583c-5e8c-4142-80de-dae02fc8e34b">&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;The prospectus to which this Exhibit is attached is a final prospectus for the related offering.  The maximum aggregate offering price for such offering is $&lt;/span&gt;&lt;span style="font-size:12pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;522,000&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;.&lt;/span&gt;&lt;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_b702d8a2-ab38-484a-a554-524c7cfa9678"
      decimals="-3"
      id="F_e0bc7f73-2fb9-4605-a95d-487826fd41b9"
      unitRef="U_USD">522000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
