<?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_e6d528b6-daf8-475a-bbe8-aaf9ed28715b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-24</startDate>
            <endDate>2026-04-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_e6d528b6-daf8-475a-bbe8-aaf9ed28715b"
      id="F_d279e537-494a-40b0-9de2-6d5913d09bdd">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_e6d528b6-daf8-475a-bbe8-aaf9ed28715b"
      id="F_0afd4037-73b6-4955-8a0e-61e186faccc0">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_e6d528b6-daf8-475a-bbe8-aaf9ed28715b"
      id="F_0d638140-0a3a-45a9-9952-2d03b16e6f42">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_e6d528b6-daf8-475a-bbe8-aaf9ed28715b"
      id="F_5d415a64-a43f-454f-a775-cf0a307c781d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_e6d528b6-daf8-475a-bbe8-aaf9ed28715b"
      id="F_b3a11444-ac20-4310-a762-c8809f900b4e">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_e6d528b6-daf8-475a-bbe8-aaf9ed28715b"
      id="F_45b39b3f-2d06-49d6-b411-1c2a48e4de1f">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_e6d528b6-daf8-475a-bbe8-aaf9ed28715b"
      id="F_9dbdf986-8944-4b11-b062-1b71a6947b45">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e6d528b6-daf8-475a-bbe8-aaf9ed28715b"
      id="F_c81c99b4-7956-4b96-94f4-8cfb41c4b597">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_e6d528b6-daf8-475a-bbe8-aaf9ed28715b"
      id="F_49549677-9aec-4b8c-8714-ec8efce73ba8">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_e6d528b6-daf8-475a-bbe8-aaf9ed28715b"
      id="F_7a569b3f-c0ca-4658-b0ad-52f58895dc68">&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;4,374,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_e6d528b6-daf8-475a-bbe8-aaf9ed28715b"
      decimals="0"
      id="F_5ddbfe0e-584b-42ae-ac34-89e41f31604c"
      unitRef="U_USD">4374000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>