<?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_da7cab99-57a4-4fb7-bb1b-635dff94b51d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-23</startDate>
            <endDate>2026-06-23</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_da7cab99-57a4-4fb7-bb1b-635dff94b51d"
      id="F_d42caef2-c582-40dc-8dd6-112ced4f7188">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_da7cab99-57a4-4fb7-bb1b-635dff94b51d"
      id="F_37970a1d-85cc-4a0e-9b61-812521672c0e">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_da7cab99-57a4-4fb7-bb1b-635dff94b51d"
      id="F_bfa3cf36-a6ed-4a24-89d6-e7113be9910f">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_da7cab99-57a4-4fb7-bb1b-635dff94b51d"
      id="F_d873be20-8a4f-4c62-8506-b11a56998882">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_da7cab99-57a4-4fb7-bb1b-635dff94b51d"
      id="F_9fb4ce7e-8756-473d-abd8-c4cde6000752">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_da7cab99-57a4-4fb7-bb1b-635dff94b51d"
      id="F_c66de442-cb94-4bf9-9532-49499cf38c12">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_da7cab99-57a4-4fb7-bb1b-635dff94b51d"
      id="F_f9e3b357-aba7-4e22-a15a-423db4516da9">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_da7cab99-57a4-4fb7-bb1b-635dff94b51d"
      id="F_2c066b7a-795e-46af-a8a9-c55a8b8b0b07">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_da7cab99-57a4-4fb7-bb1b-635dff94b51d"
      id="F_e4680c64-d23a-444a-9e98-a1b6b25533d1">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_da7cab99-57a4-4fb7-bb1b-635dff94b51d"
      id="F_f8a96f9a-f648-4fb6-9119-758d0f9063b9">&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;20,689,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_da7cab99-57a4-4fb7-bb1b-635dff94b51d"
      decimals="-3"
      id="F_bb9ffde3-af09-468d-99ce-e5e7f57a5e49"
      unitRef="U_USD">20689000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
