<?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_92d683fc-a235-43bd-a0b3-c7236165e698">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-24</startDate>
            <endDate>2026-03-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_92d683fc-a235-43bd-a0b3-c7236165e698"
      id="F_1d006645-ff35-4c90-950a-942fc87b8a7e">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_92d683fc-a235-43bd-a0b3-c7236165e698"
      id="F_9d4781fc-1727-45ce-a815-986096f440fb">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_92d683fc-a235-43bd-a0b3-c7236165e698"
      id="F_41b36c5b-67c4-410e-8440-7a45bf7640d2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_92d683fc-a235-43bd-a0b3-c7236165e698"
      id="F_e2dc9541-75fa-4d40-a79a-3fb2d85044fa">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_92d683fc-a235-43bd-a0b3-c7236165e698"
      id="F_e18c08a2-40e0-4432-9404-bbacc8bd13c8">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_92d683fc-a235-43bd-a0b3-c7236165e698"
      id="F_e89d76cb-cca5-43ed-9211-149fb73c581b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_92d683fc-a235-43bd-a0b3-c7236165e698"
      id="F_88f9df5c-9add-4492-9832-482583c8f54d">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_92d683fc-a235-43bd-a0b3-c7236165e698"
      id="F_64dc8853-cbfa-416b-b87b-425a1faea7ed">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_92d683fc-a235-43bd-a0b3-c7236165e698"
      id="F_0cc494d8-8318-4d00-b294-f3f225ae3b06">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_92d683fc-a235-43bd-a0b3-c7236165e698"
      id="F_74f1994b-3cea-4fe4-8c9e-bb9c9df1597e">&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;1,070,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_92d683fc-a235-43bd-a0b3-c7236165e698"
      decimals="0"
      id="F_6f1486b7-ca8a-491d-a6f9-7445ac865098"
      unitRef="U_USD">1070000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
