<?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_259ee539-124b-4de7-81cb-249c9ad2b65c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-17</startDate>
            <endDate>2026-04-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_259ee539-124b-4de7-81cb-249c9ad2b65c"
      id="F_fac1803a-70ee-46c9-8075-6bd578cbf169">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_259ee539-124b-4de7-81cb-249c9ad2b65c"
      id="F_9175cb75-4330-4d70-b1ae-d80fb91e43c1">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_259ee539-124b-4de7-81cb-249c9ad2b65c"
      id="F_119d6425-b868-412e-a166-620cd0d97535">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_259ee539-124b-4de7-81cb-249c9ad2b65c"
      id="F_81aeec71-23a4-420c-a364-eaecea5782dc">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_259ee539-124b-4de7-81cb-249c9ad2b65c"
      id="F_860be90e-546c-44ef-9162-db23c52c9722">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_259ee539-124b-4de7-81cb-249c9ad2b65c"
      id="F_2254f24b-cd9c-4b17-82f6-1ba46253d92b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_259ee539-124b-4de7-81cb-249c9ad2b65c"
      id="F_ba6e6b4b-cf24-451e-9237-b01b7fb47532">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_259ee539-124b-4de7-81cb-249c9ad2b65c"
      id="F_c69aba9c-1297-40f1-9dd2-19879784e389">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_259ee539-124b-4de7-81cb-249c9ad2b65c"
      id="F_cc51f881-5897-44f4-9620-694ff09a6df8">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_259ee539-124b-4de7-81cb-249c9ad2b65c"
      id="F_f8e780c3-45b0-4057-af46-a83b8cba62f5">&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,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_259ee539-124b-4de7-81cb-249c9ad2b65c"
      decimals="0"
      id="F_0bf3e12c-c0b7-433b-8dda-b5301732e192"
      unitRef="U_USD">3500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
