<?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_684d04f7-1070-44d2-8a6e-e36a56cd7c5e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-30</startDate>
            <endDate>2026-10-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_684d04f7-1070-44d2-8a6e-e36a56cd7c5e"
      id="F_f76bb5d6-6bd3-4701-b9f6-573cadd6908a">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_684d04f7-1070-44d2-8a6e-e36a56cd7c5e"
      id="F_b023c5f1-5a02-4561-a183-b698ae462a45">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_684d04f7-1070-44d2-8a6e-e36a56cd7c5e"
      id="F_29b231d8-20ba-44c7-b90d-eb35247f13d6">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_684d04f7-1070-44d2-8a6e-e36a56cd7c5e"
      id="F_1ce00599-f8bf-49d2-94fd-3851618181d0">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_684d04f7-1070-44d2-8a6e-e36a56cd7c5e"
      id="F_4ce3a7bb-5113-4205-b5b5-7969ebe1bb3e">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_684d04f7-1070-44d2-8a6e-e36a56cd7c5e"
      id="F_dd28f550-4af8-4f0d-a60c-af56a2ce47e4">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_684d04f7-1070-44d2-8a6e-e36a56cd7c5e"
      id="F_88d9de1a-55d4-42a0-81d9-76684cf50661">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_684d04f7-1070-44d2-8a6e-e36a56cd7c5e"
      id="F_0302dcae-49c4-4442-b4c7-7c08d8bee2ec">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_684d04f7-1070-44d2-8a6e-e36a56cd7c5e"
      id="F_43930563-b271-47ca-9230-aaf780262e6b">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_684d04f7-1070-44d2-8a6e-e36a56cd7c5e"
      id="F_be894f3b-1901-4c24-8fd5-a20d0bcd1b38">&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;4,000,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_684d04f7-1070-44d2-8a6e-e36a56cd7c5e"
      decimals="-6"
      id="F_134e779c-2420-4e5b-8e4c-a51efb88ce18"
      unitRef="U_USD">4000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
