<?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_a52e58f7-688b-4307-b196-1de615f286f5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-10</startDate>
            <endDate>2026-03-10</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_a52e58f7-688b-4307-b196-1de615f286f5"
      id="F_c62c652f-b579-4f2c-abc6-4a1bcc0bc72d">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_a52e58f7-688b-4307-b196-1de615f286f5"
      id="F_2f8f2beb-c516-448b-adf8-23e9a7cbcb8c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_a52e58f7-688b-4307-b196-1de615f286f5"
      id="F_246081e5-8621-4b34-b056-7686f07a31a5">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_a52e58f7-688b-4307-b196-1de615f286f5"
      id="F_108ce9d5-964e-4e06-8bd3-79c3dc862849">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_a52e58f7-688b-4307-b196-1de615f286f5"
      id="F_08bd297c-813f-472c-a255-4847d7db1b00">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_a52e58f7-688b-4307-b196-1de615f286f5"
      id="F_7282699d-65e7-444e-b58d-2f5325d56337">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_a52e58f7-688b-4307-b196-1de615f286f5"
      id="F_b721ab83-b3b8-48d5-9a9c-c6e567efcd93">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_a52e58f7-688b-4307-b196-1de615f286f5"
      id="F_77aedba6-6df3-4af3-9a16-0cb22a7ae584">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a52e58f7-688b-4307-b196-1de615f286f5"
      id="F_5d8cecc5-58dd-4bd4-9da3-532014d73586">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_a52e58f7-688b-4307-b196-1de615f286f5"
      id="F_8f806c61-1a2a-43b0-a09d-b4c37b02fdcf">&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;16,980,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_a52e58f7-688b-4307-b196-1de615f286f5"
      decimals="0"
      id="F_454129af-52d2-4439-9c0b-11e5dbbe3cba"
      unitRef="U_USD">16980000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
