<?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_661e99cd-7afe-4c1e-903f-d9c2402950f1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-01</startDate>
            <endDate>2026-04-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_661e99cd-7afe-4c1e-903f-d9c2402950f1"
      id="F_25e58058-51d6-493f-a43e-44a9c6d6ea6b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_661e99cd-7afe-4c1e-903f-d9c2402950f1"
      id="F_dbd700a1-57cd-4438-a835-5842fa5a06ee">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_661e99cd-7afe-4c1e-903f-d9c2402950f1"
      id="F_be1b6395-f9e3-495e-8635-2e40a1007290">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_661e99cd-7afe-4c1e-903f-d9c2402950f1"
      id="F_4bec0d76-faeb-4cdc-94ac-dc238a7ba54b">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_661e99cd-7afe-4c1e-903f-d9c2402950f1"
      id="F_853af5ec-87bb-47dc-af0f-0f3ad6dfc68d">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_661e99cd-7afe-4c1e-903f-d9c2402950f1"
      id="F_c70e0577-619d-4b3e-8625-2cc31610fb13">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_661e99cd-7afe-4c1e-903f-d9c2402950f1"
      id="F_6b79fa06-8e72-4ce8-8c6a-07d77f6e4d67">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_661e99cd-7afe-4c1e-903f-d9c2402950f1"
      id="F_e314c957-8ebe-48c0-aabb-c50a31ea0a6d">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_661e99cd-7afe-4c1e-903f-d9c2402950f1"
      id="F_8808bc4f-cae0-4480-bf25-77ff78cbd02f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_661e99cd-7afe-4c1e-903f-d9c2402950f1"
      id="F_150cad45-5023-4ec1-898a-d4b11a4ef652">&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;1,500,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_661e99cd-7afe-4c1e-903f-d9c2402950f1"
      decimals="0"
      id="F_6fb3ec60-4226-4caf-babf-4c2b4bc7e08d"
      unitRef="U_USD">1500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
