<?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_241e4eef-ada2-428e-9e53-3ade4ea3904c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-31</startDate>
            <endDate>2026-08-31</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_241e4eef-ada2-428e-9e53-3ade4ea3904c"
      id="F_415be81f-74dc-4412-b7b3-efa666fef739">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_241e4eef-ada2-428e-9e53-3ade4ea3904c"
      id="F_2b5ee790-7057-4561-8acd-33afa42dc0ec">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_241e4eef-ada2-428e-9e53-3ade4ea3904c"
      id="F_b8ad2ba7-4877-4c00-a6cf-b8d8e7f72bdd">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_241e4eef-ada2-428e-9e53-3ade4ea3904c"
      id="F_9dd99f38-8557-4db5-97e4-defd42fcd09e">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_241e4eef-ada2-428e-9e53-3ade4ea3904c"
      id="F_07674eaa-874c-4e5e-a77a-1d32d9fc923e">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_241e4eef-ada2-428e-9e53-3ade4ea3904c"
      id="F_9c2b4c54-be08-4488-8c05-da010a9f54c1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_241e4eef-ada2-428e-9e53-3ade4ea3904c"
      id="F_cae14a97-8f72-4d6e-b5e7-fd6fcd1071d8">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_241e4eef-ada2-428e-9e53-3ade4ea3904c"
      id="F_4d343152-5ca6-429f-8025-5c5931dfa171">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_241e4eef-ada2-428e-9e53-3ade4ea3904c"
      id="F_7f8136d6-b3bf-4057-9a93-d441d3407c9f">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_241e4eef-ada2-428e-9e53-3ade4ea3904c"
      id="F_6aab3a49-faa5-440a-8044-bf5e2da95acd">&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;808,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_241e4eef-ada2-428e-9e53-3ade4ea3904c"
      decimals="-3"
      id="F_eb44c6cc-82e3-4faf-8a99-d36fd9840268"
      unitRef="U_USD">808000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
