<?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_b5a7b3de-fc4e-4fd0-a484-135fa9967ff5">
        <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>
    <ffd:SubmissnTp
      contextRef="C_b5a7b3de-fc4e-4fd0-a484-135fa9967ff5"
      id="F_bcbf7e48-4ee5-4477-8c84-9f57463b55d3">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_b5a7b3de-fc4e-4fd0-a484-135fa9967ff5"
      id="F_5b2534ff-0a26-4b67-a24d-df065f574d06">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_b5a7b3de-fc4e-4fd0-a484-135fa9967ff5"
      id="F_a6b41dbe-9c3e-494a-85ec-cb10c69814f7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_b5a7b3de-fc4e-4fd0-a484-135fa9967ff5"
      id="F_cc58bad8-1726-48ce-b1d7-95c350f0c76c">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_b5a7b3de-fc4e-4fd0-a484-135fa9967ff5"
      id="F_0ac4ab11-5cc6-4fdc-a114-941bd7fedb6e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_b5a7b3de-fc4e-4fd0-a484-135fa9967ff5"
      id="F_e75ec385-dd53-4e65-b7cc-c20bf750f8e1">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_b5a7b3de-fc4e-4fd0-a484-135fa9967ff5"
      id="F_df863ef1-4826-4e3d-be6c-436b9060f590">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_b5a7b3de-fc4e-4fd0-a484-135fa9967ff5"
      id="F_4b7cd3a5-4cda-4f10-96a1-99deb2e599b9">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b5a7b3de-fc4e-4fd0-a484-135fa9967ff5"
      id="F_1226cbcb-12c9-434e-9392-dacc9211274d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_b5a7b3de-fc4e-4fd0-a484-135fa9967ff5"
      id="F_819652cd-c0c2-4670-9423-79bbdad3ad07">&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;570,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_b5a7b3de-fc4e-4fd0-a484-135fa9967ff5"
      decimals="-3"
      id="F_d18d93ba-279e-4959-8678-2f647bd723e6"
      unitRef="U_USD">570000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
