<?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_545d0f81-2aae-4016-8b1e-d5723a545a13">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-25</startDate>
            <endDate>2026-08-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_545d0f81-2aae-4016-8b1e-d5723a545a13"
      id="F_aaaf7ad0-f3ca-4021-8155-e54bdcc478b2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_545d0f81-2aae-4016-8b1e-d5723a545a13"
      id="F_75c0b08e-311a-4463-9c3d-beb6bf103764">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_545d0f81-2aae-4016-8b1e-d5723a545a13"
      id="F_53f3c9e7-241d-4165-b5bc-de4651cb6355">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_545d0f81-2aae-4016-8b1e-d5723a545a13"
      id="F_bebe366e-ddd9-482e-bf6f-ac1c2e64c995">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_545d0f81-2aae-4016-8b1e-d5723a545a13"
      id="F_a5d153ee-cbeb-4237-9f9c-55f09d2d87b1">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_545d0f81-2aae-4016-8b1e-d5723a545a13"
      id="F_4da68c0f-559c-4902-9a8f-32a55c35d1cf">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_545d0f81-2aae-4016-8b1e-d5723a545a13"
      id="F_a2b8e017-d229-43ef-9df6-e3740e5074ca">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_545d0f81-2aae-4016-8b1e-d5723a545a13"
      id="F_616d0b5f-cc31-4a26-967b-3804a590cc57">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_545d0f81-2aae-4016-8b1e-d5723a545a13"
      id="F_3f436ead-a7ce-4763-95f0-591cd0bd57c6">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_545d0f81-2aae-4016-8b1e-d5723a545a13"
      id="F_ab817196-bd47-44e8-b047-0f2f6adda152">&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;19,068,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_545d0f81-2aae-4016-8b1e-d5723a545a13"
      decimals="-3"
      id="F_44ce15bb-0d4f-4b5b-894d-1c195e7e0ce0"
      unitRef="U_USD">19068000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
