<?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_5fb4de77-2ea6-4048-886e-7a9f52b4370e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-11</startDate>
            <endDate>2026-08-11</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_5fb4de77-2ea6-4048-886e-7a9f52b4370e"
      id="F_5400a5d6-9248-44bb-8aaf-693f1b4f3964">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_5fb4de77-2ea6-4048-886e-7a9f52b4370e"
      id="F_1e269cab-e07e-4677-8664-e3cf129a2f45">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_5fb4de77-2ea6-4048-886e-7a9f52b4370e"
      id="F_6fbe9f20-3d1b-4c5f-8c16-2586be00754b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_5fb4de77-2ea6-4048-886e-7a9f52b4370e"
      id="F_39db6196-7351-4a0d-829d-1cf25ffb4fab">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_5fb4de77-2ea6-4048-886e-7a9f52b4370e"
      id="F_ebe37cb9-8b32-489a-a45b-57ce3e007ee3">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_5fb4de77-2ea6-4048-886e-7a9f52b4370e"
      id="F_86e4fb2c-6357-41d7-9167-5528ec137976">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5fb4de77-2ea6-4048-886e-7a9f52b4370e"
      id="F_933fa316-8f53-479e-9f46-4d03d6af710f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_5fb4de77-2ea6-4048-886e-7a9f52b4370e"
      id="F_78a036ab-3f4b-44d7-a59d-45e6f7ff9529">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_5fb4de77-2ea6-4048-886e-7a9f52b4370e"
      id="F_3973965f-4a8e-4ff2-916d-d43540041fbb">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_5fb4de77-2ea6-4048-886e-7a9f52b4370e"
      id="F_15a593d3-60fb-4bec-967a-a7401b062af8">&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;446,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_5fb4de77-2ea6-4048-886e-7a9f52b4370e"
      decimals="-3"
      id="F_cd3ff9e0-ff73-4feb-95c7-b174b59cf63b"
      unitRef="U_USD">446000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
