<?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_270c65e7-f0d2-43c4-afa4-fe2db55204cd">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-31</startDate>
            <endDate>2026-03-31</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_270c65e7-f0d2-43c4-afa4-fe2db55204cd"
      id="F_22d45f29-483c-474c-8076-825e44e7cefc">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_270c65e7-f0d2-43c4-afa4-fe2db55204cd"
      id="F_e1efff92-b2ee-4ec3-96f6-f6eb3eb7af6c">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_270c65e7-f0d2-43c4-afa4-fe2db55204cd"
      id="F_f068fec8-c0e6-4cd3-aff7-fbf86a20df98">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_270c65e7-f0d2-43c4-afa4-fe2db55204cd"
      id="F_eb122ab6-5bed-4fe5-8cbc-4e1776c83f78">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_270c65e7-f0d2-43c4-afa4-fe2db55204cd"
      id="F_3f4fab3b-46a9-40a0-8ae7-31d2ede00a85">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_270c65e7-f0d2-43c4-afa4-fe2db55204cd"
      id="F_7c1572bf-3853-4645-ae67-e3e4d1f79645">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_270c65e7-f0d2-43c4-afa4-fe2db55204cd"
      id="F_aced7b05-b1f0-4917-b08b-57430844d931">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_270c65e7-f0d2-43c4-afa4-fe2db55204cd"
      id="F_8167e9a4-b4ef-4e3a-96e3-80ece74d66e0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_270c65e7-f0d2-43c4-afa4-fe2db55204cd"
      id="F_0294584b-9564-48b2-8321-b1eb1d47520d">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_270c65e7-f0d2-43c4-afa4-fe2db55204cd"
      id="F_fb4889f3-a9c1-4e4a-86e4-5bda119dba69">&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,828,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_270c65e7-f0d2-43c4-afa4-fe2db55204cd"
      decimals="0"
      id="F_ea2e07e1-63c3-4d9a-a689-b6ef1df405c1"
      unitRef="U_USD">3828000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
