<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_b9e3c2d8-ea66-4e42-88c0-e38d4b05ac06">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-25</startDate>
            <endDate>2026-03-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_b9e3c2d8-ea66-4e42-88c0-e38d4b05ac06"
      id="F_be521a5b-9b6a-4c47-a7d7-bdc59a42f0b6">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_b9e3c2d8-ea66-4e42-88c0-e38d4b05ac06"
      id="F_48d5fa7f-d965-438f-b26c-12376a7e8a12">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_b9e3c2d8-ea66-4e42-88c0-e38d4b05ac06"
      id="F_963f8db3-7d2b-4e10-b208-eaf88b85e6a6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_b9e3c2d8-ea66-4e42-88c0-e38d4b05ac06"
      id="F_dd2b2b4d-c39b-4e97-a2f4-dd5a7b56bb00">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_b9e3c2d8-ea66-4e42-88c0-e38d4b05ac06"
      id="F_3b6acd6c-32b0-4b0e-8569-571fc07bbdbb">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b9e3c2d8-ea66-4e42-88c0-e38d4b05ac06"
      id="F_74598a34-525e-4a99-be29-392cf82c3c7b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_b9e3c2d8-ea66-4e42-88c0-e38d4b05ac06"
      id="F_f70bda78-4176-471d-956f-4b91b63d7a84">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_b9e3c2d8-ea66-4e42-88c0-e38d4b05ac06"
      id="F_56ee1e9b-6095-4c54-acc8-56d9942b1710">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_b9e3c2d8-ea66-4e42-88c0-e38d4b05ac06"
      id="F_7fd15613-92b1-471d-bee5-e7c1ebe9e47c">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_b9e3c2d8-ea66-4e42-88c0-e38d4b05ac06"
      id="F_102d44af-0901-4733-a960-8782856b3cb9">&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;3,575,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_b9e3c2d8-ea66-4e42-88c0-e38d4b05ac06"
      decimals="0"
      id="F_58016e2b-ab9e-499f-9681-fcae8d1b284f"
      unitRef="U_USD">3575000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
