<?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_abe5310b-d771-4abc-9713-ac92479101e0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-09</startDate>
            <endDate>2026-09-09</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_abe5310b-d771-4abc-9713-ac92479101e0"
      id="F_a603b66c-71b6-4525-85f8-5d090b62a00d">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_abe5310b-d771-4abc-9713-ac92479101e0"
      id="F_4b04b204-7b12-4de3-9dd0-bead7de1ea39">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_abe5310b-d771-4abc-9713-ac92479101e0"
      id="F_3cef2730-b533-4db2-8580-75de0a934547">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_abe5310b-d771-4abc-9713-ac92479101e0"
      id="F_d0afb641-1d32-472b-afe1-632ad5e65361">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_abe5310b-d771-4abc-9713-ac92479101e0"
      id="F_89678086-c94d-4b78-a882-c5b99d0d9a68">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_abe5310b-d771-4abc-9713-ac92479101e0"
      id="F_c576efca-8df2-4e4b-bb08-2fcd6d3c911e">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_abe5310b-d771-4abc-9713-ac92479101e0"
      id="F_1de2b4e9-ab58-4b6e-b86e-5b62dd66a1de">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_abe5310b-d771-4abc-9713-ac92479101e0"
      id="F_96dd9c11-450e-4a99-b528-b2d80dfaf311">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_abe5310b-d771-4abc-9713-ac92479101e0"
      id="F_bee62eac-6254-44ba-9004-ad2acfb5ede8">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_abe5310b-d771-4abc-9713-ac92479101e0"
      id="F_4749b8a6-cd44-483c-8c04-480846903b1a">&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;360,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_abe5310b-d771-4abc-9713-ac92479101e0"
      decimals="-3"
      id="F_28fdd653-ea4b-4a32-b9b3-47e575f0182c"
      unitRef="U_USD">360000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
