<?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_cab04b22-e797-42cc-bdc0-e4038ab97ce1">
        <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:SubmissnTp
      contextRef="C_cab04b22-e797-42cc-bdc0-e4038ab97ce1"
      id="F_56b83ae1-5b0f-4e24-a49f-bed46d00571d">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_cab04b22-e797-42cc-bdc0-e4038ab97ce1"
      id="F_6a0ca4ff-c1bb-4b03-a15e-c374c550dc1f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_cab04b22-e797-42cc-bdc0-e4038ab97ce1"
      id="F_54cdbab1-5e39-4162-b5f5-a5ed54d06919">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_cab04b22-e797-42cc-bdc0-e4038ab97ce1"
      id="F_767669b3-2d92-41b6-96fe-f4bfaabac1e9">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_cab04b22-e797-42cc-bdc0-e4038ab97ce1"
      id="F_b3b46f8a-68c8-4e06-8ee9-29e3a4d4e014">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_cab04b22-e797-42cc-bdc0-e4038ab97ce1"
      id="F_92d2a820-e343-4d20-8f6c-7d08066b5f7b">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_cab04b22-e797-42cc-bdc0-e4038ab97ce1"
      id="F_2a93a382-b52c-4921-9131-579dd9e7734f">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_cab04b22-e797-42cc-bdc0-e4038ab97ce1"
      id="F_05ca34ae-ad49-4eae-832f-ece22bcaea13">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_cab04b22-e797-42cc-bdc0-e4038ab97ce1"
      id="F_ebd98ac3-d935-4b14-9468-a2a66fc04289">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_cab04b22-e797-42cc-bdc0-e4038ab97ce1"
      id="F_55d67ad1-6c6f-4719-98f3-2d96b9906ee0">&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;2,289,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_cab04b22-e797-42cc-bdc0-e4038ab97ce1"
      decimals="0"
      id="F_5c1f015e-24e6-44f6-8e80-748518f21867"
      unitRef="U_USD">2289000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
