<?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_6cc72789-70c4-43d7-a31b-a54b5264fded">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-19</startDate>
            <endDate>2026-08-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_6cc72789-70c4-43d7-a31b-a54b5264fded"
      id="F_00ab9075-c5b1-4654-9e22-a0483a189918">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_6cc72789-70c4-43d7-a31b-a54b5264fded"
      id="F_d9fc1534-231c-410e-a654-a19cc641f3ae">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_6cc72789-70c4-43d7-a31b-a54b5264fded"
      id="F_dd5af571-72ac-4303-a050-ffb9744397b8">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_6cc72789-70c4-43d7-a31b-a54b5264fded"
      id="F_dbfa65ad-8276-4113-9845-04d57ac5ae85">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6cc72789-70c4-43d7-a31b-a54b5264fded"
      id="F_77e86282-f4aa-4b10-8d89-9640c3b2b840">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_6cc72789-70c4-43d7-a31b-a54b5264fded"
      id="F_690e5b38-5df8-4c39-8462-fec5b58315c9">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_6cc72789-70c4-43d7-a31b-a54b5264fded"
      id="F_a329c56e-4057-45aa-b435-0e9da2abdfcf">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_6cc72789-70c4-43d7-a31b-a54b5264fded"
      id="F_ed9ee517-54db-45cb-87ba-efaed2e267fe">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_6cc72789-70c4-43d7-a31b-a54b5264fded"
      id="F_60ee67c6-8289-4dfb-909a-6cf89a97937c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_6cc72789-70c4-43d7-a31b-a54b5264fded"
      id="F_dc35a5b2-051a-47f3-98c0-5a4760cb6823">&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;7,008,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_6cc72789-70c4-43d7-a31b-a54b5264fded"
      decimals="-3"
      id="F_9f6c4064-53a5-4dca-a331-0ab3d8b44ea7"
      unitRef="U_USD">7008000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
