<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_3d2cad89-0c9a-4045-a920-9f6f6e2f5923">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-15</startDate>
            <endDate>2026-09-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_3d2cad89-0c9a-4045-a920-9f6f6e2f5923"
      id="F_ba12b19d-a398-4220-9a35-a513e698efa1">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_3d2cad89-0c9a-4045-a920-9f6f6e2f5923"
      id="F_8f5e1113-6aaf-4388-a533-7bda9be47b89">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_3d2cad89-0c9a-4045-a920-9f6f6e2f5923"
      id="F_f72b8241-5a3a-406a-a188-e6b576e44c25">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_3d2cad89-0c9a-4045-a920-9f6f6e2f5923"
      id="F_a5fff2a6-2481-445c-a5d8-d447940128a5">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_3d2cad89-0c9a-4045-a920-9f6f6e2f5923"
      id="F_e15c961f-af4c-4790-a801-b4de8e898844">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3d2cad89-0c9a-4045-a920-9f6f6e2f5923"
      id="F_3d009280-5eaf-4f6d-8fd6-23ec21f690fe">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_3d2cad89-0c9a-4045-a920-9f6f6e2f5923"
      id="F_96925882-d991-48bb-aacc-9dc3b397357b">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_3d2cad89-0c9a-4045-a920-9f6f6e2f5923"
      id="F_7e524002-4719-4317-9ac1-c13f99564382">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_3d2cad89-0c9a-4045-a920-9f6f6e2f5923"
      id="F_7490b398-c527-4f09-9f23-7cbb2098db2a">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_3d2cad89-0c9a-4045-a920-9f6f6e2f5923"
      id="F_3abe5c0d-9399-4afa-b8f7-88cf39d2e133">&lt;p style="tab-size:26.66px;font-size:12pt;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;400,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_3d2cad89-0c9a-4045-a920-9f6f6e2f5923"
      decimals="-3"
      id="F_30fa3162-6cec-4f5b-a16e-22385355f2f5"
      unitRef="U_USD">400000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
